Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ultimate Forum Stats Integration for Non-VB Page Details »»
Ultimate Forum Stats Integration for Non-VB Page
Version: 1.00, by BlackxRam BlackxRam is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-30-2004 Last Update: Never Installs: 33
 
No support by the author.

This Hack was a port over from my vb2.x script that pulled information from teh forum to a seperate script which you then could break apart and include into your standard website via PHP includes or SSI.

This version is about the same but it now works with VB3.00 Gold


Features for Logged in Members:

*Users Avatar
*Default Avatar For Members Without a Set Avatar
*Number of Registered Members
*Number of Threads
*Number of Posts
*How Many Posts since last visit
*How Many New PM's
*How Many PM's in your Inbox
*Latest Registered User
*Member with the Most Posts
*Member with the Most Threads

Features for Guests:

*Welcome Text
*VB3 Gold Login Box with option to Remember.
*Newest Member
*Member with the most Posts
*Member with the most Threads


All that is needed to do is download the attached Zip File. Then open the boardstat.php file in any Text Editor. Follow the Commented Portions that have been outlined in there. You will need to change all the PATHS and URLS in that file to match YOUR server. It might take some tweaking on your part but it works just fine as I have tested it with several other websites. When You are Done Editing it, just upload it to your forums directory and call it to your main website using php includes, ssi or iframes.

IF YOUR FORUMS AND SITE ARE ON DIFFERENT SERVERS THEN YOU HAVE TO USE AN IFRAME TO CALL THE FILE OVER. ANYTHING ELSE COULD YIELD HEADER ERRORS.

------------------------------------
Please Remember. Follow the in-file instructions
and edit all the URLS and PATHS. I can't stress this enough.
I just know someone will pop on and say "Why does my links point to http://www.yourdomain.com/forums..... This is a warning lol
------------------------------------

My Next Few Posts Will include Some Images of How the HTML is Built Inside the File.

Show Your Support

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

Comments
  #52  
Old 02-19-2005, 05:37 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works perfectly...

For those that use html pages with ssi...

simply include using:

Code:
<!--#include virtual="forum/boardstat.php" -->
replacing the forum/ if needed.

Great hack, just what i was looking for!

Live on www.majorfm.com/main.shtml
Reply With Quote
  #53  
Old 02-20-2005, 12:22 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you Enjoy it Major, this hack has been the same besides a minor update now and then. I am planning to rewrite it in the future so it could possibly share vbulletin templates or have more information in multiple areas of your site. basically, I was thinking of setting it up so people who want vbulletin stats like this don't need a vb portal system. With a portal system like the ones offered, your design styles are severly limited.

Glad you enjoy it and wait for the future update.
Reply With Quote
  #54  
Old 02-20-2005, 02:48 AM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tiny problem...

Quote:
Threads: 3,441, Posts: 28,672, Members: 2,366, Registered Today: 3
Welcome to our newest member, Baby D
is the stats on the board but...
Quote:
Threads: 3554
Posts: 29414
Members: 2366
is the stats on the welcome panel... i assume it counts all the posts not after the ones been deleted...?

...and yes i love it, i have been looking for this for ages, i have tweaked the html a bit as you will see at: http://www.majorfm.com/main.shtml for guests and members... neatened it out a bit... felt it was a touch cluttered... :squareeyed:
Reply With Quote
  #55  
Old 02-20-2005, 08:06 PM
eblivion eblivion is offline
 
Join Date: Sep 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The stats works fine if I view the page, boardstats.php.

When I included into into another php page, it works fine if I'm logged in. However, if I'm not logged in I get the following error:

Unable to add cookies, header already sent.
Reply With Quote
  #56  
Old 02-21-2005, 12:52 PM
eblivion eblivion is offline
 
Join Date: Sep 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out a workaround. It doesn't give all the board stats, but it's suitable for now.
Reply With Quote
  #57  
Old 02-22-2005, 01:12 PM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure what you are referring to there. It pulls the same stats as if it were on your forums. Are you trying to display all posts counts ever? What would be the point of that ?
Reply With Quote
  #58  
Old 02-22-2005, 01:40 PM
Indy Indy is offline
 
Join Date: Jun 2002
Location: Indianapolis, IN
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One small issue.

1. Login using this script.
2. Go to your forums. (I added a link to my forums in the script)
3. Logout at your forums.
4. Return to this script.
5. Page is cached, still shows you logged in even though cookies have been cleared etc. Hit reload/refresh and the correct page is displayed showing login boxes.

In the script code, I added the following at the beginning of the HTML code but the page still wants to cache. Is there a work around for this? I basically just dropped the php file in my forums dir and running it from there - not #included in HTML page.

Quote:
<HEAD>
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">
</HEAD>
Thanks!
Reply With Quote
  #59  
Old 02-22-2005, 04:05 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlackxRam
Not sure what you are referring to there. It pulls the same stats as if it were on your forums. Are you trying to display all posts counts ever? What would be the point of that ?
My point was, it does display all the posts... its meant to display the 2 figures are not the same... the board's standard vb stats has less posts...
Reply With Quote
  #60  
Old 02-22-2005, 05:46 PM
Indy Indy is offline
 
Join Date: Jun 2002
Location: Indianapolis, IN
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A little success. Per an article at Microsoft, I added an additional <HEAD></HEAD> tag set after the </BODY> set. In both sets and put in:
Quote:
<META HTTP-EQUIV=\"Expires\" CONTENT=\"0\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Pragma-directive\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"cache-directive\" CONTENT=\"no-cache\">
Works well with Firefox and Netscape, but no go with IE. I'll propbably head over to the HTML forum where it appears I probably should have been in the first place. Didn't mean to post in the wrong forum.

Thanks for the great script!!
Reply With Quote
  #61  
Old 03-14-2005, 03:26 AM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, not sure how to, how do i add the code to my php file to call it over?

cheers
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 07:36 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.07919 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (5)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • 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