How 2 Make Topic/forum Subscribe

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

8 replies · 702 views · started 18 years ago · 1 min read

4 participants
ionutxp Developer · 137 posts #2

like this

}
    echo "</p>";
    echo "

";
    $vws = $tinfo[4]+1;
    $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_posts WHERE tid='".$tid."'"));
    echo "[size="1"]Raspunsuri: $rpls[0] - Vazut: $vws[/size]
";
$select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ultrawap_abonati WHERE topic='".$tid."'"));
    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='".$uid."' AND topic='".$tid."'"));
    if($abonat[0]==1)
    {
    echo "[size="1"][b]Sunteti abonat la acest topic[/b][/size]
"; 
    $chread = mysql_query("UPDATE ultrawap_abonati SET necitit='0' WHERE uid='".$uid."' AND topic='".$tid."'");
        }
    ///fm here
    
    if($page==1)
    {
      $posts_per_page=4;
      mysql_query("UPDATE ultrawap_topics SET views='".$vws."' WHERE  id='".$tid."'");
      $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ultrawap_topics WHERE id='".$tid."'"));
      $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='".$tid."' 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='".$fid."'"));
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id='".$cid[0]."'"));
    $cname = $cinfo[0];

$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id='".$fid."'"));
    if($cid[0]>0)
    {
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id='".$cid[0]."'"));
    $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='".$fid."'"));
        $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_clubs WHERE id='".$cid[0]."'"));
        $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='".$tid."'"));
    $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='".$tid."' 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='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE touid='".$uid."'"));
        $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='".$who."' AND topic='".$item[3]."'"));
       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 External image (may be gone)

inet Senior · 264 posts #3

like this

}
    echo "</p>";
    echo "

";
    $vws = $tinfo[4]+1;
    $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_posts WHERE tid='".$tid."'"));
    echo "Raspunsuri: $rpls[0] - Vazut: $vws
";
$select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ultrawap_abonati WHERE topic='".$tid."'"));
    echo "Membri Abonati: <a href=\"forum.php?action=abonati&sid=$sid&tid=$tid\">$select[0]</a>
";
echo "<a href=\"genproc.php?action=abonati&sid=$sid&tid=$tid\">Aboneaza-te la topic</a>
";
echo "<a href=\"genproc.php?action=sabonati&sid=$sid&tid=$tid\">Dezaboneaza-te de la topic</a>
";
    $tid = $_GET["tid"];
    echo "Link: topic
";
$abonat = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT necitit) FROM ultrawap_abonati WHERE uid='".$uid."' AND topic='".$tid."'"));
    if($abonat[0]==1)
    {
    echo "Sunteti abonat la acest topic
"; 
    $chread = mysql_query("UPDATE ultrawap_abonati SET necitit='0' WHERE uid='".$uid."' AND topic='".$tid."'");
        }
    ///fm here
    
    if($page==1)
    {
      $posts_per_page=4;
      mysql_query("UPDATE ultrawap_topics SET views='".$vws."' WHERE  id='".$tid."'");
      $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ultrawap_topics WHERE id='".$tid."'"));
      $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='".$tid."' 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 = "<a href=\"forum.php?action=viewtpc&sid=$sid&tid=$tid&pst=\">(quote:p=blaze,d=16-04-2006)</a>";
    }
    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 "<img src=\"images/onl.gif\" alt=\"*\"/>Aveti<a href=\"posta.php?action=main&sid=$sid\"> $umsg </a>PMs
";
  }
    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 "

";
    $fid = $tinfo[5];
    $fname = getfname($fid);
    $cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id='".$fid."'"));
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id='".$cid[0]."'"));
    $cname = $cinfo[0];
$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ultrawap_forums WHERE id='".$fid."'"));
    if($cid[0]>0)
    {
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_fcats WHERE id='".$cid[0]."'"));
    $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='".$fid."'"));
        $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ultrawap_clubs WHERE id='".$cid[0]."'"));
        $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 "</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='".$tid."'"));
    $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='".$tid."' 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='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ultrawap_private WHERE touid='".$uid."'"));
        $unrd="[".$unreadinbox[0]."]";
        if ($unreadinbox[0]>0)
        {
        echo "Ai:<a href=\"posta.php?action=main&sid=$sid\">$unrd</a>PMs
-----
";
        }
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='".$who."' AND topic='".$item[3]."'"));
       if($necitit[0]==1)
       {
       $syr = "are de citit";
       }else{
       $syr = "a citit";
       }
      echo "$cou.$lnk - $syr $link
"; 
      $dtot = date("d.m.y,H:i",$item[1]);
      echo "Abonat din: $dtot
";
    }
     if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"forum.php?action=$action&page=$ppage&sid=$sid&tid=$tid\">pagina urmatoare</a>
";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"forum.php?action=$action&page=$npage&sid=$sid&tid=$tid\">pagina urmatoare</a>»";
    }
    echo "
Pagina $page din $num_pages
";
    if($num_pages>2)
    {
      $rets = "Sari 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=\"sid\" value=\"$sid\"/>";
        $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
        $rets .= "<postfield name=\"tid\" value=\"$tid\"/>";
        $rets .= "</go></anchor>";

        echo $rets;
    }
    //
    }else{
echo "Nu exista membri abonati";

but the full code:( pls

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.

ionutxp Developer · 137 posts #4

its romanian 😀 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 External image (may be gone)

something else Fellow · 2,296 posts #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????? 🙂

ionutxp Developer · 137 posts #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 External image (may be gone)

ionutxp Developer · 137 posts #7

in english srry for some words:

}
    echo "</p>";
    echo "

";
    $vws = $tinfo[4]+1;
    $rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$tid."'"));
    echo "[size="1"]Answers: $rpls[0] - Views: $vws[/size]
";
$select = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ibwf_subscribed WHERE topic='".$tid."'"));
    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='".$uid."' AND topic='".$tid."'"));
    if($subscribed[0]==1)
    {
    echo "[size="1"][b]You are subscribed at this topic[/b][/size]
"; 
    $chread = mysql_query("UPDATE ibwf_subscribed SET unreaded='0' WHERE uid='".$uid."' AND topic='".$tid."'");
        }
    ///fm here
    
    if($page==1)
    {
      $posts_per_page=4;
      mysql_query("UPDATE ibwf_topics SET views='".$vws."' WHERE  id='".$tid."'");
      $ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ibwf_topics WHERE id='".$tid."'"));
      $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='".$tid."' 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='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid='".$uid."'"));
        $unrd="[".$unreadinbox[0]."]";
        if ($unreadinbox[0]==1)
        {
        echo "[b]you have<a href=\"posta.php?action=main&sid=$sid\"> one </a>pm[/b]

[b]====[/b]
";
        }
        if ($unreadinbox[0]>1)
        {
        echo "[b]you have<a href=\"posta.php?action=main&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='".$fid."'"));
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'"));
    $cname = $cinfo[0];

$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'"));
    if($cid[0]>0)
    {
    $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'"));
    $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='".$fid."'"));
        $cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$cid[0]."'"));
        $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='".$tid."'"));
    $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='".$tid."' 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='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid='".$uid."'"));
        $unrd="[".$unreadinbox[0]."]";
        if ($unreadinbox[0]==1)
        {
        echo "[b]you have<a href=\"posta.php?action=main&sid=$sid\"> one </a>pm[/b]

[b]====[/b]
";
        }
        if ($unreadinbox[0]>1)
        {
        echo "[b]you have<a href=\"posta.php?action=main&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='".$who."' AND topic='".$item[3]."'"));
       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 External image (may be gone)

ori Lead · 512 posts #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

ionutxp Developer · 137 posts #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

yap 🙂 this i want re bru

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close