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
  #42  
Old 02-05-2003, 02:15 AM
suzannev's Avatar
suzannev suzannev is offline
 
Join Date: Dec 2002
Location: Pennsylvania
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't find any restrictions to stay to 3 columns....I changed it easily to fit my site. I love it and can't wait for the extras!
Reply With Quote
  #43  
Old 02-18-2003, 01:30 AM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't see this anywhere, but is there a way to have this hack ignore certain users? Say I didn't want the admin to show up as the top thread starter...

Thanks!
Reply With Quote
  #44  
Old 02-20-2003, 01:57 PM
suzannev's Avatar
suzannev suzannev is offline
 
Join Date: Dec 2002
Location: Pennsylvania
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am very new to this hacking thing, but I spent some time trying to do this myself, and I shocked myself! I added this to the boardstat.php hack so I could put it on a non-vb page. I hope I do not confuse anyone, but here is what I did and a screen shot. I am very pleased with the results.

in the boardstat.php file I added this to the end of the "member of the day stuff":

if ($memberoftheday[userid]!=0) {
$avatarurl2=getavatarurl($memberoftheday[userid]);
if ($avatarurl2=='') {
$avatarurl2='images/avatars/noavatar.gif' ;
}
$avatarimage2='<img src="http://www.cacfriends.com/shareacard/forums/upload/ '.$avatarurl2.'" border="0" height=38>';
}

And at the bottom of the page just before the ?> I placed this (right HTML output):

</td>
<td width=40% align=right>
<font size=1 face=verdana>Newest member <a href=\"http://www.cacfriends.com/shareacard/forums/upload /member.php?s=&action=getinfo&userid=$newuserid\">$ newusername</a><br>
<font size=1 face=verdana>Member of the day is: <font color=yellow><b>$memberoftheday[username]</font></b><br>
<font size=2 face=verdana><b><a href=\"http://www.cacfriends.com/shareacard/forums/upload /member.php?s=&action=getinfo&userid=$memberoftheda y[userid]\">$avatarimage2</b></a><br></td></table>";

WITH THE BLUE ITEMS NEEDING TO BE CHANGED TO YOUR SITE SPECS

Everything is working just fine, here is a link to the testpage I have it on:

My test page

and a screen shot too. I hope I didn't screw anyting else up, I guess time will tell. This is more fun then I thought
Reply With Quote
  #45  
Old 02-21-2003, 03:22 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see some big problems with this, like the lack of any real instructions. I fiddled with this for about an hour, and said screw it. I really don't need it. I just wanted to show the pm box on my index page.

I can get the file to work if I install it to my /forum/ root dir, but outside of that no.

Not even when I adjust the global require tag

Second, I wouldn't want to include or iframe this, I would much rather have a template I could call up.

Plus an actually written readme would have been helpful rather some chicken jibberish directions in your first thread which left me wondering.

Its alright, but it don't work for me.

Running vb 2.3.0
Reply With Quote
  #46  
Old 02-21-2003, 07:14 PM
Colon33
Guest
 
Posts: n/a
Default

notice the VB version. !-2.2.6-!

Also there doesnt have to be any directions.. all you do is upload and go. Modifying the ECHO's is just like the modifying of a template. This is just for those users who dont want to mess with there VB files and want a easy and quick way of getting stats to there front page. I dont use 2.3.0 simply for the fact my board is too hacked. There are threads that say this hack doesnt work for 2.2.8 or even 2.2.9, much less 2.3.0.

I am working on a version for 2.3.0 so flipping out on a version thats is much older than your current board version wont help you. I suggest waiting.. or downloading a hack that will add dozens of queries to your pages.
Reply With Quote
  #47  
Old 02-21-2003, 07:15 PM
Colon33
Guest
 
Posts: n/a
Default

Btw: nicely dont suzzanev. I would have never guessed that and avatar next to the other persons name would be so neat looking. Ill put it in the next version i am working on for 2.3.0. I like it alot.
Reply With Quote
  #48  
Old 02-24-2003, 10:17 PM
sslight sslight is offline
 
Join Date: Jan 2003
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok my site is in folders:

root/sslight/index.php

and my forums are:
root/shine_forums/index.php

so this wont work, how can i get it to get the info from there?

I moved so its like this

site: root
forums: forums/global.php

still nothin I just get white.

what should I do, heres what i did I uploaded the install file you attached but unzipped and renamed forumstats.php . Then on my site i put : <?include ("forumstats.php")?> I got nothing.
Reply With Quote
  #49  
Old 03-03-2003, 10:49 PM
Drowned Drowned is offline
 
Join Date: Apr 2002
Location: Guatemala, Central Americ
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by weeno
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
That the error I'm getting... any other way to fix this? I don't have that kind of access to my server
Reply With Quote
  #50  
Old 03-04-2003, 12:01 AM
Colon33
Guest
 
Posts: n/a
Default

The boardstat.php file Gets placed into your Forums Directory.

If your forums are a subdomain... or on a different server.. it wont work. The directory paths dont stay the same across subdomains or servers.

It wont work if you REQUIRE them with PHP. You need to use an IFRAME to get the information to your main page.

Example:

forums.yoursite.com = must use Iframe

www.yoursite.com/forums = you can REQUIRE

www.notyoursite.com/forums = you need to use a Iframe but still place the boardstat.php into that forum directory.


Does this help you guys out? Link me to the boardstat.php file on your servers..if not.

Ill take a look. Be sure to not change any paths as its set the way it HAS to be set.
Reply With Quote
  #51  
Old 03-09-2003, 10:03 PM
ivi ivi is offline
 
Join Date: Dec 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, works great. For those that have their forum as subdomain thereis no need in iframes really and you can have it in your php page with other script. Blank pages etc are because of global.php, as someone pointed out. The file gets included into main index page before execution and therefore can't find includes from admin folder. You can easily fix this. Open your global.php file, at the top add variable with absolute path to your forums folder, for example:

$ahome = '/usr/www/website.com/forums';

then find and replace:

require('.admin/config.php');
with
require($ahome.'.admin/config.php');

$dbclassname="./admin/db_dbservertype.php";
with
$dbclassname=$ahome."./admin/db_dbservertype.php";

require('.admin/functions.php');
with
require($ahome.'.admin/functions.php');

require('.admin/sessions.php');
with
require($ahome.'.admin/sessions.php');

works flowlessly and you can have your boardstat.php anywhere you want, tested on 2.30, but version doesn't really metter. In boardstat.php change your
require("forums/global.php");
to whatever path of your global.php is, for most people it will be the same, for those with subdomains might differ, but shouldn't be a problem. You can't require script from different server, but I guess you could work out a solution without iframes. Just an example, on index.php request, you could call up a script, simmilar to boardstat.php from a different server, which will return boardstat values, and you just put them in, very easy.
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 09:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07482 seconds
  • Memory Usage 2,306KB
  • 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_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
  • (3)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