vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Ultimate Forum Stats Integration for Non-VB Page (https://vborg.vbsupport.ru/showthread.php?t=63223)

BlackxRam 03-30-2004 10:00 PM

Ultimate Forum Stats Integration for Non-VB Page
 
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.

BlackxRam 03-31-2004 09:43 AM

Snaps of the User Logged in and then when the User is logged out.

BlackxRam 03-31-2004 10:32 AM

You can see a LIVE view of it Here: http://www.mogusland.com/

sabret00the 03-31-2004 10:35 AM

that's a great hack, now all i need is a decent top10 hack and i can start making my new front page :D

msimplay 03-31-2004 04:05 PM

Quote:

Originally Posted by sabret00the
that's a great hack, now all i need is a decent top10 hack and i can start making my new front page :D

theres top x stats available u can change the stats to whatever number hence the 'x' hehe

its the one i use on my homepage :)

BlackxRam 03-31-2004 04:21 PM

Glad you guys like it. The instructions werent too difficult to understand were they?

Owen 03-31-2004 04:29 PM

I dont know yet, what I do know is that I'll be using this.

msimonds 04-01-2004 02:34 AM

I checked the paths twice and then a third time, I know that they are all correct and I am getting this error

Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/rantman/public_html/forums/global.php on line 18

I placed the boardstats.php inside my root folder, is that the correct place to put it?

msimonds 04-01-2004 02:49 AM

Well I figured it out that it needs to be in the forums directory and then you can try and use it outside of that but it does not show you logged in when you are outside the forums!

msimonds 04-01-2004 03:33 AM

If this can be corrected to work without using an iframe, then it would be one of the best hacks available for people that do not use a vb portal.

If you use a include statement then it will not work, example:

http://www.sportsrant.com/index_tmp.php

sign in test account:

user: nyallsports
pass: sf49ers

Then if you go here:

http://www.sportsrant.com/forums/boardstat.php and sign in and look it works. Something about vb does not like the password outside the forum folder.

Also some of the links that you are using are incorrect in the form, when you check your private messages, usercp and others are incorrect or not updated. I have changed them and it works.

There has to be someone out there that can get this to work outside the forums folder without using an iframe

Mike


All times are GMT. The time now is 05:51 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.01167 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete