Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit, del scripto vieno

Parašė ahahhh· 2009 Sau. 3 21:01:48
#1

Sveiki, radau pamoka kaip pasidaryti prisijungima ant headerio, viskas iseina, bet as noreciau kad desineje headerio puseje butu prisijungimas (db taip ir yra), o kaireje navigacijos linkai, kaip taip padaryti? bandau jau 2 valandas ir neiseina :S
O cia scriptas kur viskas yra.

<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/banner.jpg' height='299' style='background-repeat: no-repeat;'>

<tr>
     
      <td width='235' style='padding-right: 0px; padding-left: 700px; 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='235' 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 profili;</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Zinutes [nauju: <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>&nbsp;<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>&nbsp;<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>&nbsp;<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&#254;odis</a>\n";
   }
   echo"</table>\n";
}
echo "</td>
      </tr>
      </table>\n";

   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 ? "&nbsp;" : "")."</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>";   
      ?>



Dekoju is anksto

Redagavo ahahhh· 2009 Sau. 11 18:01:47

Parašė ahahhh· 2009 Sau. 4 11:01:13
#2

tai niekas ir nepadesit? :(

Parašė Ultriukas· 2009 Sau. 4 14:01:26
#3

<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/banner.jpg' height='299' style='background-repeat: no-repeat;'>

<tr>
     
      <td width='235' style='padding-right: 0px; padding-left: 700px; 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='235' 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 profili;</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Zinutes [nauju: <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>&nbsp;<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>&nbsp;<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>&nbsp;<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&#254;odis</a>\n";
   }
   echo"</table>\n";
}
echo "</td>
      </tr>
      </table>\n";

   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-left: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
   echo "<td>\n";
   echo ($i == 0 ? "&nbsp;" : "")."</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>";   
      ?>




Gaudyk ;)

Redagavo Ultriukas· 2009 Sau. 4 14:01:45

Parašė ahahhh· 2009 Sau. 4 15:01:13
#4

atsiprasau, bet man daviai ta pati scripta, kuri as papostinau :(

Redagavo ahahhh· 2009 Sau. 4 15:01:31

Parašė Black psycho· 2009 Sau. 4 15:01:00
#5

ahahhh parašė:
atsiprasau, bet man daviai ta pati scripta, kuri as papistinau :(

:o:]:o:D va čia tai top'as

Parašė ahahhh· 2009 Sau. 4 15:01:15
#6

aciu, kad pastebejai, istaisysiu :D

P.S gal tu moketum pridet navigacija kaireje bannerio puseje?

Redagavo ahahhh· 2009 Sau. 4 15:01:02

Parašė Ultriukas· 2009 Sau. 4 18:01:26
#7

Ne Toki Pati,Reik Moketi Ziureti

Parašė ahahhh· 2009 Sau. 11 18:01:28
#8

tai niekas negalit padet?

Parašė Tomcis· 2009 Sau. 11 18:01:18
#9

Prisijungimas banneryje. :D
Pavarei byčeli.

Parašė ahahhh· 2009 Sau. 11 18:01:06
#10

daugiau pasakyt nesugebejai?