Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Mano Visi klausimai cia.

Parašė Niger· 2008 Rugp. 9 19:08:02
#14

ShadoVw parašė:
global $theme_width,$settings,$aidlink,$locale,$userdata,$db_prefix,$vert;




Nežinau ar veiks, bet turbūt mes klaida :\



Va aciu uz pradzia, o gala pats susitvarkiau :D

Mat sitaip turejo buti ir veikia (cia kodo pradzia):

<?php
global $theme_width,$settings,$aidlink,$locale,$userdata,$db_prefix,$vert,$result,$sk;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/logo.gif' height='100'

style='background-repeat: no-repeat;'>
      <tr>
     
      <td width='235' style='padding-right: 0px; padding-left: 700px; padding-bottom: 10px; padding-top:20px;' valign='middle'>";
      if (iMEMBER) {
   $sk = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '".$userdata['user_id']."'");
   if (dbrows($result)) {
      while ($data = dbarray($result)) $sk = $sk+$data['rate_opt'];
   }
   $vert = (dbrows($result) > 0 ? round($sk/dbrows($result),2) : "N&#235;ra");
   $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'>