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

Reply
 
Thread Tools
Ultimate Board Stats Integration into Users Non-VB page!! Details »»
Ultimate Board Stats Integration into Users Non-VB page!!
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-11-2002 Last Update: Never Installs: 31
 
No support by the author.

This hack will add a ton of new features to your main website.

Version #2 features:

*Users Avatar
*Total Members
*Total Posts
*Total Threads

*Member of the Day (please note that for this hack to work you MIGHT need to have it already installed on your VB. Some people needed it some didnt. If this feature is unimportant to you please delete the CODE located in the file. It is marked.)

*Number of posts since last visit.
*Mini Forum nav Bar for logged in users
*PRIVATE MESSAGE INFORMATION including number of unread messages, new messages and total messages in your INBOX!
*Top Threads Starter
*Top Poster
*Newest Member
*Seperate displays for Logged in Users and guests (guests will see completely different information than Logged in users)
*FAQ and Register links for Guests.
*Login Code for Not logged in Guests or Users
*A completely Template Free Welcome Panel and no hassle script.

This is all done without ANY modifications or template changes. installation of this hack is SIMPLE.

Just upload the boardstat.php file into your server directory. You might to change the Path to your GLOBAL directory if its not in your FORUMS folder.

Currently the Add-on works as a 3 colomn table You can easily change that by opening the boardstat.php file and scrolling down to where it says Begin HTML OUTPUT. You can rearrange the html in any fashion you like.

To get the information to your main website just REQUIRE or use an IFRAME to call the boardstat.php file into your main page.

To make sure this installation is successful and works with no problems, you will need to install the hacks shown in this add-on just as a precaution. Some people are able to just upload the file and go while some need the hacks already installed.

**
Support for this hack is VERY limited until the new year. Reason being that im too busy too keep up with this right now.

Any problems seen in this hack, could be resolved by just commenting out or deleting the Member of the Day Feature. If you have this hack installed already then you should be fine. If you dont then it might or might not work.

Also, hacks like these dont work well across seperate domains or subdomains. In this case before the URL to the boardstat.php file works. If the PHP include doesnt work an IFRAME always will work.

**

See you guys' next year.

Show Your Support

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

Comments
  #22  
Old 09-15-2002, 02:14 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Colon33
Also, i have not installed 2.2.7 because of template problems. This hack might not function properly cause of different code in 2.2.7
I just installed on 2.2.7 and it worked great. I did have to take out the member of the day part though since I don't have or particularly want that hack on my site. I was also getting the same error garoboldy was having before I removed the 'member of the day' section.
Nice hack, but unfortunatly I don't think I'm going to be able to use it. I've been using a slightly modified version of vBhome to include a bar down the left side of all my pages with user's info, online users, buddy lists, and etc. I use SSI to include the file and it works fine on all my HTML pages, but I can't get it to work on any of my other PHP scripts. I've tried this hack, webwelcome, coologin, and probably one or two more, yet none of them seem to work with another PHP script. I've tried using SSI somewhere in the script and the PHP include function, but had no luck with either. It will either display the info as if a user is not logged in and not let them log in from that page, or it will complain about header information already being sent out. If anyone has made this hack or a similar one work with another PHP script or knows how to I would be forever greatful and even give them my first born.
Reply With Quote
  #23  
Old 09-15-2002, 05:32 AM
weeno weeno is offline
 
Join Date: Jan 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem when trying to install it on a different site than my forums (but on the same server).

The problem, I think is that globals.php require's files that are in the admin directory.

Globals.php refers to the admin directory as "./admin" so... the partial fix is to create a symbolic link in the directory you are installing the hack to the admin directory

ln -s /full/path/to/admin admin

Now, i have a header error though... trying to set cookies or something

Warning: Cannot add header information - headers already sent by (output started at /home/chaosmin/public_html/portal/test2.php:15) in /home/forums/public_html/admin/functions.php on line 1573

Warning: Cannot add header information - headers already sent by (output started at /home/chaosmin/public_html/portal/test2.php:15) in /home/forums/public_html/admin/functions.php on line 1573
Reply With Quote
  #24  
Old 09-15-2002, 06:41 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's pretty much the same problem I'm having whenever I try to use this script (or something similar) with another PHP script. I don't know that much about PHP, but I'm guessing you can't have 2 different scripts sending out headers.
Reply With Quote
  #25  
Old 09-16-2002, 07:16 AM
Colon33
Guest
 
Posts: n/a
Default

UPDATE OF ULIMATE STATS HACK! The Ultimate stats hack now features the total threads and posts since your last visit!
----------------
How's it going guys, i just decided to toss this in there cause i was bored. Hence its not a Large Update.

------
Coming in Version 3.0:

Whos Online
Total Members on a Day Alltime
Most users ever online a day Alltime
Users who have visited the site/board already today
Send PM via Website Home Page
PM notification on website Home Page
And so much more.
----------
**Possible RPG modification integration**

Display your board character/stats/money...etc.

have Fun!.. and remember, always wear a condom... especially when hacking VB!! lol
Reply With Quote
  #26  
Old 09-16-2002, 08:35 AM
Shepski Shepski is offline
 
Join Date: Jul 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got the hack working but noticed one problem with mine. the topthread starter user id is set to 1, the same as the top poster. it displays the right username but dont know why it assigns the userid of 1 to it!

any ideas?

http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php

also, when i intergrate it with my homepage i get the following errors:

Warning: Cannot add header information - headers already sent by (output started at .....etc etc

how do i stop this from happening.
Reply With Quote
  #27  
Old 09-16-2002, 09:20 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Colon33
.. and remember, always wear a condom... especially when hacking VB!! lol
It's VB, not VD.

Reply With Quote
  #28  
Old 09-17-2002, 01:18 AM
Colon33
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Shepski
got the hack working but noticed one problem with mine. the topthread starter user id is set to 1, the same as the top poster. it displays the right username but dont know why it assigns the userid of 1 to it!

any ideas?

http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php

also, when i intergrate it with my homepage i get the following errors:

Warning: Cannot add header information - headers already sent by (output started at .....etc etc

how do i stop this from happening.

If you are installing this into VBHOME or VBINDEX like i see with your homepage it wont work. You cant call headers twice. You can use an iframe but thats about it for adding it already to another script.

About the User ID i dont know. Have you tried installing the top poster and threads starter? Your server and board might require you to do so. Otherwise you can just remove the LINK by the persons name. If you would please, so i know you didnt change anything on accident PASTE teh top poster and top replier sections as well as the ECHO string in here so i can take a look at it, you might have changed the URL. If anything you can always remove the LINK to the persons name.
Reply With Quote
  #29  
Old 09-17-2002, 01:21 AM
Colon33
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Garoboldo
I cant seem to get your php file to work right.
here is the error I am getting.

Database error in vBulletin 2.2.7:

Invalid SQL: SELECT userid,username
FROM user
WHERE userid<>
AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2)
ORDER BY RAND()
LIMIT 1
mysql error: You have an error in your SQL syntax near 'AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2)
' at line 4

mysql error number: 1064

Date: Thursday 12th of September 2002 07:43:03 AM
Script: http://www.evolutionaryconcepts.com...m/boardstat.php
Referer:


it says /forum/forum/boardstat.php but there is no forum/forum
just /forum on my site.
I placed the php file in the vb root directory...and got this...when I put it in my main directory I get a 404 error not found page....
.

Garoboldy, either install the member of the day hack or just delete this part and remove it from the echo. This should help. You board seems to require the hack to be installed on the index iteself. Its not a big hack by no means.
Reply With Quote
  #30  
Old 09-17-2002, 07:24 AM
Shepski Shepski is offline
 
Join Date: Jul 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Colon33



If you are installing this into VBHOME or VBINDEX like i see with your homepage it wont work. You cant call headers twice. You can use an iframe but thats about it for adding it already to another script.

About the User ID i dont know. Have you tried installing the top poster and threads starter? Your server and board might require you to do so. Otherwise you can just remove the LINK by the persons name. If you would please, so i know you didnt change anything on accident PASTE teh top poster and top replier sections as well as the ECHO string in here so i can take a look at it, you might have changed the URL. If anything you can always remove the LINK to the persons name.
Whats VBHOME and VBINDEX? My homepage is made up by me and Mr Dreamweaver. I have called other scripts up that utilise the forums with no problems that get displayed on my homepage.

I woiuld like to have the top thread starter displayed with a link if possible as it is a neat feature.

Code:
// Top poster
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");

// Top Threads starter
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");

<font size=1 face=verdana>The Current Top Poster is: <a href=http://www.dvd-swaps.co.uk/dvd2001/dvdforums/member.php?&action=getinfo&userid=$topposters[userid]><b>$topposters[username]</b></a></font>($topposters[posts])<br>
<font size=1 face=verdana>The Current Top Thread Starter is: <font color=red><a href=http://www.dvd-swaps.co.uk/dvd2001/dvdforums/member.php?&action=getinfo&userid=$toptstarter[postuserid]><b>$toptstarter[postusername]</b></a></font>($toptstarter[count])</td></tr></table>";
http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php - it displays everything corect except the id number which is wierd.
Reply With Quote
  #31  
Old 09-18-2002, 02:02 PM
Shepski Shepski is offline
 
Join Date: Jul 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it working on home page except for the topthreadstarter id thing. put all the code except for the echo stuff at the beginning of my index code before the <htML> tag and put the echo stuff where i wanted it to display on the page. works a treat

http://www.dvd-swaps.co.uk
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:39 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.04988 seconds
  • Memory Usage 2,308KB
  • 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
  • (7)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete