Latest 10 forum topics

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

#latest-10-forum

11 replies · 878 views · started 17 years ago · 1 min read

6 participants
robzky Developer · 205 posts #1

Can you post the codes and usage code of this script?? THANKS IN ADVANCE!! 😊

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

srecnica Developer · 174 posts #2

index.php

else if($action=="last10topic")
{

  addonline(getuid_sid($sid),"<b> Last 10 topic</b>","index.php?action=$action");
    echo "<card id=\"main\" title=\"Last 10 topic\">";

    echo "<timer value=\"300\"/>";
       //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $num_items = regmemcount(); //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;

    //changable sql

        $sql = "SELECT id, name, lastpost FROM ibwf_topics ORDER BY lastpost DESC
       LIMIT 0 , 10 ";

    echo "<p align=\"center\">";
echo "<b> Last activ topic:</b><br/><br/>";

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
      $lnk = "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$item[0]&go=last\">$item[1]</a>";
      echo "$lnk<br/>";
    }
    }
    echo "</p>";
      ////// UNTILL HERE >>
    echo "<p align=\"center\">";
    
    echo "<img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">";
echo "Home</a>";
  echo "</p>";
    echo "</card>";

}

index.php >>> if($action=="main")

echo "<a href=\"index.php?action=last10topic&sid=$sid\">~Activ topic~</a><br/>";
robzky Developer · 205 posts #3

Ill try this One! Thanks a lot SRECNICA!

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

Vayne Developer · 106 posts #6

why there is

echo "<timer value=\"300\"/>";

? 🤨

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

capofret Developer · 225 posts #7

Vayne wrote: why there is

echo "<timer value=\"300\"/>";

? 🤨

it means it will autorefresh every 5 minutes. 5x60=300 seconds

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

Vayne Developer · 106 posts #8

capofret wrote: it means it will autorefresh every 5 minutes. 5x60=300 seconds

i know what means script timer 😀 but why it is needed there?

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

l0rdrayven Developer · 83 posts #9

mates im just a noob where to paste that code? I mean in what part of index.php file please help.thnks for the considerations.

Not i rip persons off i will also do your arse !

centi Developer · 159 posts #10

any one have the coding with who post the last post on that pati topics list

😳 .................................... http://photomag.lk/ .................................... 🤨

Vayne Developer · 106 posts #12

centi wrote: any one have the coding with who post the last post on that pati topics list

limit 2 ??

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

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