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

Parašė Niger· 2008 Gru. 28 22:12:42
#11

Va prasau kodas:



if ($rows != 0) {
   $result = dbquery(
      "SELECT p.*, fa.attach_id, fa.attach_name, fa.attach_ext, fa.attach_size, u.*, u2.user_name AS edit_name FROM ".$db_prefix."posts p
      LEFT JOIN ".$db_prefix."forum_attachments fa USING(post_id)
      LEFT JOIN ".$db_prefix."users u ON p.post_author = u.user_id
      LEFT JOIN ".$db_prefix."users u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
      WHERE p.thread_id='$thread_id' ORDER BY post_datestamp LIMIT $rowstart,$posts_per_page"
   );
   $numrows = dbrows($result);
   $postai = '0';
   while ($data = dbarray($result)) {
   
   if ($postai == '1' OR $postai == '9') {
echo "</td></tr></table>";

//reklamos modas prasideda
include INFUSIONS."panel/ads.php";
//reaklamos modas baiges
   
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>";
}

   $postai++;
      $message = $data['post_message'];
      if ($data['post_showsig']) { $message = $message."nn<hr>".$data['user_sig']; }
      if ($data['post_smileys']) { $message = parsesmileys($message); }
      $message = parseubb($message);
      $message = nl2br($message);






eik i folderi "infusions" tada jame susikurk aplanka "panel" ir jame viduje faila pavadinimu "ads.php"





atsidaryk ta faila ads.php isidek reklamos koda pavizdziui:

<center><a href="http://pfm.lt" target="_blank"><img src="http://www.pfm.lt/pfmlt.gif" alt="PFm.LT - Pramogu Fortas man"></a></center>




issaugai ir viskas, seip man forume rode po pirmo posto ten nezinau pasidarysi pagal save...

P.S. man veikia.