Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-24-2000 Last Update: Never Installs: 0
 
No support by the author.

JonnyQuest hacked the Active Threads hack (thank you to those fine contributors to our community) to make this one. He also made a Most Popular Threads ever ... pretty basic mod.

See it included here:

http://www.bigsoccer.com/forum/boards.shtml

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-24-2000, 10:46 AM
Guest
 
Posts: n/a
Default

dns-error right now ... where could i find this to download?
Reply With Quote
  #3  
Old 05-24-2000, 11:11 AM
Guest
 
Posts: n/a
Default

Likewise, I'm not able to load your page, but this is an AWESOME hack! I've been working on something similar, but I haven't had the time to iron it out recently.
Reply With Quote
  #4  
Old 05-25-2000, 01:10 AM
Guest
 
Posts: n/a
Default

we're back up.
Reply With Quote
  #5  
Old 05-25-2000, 02:21 AM
Guest
 
Posts: n/a
Default

huss, congrats that you're online again - but where's this fine hack to download ?

Reply With Quote
  #6  
Old 05-25-2000, 02:24 AM
Guest
 
Posts: n/a
Default

Hi Huss,

i'm just looking over your site and saw the small message "PM users click here to check messages."

Is this a hack for vB?
Reply With Quote
  #7  
Old 05-28-2000, 10:28 AM
Guest
 
Posts: n/a
Default

Just curious, how do you folks time stamp the most popular posts? I need this feature to highlight the most popular posts of the week.

With UBB i had the server parsing html files for SSI and then executing a custom counter.

Can we take a look at the code please?
Reply With Quote
  #8  
Old 06-12-2000, 09:17 AM
Guest
 
Posts: n/a
Default

WHoops my bad, forgot I never put it up!!

Most read Today:
Code:
<script language="php">

/*

##############################################################################
# vBulletin Active Topics                                       Version 0.25 # 
##############################################################################

*/

/*
##############################################################################
# Load Required Variables                                                    #
##############################################################################
*/

	include("admin/config.php");
	include("class.FastTemplate.php3");

/*
##############################################################################
# Set initial directory to load templates from.                              #
##############################################################################
*/

	$Template_Dir = ".";

/*
##############################################################################
# Set file to output to if post_to_file is equal to 1.                       #
##############################################################################
*/

	$Post_File_Name = "mostread.txt";

/*
##############################################################################
# Initiate FastTemplate                                                      #
##############################################################################
*/

    $displaytemplate = new FastTemplate("$Template_Dir");
    $displaytemplate->strict();

/*
##############################################################################
# Setup initial settings if not specified on command line.                   #
##############################################################################
*/

	if (isset($posts)) {
		$num_active = intval($posts);
	}
	else {
		$num_active = 10;
	}
	
	if (isset($length)) {
		$num_chars = intval($length);
	}
	else {
		$num_chars = 150;
	}


	if (isset($file)) {
		$post_to_file = 1;
		$displaytemplate->define(array(
			"ActivePage" => "Most-Read-Page.tpl",
			"ActiveMessage" => "Most-Read-Message.tpl"
			
		));
		
	}
	else {
		$post_to_file = 1;
		$displaytemplate->define(array(
			"ActivePage" => "Most-Read-Page.tpl",
			"ActiveMessage" => "Most-Read-Message.tpl"
		));
	}

	if (isset($forum)) {
		$selected_forum = intval($forum);
		$querylatest = "select * from thread where forumid='$selected_forum' and (UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(lastpost))<35000 order by views desc limit $num_active";
	}
	else {
		$querylatest = "select * from thread where (UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(lastpost))<35000 order by views desc limit $num_active";
	}
	
/*
##############################################################################
# Lets Setup and Connect to the Database                                     #
##############################################################################
*/

	$db=mysql_connect($servername,$dbusername,$dbpassword);
	mysql_select_db($dbname);

/*
##############################################################################
# Generate SQL and Query Database                                            #
##############################################################################
*/

	$resultlatest = mysql_query($querylatest,$db);

/*
##############################################################################
# Lets Find the Latest Topics                                                #
##############################################################################
*/

	while ($latest_array = mysql_fetch_array($resultlatest)) {
	
/*
##############################################################################
# Go one-by-one through the result query.                                    #
##############################################################################
*/

	$query_forum = "select * from forum where forumid='$latest_array[forumid]'";
	$result_forum = mysql_query($query_forum,$db);
	$forum_info_array = mysql_fetch_array($result_forum);
	
/*
##############################################################################
# Split the Date to make it nicer.                                           #
##############################################################################
*/
	$datestr1 = substr($latest_array["dateline"],0,10);
	$datetime = substr($latest_array["dateline"],11,8);	
	
/*
##############################################################################
# Assign result info to template                                             #
##############################################################################
*/

	$displaytemplate->assign ("FORUMTITLE"  , $forum_info_array["title"]);
	$displaytemplate->assign ("POSTTITLE"  , $latest_array["title"]);
	$displaytemplate->assign ("POSTUSERNAME"  , $latest_array["postusername"]);
	$displaytemplate->assign ("POSTDATETIME"  , $datetime);
	$displaytemplate->assign ("POSTREPLYCOUNT"  , $latest_array["replycount"]);
	
	$querythread="select * from post where threadid='$latest_array[threadid]' order by dateline asc limit 1";

	$result_thread_text= mysql_query($querythread,$db);

	$result_thread_array = mysql_fetch_array($result_thread_text);

	$displaytemplate->assign ("POSTICON"  , $latest_array["iconid"]);
	$displaytemplate->assign ("LASTPOSTER"  , $latest_array["lastposter"]);
	
	$displaytemplate->assign ("VIEWS"  , $latest_array["views"]);	
	
	$Msg = substr(strip_tags($result_thread_array["pagetext"]),0,$num_chars);
	
	$displaytemplate->assign ("POSTMESSAGE" , $Msg);
	$displaytemplate->assign ("THREADID" , $latest_array["threadid"]);
	
	$displaytemplate->parse  ("FORUMINFO" , ".ActiveMessage");	
	}

/*
##############################################################################
# Parse the Data and Output the whole Page                                   #
##############################################################################
*/

	if ($post_to_file == 1) {
	
	$displaytemplate->parse  ("GLOBAL"    , "ActivePage");
	$displaybody = $displaytemplate->fetch("GLOBAL");
	$fp = fopen("$Post_File_Name", "w");
	fwrite($fp, $displaybody);
	fclose($fp);
	exit();
		
	}
	
	
	$displaytemplate->parse  ("GLOBAL"    , "ActivePage");
	$displaytemplate->FastPrint();
	exit();	

</script>
Most read ever:

Code:
<script language="php">

/*

##############################################################################
# vBulletin Active Topics                                       Version 0.25 # 
##############################################################################

*/

/*
##############################################################################
# Load Required Variables                                                    #
##############################################################################
*/

	include("admin/config.php");
	include("class.FastTemplate.php3");

/*
##############################################################################
# Set initial directory to load templates from.                              #
##############################################################################
*/

	$Template_Dir = ".";

/*
##############################################################################
# Set file to output to if post_to_file is equal to 1.                       #
##############################################################################
*/

	$Post_File_Name = "mostreadever.txt";

/*
##############################################################################
# Initiate FastTemplate                                                      #
##############################################################################
*/

    $displaytemplate = new FastTemplate("$Template_Dir");
    $displaytemplate->strict();

/*
##############################################################################
# Setup initial settings if not specified on command line.                   #
##############################################################################
*/

	if (isset($posts)) {
		$num_active = intval($posts);
	}
	else {
		$num_active = 5;
	}
	
	if (isset($length)) {
		$num_chars = intval($length);
	}
	else {
		$num_chars = 150;
	}


	if (isset($file)) {
		$post_to_file = 1;
		$displaytemplate->define(array(
			"ActivePage" => "Most-Read-Page.tpl",
			"ActiveMessage" => "Most-Read-Message.tpl"
			
		));
		
	}
	else {
		$post_to_file = 1;
		$displaytemplate->define(array(
			"ActivePage" => "Most-Read-Page.tpl",
			"ActiveMessage" => "Most-Read-Message.tpl"
		));
	}

	if (isset($forum)) {
		$selected_forum = intval($forum);
		$querylatest = "select * from thread where forumid='$selected_forum' order by views desc limit $num_active";
	}
	else {
		$querylatest = "select * from thread order by views desc limit $num_active";
	}
	
/*
##############################################################################
# Lets Setup and Connect to the Database                                     #
##############################################################################
*/

	$db=mysql_connect($servername,$dbusername,$dbpassword);
	mysql_select_db($dbname);

/*
##############################################################################
# Generate SQL and Query Database                                            #
##############################################################################
*/

	$resultlatest = mysql_query($querylatest,$db);

/*
##############################################################################
# Lets Find the Latest Topics                                                #
##############################################################################
*/

	while ($latest_array = mysql_fetch_array($resultlatest)) {
	
/*
##############################################################################
# Go one-by-one through the result query.                                    #
##############################################################################
*/

	$query_forum = "select * from forum where forumid='$latest_array[forumid]'";
	$result_forum = mysql_query($query_forum,$db);
	$forum_info_array = mysql_fetch_array($result_forum);
	
/*
##############################################################################
# Split the Date to make it nicer.                                           #
##############################################################################
*/
	$datestr1 = substr($latest_array["dateline"],0,10);
	$datetime = substr($latest_array["dateline"],11,8);	
	
/*
##############################################################################
# Assign result info to template                                             #
##############################################################################
*/

	$displaytemplate->assign ("FORUMTITLE"  , $forum_info_array["title"]);
	$displaytemplate->assign ("POSTTITLE"  , $latest_array["title"]);
	$displaytemplate->assign ("POSTUSERNAME"  , $latest_array["postusername"]);
	$displaytemplate->assign ("POSTDATETIME"  , $datetime);
	$displaytemplate->assign ("POSTREPLYCOUNT"  , $latest_array["replycount"]);
	
	$querythread="select * from post where threadid='$latest_array[threadid]' order by dateline asc limit 1";

	$result_thread_text= mysql_query($querythread,$db);

	$result_thread_array = mysql_fetch_array($result_thread_text);

	$displaytemplate->assign ("POSTICON"  , $latest_array["iconid"]);
	$displaytemplate->assign ("LASTPOSTER"  , $latest_array["lastposter"]);
	
	$displaytemplate->assign ("VIEWS"  , $latest_array["views"]);	
	
	$Msg = substr(strip_tags($result_thread_array["pagetext"]),0,$num_chars);
	
	$displaytemplate->assign ("POSTMESSAGE" , $Msg);
	$displaytemplate->assign ("THREADID" , $latest_array["threadid"]);
	
	$displaytemplate->parse  ("FORUMINFO" , ".ActiveMessage");	
	}

/*
##############################################################################
# Parse the Data and Output the whole Page                                   #
##############################################################################
*/

	if ($post_to_file == 1) {
	
	$displaytemplate->parse  ("GLOBAL"    , "ActivePage");
	$displaybody = $displaytemplate->fetch("GLOBAL");
	$fp = fopen("$Post_File_Name", "w");
	fwrite($fp, $displaybody);
	fclose($fp);
	exit();
		
	}
	
	
	$displaytemplate->parse  ("GLOBAL"    , "ActivePage");
	$displaytemplate->FastPrint();
	exit();	

</script>
Reply With Quote
  #9  
Old 06-12-2000, 11:16 AM
Guest
 
Posts: n/a
Default

Um.. could you also post the tpl file? I still havent figured out FastTemplates well enough to create my own.

Thanks!

Shri
Reply With Quote
  #10  
Old 06-24-2000, 08:15 AM
Guest
 
Posts: n/a
Default

the tpl files all come frm the active threads hack. this is just a hack of a hack.
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 02:29 AM.


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.04326 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete