Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del prisijungimo ant banerio
Parašė djmomo2· 2008 Spa. 10 14:10:39
#1
Kaip padaryti prisijungima baneryje, kaip padariau foto
http://www.pico.lt/upload/files/...2fc259.jpg
I ta morkava fona nekreipkit demesio, nu ta prasme kad toje vietoje butu prisijungimas. Kur ir ka reikia irasyti themes.php faile?
kai darau pagal ta kur paryta straipsniuose tai dingsta baneris atridanda papildomu meniu ir t.t.
Redagavo djmomo2· 2008 Spa. 10 15:10:47
Parašė viva· 2008 Spa. 10 15:10:13
#2
tau koda duotum tu nemoketum jo ideti
Parašė djmomo2· 2008 Spa. 10 15:10:17
#3
Kas gali duot koda?
Redagavo djmomo2· 2008 Spa. 10 15:10:16
Parašė djmomo2· 2008 Spa. 10 18:10:45
#4
parasykit koki koda idet i themes.php kad tik rodytu ant banerio
Redaguoti aprašymą
Asmeninės žinutės
Narių sąrašas
Administracijos panelė
Atsijungti
be jokiu avataru nieko, tik paprastas prisijungimas, labai man reikia
Parašė viva· 2008 Spa. 10 18:10:16
#5
tu su savim gincijiesi ir fludini pirmam psote sakai kaip padaryti toki prisijungimak iap foto o 4 poste jau rasai kad reikia be jokiu avataru nors pirmama psote foto yra su avataru
Parašė djmomo2· 2008 Spa. 10 18:10:11
#7
nekreip demesio i ta avatara, o del tos nuoros kai pagal ja darau tai ten sakau neberodo nei banerio mano ir dar prideda miktuku visokiu nereikalingu, nors man ju net nereikia.
Parašė EviL· 2008 Spa. 10 18:10:47
#8
del headerio tai ten kur header.php faile yra si eilute
background='".THEME."images/header_01.jpg'
vietoi header_01.jpg pakeisk i savo headerio pavadinima, o del mygtuku tu nereikalingu nutrink sia vieta:
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
echo "<td>\n";
echo ($i == 0 ? " " : "")."</td>";
echo "</td></tr></table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
<tr>
<td width='5'></td>
<td width='69' valign='top'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.png' border=0' alt='Pradinis'></a></td>
<td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.png' border=0' alt='Diskusijos'></td>
<td width='564' class='dark'><marquee>".parseubb(parsesmileys("<span style='color: green'><b>Laukiant Pavasario su LightTen</b></span>"))."</marquee></td>
<td width='69' valign='top'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.png' border=0' alt='Galerija'></td>
<td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/siuntimai.png' border=0' alt='Siuntiniai'></td>
<td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=19'><img src='".THEME."images/reklama.png' border=0' alt='Reklama'></td>
<td width='5'></td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
Redagavo EviL· 2008 Spa. 10 18:10:12
Parašė djmomo2· 2008 Spa. 10 22:10:34
#9
Pasidariau, bet dabar pas mane butonu nebera, kaip juos idet i ta header kad butu kaip toj foto virsui?
Redagavo djmomo2· 2008 Spa. 11 00:10:00
Parašė djmomo2· 2008 Spa. 11 10:10:26
#10
Mano render header: (cia su mano miktukais dar)
function render_header($header_content) {
global $theme_width;
echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='755' height='279' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='4'>
<img src='".THEME."images/header_01.jpg' width='755' height='9' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_02.jpg' width='513' height='72' alt=''></td>
<td>
<img src='".THEME."images/header_03.jpg' width='242' height='72' alt=''></td>
</tr>
<tr>
<td rowspan='7'>
<img src='".THEME."images/header_04.jpg' width='50' height='197' alt=''></td>
<td>
<a href='/news.php'><img src='".THEME."images/header_05.jpg' width='186' height='36' alt=''></td>
<td colspan='2' rowspan='7'>
<img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_07.jpg' width='186' height='25' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_08.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_09.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_10.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_11.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_12.jpg' width='186' height='26' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='186' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='277' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='242' height='1' alt=''></td>
</tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
header.php:
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."/images/header_06.jpg' height='250' style='background-repeat: no-repeat;'>
<tr>
<td width='218' style='padding-right: 50px; padding-left: 100px; padding-bottom: 50px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='218' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptaþodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
?>
Galit padet idet tuos visus miktukus i header.php? nes header.php yra tik banerio adresui irasyt, o visu situ miktuku is renderheader neina man pridet.
Redagavo djmomo2· 2008 Spa. 11 10:10:09
Parašė djmomo2· 2008 Spa. 11 13:10:47
#11
padek dar biski su tuo prisijungimu headeryje, kai susikraunu visus miktukus ir prisijungima va taip atrodo:
http://www.pico.lt/upload/files/...882a7f.jpg
(<img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>) Sita eulute yra to paveiksliuko ant kurio turi buti prisijungimas.
ir nebeleidzia pakelt i virsu to prisijungimo, padek susitvarkyti, kai sujungiau header.php atrodo taip:
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table colspan='3' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='755' height='279' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='4'>
<img src='".THEME."images/header_01.jpg' width='755' height='9' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_02.jpg' width='513' height='72' alt=''></td>
<td>
<img src='".THEME."images/header_03.jpg' width='242' height='72' alt=''></td>
</tr>
<tr>
<td rowspan='7'>
<img src='".THEME."images/header_04.jpg' width='50' height='197' alt=''></td>
<td>
<a href='/news.php'><img src='".THEME."images/header_05.jpg' width='186' height='36' alt=''></td>
<td colspan='2' rowspan='7'>
<img src='".THEME."images/header_06.jpg' width='519' height='197' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_07.jpg' width='186' height='25' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_08.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_09.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_10.jpg' width='186' height='27' alt=''></td>
</tr>
<tr>
<td>
<a href='/viewpage.php?page_id=6'><img src='".THEME."images/header_11.jpg' width='186' height='28' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_12.jpg' width='186' height='26' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='50' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='186' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='277' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='242' height='1' alt=''></td>
</tr></table>
<tr>
<td width='218' style='padding-right: 20px; padding-left: 238px; padding-bottom: 20px; padding-top:0px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='218' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptaþodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
?>
Redagavo djmomo2· 2008 Spa. 11 15:10:11