The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forum Statistics in FORUMDISPLAY Details »» | |||||||||||||||||||||||||
This hack displays in the FORUMDISPLAY, a box where some stats of the forum are displayed.
These informations are : - Total of Views - Total of replies - Total of views - Average rating - Last trhead created - Total of threads - Best poster - Total of posts - Last poster A scrolling menu at the bottom of the box displays the last 3 statistics shown under This statistics box is collapseable/expandable such as others elements of VB3. Ce hack permet d'afficher dans le forumdisplay de vos forums, une boite d'affichage dans laquelle des stats sur le forum sont affich?es. Les infos affich?es sont : - Nombre de sujets - Nombre de r?ponses - Nombre de vues - Moyenne des votes - Dernier sujet cree par - Nombre de sujets - Meilleur posteur - Nombre total de posts - Titre du dernier sujet - Dernier posteur un menu deroulant permet d'afficher les 3 dernieres stats present?es plus haut La boite de stats est retractable et sa position enregistr?e dans le cookie permet de la maintenir ferm?e/ouverte meme apres un changement de page. Notez toutefois que 5 requetes sont ajout?es pour ce hack. Installation time : 7 min Templates to modify : 1 Templates to add : 1 Files to upload : 0 Files to modify : 1 Phrases to add : 10 Query to run : 0 :devious: [HIGH]This hack has been released by VBulletinDev's team : http://www.vbulletindev.net Ce hack a ete realis? par la team de VBulletinDev et est telechargeable en FR sur http://www.vbulletindev.net[/HIGH] Show Your Support
|
Comments |
#32
|
||||
|
||||
Well, I hate to differ with you but all the information from the queries in my hack is 100% correct. It has been tested thoroughly. Yes, I am using the same cache type that I used for the forumhome stats cache hack. And my hack was completely rewritten for version 2 with the cache. It only uses 1 query when reading from the cache and 6 when writing to it at the preset time. So, if queries is a big issue for anyone (and on bigger boards it usually is), then my hack will save them that.
|
#33
|
|||
|
|||
Can you install this hack on a per forum basis?
|
#34
|
||||
|
||||
Quote:
Code:
Then find : ********************************************************************* $show['forumdescription'] = iif ($foruminfo['description'] != '', true, false); $show['forumsearch'] = iif ($forumperms & CANSEARCH, true, false); $show['forumslist'] = iif ($forumshown, true, false); $show['stickies'] = iif ($threadbits_sticky != '', true, false); eval('print_output("' . fetch_template('FORUMDISPLAY') . '");'); ********************************************************************* and add above : ********************************************************************* // STATS DU FORUM par Grog6 pour VBulletinDev $sujets=$DB_site->query_first("$sujets=$DB_site->query_first("SELECT postusername, SUM( views ) AS vues FROM " . TABLE_PREFIX . "thread WHERE forumid = $forumid GROUP BY forumid ORDER BY dateline DESC"); $nb_vues = vb_number_format($sujets['vues']);"); $nb_vues = vb_number_format($sujets['vues']); $moyenne = $DB_site->query_first("SELECT AVG(votetotal/votenum) AS votes FROM " . TABLE_PREFIX . "thread where forumid=$forumid AND votenum<>0"); $moyenne['votes'] = vb_number_format($moyenne['votes']); $moyenne['votes'] = "<img src=\"images/rating/rating_$moyenne[votes].gif\" alt=\"Vote : $moyenne[votes]\">"; $meilleur = $DB_site->query_first("SELECT " . TABLE_PREFIX . "user.userid, " . TABLE_PREFIX . "user.username, COUNT(" . TABLE_PREFIX . "post.postid) AS postcount FROM " . TABLE_PREFIX . "post LEFT JOIN " . TABLE_PREFIX . "thread ON (" . TABLE_PREFIX . "post.threadid=" . TABLE_PREFIX . "thread.threadid) LEFT JOIN " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "post.userid=" . TABLE_PREFIX . "user.userid) WHERE " . TABLE_PREFIX . "thread.forumid=$forumid GROUP BY " . TABLE_PREFIX . "post.userid ORDER BY POSTCOUNT DESC LIMIT 1"); $meilleur['postcount'] = vb_number_format($meilleur['postcount']); $sujet = $DB_site->query_first("SELECT COUNT(open) AS ferme FROM " . TABLE_PREFIX . "thread WHERE forumid=$forumid AND open=0"); $forum = $DB_site->query_first("SELECT lastthread, lastposter, replycount, threadcount FROM " . TABLE_PREFIX . "forum WHERE forumid=$forumid"); $forum['posts'] = ($forum['replycount'] - $forum['threadcount']); eval('$stats .= "' . fetch_template('forumdisplay_stats') . '";'); // STATS par Grog6 ********************************************************************* |
#35
|
||||
|
||||
@Gio : it should work but I haven't tested it on vb3 Gold, I'll have to modify all my hacks for Vb3 Gold
It should be posted during the week |
#36
|
||||
|
||||
Our team has opened its support forum.
Now we will make support on our forum So if you want better support on our hacks go on our forum: http://www.vbulletindev.net/ There are not a lot of hacks for the moment but it will come. Cya soon on our forum |
#37
|
|||
|
|||
I get this message: Parse error: parse error, unexpected T_STRING in /home/ochost/public_html/forum/forumdisplay.php on line 825. What's wrong??
|
#38
|
|||
|
|||
I'm sorry to bump this thread, but I still get a parse error when installing exactly as stated in this thread. (also the fix..)
|
#39
|
|||
|
|||
Quote:
|
#40
|
|||
|
|||
My FILES MODIFICATIONS
PHP Code:
PHP Code:
but Parse error: parse error, unexpected T_STRING in /home/pcteknik/public_html/fr2/forumdisplay.php on line 816 help.. :ninja: |
#41
|
|||
|
|||
I have this error....
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|