Last Forum Post On Main Menu

Started on the old forum in April 2015 · view the original in the archive · old links redirect here

4 replies · 150 views · started 11 years ago · 1 min read

3 participants
blotter Newbie · 6 posts #1

hello , im just playing with a script atm trying to learn. How the hell do i get the last forum post to show on the main menu . I once got it to say last forum post on the main menu But that's all it said. It did not show any forum post when i made a test account and replied to a topic??? http://www.cheekynitez.com

mobidev Senior · 312 posts #2

This is not the HELP section this is the section you share scripts why do so many people ignore the most basic of rules and decency to comply with it but they would ecpect people to do it on their sites!!!!!!!

mobidev Senior · 312 posts #3

This is not the HELP section this is the section you share scripts why do so many people ignore the most basic of rules and decency to comply with it but they would ecpect people to do it on their sites!!!!!!! And then the site is a damned lavalair site again lol

blotter Newbie · 6 posts #4

i did not know where to post this sorry

thunderwap Developer · 169 posts #5

blotter wrote: hello , im just playing with a script atm trying to learn. How the hell do i get the last forum post to show on the main menu . I once got it to say last forum post on the main menu But that's all it said. It did not show any forum post when i made a test account and replied to a topic??? http://www.cheekynitez.com

<?php

$lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics ORDER BY
lastpost DESC LIMIT 1"));
$nops = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_posts WHERE tid = '".$lpt[0]."'"));
if($nops[0]==0)
{
$pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics WHERE id = '".$lpt[0]."'"));
$tluid = $pinfo[0];
}else{
$pinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_posts ORDER BY dtpost
DESC LIMIT 1"));
$tluid = $pinfo[0];
}
$tlnm = htmlspecialchars($lpt[1]);
$tlnick = getnick_uid($tluid);
$tpclnk = "<a
href="index.php?action=viewtpc&tid=$lpt[0]&go=last&sid=$sid">$tlnm</a>";
$vulnk = "<a
href="index.php?action=viewuser&who=$tluid&sid=$sid">$tlnick</a>";
echo "<div><center><b>Last Post: $tpclnk, BY: $vulnk</b><br/></center></div>";

?>

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

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