Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: avataras

Parašė Soo-2· 2008 Sau. 4 20:01:50
#1

sveiki..gal kas zinote kaip perkelti avatara virš tu zodziu? http://img179.imageshack.us/img1...ogosh4.jpg

kodas:
if (iMEMBER) {
   openside2($userdata[]);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
  <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."images/noavatar.gif' width='50' height='50'></center>\n";

   }
   echo "</td>
    <td> <a href='".BASEDIR."edit_profile.php' class='centras' ><b>Aprašymas</b></a><br>
 <a href='".BASEDIR."messages.php' class='centras'><b>Žinutės</b></a><br>
<a href='".BASEDIR."members.php' class='centras'><b>Nariai<b></a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " <a href='".ADMIN."index.php".$aidlink."' class='centras'><b>Administracija</b></a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='centras'><b>Atsijungti</b></a>\n";"
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr>
  </tr>
</table>

\n";




aciu iš anksto ;)

Parašė Toonis· 2008 Sau. 4 20:01:33
#2

if (iMEMBER) {
   openside2($userdata[]);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
  <tr>
    <td>\n";

   echo "</td>

 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."images/noavatar.gif' width='50' height='50'></center>\n";

   }

    <td> <a href='".BASEDIR."edit_profile.php' class='centras' ><b>Aprašymas</b></a><br>
 <a href='".BASEDIR."messages.php' class='centras'><b>Žinutės</b></a><br>
<a href='".BASEDIR."members.php' class='centras'><b>Nariai<b></a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " <a href='".ADMIN."index.php".$aidlink."' class='centras'><b>Administracija</b></a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='centras'><b>Atsijungti</b></a>\n";"
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr>
  </tr>
</table>

\n";




Nemanau jog veiks. :D

Parašė Soo-2· 2008 Sau. 4 20:01:29
#3

išvis puslapis neveik.. taip ir aš sugebu :]

Parašė Žmogus· 2008 Sau. 4 21:01:57
#4

Būtu geriau jei įdėtum visa theme.php :}

Parašė Soo-2· 2008 Sau. 4 21:01:27
#5

cia ne theme.php faile o header.php
<?php
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";

   echo "<body bgcolor='#ffffff' text='#8d8d8d'>";
   echo "<table class='forumline' align='center' width='810' cellspacing='0' cellpadding='0' ><tr><td><table align='center' width='810' cellspacing='0' cellpadding='0'><tr><td><table align='center' width='810' cellspacing='0' cellpadding='0'><tr><td  width='810'><table  width='810' height='231' border='0' cellpadding='0' cellspacing='0'><tr>
      <br>
     
            
      <td colspan='5'><img src='".THEME."images/head_09.png' width='283' height='141' alt=''></td>
      <td colspan='7'><img src='".THEME."images/head_10.png' width='296' height='141' alt=''></td>
      <td colspan='3' background='".THEME."images/head_11.png' width='212' height='141' align='center' alt=''>";

   if (iMEMBER) {
   openside2($userdata[]);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
  <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."images/noavatar.gif' width='50' height='50'></center>\n";

   }
   echo "</td>
    <td> <a href='".BASEDIR."edit_profile.php' class='centras' ><b>Aprašymas</b></a><br>
 <a href='".BASEDIR."messages.php' class='centras'><b>Žinutės</b></a><br>
<a href='".BASEDIR."members.php' class='centras'><b>Nariai<b></a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " <a href='".ADMIN."index.php".$aidlink."' class='centras'><b>Administracija</b></a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='centras'><b>Atsijungti</b></a>\n";"
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   
   echo "<table  width='212' height='130' border='0' cellpadding='0' cellspacing='0'><tr>
<td colspan='3' background='".THEME."images/head_11.png' width='212' height='130' align='center' alt=''>
<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>
    <font color='545454' font size=1> Nario vardas:</font><br>
   <input type='text' value='vardas' name='user_name' class='textbox' style='width:100px'><br>
  </tr>
  <tr>
    <font color='545454' font size=1> Slaptažodis:</font><br>
   <input type='password' value='slaptazodis' name='user_pass' class='textbox' style='width:100px'><br>
  </tr>
  <tr>
    <font color='545454' font size=1>Prisiminti-</font><input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'><br>
<input type='submit' name='login' value='Prisijungt' class='button'><br>
</form>
  </tr>
  </form>\n";
   if ($settings['enable_registration']) {
      echo "<a href=register.php><font color='white'><b>Registracija</b></a>  <br> 
   <a href=lostpassword.php><font color='white'><b>Slaptažodis</b></a>\n";
   }
   echo"</div>\n";
}
closeside2();
   echo "</td>
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr> 
  </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";
?>



Redagavo Soo-2· 2008 Sau. 4 21:01:37

Parašė Žmogus· 2008 Sau. 4 21:01:29
#6

if (iMEMBER) {
   openside2($userdata[]);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "
  <tr>
    <td>\n";

  echo"<tr><td > ";

 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."images/noavatar.gif' width='50' height='50'></center>\n";

   }

echo"</td></tr>";

   echo "</td>
    <td> <a href='".BASEDIR."edit_profile.php' class='centras' ><b>Aprašymas</b></a><br>
 <a href='".BASEDIR."messages.php' class='centras'><b>Žinutės</b></a><br>
<a href='".BASEDIR."members.php' class='centras'><b>Nariai<b></a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " <a href='".ADMIN."index.php".$aidlink."' class='centras'><b>Administracija</b></a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='centras'><b>Atsijungti</b></a>\n";"
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr>
  </tr>
</table>

\n";




Bandyk šita kodą

Parašė Soo-2· 2008 Sau. 4 21:01:48
#7

va.. veike.. dėkui tau.. tik kaip dabar padaryti kad linkai centre butu?
edit: jau zinau. ;)

Redagavo Soo-2· 2008 Sau. 4 21:01:14

Parašė Žmogus· 2008 Sau. 4 21:01:23
#8

O tai kaip jie db yra? :D

Parašė Soo-2· 2008 Sau. 4 21:01:41
#9

jie dabar buvo kairem šone.. bet ušteko <center></center> sudėt ir <br> nuimt.. prie to pacio kaip pakeisti MYGTUKO "prisijunkti" spalva? jis dabar peršviečiamas, noriu balto..

 echo "<table  width='212' height='130' border='0' cellpadding='0' cellspacing='0'><tr>
<td colspan='3' background='".THEME."images/head_11.png' width='212' height='130' align='center' alt=''>
<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>
    <font color='545454' font size=1> Nario vardas:</font><br>
   <input type='text' value='vardas' name='user_name' class='textbox' style='width:100px'><br>
  </tr>
  <tr>
    <font color='545454' font size=1> Slaptažodis:</font><br>
   <input type='password' value='slaptazodis' name='user_pass' class='textbox' style='width:100px'><br>
  </tr>
  <tr>
    <font color='545454' font size=1>Prisiminti-</font><input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'><br>
<input type='submit' name='login' value='Prisijungt' class='button'><br>
</form>
  </tr>
  </form>\n";
   if ($settings['enable_registration']) {
      echo "<a href=register.php><font color='white'><b>Registracija</b></a>  <br> 
   <a href=lostpassword.php><font color='white'><b>Slaptažodis</b></a>\n";
   }
   echo"</div>\n";
}
closeside2();
   echo "</td>
      </td><td><img src='".THEME."images/head_12.png' width='19' height='141' alt=''></td></tr><tr> 
  </tr>
</table>
   </td>";



Redagavo Soo-2· 2008 Sau. 4 22:01:09

Parašė Žmogus· 2008 Sau. 4 22:01:52
#10

Tai čia reikia styles.css reikia redaguoti:
.button {