Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-17-2001, 05:43 AM
Guest
 
Posts: n/a
Default

Bane I got the same parse error as you. What did you do to fix it?
Reply With Quote
  #12  
Old 03-17-2001, 07:08 AM
Guest
 
Posts: n/a
Default

how do I change this code so I can run it in a different directory then my forum?
Reply With Quote
  #13  
Old 03-17-2001, 07:32 AM
Guest
 
Posts: n/a
Default

Snyx, I am running it through a SSI Include

Code:
<!-- include virtual="/forum/toppost.php"-->
Is this what you need? or you want to keep the file in a non forum directory?



Sarge, here is the corrected file: (Set for top posters in last 7 days)
Attached Files
File Type: txt toppost.php.txt (1.1 KB, 34 views)
Reply With Quote
  #14  
Old 03-17-2001, 08:47 AM
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #15  
Old 03-17-2001, 09:28 PM
Guest
 
Posts: n/a
Default

When I try to call the .php in I get a bunch of NONSCENCE! Hummmm, I donno . . . .
Reply With Quote
  #16  
Old 03-18-2001, 05:05 AM
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #17  
Old 03-18-2001, 11:02 AM
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #18  
Old 03-18-2001, 01:04 PM
Guest
 
Posts: n/a
Default

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....
Reply With Quote
  #19  
Old 03-22-2001, 02:14 PM
Guest
 
Posts: n/a
Default

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>";
}
 
?>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:06 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
  • Page Generation 0.03748 seconds
  • Memory Usage 2,232KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete