vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - [WIDGET] Forum Stats (https://vborg.vbsupport.ru/showthread.php?t=236403)

COL NIL SATIS 10-28-2010 06:29 PM

Quote:

Originally Posted by zulfiqar.halari (Post 2024301)
This widget is not working in my Forum as i am not using CMS, rather i want to use it in side bar of my vBulletin forum but its not working and showing as blank.

Let me know whats the correct code to display it in our forum widget side bar.

Regards

any ideas guys ...will this work in the side blocks???

goshalim 10-30-2010 04:03 AM

Quote:

Originally Posted by axix20xx (Post 2024196)
Same Here for this and Recent Thread az so ...



So how can we fix It ?

Ok Guys i found it how it works !!!!

Go to tha admin panel and open the widgets section
Then find the widget which you creat and then press configure.

Then delete what is in the box and copy again the PHP code.

press Ok and thats it !!!!

goshalim 10-30-2010 04:05 AM

Quote:

Originally Posted by Brew (Post 1989892)
All I get is today's date :(


Ok Guys i found it how it works !!!!

Go to tha admin panel and open the widgets section
Then find the widget which you creat and then press configure.

Then delete what is in the box and copy again the PHP code.

press Ok and thats it !!!!

soul86 12-01-2010 08:55 AM

So nice man . Thank you

RedHacker 12-10-2010 06:41 AM

I have 4.1.0 Version and when login show all number of members. When refresh the page at the members stats missing three members. Why....?

chriske 12-10-2010 12:49 PM

They are probaply in the usergroup: users awaiting email confirmation.

LuucEarth 12-13-2010 02:03 AM

Thank you very much.

Ive used this with some slight modifications to add the ability to track Active(posted in forums in the last 2 weeks) members of the armies in our tournaments.

ehsanix 01-05-2011 06:14 AM

If I want
The destination would be on our website indexes on a blank page php
What do I do?

traen 01-30-2011 05:25 PM

Thanks worked like a charm on 4.1.1.

fidelTFG 02-24-2011 12:42 AM

How do I get rid of the php logo on the template?

Joe Blow 02-27-2011 07:07 PM

Quote:

Originally Posted by Robert Carver (Post 2031143)
1. The total number of members shown in the widget does not correspond with the total number shown on the forumhome page.

I am experiencing the same issue. I have a private forum that I do not want included in the Total Posts. I would like to know how to get the widget to display the same number of posts as the Forum Home displays.

Joe Blow 05-20-2011 04:10 PM

Quote:

Originally Posted by Joe Blow (Post 2167634)
I am experiencing the same issue. I have a private forum that I do not want included in the Total Posts. I would like to know how to get the widget to display the same number of posts as the Forum Home displays.

Anyone?

toxin 07-01-2011 01:23 PM

You can change the first few lines to get more accurate thread and post counts (and to display the same numbers as the stats block on the forumhome):


PHP Code:


// forum stats start 
$vboptions[bburl] = $vbulletin->options[bburl];
$numbersmembers $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " TABLE_PREFIX "user"); 
$numbermembers number_format($numbersmembers['users']); 

$counter=$db->query_first("SELECT sum(replycount) as posts FROM " TABLE_PREFIX "forum");
$totalposts=number_format($counter['posts']); 

$counter=$db->query_first("SELECT sum(threadcount) as threads FROM " TABLE_PREFIX "forum");
$totalthreads=number_format($counter['threads']); 

// forum stats end 


MySaltyreef 07-10-2011 12:12 AM

just what the doctor ordered, thanks ! nominated

Joe Blow 07-18-2011 07:29 AM

Quote:

Originally Posted by toxin (Post 2215452)
You can change the first few lines to get more accurate thread and post counts (and to display the same numbers as the stats block on the forumhome):


PHP Code:


// forum stats start 
$vboptions[bburl] = $vbulletin->options[bburl];
$numbersmembers $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " TABLE_PREFIX "user"); 
$numbermembers number_format($numbersmembers['users']); 

$counter=$db->query_first("SELECT sum(replycount) as posts FROM " TABLE_PREFIX "forum");
$totalposts=number_format($counter['posts']); 

$counter=$db->query_first("SELECT sum(threadcount) as threads FROM " TABLE_PREFIX "forum");
$totalthreads=number_format($counter['threads']); 

// forum stats end 


You da man toxin!!!!!

Thank you, much appreciated! :)

kylek 08-06-2011 12:06 AM

Works great except for the new member link it makes. In our case it adds an "s" to forum in the link to the members profile.

/forums/member.php?

Anyone know how to change that?

mikkster 08-29-2011 12:12 PM

works fine with 4.1.4

Thank you for this one!

doctorsexy 08-29-2011 01:30 PM

Works with 4.1.5...thank you

ptceuro 04-01-2012 10:00 PM

Awesome! I tried to do this a while ago but failed miserably. Thanks

Onkeltyson 05-18-2012 03:34 PM

Thanks for this ;-)

Konsoleplanet 09-03-2012 06:51 PM

you have this code for this stats ?

https://vborg.vbsupport.ru/external/2012/09/30.jpg

car20 12-31-2012 02:15 AM

thanks-installed

Jpolola 04-12-2013 01:23 PM

Thank you! works on 4.2 PL3

WriteToEnlight 06-23-2019 11:29 PM

"

( Maybe something like a "rough draft" at the moment ..? )

Maybe something like looking a bit different than pictured in Vbulletin 4.2.5 at this time ?

( With a PHP symbol by.. in the "widget" ? )

"


All times are GMT. The time now is 10:10 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.01617 seconds
  • Memory Usage 1,782KB
  • 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
  • (2)bbcode_php_printable
  • (6)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
  • (24)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