Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del theme.php

Parašė Mantux94· 2008 Lap. 19 16:11:23
#1

kaip theme.php faile teisingai ideti sita koda:


      
if (file_exists(LOCALE.LOCALESET."warns.php")) {
   include LOCALE.LOCALESET."warns.php";
} else {
   include LOCALE."English/warns.php";
}
$warnings=dbquery("SELECT tw.*, tu.user_id,user_name FROM ".$db_prefix."warnings tw
LEFT JOIN ".$db_prefix."users tu ON tw.give_user=tu.user_id WHERE tw.user_id='".$data['user_id']."' ORDER BY warning_number ASC");
if (dbrows($warnings)) {
$warns=dbrows($warnings);
} else {$warns='0'; }
      
      if ($data['user_level'] == 101) {
echo "<img src='".IMAGES."warns/$warns.gif' alt='".$locale['warns_04']." $warns ".$locale['warns_05']."' title='".$locale['warns_04']." $warns ".$locale['warns_05']."' border='0'><br>";
}




i sita(pazimetoja vietoje --------------):

<img src='http://SLAPTA/images/profile.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='http://SLAPTA/images/aprasymas.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Aprašymas</a><br>
<img src='http://SLAPTA/images/asmenzinutes.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br><br>
</span>\n";
-------------------------
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='http://SLAPTA.xz.lt/images/admin.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Admin Centras</a><br><br>\n";
   }
   
   echo "<center>-->> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a> <<--</center>\n";"
   <td><img src='".THEME."images/space.gif'></td>
  </tr>
</table>




kad nemestu erroru