Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Įdėkita kodą

Parašė samsung123· 2008 Kov. 7 16:03:43
#1

Taifi galit išimt tik prisijungimo headerio kodą nes dar visiokių panelių pridėta..

KODAS

<?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_01.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 profil&#225;</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;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&#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 ? " " : "")."</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 samsung123· 2008 Kov. 7 17:03:01

Parašė samsung123· 2008 Kov. 7 17:03:17
#2

Biški flood bet gal galite idėti prisijungimo kodą į Header_10.png img nes niekaip nesigauna

čia koda į kurį reikės įdėti

</head>
<table id="Table_01" width="989" height="401" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td rowspan="9">
         <img src="http://psdgi.xz.lt/images/header_01.png" width="38" height="400" alt=""></td>
      <td rowspan="5">
         <a href=http://psdgi.xz.lt/news.php><img src="http://psdgi.xz.lt/images/header_02.png" width="155" height="119" border="0" alt=""></td>
      <td rowspan="5">
         <a href=http://psdgi.xz.lt/forum/index.php><img src="http://psdgi.xz.lt/images/header_03.png" width="171" height="119" border="0" alt=""></td>
      <td rowspan="4">
         <a href=http://psdgi.xz.lt/downloads.php><img src="http://psdgi.xz.lt/images/header_04.png" width="171" height="118" border="0" alt=""></td>
      <td colspan="2">
         <img src="http://psdgi.xz.lt/images/header_05.png" width="164" height="39" alt=""></td>
      <td colspan="2">
         <img src="http://psdgi.xz.lt/images/header_06.png" width="168" height="39" alt=""></td>
      <td colspan="2">
         <img src="http://psdgi.xz.lt/images/header_07.png" width="121" height="39" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="39" alt=""></td>
   </tr>
   <tr>
      <td colspan="6">
         <img src="http://psdgi.xz.lt/images/header_08.png" width="453" height="30" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="30" alt=""></td>
   </tr>
   <tr>
      <td rowspan="5">
         <img src="http://psdgi.xz.lt/images/header_09.png" width="109" height="298" alt=""></td>
      <td colspan="4" rowspan="4">
         
 <img src="http://psdgi.xz.lt/images/header_10.png" width="286" height="189" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/header_11.png" width="58" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="1" alt=""></td>
   </tr>
   <tr>
      <td rowspan="5">
         <img src="http://psdgi.xz.lt/images/header_12.png" width="58" height="298" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="48" alt=""></td>
   </tr>
   <tr>
      <td rowspan="5">
         <img src="http://psdgi.xz.lt/images/header_13.png" width="171" height="282" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="1" alt=""></td>
   </tr>
   <tr>
      <td colspan="2" rowspan="4">
         <img src="http://psdgi.xz.lt/images/header_14.png" width="326" height="281" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="139" alt=""></td>
   </tr>
   <tr>
      <td colspan="4">
         <img src="http://psdgi.xz.lt/images/header_15.png" width="286" height="109" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="109" alt=""></td>
   </tr>
   <tr>
      <td rowspan="2">
         <img src="http://psdgi.xz.lt/images/header_16.png" width="109" height="33" alt=""></td>
      <td colspan="2" rowspan="2">
         <img src="http://psdgi.xz.lt/images/header_17.png" width="212" height="33" alt=""></td>
      <td colspan="2" rowspan="2">
         <img src="http://psdgi.xz.lt/images/header_18.png" width="74" height="33" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="1" alt=""></td>
   </tr>
   <tr>
      <td>
         <img src="http://psdgi.xz.lt/images/header_19.png" width="58" height="32" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="1" height="32" alt=""></td>
   </tr>
   <tr>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="38" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="155" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="171" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="171" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="109" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="55" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="157" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="11" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="63" height="1" alt=""></td>
      <td>
         <img src="http://psdgi.xz.lt/images/spacer.gif" width="58" height="1" alt=""></td>
      <td></td>
   </tr>

</body>






Čia kodas kurį reikę įdėti:


<?php
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td height='250' background='".THEME."media/header.jpg' align='right' valign='bottom' style='padding-bottom: 30px;' class='full-header'>
   <table width='900' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside2($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50'></center>\n";
   } else {
   echo "<center><img src='".THEME."media/no.png' width='50' height='50'></center>\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='sonas'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='sonas'>Žinutės</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='sonas'>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='sonas'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='sonas'>Atsijungti</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   openside2("Prisijungimas");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center' class='side2'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right'>Login name: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox2' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>Password: </td>
    <td>&nbsp;<input type='password' name='user_pass' class='textbox2' 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='button2'></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"</div>\n";
}
closeside2();
   echo "</td>
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>
   </td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header'>\n<tr>";
   echo "<td>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
   echo "</td></tr></table>\n";
   echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>

</table>\n";
?>




Nežinau ar įmanoma bet gal kas pades :)

Redagavo samsung123· 2008 Kov. 7 17:03:21

Parašė bad_user· 2008 Kov. 7 22:03:38
#3

Įmanoma.. Už dyka nedėsiu neturiu kada.. :)

Parašė Žmogus· 2008 Kov. 8 09:03:50
#4

Čia geriausia naudoti iclude once :)