The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[WIDGET] Forum Stats Details »» | |||||||||||||||||||||||||||
This is a simple widget to display some forum stats.
It would really like to see this combined with the Currently Online and Site Visitor's Widgets... But until then, I am using this PHP Widget... Feel free to use/hack/slash the code for your own needs... Navigate to AdminCP -> CMS -> Widgets. Create a PHP Type Widget and paste the below code. PHP Code:
Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
|
#23
|
|||
|
|||
Actually with this code all I get is the date.
What I was asking for was attachment statistics. In the AdminCP > Attachments > Attachment Statistics you get data for several things: Unique / Total Attachments 83,938 Attachment Filesize Sum 12.61 GB Disk Space Used 12.34 GB Storage Type Attachments are currently being stored in the filesystem at /var/www/site/ Average Attachment Filesize 157.6 KB Total Downloads 3,840,776 |
#24
|
|||
|
|||
Quote:
Sorry this was not the purpose of this widget. |
#25
|
||||
|
||||
If the forum in is in the forum folter?
|
#26
|
|||
|
|||
Maybe include Top poster ?
|
#27
|
|||
|
|||
^^^Yeah I was going to say the same thing...kind of like 3.8 had on vbadvance module.
Members: 1,976 Threads: 8,585 Posts: 111,082 Top Poster: XXXXXXXX (6536) Welcome to our newest member: XXXXXXXXX |
#28
|
|||
|
|||
great mod, installed and works great, for the guys/gals getting the time stamp only...make sure you are configuring the php and not putting it in the description box...same thing I did until I realized I was being silly.
just if we could get the top posted code... Me + PHP Coding = fail |
#29
|
|||
|
|||
Same Here for this and Recent Thread az so ...
So how can we fix It ? |
#30
|
|||
|
|||
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 |
#31
|
|||
|
|||
Installed and working.
If you want it translated to spanish, here you have the code: Code:
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>Numero de Miembros: </strong> '.$numbermembers.'<br /> <strong>Temas: </strong>'. $totalthreads.'<br /> <strong>Mensajes: </strong>'. $totalposts.'<br /> <strong>Usuarios en linea: </strong>'. $totalonline.'<br /> <br /> <strong>?ltimo miembro registrado:</strong> <a href="'.$vboptions[bburl].'/member.php?u='.$newuserid.'"><b>'.$newusername.'</b></a> </td> </tr> </table>'; //SideBar = End forum Status echo $sb_stats; $output=ob_get_contents(); ob_end_clean(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|