![]() |
Use this code instead:
Code:
<?php |
thanx......but is there a way to display replies with this also?
i can get views to display...but not replies |
<?php include("http://athlonoc.com/vbulletin/pop.php"); ?>
that didn't work :( Where I'm trying to put this is in the footer template. http://www.athlonoc.com/vbulletin/index.php it's on the right side. I'd like to include some things in the forum's template but I can't figure it out! |
Did you make it so your footer will work with php?
|
$footer = include("http://athlonoc.com/vbulletin/pop.php");
and enable PHP adfooter in the control panel! Correct if I am wrong. :) |
Instead of listing the last 5/10 posts, I wanted to list the most popular threads for the month. Your subject says "popular", so in case you're interested in that too, here's the code I used to list the 5 most popular topics of the month on a different page. It is sorted by reply count and skips the private forums.
require("../bb/admin/config.php"); $num_active = 5; $db=mysql_connect($servername,$dbusername,$dbpassw ord); mysql_select_db($dbname); $myselect = "SELECT * from thread where MONTH(FROM_UNIXTIME(lastpost))=MONTH(NOW()) AND YEAR(FROM_UNIXTIME(lastpost))=YEAR(NOW()) AND (forumid < 8 OR forumid > 10) order by replycount desc limit $num_active"; echo "<A NAME='#popular'>"; echo "<H3>This month's most popular board topics</H3>"; $result = mysql_query($myselect); if ($row = mysql_fetch_array($result)) { $counter=0; do { $counter=++$counter; echo ("$counter. <a href=\"http://www.yourdomain.com/bb/showthread.php?threadid= $row[threadid]\">$row[title]</a> - $row[views] views - $row[replycount] replies<BR>"); } while ($row = mysql_fetch_array($result)); } |
All times are GMT. The time now is 03:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|