The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Bane I got the same parse error as you. What did you do to fix it?
|
#12
|
|||
|
|||
![]()
how do I change this code so I can run it in a different directory then my forum?
|
#13
|
|||
|
|||
![]()
Snyx, I am running it through a SSI Include
Code:
<!-- include virtual="/forum/toppost.php"--> Sarge, here is the corrected file: (Set for top posters in last 7 days) |
#14
|
|||
|
|||
![]()
Tried your attached file but Im getting this error:
Fatal error: Call to unsupported or undefined function localtime() in /home/sites/home/web/forum/toppost.php on line 7 |
#15
|
|||
|
|||
![]()
When I try to call the .php in I get a bunch of NONSCENCE! Hummmm, I donno . . . .
|
#16
|
|||
|
|||
![]()
Ok Thanks Bane
MY question... I posted on my test board just to check this out, but it listed the top posters... not the top posters from the last 24! IT is supposed to list the top posters from the last 24 right? |
#17
|
|||
|
|||
![]()
He changed my original version to display for the past seven days or something. Change the number of seconds difference between $uts and $lts to whatever 3600*24+1 is.
|
#18
|
|||
|
|||
![]()
This seems to be cool. I wonder if you guys can modify the codes so i get a list of the last 10 posts (messages) instead of 10 posters!
just wondering.... |
#19
|
|||
|
|||
![]() Code:
<?php // Set this to the max number of threads to display $maxthreads = 10; require("./admin/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassword); mysql_select_db($dbname); $query = "SELECT * FROM thread ORDER BY lastpost DESC LIMIT $maxthreads"; $resultlatest = mysql_query($query,$db); while ($latest_array = mysql_fetch_array($resultlatest)) { echo "<a href=\"showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</a>"; } ?> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|