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)

Robert Carver 05-03-2010 02:36 PM

I have implemented this widget on my site, but I seem to have a few issues.

1. The total number of members shown in the widget does not correspond with the total number shown on the forumhome page.

2. The newest member does not correspond with what is on my home page. Does VB4 nowonly show members that are "registered" and not just awaiting email confirmation?

3. The link to the newest member does not point to the forum directory, and clicking on it gives a "page not found" error. Instead, it points to member.php in my root.

Anyway help would sure be appreciated! Thanks in advance.

ArminTECH 05-17-2010 05:37 AM

tagged

Filgga 06-03-2010 02:30 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

None responded to this... SAD

cmiller1014 07-11-2010 01:33 AM

All it does it shows today's date. Sounded good, but had to remove it.

7thSENSE 07-21-2010 06:09 AM

Did you forget to copy the widget's code into the widget? :)

Besides, I can confirm the issues from Robert Carver.

MrD 08-15-2010 09:26 AM

Hi,
in VB4.0.6 the CMS are not displayed if the Widget is active.
Only a whiteSite, that the Website are not displayed

chriske 08-28-2010 10:28 PM

How can i edit this widget so that only the members who confirmed their email address show up in the forum stats (just like on the bottom of the forum itself?)

customcolor 09-14-2010 02:39 AM

Quote:

Originally Posted by Robert Carver (Post 2031143)

3. The link to the newest member does not point to the forum directory, and clicking on it gives a "page not found" error. Instead, it points to member.php in my root.

i found out how to direct it to the forums folder...it works for me now...here is all the code i have and its just like the first post with the direction edit and the time thing at the top too

PHP Code:

$output date(vB::$vbulletin->options['dateformat']) . "<br />\n";



ob_start();
global 
$vbulletin$db$vbphrase;
//Begin Forum Stats
// forum stats start
$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 COUNT(postid) AS posts, COUNT(threadid) AS threads FROM " TABLE_PREFIX "post");
$totalposts=number_format($counter['posts']);
$countthreads $db->query_first("SELECT COUNT(*) AS threads FROM " TABLE_PREFIX "thread");
$totalthreads=number_format($countthreads['threads']);
// forum stats end

// total online start
$datecut TIMENOW $vbulletin->options['cookietimeout'];
$headerguests=$db->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "session WHERE userid=0 AND lastactivity>$datecut");
$headerusers=$db->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM " TABLE_PREFIX "session WHERE " TABLE_PREFIX "session.userid>0 AND " TABLE_PREFIX "session.lastactivity>$datecut");
$headerguests=$headerguests[count];
$headerusers=$headerusers[count];
$totalonline=$headerguests+$headerusers;
// total online end

// get newest member name and userid start
$getnewestmember=$db->query_first("SELECT userid, username FROM " TABLE_PREFIX "user WHERE userid=$numbersmembers[max]");
$newusername $getnewestmember['username'];
$newuserid $getnewestmember['userid'];
// get newest member name and userid end

 //End Forum Status
//SideBar - Begin forum Stats
$sb_stats='
<table width="100%" align="center"> <tr> <td class="" align="left"> <div class="smallfont"> <strong>Number of Members: </strong> '
.$numbermembers.'<br /> <strong>Total Threads: </strong>'$totalthreads.'<br /> <strong>Total Posts: </strong>'$totalposts.'<br /> <strong>Currently Online: </strong>'$totalonline.'<br /> <br /> <strong>Newest Member:</strong> <a href="'.$vboptions[bburl].'/forums/member.php?u='.$newuserid.'-'.$newusername.'"><b>'.$newusername.'</b></a> </td> </tr> </table>';
//SideBar = End forum Status
echo $sb_stats;
$output=ob_get_contents();
ob_end_clean(); 


chriske 10-13-2010 09:06 PM

Quote:

Originally Posted by chriske (Post 2090864)
How can i edit this widget so that only the members who confirmed their email address show up in the forum stats (just like on the bottom of the forum itself?)

hate to bump it, but it bugs me :P

goshalim 10-28-2010 04:56 PM

Hi i copy the code and it came out the calender !!!!!!!!!insteat of the stats


All times are GMT. The time now is 09:29 PM.

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.01327 seconds
  • Memory Usage 1,762KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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