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)

romulus 12-11-2004 12:52 AM

I'm getting errors for everyline that has "$DB_site" in it. I think this is the question you've answered above, but do I just place this with my database username? Or what?

bgtking 12-11-2004 09:18 PM

Anyone know how to make it display a default avatar if a member does not have an avatar?

BlackxRam 12-26-2004 06:47 AM

You might want to try the default avatar mod for users, or change your avatars to file based instead of database type. However, Currently I am really too busy to work on any coding at all. If someone feels upto making some changes to the above code, I will repackage the zip file above with their fixes and so on and I will add credit where credit is due.

I would appreciate help from anyone who is interested in expanding this addon. :)

BlackxRam 01-02-2005 07:10 AM

Still looking for help to speed this hack up. :) The updated Avatar fix is apparently working just fine.

scottishcruise 01-02-2005 01:00 PM

just installed, seems to work fine altho;

it shows both the User's logged in details (PMs, avatar etc) AND the 'Welcome guest, sign in etc etc) stuff, can it not be an either or? (as I'm loading the php page in a small 495x150iFrame and it can be all squashed and needscrolling when all that info is shown.

*edit* - right kept playing about with it, took out the avatar and the 'top poster, top thread starter' bits and took out the 'welcome guest, login' bit so it would only show the users details when they came onto the page. thing is, NOW if ur not logged in, it just shows a blank page :ermm: am probably doin sumthin wrong, am a n00b to VB like, just recently switched over from phpnuke.

BlackxRam 01-03-2005 10:04 AM

I am not sure what you mean.

Your script should look exactly like this: https://vborg.vbsupport.ru/attachmen...chmentid=17770

Only with your information replaced. Can you please post a screenshot of what your script looks like?

I think you may have changed something that you shouldnt have changed. Did you set your cookies to your .domain.com? For example mine would be, .mogusland.com.

You also need to ensure that all the paths and places to edit INSIDE the file are changed as per the instructions. :)

BlackxRam 01-03-2005 10:11 AM

btw when i visit your boardstat.php file.. i get header errors. You do not need to add any body or head tags to this file.

MajorFm.com 01-03-2005 07:39 PM

Does this hack work with vb3.0.3?

scottishcruise 01-03-2005 07:57 PM

Quote:

Originally Posted by BlackxRam
btw when i visit your boardstat.php file.. i get header errors. You do not need to add any body or head tags to this file.

thanks for reply m8, I mustv'e done it wrong first time, downloaded file again and went thru it step by step, works a treat lol. ^^ the header info I put in was to set the margins to 0 all round for putting it in an iFrame, al get around that tho.

great hack! ;)

BlackxRam 01-03-2005 10:34 PM

Quote:

Originally Posted by MajorFm.com
Does this hack work with vb3.0.3?

No reason why it shouldn't. However I am still using 3.0.1 because my forum has alot of mods.

MajorFm.com 02-19-2005 05:37 PM

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

BlackxRam 02-20-2005 12:22 AM

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.

MajorFm.com 02-20-2005 02:48 AM

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:

eblivion 02-20-2005 08:06 PM

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.

eblivion 02-21-2005 12:52 PM

I figured out a workaround. It doesn't give all the board stats, but it's suitable for now.

BlackxRam 02-22-2005 01:12 PM

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 ?

Indy 02-22-2005 01:40 PM

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!

MajorFm.com 02-22-2005 04:05 PM

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...

Indy 02-22-2005 05:46 PM

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!!

axi 03-14-2005 03:26 AM

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

cheers

BlackxRam 04-19-2005 08:42 AM

AXI the instructions are in the zip file and all over this thread, use a php command or a ssi include.

I have never had any problems with the script wanting to cache. Perhaps your browser settings are keeping stored pages longer and not refreshing.

im still at a loss Major, do you have any other hacks installed which may affect the post counts?

Slapyo 04-19-2005 02:12 PM

actually this doesn't display the stats correctly. if you have deleted posts or threads in your forum, but not physically deleted them, it will still show up in these stats, but it doesn't show up in the forum stats. here is the code i use to grab the stats from the forums itself.

PHP Code:

$specialtemplates = array(
    
'userstats',
);

chdir("./forums/");
require_once(
"./global.php");
require_once(
"./includes/functions_forumlist.php");
chdir("../");

// Forum Stats
cache_ordered_forums(1);

$totalthreads 0;
$totalposts 0;
if (
is_array($forumcache))
{
    foreach (
$forumcache AS $forum)
    {
        
$totalthreads += $forum['threadcount'];
        
$totalposts += $forum['replycount'];
    }
}
$totalthreads vb_number_format($totalthreads);
$totalposts vb_number_format($totalposts);
$userstats unserialize($datastore['userstats']);
$totalmembers vb_number_format($userstats['numbermembers']); 


BlackxRam 06-01-2005 11:27 AM

Quote:

Originally Posted by Slapyo
actually this doesn't display the stats correctly. if you have deleted posts or threads in your forum, but not physically deleted them, it will still show up in these stats, but it doesn't show up in the forum stats. here is the code i use to grab the stats from the forums itself.

Actually it does display the stats correctly, lol. It does display how many total posts your forum has, not how many you have and are also hidden heh.

The numbers numbers were meant to be an accurate account of total posts, if something is soft deleted, its not really gone, just hidden. I say, if your going to delete something... just delete it lol ;)

Slapyo 06-01-2005 02:05 PM

if you delete it you lose the IP address of the poster. if you have a person who many be a repeat offender, soft deleting posts will allow you to see the other posts made by the same IP. obviously doesn't work for everyone, but it does work for quite a bit of people. if you hard delete then it is gone and there is no record. :/

BlackxRam 06-01-2005 07:53 PM

Thats why there is user notes. ;) =)

Slapyo 06-02-2005 05:37 AM

but you have to sort through the notes. with this, you just click the ip link in the post and it tells you everything. :)

d2sector 07-14-2005 12:03 PM

How do you get around the
Quote:

Unable to add cookies, header already sent.
error?

Snetty 07-25-2005 10:43 AM

does this work with 3.5?

SirJonathan 11-04-2005 05:18 PM

*bump*.. Anyone know if this works with 3.5?

Dark Riku 11-23-2005 12:41 AM

Quote:

Originally Posted by Indy
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:


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!!

Has anyone found out the exact code? Thanks

Dark Riku 11-23-2005 01:53 AM

I found out why its doing this, but i dont no how to change it... its caused because the cookies are being stored in the domain on the non-vb site. when you hit logout, it loging out cookies on vb forum, and the cookies are seperate...


All times are GMT. The time now is 04:16 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.01224 seconds
  • Memory Usage 1,818KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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