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

Reply
 
Thread Tools Display Modes
  #21  
Old 02-22-2001, 05:24 PM
Guest
 
Posts: n/a
Default

Dude , in 2 days you have solved all my problems YOU RULE !

Thanks a 100000000 times
Reply With Quote
  #22  
Old 02-22-2001, 10:12 PM
Guest
 
Posts: n/a
Default

I think I'm going to create a whole page for my users with all kinds of stats. It will use some of the default settings for the board formatting to make it look like part of the board. I'll post it here when I'm done. It might take a week or two to do it.
Reply With Quote
  #23  
Old 03-05-2001, 04:14 PM
Guest
 
Posts: n/a
Default

I saw your script IRC and I changed it a litle bit to a headline script, for me is this more interesting. Good work IRC, simple but efficient your script

The change:

Code:
<?php 

require("global.php"); 

$db_link = @mysql_pconnect("$dbservername", "$dbusername", "$dbpassword"); 
mysql_select_db("$dbname"); 

?> 

<table cellpadding="4" cellspacing="1" width="100%"> 
<tr> 
<td><small><strong>Show the last 10 postings</strong></small></td> 
<td align="center"><small><strong>REPLIES</strong></small></td> 
<td align="center"><small><strong>VIEWS</strong></small></td> 
</tr> 
<?php 
$lastten = lastten(); 
while( $row = mysql_fetch_row($lastten) ) 
{ 
print('<tr>'); 
print('<td>'); 
print('<a href="showthread.php?s=&threadid='); 
print($row[0]); 
print('" target="_top">'); 
print($row[1]); 
print('</a></td>'); 
print('<td align="center">'); 
print($row[2]); 
print('</td>'); 
print('<td align="center">'); 
print($row[3]); 
print('</td>'); 
print('</tr>'); 
} 
mysql_free_result ($lastten); 
?> 
</table> 

<?php 

function lastten() 
{ 
$query = 'SELECT threadid, title, replycount, views ' . 
'FROM thread ' . 
'WHERE (' . $cur_time . '-lastpost) < 604800 ' . 
'ORDER BY threadid DESC LIMIT 10'; 
$result = mysql_query($query) 
or die('most_viewed query failed'); 
return($result); 
} 

?>
Reply With Quote
  #24  
Old 03-05-2001, 05:59 PM
Guest
 
Posts: n/a
Default

Hi,
I really like this script. I would LOVE to put it in my front page.

But.. I'm new to hacking vB. If someone has time to explain to me how I can incorp this into my homepage (Where to put the code, how to modify it so it works) that'd be GREAT.. Once again, great job on the script. Thanks for your time

-esoin
Reply With Quote
  #25  
Old 03-05-2001, 06:45 PM
Guest
 
Posts: n/a
Default

http://3dwin.gamesmania.de/main/index.php

Now you can see the headlinescript in action


Very fine!
Reply With Quote
  #26  
Old 03-07-2001, 03:41 PM
Guest
 
Posts: n/a
Default

IRC, I'm liking the script....Your most recent upload, does that include the "Most Popular In The Past Week" feature?
Reply With Quote
  #27  
Old 03-07-2001, 03:56 PM
Guest
 
Posts: n/a
Default

The first attachment ranks threads by most views. They have to have had a reply in the last week to qualify.

I haven't had a chance to create my crazy page of message board stats yet. Any requests for features? Here are a few ideas of mine:
  • Top 5 threads of all time (replies)
  • Top 5 threads of all time (views)
  • Top 5 most popular polls (votes)
  • Top 5 posters of all time
  • Five newest threads
  • Top 10 threads of the week (new threads only, in terms of views)
  • Top 10 threads of the week (new threads only, in terms of replies)
Reply With Quote
  #28  
Old 03-08-2001, 11:04 PM
Guest
 
Posts: n/a
Default

How are you displaying it on your main page? I tried include("./forums/popular.php"); but I get the error "Fatal error: Failed opening required './admin/config.php' (include_path='') in /home/users/x/xtremetuning.net-71707/public_html/forums/global.php on line 48"

I can get it to work if I use xtremetuning.net/forums/popular.php but I want to include it in my main page.

Thanks,

-JRW
Reply With Quote
  #29  
Old 03-09-2001, 02:11 PM
Guest
 
Posts: n/a
Default

Two solutions. One is to put the popular script in frames. Then you can put each individual frame whereever you want. However a better solution is described in another thread.

*searching for thread*

Here it is:
http://www.vbulletin.com/forum/showt...&threadid=9452

I haven't had the chance to try out that solution. Let me know how it works.
Reply With Quote
  #30  
Old 03-09-2001, 03:49 PM
Guest
 
Posts: n/a
Default

Thanks, it worked perfectly. I still have a problem though. I already called a header which is used through out my main site, but this then calls the header function for vbulletin. I suppose I simply need to intigrate the two headers into one file to take care of this.

Thanks for your help,

-JRW
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 04:00 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.08660 seconds
  • Memory Usage 2,246KB
  • Queries Executed 12 (?)
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
  • (1)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
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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