Latest Post

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

1 reply · 726 views · started 18 years ago · 1 min read

2 participants
nclemale36 Lead · 537 posts #1

i have random post but it shows members the admin club posts and lets them view it too . can anyone provide me with lastest forum post without it showing admin club posts or so at least it denies them from viewing the post ,

thanks

rukiya Lead · 569 posts #2

just copy and replace this code

$sql = mysql_fetch_array(mysql_query("SELECT a.name, b.uid, b.tid
FROM ibwf_topics a
INNER JOIN ibwf_posts b ON a.id = b.tid
ORDER BY b.id DESC 
LIMIT 1"));
$a = htmlspecialchars($sql[0]);
      $b = getnick_uid($sql[1]);
      $c = "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$sql[2]&go=last\">$a</a>";
      $d = "<a href=\"index.php?action=viewuser&sid=$sid&who=$sql[1]\">$b</a>";
      echo "[size="1"]Last post in $c By $d[/size]
";

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