How 2 Make Topic/forum Subscribe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How 2 Make Topic/forum Subscribe

    plz help me ..
    Hate romains that take codes from here and tell to all that they had made that

    #2
    like this
    Code:
    }
        echo "</p>";
        echo "
    
    ";
        $vws = $tinfo[4]+1;
        $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_posts WHERE tid=&#39;".$tid."&#39;"));
        echo "[size="1"]Raspunsuri: $rpls[0] - Vazut: $vws[/size]
    ";
    $select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39;"));
        echo "[size="1"]Membri Abonati: <a href=\"forum.php?action=abonati&sid=$sid&tid=$tid\">$select[0]</a>[/size]
    ";
    echo "[size="1"]<a href=\"genproc.php?action=abonati&sid=$sid&tid=$tid\">Aboneaza-te la topic</a>[/size]
    ";
    echo "[size="1"]<a href=\"genproc.php?action=sabonati&sid=$sid&tid=$tid\">Dezaboneaza-te de la topic</a>[/size]
    ";
        $tid = $_GET["tid"];
        echo "[size="1"]Link: [u]topic[/u][/size]
    ";
    $abonat = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT necitit) FROM ultrawap_abonati WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;"));
        if($abonat[0]==1)
        {
        echo "[size="1"][b]Sunteti abonat la acest topic[/b][/size]
    "; 
        $chread = mysql_query("UPDATE ultrawap_abonati SET necitit=&#39;0&#39; WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;");
            }
        ///fm here
        
        if($page==1)
        {
          $posts_per_page=4;
          mysql_query("UPDATE ultrawap_topics SET views=&#39;".$vws."&#39; WHERE  id=&#39;".$tid."&#39;");
          $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ultrawap_topics WHERE id=&#39;".$tid."&#39;"));
          $unick = getnick_uid($ttext[0]);
          if(isonline($ttext[0]))
        {
          $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
        }else{
            $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
        }
        $usl = "
    »<a href=\"profil.php?sid=$sid&who=$ttext[0]\">$iml".getsimbol($ttext[0])."$unick</a>";
        $topt = "<a href=\"forum.php?action=tpcopt&sid=$sid&tid=$tid\">*</a>";
        if($go==$tid)
        {
          $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
        }else{
          $fli ="";
        }
        $pst = parsemsg($ttext[1],$sid);
        echo "$usl: $fli$pst $topt
    ";
         // lunile anului
      $dtot = date("d-m-y - H:i:s",$ttext[2]);
        echo $dtot;
        echo "
    ";
        if($ttext[3]>0)
        {
          echo "»<a href=\"forum.php?action=viewtpl&sid=$sid&who=$tid\">Chestionar</a>
    ";
        }
      }
      if($page>1)
      {
        $limit_start--;
      }
      $sql = "SELECT id, text, uid, dtpost, quote FROM ultrawap_posts WHERE tid=&#39;".$tid."&#39; ORDER BY dtpost LIMIT $limit_start, $posts_per_page";
      $posts = mysql_query($sql);
      while($post = mysql_fetch_array($posts))
      {
        $unick = getnick_uid($post[2]);
        if(isonline($post[2]))
        {
          $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
        }else{
          $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
        }
        $usl = "
    »<a href=\"profil.php?sid=$sid&who=$post[2]\">$iml ".getsimbol($post[2])."$unick</a>";
        $pst = parsemsg($post[1], $sid);
        $topt = "[<a href=\"forum.php?action=pstopt&sid=$sid&pid=$post[0]&page=$page&fid=$tinfo[5]\">*</a>]";
        if($post[4]>0)
        {
            $qtl = "[size="1"][i]<a href=\"forum.php?action=viewtpc&sid=$sid&tid=$tid&pst=\">(quote:p=blaze,d=16-04-2006)</a>[/i][/size]";
        }
        if($go==$post[0])
        {
          $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
        }else{
          $fli ="";
        }
        echo "$usl: $fli$pst $topt
    ";
           $dtot = date("d-m-y - H:i:s",$post[3]);
        echo $dtot;
        echo "
    ";
      }
        ///to here
        echo "</p>";
         echo "<p align=\"center\">";
         echo "-----
    »<a href=\"forum.php?action=post&sid=$sid&tid=$tid\">posteaza raspuns</a>«
    -----
    ";
        echo "</p>";
        echo "<p align=\"left\">";
      $tmsg = getpmcount(getuid_sid($sid));
      $umsg = getunreadpm(getuid_sid($sid));
      if($umsg>0)
      {
      echo "[b]<img src=\"images/onl.gif\" alt=\"*\"/>Aveti<a href=\"posta.php?action=main&sid=$sid\"> $umsg </a>PMs[/b]
    ";
      }
        if($page>1)
        {
          $ppage = $page-1;
          echo "«<a href=\"forum.php?action=viewtpc&page=$ppage&sid=$sid&tid=$tid\">pagina anterioara</a>
    ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"forum.php?action=viewtpc&page=$npage&sid=$sid&tid=$tid\">pagina urmatoare</a>»";
        }
        echo "
    Pagina $page din $num_pages
    ";
        if($num_pages>2)
        {
          $rets = "Dute la pagina<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "<anchor>[Dute]";
            $rets .= "<go href=\"forum.php\" method=\"get\">";
            $rets .= "<postfield name=\"action\" value=\"$action\"/>";
            $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
            $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
            $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
            $rets .= "</go></anchor>";
    
            echo $rets;
        }
    echo "
    ";
       // echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid\">Posteaza raspuns</a>";
        echo "</p>";
        echo "
    
    [size="1"]";
        $fid = $tinfo[5];
        $fname = getfname($fid);
        $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
        $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id=&#39;".$cid[0]."&#39;"));
        $cname = $cinfo[0];
    
    
    $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
        if($cid[0]>0)
        {
        $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id=&#39;".$cid[0]."&#39;"));
        $cname = htmlspecialchars($cinfo[0]);
        echo "<a href=\"forum.php?action=forum&sid=$sid\">Forum »</a>|<a href=\"forum.php?action=viewcat&sid=$sid&cid=$cid[0]\">";
        echo "$cname</a>
    ";
        }else{
            $cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
            $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_clubs WHERE id=&#39;".$cid[0]."&#39;"));
            $cname = htmlspecialchars($cinfo[0]);
        echo "<a href=\"index.php?action=gocl&sid=$sid&clid=$cid[0]\">";
        echo "$cname Club</a>
    ";
      }
      $fname = htmlspecialchars($fname);
      echo "Categorie»<a href=\"forum.php?action=viewfrm&sid=$sid&fid=$fid\">$fname</a> » $tnm";
      echo "
    <a href=\"index.php?action=main&sid=$sid\">";
      echo "«Prim</a>";
      echo "[/size]</p>";
      echo "</card>";
    }
    ////// membri abonati 
    else if($action=="abonati")
    {
     addonline(getuid_sid($sid),"Vizualizeaza membri abonati","");
        $tid = $_GET["tid"];
        $uid = getuid_sid($sid);
    /////////////// faza q pagina
    if($page=="" || $page<=0)$page=1;
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39;"));
        $num_items = $noi[0]; //changable
        $items_per_page= 10;
        $num_pages = ceil($num_items/$items_per_page);
        if(($page>$num_pages)&&$page!=1)$page= $num_pages;
        $limit_start = ($page-1)*$items_per_page;
    /////////////////// pana aici prima parte
    $sql = "SELECT uid, data, necitit, topic FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39; ORDER BY uid LIMIT $limit_start, $items_per_page";
    $cou = $limit_start;
    echo "<card id=\"main\" title=\"n3sklub.com\">";
    $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
            $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE touid=&#39;".$uid."&#39;"));
            $unrd="[".$unreadinbox[0]."]";
            if ($unreadinbox[0]>0)
            {
            echo "[b]Ai:<a href=\"posta.php?action=main&sid=$sid\">$unrd</a>PMs[/b]
    -----
    ";
            }
    echo "
    
    ";
        $items = mysql_query($sql);
        echo mysql_error();
        
        if(mysql_num_rows($items)>0)
        {
        while ($item = mysql_fetch_array($items))
        {
    $who = $item[0];
    $user=getnick_uid($who);
    if(isonline($who))
        {
           $iml = "<img src=\"images/online1.gif\" alt=\"+\"/>";
        }else{
            $iml = "<img src=\"images/ofl1.gif\" alt=\"-\"/>";
        }
      if (isowner1(getuid_sid($sid)))
      {
      $link = "<a href=\"genproc.php?action=sabonat&sid=$sid&tid=$tid&who=$who\">[x]</a>";
      }
           $lnk = "$iml<a href=\"profil.php?who=$who&sid=$sid\">".getsimbol($who)."$user</a>";
           $cou++;
           $necitit = mysql_fetch_array(mysql_query("SELECT necitit FROM ultrawap_abonati WHERE uid=&#39;".$who."&#39; AND topic=&#39;".$item[3]."&#39;"));
           if($necitit[0]==1)
           {
           $syr = "[b]are de citit[/b]";
           }else{
           $syr = "a citit";
           }
          echo "[size="1"]$cou.$lnk - $syr $link[/size]
    "; 
          $dtot = date("d.m.y,H:i",$item[1]);
          echo "[size="1"]Abonat din: $dtot[/size]
    ";
        }
         if($page>1)
        {
          $ppage = $page-1;
          echo "[size="1"]<a href=\"forum.php?action=$action&page=$ppage&sid=$sid&tid=$tid\">pagina urmatoare</a>[/size]
    ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "[size="1"]<a href=\"forum.php?action=$action&page=$npage&sid=$sid&tid=$tid\">pagina urmatoare</a>»[/size]";
        }
        echo "
    [size="1"]Pagina [b]$page[/b] din [b]$num_pages[/b][/size]
    ";
        if($num_pages>2)
        {
          $rets = "[size="1"]Sari la pagina:[/size]
    <input name=\"pg\" format=\"*N\" size=\"3\"/>";
            $rets .= "[size="1"]<anchor>[Dute]";
            $rets .= "<go href=\"forum.php\" method=\"get\">";
            $rets .= "<postfield name=\"action\" value=\"$action\"/>";
            $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
            $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
            $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
            $rets .= "</go></anchor>[/size]";
    
            echo $rets;
        }
        //
        }else{
    echo "[b]Nu exista membri abonati[/b]";
    but the full code pls
    Hate romains that take codes from here and tell to all that they had made that

    Comment


      #3
      like this
      Code:
      }
          echo "</p>";
          echo "
      
      ";
          $vws = $tinfo[4]+1;
          $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_posts WHERE tid=&#39;".$tid."&#39;"));
          echo "[size="1"]Raspunsuri: $rpls[0] - Vazut: $vws[/size]
      ";
      $select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39;"));
          echo "[size="1"]Membri Abonati: <a href=\"forum.php?action=abonati&sid=$sid&tid=$tid\">$select[0]</a>[/size]
      ";
      echo "[size="1"]<a href=\"genproc.php?action=abonati&sid=$sid&tid=$tid\">Aboneaza-te la topic</a>[/size]
      ";
      echo "[size="1"]<a href=\"genproc.php?action=sabonati&sid=$sid&tid=$tid\">Dezaboneaza-te de la topic</a>[/size]
      ";
          $tid = $_GET["tid"];
          echo "[size="1"]Link: [u]topic[/u][/size]
      ";
      $abonat = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT necitit) FROM ultrawap_abonati WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;"));
          if($abonat[0]==1)
          {
          echo "[size="1"][b]Sunteti abonat la acest topic[/b][/size]
      "; 
          $chread = mysql_query("UPDATE ultrawap_abonati SET necitit=&#39;0&#39; WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;");
              }
          ///fm here
          
          if($page==1)
          {
            $posts_per_page=4;
            mysql_query("UPDATE ultrawap_topics SET views=&#39;".$vws."&#39; WHERE  id=&#39;".$tid."&#39;");
            $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ultrawap_topics WHERE id=&#39;".$tid."&#39;"));
            $unick = getnick_uid($ttext[0]);
            if(isonline($ttext[0]))
          {
            $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
          }else{
              $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
          }
          $usl = "
      »<a href=\"profil.php?sid=$sid&who=$ttext[0]\">$iml".getsimbol($ttext[0])."$unick</a>";
          $topt = "<a href=\"forum.php?action=tpcopt&sid=$sid&tid=$tid\">*</a>";
          if($go==$tid)
          {
            $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
          }else{
            $fli ="";
          }
          $pst = parsemsg($ttext[1],$sid);
          echo "$usl: $fli$pst $topt
      ";
           // lunile anului
        $dtot = date("d-m-y - H:i:s",$ttext[2]);
          echo $dtot;
          echo "
      ";
          if($ttext[3]>0)
          {
            echo "»<a href=\"forum.php?action=viewtpl&sid=$sid&who=$tid\">Chestionar</a>
      ";
          }
        }
        if($page>1)
        {
          $limit_start--;
        }
        $sql = "SELECT id, text, uid, dtpost, quote FROM ultrawap_posts WHERE tid=&#39;".$tid."&#39; ORDER BY dtpost LIMIT $limit_start, $posts_per_page";
        $posts = mysql_query($sql);
        while($post = mysql_fetch_array($posts))
        {
          $unick = getnick_uid($post[2]);
          if(isonline($post[2]))
          {
            $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
          }else{
            $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
          }
          $usl = "
      »<a href=\"profil.php?sid=$sid&who=$post[2]\">$iml ".getsimbol($post[2])."$unick</a>";
          $pst = parsemsg($post[1], $sid);
          $topt = "[<a href=\"forum.php?action=pstopt&sid=$sid&pid=$post[0]&page=$page&fid=$tinfo[5]\">*</a>]";
          if($post[4]>0)
          {
              $qtl = "[size="1"][i]<a href=\"forum.php?action=viewtpc&sid=$sid&tid=$tid&pst=\">(quote:p=blaze,d=16-04-2006)</a>[/i][/size]";
          }
          if($go==$post[0])
          {
            $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
          }else{
            $fli ="";
          }
          echo "$usl: $fli$pst $topt
      ";
             $dtot = date("d-m-y - H:i:s",$post[3]);
          echo $dtot;
          echo "
      ";
        }
          ///to here
          echo "</p>";
           echo "<p align=\"center\">";
           echo "-----
      »<a href=\"forum.php?action=post&sid=$sid&tid=$tid\">posteaza raspuns</a>«
      -----
      ";
          echo "</p>";
          echo "<p align=\"left\">";
        $tmsg = getpmcount(getuid_sid($sid));
        $umsg = getunreadpm(getuid_sid($sid));
        if($umsg>0)
        {
        echo "[b]<img src=\"images/onl.gif\" alt=\"*\"/>Aveti<a href=\"posta.php?action=main&sid=$sid\"> $umsg </a>PMs[/b]
      ";
        }
          if($page>1)
          {
            $ppage = $page-1;
            echo "«<a href=\"forum.php?action=viewtpc&page=$ppage&sid=$sid&tid=$tid\">pagina anterioara</a>
      ";
          }
          if($page<$num_pages)
          {
            $npage = $page+1;
            echo "<a href=\"forum.php?action=viewtpc&page=$npage&sid=$sid&tid=$tid\">pagina urmatoare</a>»";
          }
          echo "
      Pagina $page din $num_pages
      ";
          if($num_pages>2)
          {
            $rets = "Dute la pagina<input name=\"pg\" format=\"*N\" size=\"3\"/>";
              $rets .= "<anchor>[Dute]";
              $rets .= "<go href=\"forum.php\" method=\"get\">";
              $rets .= "<postfield name=\"action\" value=\"$action\"/>";
              $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
              $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
              $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
              $rets .= "</go></anchor>";
      
              echo $rets;
          }
      echo "
      ";
         // echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid\">Posteaza raspuns</a>";
          echo "</p>";
          echo "
      
      [size="1"]";
          $fid = $tinfo[5];
          $fname = getfname($fid);
          $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
          $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id=&#39;".$cid[0]."&#39;"));
          $cname = $cinfo[0];
      $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
          if($cid[0]>0)
          {
          $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id=&#39;".$cid[0]."&#39;"));
          $cname = htmlspecialchars($cinfo[0]);
          echo "<a href=\"forum.php?action=forum&sid=$sid\">Forum »</a>|<a href=\"forum.php?action=viewcat&sid=$sid&cid=$cid[0]\">";
          echo "$cname</a>
      ";
          }else{
              $cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ultrawap_forums WHERE id=&#39;".$fid."&#39;"));
              $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_clubs WHERE id=&#39;".$cid[0]."&#39;"));
              $cname = htmlspecialchars($cinfo[0]);
          echo "<a href=\"index.php?action=gocl&sid=$sid&clid=$cid[0]\">";
          echo "$cname Club</a>
      ";
        }
        $fname = htmlspecialchars($fname);
        echo "Categorie»<a href=\"forum.php?action=viewfrm&sid=$sid&fid=$fid\">$fname</a> » $tnm";
        echo "
      <a href=\"index.php?action=main&sid=$sid\">";
        echo "«Prim</a>";
        echo "[/size]</p>";
        echo "</card>";
      }
      ////// membri abonati 
      else if($action=="abonati")
      {
       addonline(getuid_sid($sid),"Vizualizeaza membri abonati","");
          $tid = $_GET["tid"];
          $uid = getuid_sid($sid);
      /////////////// faza q pagina
      if($page=="" || $page<=0)$page=1;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39;"));
          $num_items = $noi[0]; //changable
          $items_per_page= 10;
          $num_pages = ceil($num_items/$items_per_page);
          if(($page>$num_pages)&&$page!=1)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
      /////////////////// pana aici prima parte
      $sql = "SELECT uid, data, necitit, topic FROM ultrawap_abonati WHERE topic=&#39;".$tid."&#39; ORDER BY uid LIMIT $limit_start, $items_per_page";
      $cou = $limit_start;
      echo "<card id=\"main\" title=\"n3sklub.com\">";
      $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
              $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE touid=&#39;".$uid."&#39;"));
              $unrd="[".$unreadinbox[0]."]";
              if ($unreadinbox[0]>0)
              {
              echo "[b]Ai:<a href=\"posta.php?action=main&sid=$sid\">$unrd</a>PMs[/b]
      -----
      ";
              }
      echo "
      
      ";
          $items = mysql_query($sql);
          echo mysql_error();
          
          if(mysql_num_rows($items)>0)
          {
          while ($item = mysql_fetch_array($items))
          {
      $who = $item[0];
      $user=getnick_uid($who);
      if(isonline($who))
          {
             $iml = "<img src=\"images/online1.gif\" alt=\"+\"/>";
          }else{
              $iml = "<img src=\"images/ofl1.gif\" alt=\"-\"/>";
          }
        if (isowner1(getuid_sid($sid)))
        {
        $link = "<a href=\"genproc.php?action=sabonat&sid=$sid&tid=$tid&who=$who\">[x]</a>";
        }
             $lnk = "$iml<a href=\"profil.php?who=$who&sid=$sid\">".getsimbol($who)."$user</a>";
             $cou++;
             $necitit = mysql_fetch_array(mysql_query("SELECT necitit FROM ultrawap_abonati WHERE uid=&#39;".$who."&#39; AND topic=&#39;".$item[3]."&#39;"));
             if($necitit[0]==1)
             {
             $syr = "[b]are de citit[/b]";
             }else{
             $syr = "a citit";
             }
            echo "[size="1"]$cou.$lnk - $syr $link[/size]
      "; 
            $dtot = date("d.m.y,H:i",$item[1]);
            echo "[size="1"]Abonat din: $dtot[/size]
      ";
          }
           if($page>1)
          {
            $ppage = $page-1;
            echo "[size="1"]<a href=\"forum.php?action=$action&page=$ppage&sid=$sid&tid=$tid\">pagina urmatoare</a>[/size]
      ";
          }
          if($page<$num_pages)
          {
            $npage = $page+1;
            echo "[size="1"]<a href=\"forum.php?action=$action&page=$npage&sid=$sid&tid=$tid\">pagina urmatoare</a>»[/size]";
          }
          echo "
      [size="1"]Pagina [b]$page[/b] din [b]$num_pages[/b][/size]
      ";
          if($num_pages>2)
          {
            $rets = "[size="1"]Sari la pagina:[/size]
      <input name=\"pg\" format=\"*N\" size=\"3\"/>";
              $rets .= "[size="1"]<anchor>[Dute]";
              $rets .= "<go href=\"forum.php\" method=\"get\">";
              $rets .= "<postfield name=\"action\" value=\"$action\"/>";
              $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
              $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
              $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
              $rets .= "</go></anchor>[/size]";
      
              echo $rets;
          }
          //
          }else{
      echo "[b]Nu exista membri abonati[/b]";
      but the full code pls[/b]
      another version of lavalair written in another language....
      wait i will study the language i cant understand it... hehehe wililng to help but i need to study the whole language....
      Services

      Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

      Below is a list of services I offer:

      Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

      Rates

      General consulting – My current hourly rate is $100 / hour.
      Custom Wapsite Community - My current rate is $500 / Wap Community Development.

      Comment


        #4
        its romanian :D i will transtale it in english .. thx bro:D:P
        Hate romains that take codes from here and tell to all that they had made that

        Comment


          #5
          forum.php and genproc.php missing but looks pretty good in english

          have you got forum.php and the missing genproc.php parts or do u need them coding?????



          Comment


            #6
            forum.php i have ... but missing genproc.php parts i dont have
            Hate romains that take codes from here and tell to all that they had made that

            Comment


              #7
              in english srry for some words:
              Code:
              }
                  echo "</p>";
                  echo "
              
              ";
                  $vws = $tinfo[4]+1;
                  $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid=&#39;".$tid."&#39;"));
                  echo "[size="1"]Answers: $rpls[0] - Views: $vws[/size]
              ";
              $select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ibwf_subscribed WHERE topic=&#39;".$tid."&#39;"));
                  echo "[size="1"]Subscribed Members: <a href=\"forum.php?action=subscribed&sid=$sid&tid=$tid\">$select[0]</a>[/size]
              ";
              echo "[size="1"]<a href=\"genproc.php?action=subscribed&sid=$sid&tid=$tid\">Subscribe At topic</a>[/size]
              ";
              echo "[size="1"]<a href=\"genproc.php?action=unsubscribed&sid=$sid&tid=$tid\">Unsubscribe At topic</a>[/size]
              ";
                  $tid = $_GET["tid"];
                  echo "[size="1"]Link: [u]topic[/u][/size]
              ";
              $subscribed = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT unreaded) FROM ibwf_subscribed WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;"));
                  if($subscribed[0]==1)
                  {
                  echo "[size="1"][b]You are subscribed at this topic[/b][/size]
              "; 
                  $chread = mysql_query("UPDATE ibwf_subscribed SET unreaded=&#39;0&#39; WHERE uid=&#39;".$uid."&#39; AND topic=&#39;".$tid."&#39;");
                      }
                  ///fm here
                  
                  if($page==1)
                  {
                    $posts_per_page=4;
                    mysql_query("UPDATE ibwf_topics SET views=&#39;".$vws."&#39; WHERE  id=&#39;".$tid."&#39;");
                    $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ibwf_topics WHERE id=&#39;".$tid."&#39;"));
                    $unick = getnick_uid($ttext[0]);
                    if(isonline($ttext[0]))
                  {
                    $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
                  }else{
                      $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                  }
                  $usl = "
              »<a href=\"profil.php?sid=$sid&who=$ttext[0]\">$iml".getsimbol($ttext[0])."$unick</a>";
                  $topt = "<a href=\"forum.php?action=tpcopt&sid=$sid&tid=$tid\">*</a>";
                  if($go==$tid)
                  {
                    $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
                  }else{
                    $fli ="";
                  }
                  $pst = parsemsg($ttext[1],$sid);
                  echo "$usl: $fli$pst $topt
              ";
                   // lunile anului
                $dtot = date("d-m-y - H:i:s",$ttext[2]);
                  echo $dtot;
                  echo "
              ";
                  if($ttext[3]>0)
                  {
                    echo "»<a href=\"forum.php?action=viewtpl&sid=$sid&who=$tid\">Poll</a>
              ";
                  }
                }
                if($page>1)
                {
                  $limit_start--;
                }
                $sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid=&#39;".$tid."&#39; ORDER BY dtpost LIMIT $limit_start, $posts_per_page";
                $posts = mysql_query($sql);
                while($post = mysql_fetch_array($posts))
                {
                  $unick = getnick_uid($post[2]);
                  if(isonline($post[2]))
                  {
                    $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";
                  }else{
                    $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                  }
                  $usl = "
              »<a href=\"profil.php?sid=$sid&who=$post[2]\">$iml ".getsimbol($post[2])."$unick</a>";
                  $pst = parsemsg($post[1], $sid);
                  $topt = "[<a href=\"forum.php?action=pstopt&sid=$sid&pid=$post[0]&page=$page&fid=$tinfo[5]\">*</a>]";
                  if($post[4]>0)
                  {
                      $qtl = "[size="1"][i]<a href=\"forum.php?action=viewtpc&sid=$sid&tid=$tid&pst=\">(quote:p=blaze,d=16-04-2006)</a>[/i][/size]";
                  }
                  if($go==$post[0])
                  {
                    $fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";
                  }else{
                    $fli ="";
                  }
                  echo "$usl: $fli$pst $topt
              ";
                     $dtot = date("d-m-y - H:i:s",$post[3]);
                  echo $dtot;
                  echo "
              ";
                }
                  ///to here
                  echo "</p>";
                   echo "<p align=\"center\">";
                   echo "-----
              »<a href=\"forum.php?action=post&sid=$sid&tid=$tid\">replay answer</a>«
              -----
              ";
                  echo "</p>";
                  echo "<p align=\"left\">";
                $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
                      $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid=&#39;".$uid."&#39;"));
                      $unrd="[".$unreadinbox[0]."]";
                      if ($unreadinbox[0]==1)
                      {
                      echo "[b]you have<a href=\"posta.php?action=main&amp;sid=$sid\"> one </a>pm[/b]
              
              [b]====[/b]
              ";
                      }
                      if ($unreadinbox[0]>1)
                      {
                      echo "[b]you have<a href=\"posta.php?action=main&amp;sid=$sid\"> $unrd </a>pms[/b]
              [b]====[/b]
              ";
                      }
                  if($page>1)
                  {
                    $ppage = $page-1;
                    echo "«<a href=\"forum.php?action=viewtpc&page=$ppage&sid=$sid&tid=$tid\">prev page</a>
              ";
                  }
                  if($page<$num_pages)
                  {
                    $npage = $page+1;
                    echo "<a href=\"forum.php?action=viewtpc&page=$npage&sid=$sid&tid=$tid\">next page</a>»";
                  }
                  echo "
              Page $page of $num_pages
              ";
                  if($num_pages>2)
                  {
                    $rets = "go to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
                      $rets .= "<anchor>[GO]";
                      $rets .= "<go href=\"forum.php\" method=\"get\">";
                      $rets .= "<postfield name=\"action\" value=\"$action\"/>";
                      $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
                      $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
                      $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
                      $rets .= "</go></anchor>";
              
                      echo $rets;
                  }
              echo "
              ";
                 // echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid\">replay answer</a>";
                  echo "</p>";
                  echo "
              
              [size="1"]";
                  $fid = $tinfo[5];
                  $fname = getfname($fid);
                  $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id=&#39;".$fid."&#39;"));
                  $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id=&#39;".$cid[0]."&#39;"));
                  $cname = $cinfo[0];
              
              
              $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id=&#39;".$fid."&#39;"));
                  if($cid[0]>0)
                  {
                  $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id=&#39;".$cid[0]."&#39;"));
                  $cname = htmlspecialchars($cinfo[0]);
                  echo "<a href=\"forum.php?action=forum&sid=$sid\">Forum »</a>|<a href=\"forum.php?action=viewcat&sid=$sid&cid=$cid[0]\">";
                  echo "$cname</a>
              ";
                  }else{
                      $cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ibwf_forums WHERE id=&#39;".$fid."&#39;"));
                      $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id=&#39;".$cid[0]."&#39;"));
                      $cname = htmlspecialchars($cinfo[0]);
                  echo "<a href=\"index.php?action=gocl&sid=$sid&clid=$cid[0]\">";
                  echo "$cname Club</a>
              ";
                }
                $fname = htmlspecialchars($fname);
                echo "Category»<a href=\"forum.php?action=viewfrm&sid=$sid&fid=$fid\">$fname</a> » $tnm";
                echo "
              <a href=\"index.php?action=main&sid=$sid\">";
                echo "Home</a>";
                echo "[/size]</p>";
                echo "</card>";
              }
              ////// subscribed members
              else if($action=="subscribed")
              {
               addonline(getuid_sid($sid),"View subscribed members","");
                  $tid = $_GET["tid"];
                  $uid = getuid_sid($sid);
              /////////////// faza q pagina
              if($page=="" || $page<=0)$page=1;
                  $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_subscribed WHERE topic=&#39;".$tid."&#39;"));
                  $num_items = $noi[0]; //changable
                  $items_per_page= 10;
                  $num_pages = ceil($num_items/$items_per_page);
                  if(($page>$num_pages)&&$page!=1)$page= $num_pages;
                  $limit_start = ($page-1)*$items_per_page;
              /////////////////// pana aici prima parte
              $sql = "SELECT uid, data, unreaded, topic FROM ibwf_subscribed WHERE topic=&#39;".$tid."&#39; ORDER BY uid LIMIT $limit_start, $items_per_page";
              $cou = $limit_start;
              echo "<card id=\"main\" title=\"$sitename\">";
              $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
                      $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid=&#39;".$uid."&#39;"));
                      $unrd="[".$unreadinbox[0]."]";
                      if ($unreadinbox[0]==1)
                      {
                      echo "[b]you have<a href=\"posta.php?action=main&amp;sid=$sid\"> one </a>pm[/b]
              
              [b]====[/b]
              ";
                      }
                      if ($unreadinbox[0]>1)
                      {
                      echo "[b]you have<a href=\"posta.php?action=main&amp;sid=$sid\"> $unrd </a>pms[/b]
              [b]====[/b]
              ";
                      }
              echo "
              
              ";
                  $items = mysql_query($sql);
                  echo mysql_error();
                  
                  if(mysql_num_rows($items)>0)
                  {
                  while ($item = mysql_fetch_array($items))
                  {
              $who = $item[0];
              $user=getnick_uid($who);
              if(isonline($who))
                  {
                     $iml = "<img src=\"images/online1.gif\" alt=\"+\"/>";
                  }else{
                      $iml = "<img src=\"images/ofl1.gif\" alt=\"-\"/>";
                  }
                if (isowner1(getuid_sid($sid)))
                {
                $link = "<a href=\"genproc.php?action=sabonat&sid=$sid&tid=$tid&who=$who\">[x]</a>";
                }
                     $lnk = "$iml<a href=\"profil.php?who=$who&sid=$sid\">".getsimbol($who)."$user</a>";
                     $cou++;
                     $unreaded = mysql_fetch_array(mysql_query("SELECT unreaded FROM ibwf_subscribed WHERE uid=&#39;".$who."&#39; AND topic=&#39;".$item[3]."&#39;"));
                     if($unreaded[0]==1)
                     {
                     $syr = "[b]have to read[/b]";
                     }else{
                     $syr = "was read";
                     }
                    echo "[size="1"]$cou.$lnk - $syr $link[/size]
              "; 
                    $dtot = date("d.m.y,H:i",$item[1]);
                    echo "[size="1"]Subscribed from: $dtot[/size]
              ";
                  }
                   if($page>1)
                  {
                    $ppage = $page-1;
                    echo "[size="1"]<a href=\"forum.php?action=$action&page=$ppage&sid=$sid&tid=$tid\">prev page</a>[/size]
              ";
                  }
                  if($page<$num_pages)
                  {
                    $npage = $page+1;
                    echo "[size="1"]<a href=\"forum.php?action=$action&page=$npage&sid=$sid&tid=$tid\">next page</a>»[/size]";
                  }
                  echo "
              [size="1"]Page [b]$page[/b] of [b]$num_pages[/b][/size]
              ";
                  if($num_pages>2)
                  {
                    $rets = "[size="1"]go to page:[/size]
              <input name=\"pg\" format=\"*N\" size=\"3\"/>";
                      $rets .= "[size="1"]<anchor>[GO]";
                      $rets .= "<go href=\"forum.php\" method=\"get\">";
                      $rets .= "<postfield name=\"action\" value=\"$action\"/>";
                      $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
                      $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
                      $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
                      $rets .= "</go></anchor>[/size]";
              
                      echo $rets;
                  }
                  //
                  }else{
              echo "[b]No subscribed members[/b]";
              }
              Hate romains that take codes from here and tell to all that they had made that

              Comment


                #8
                by forum subscription u mean ppl adding forum topics 2 like a favourites list n getting pms when a reply is made in them??? if so i hav this code in perl but b easier 2 add it for php then it did 2 make in perl

                Comment


                  #9
                  by forum subscription u mean ppl adding forum topics 2 like a favourites list n getting pms when a reply is made in them??? if so i hav this code in perl but b easier 2 add it for php then it did 2 make in perl[/b]
                  yap this i want re bru
                  Hate romains that take codes from here and tell to all that they had made that

                  Comment

                  Working...
                  X