View Full Version : This should be easy enough, for you :P
Mijae
08-18-2004, 09:58 PM
I have an announcement forum, and to make it more important/active, I want to show latest thread title from that forum on forumhome, before the forum list, below the navbar.
Something like IPB boards have. Like, Latest news: blahblah (1050 views, 10 replies).
Anyone up for it? :D
Oh, i request this with you. It would be fine. This was the only feature i was missing after the conversion.
Mijae
09-09-2004, 11:44 PM
bump?
Mijae
11-08-2004, 07:34 PM
bump?
bump again?
Link14716
11-08-2004, 08:19 PM
In index.php, find:
$newuserid = $userstats['newuserid'];
Add under:
$announcementforum = 1337;
$ap = $DB_site->query_first("SELECT * FROM thread WHERE forumid='$announcementforum' ORDER BY dateline DESC");
Change 1337 to your news forum.
Now, put this somewhere in your FORUMHOME template (I put it after $navbar, but it doesn't look really superb there):
<if condition="!empty($ap)">Latest news: <a href="showthread.php?t=$ap[threadid]">$ap[title]</a> ($ap[views] views, $ap[replycount] replies)</if>
Mijae
11-08-2004, 08:51 PM
In index.php, find:
$newuserid = $userstats['newuserid'];
Add under:
$announcementforum = 1337;
$ap = $DB_site->query_first("SELECT * FROM thread WHERE forumid='$announcementforum' ORDER BY dateline DESC");
Change 1337 to your news forum.
Now, put this somewhere in your FORUMHOME template (I put it after $navbar, but it doesn't look really superb there):
<if condition="!empty($ap)">Latest news: <a href="showthread.php?t=$ap[threadid]">$ap[title]</a> ($ap[views] views, $ap[replycount] replies)</if>
Thanks! Only took 3 months :D :D :D
Link14716
11-08-2004, 08:52 PM
Well, as long as you have it I guess. ;)
Mijae
11-08-2004, 10:17 PM
Thanks again :P
I hope more people will read my announcements now :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.