Version: 1.2, by becafuel
Developer Last Online: May 2008
Category: Mini Mods -
Version: 3.6.2
Rating:
Released: 12-09-2006
Last Update: Never
Installs: 27
Uses Plugins
Additional Files
No support by the author.
This small mod will tell you some small stats about where a member is posting : in which forums and what it represents against his total number of messages (see screenshot below. sorry it's a french screenshot ).
It respects your forums ordering and groups them by category, with a total by category.
Php code to place in the "modcp" dir, filename "usermess.php" :
PHP Code:
<?php
// ######################## usermess.php ###########################
//
// Quick stats for member's number of messages.
//
// Auteur : Bec ? Fuel
// Date : December, 10 2006
// Version : 1.2
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
@set_time_limit(0);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('style','cpuser','user','forum','search');
$specialtemplates = array('products');
becafuel: You know what? Right now I got an idea...
Do you know the hack Top Posters In Month X from Cybernetec? I got the idea to integrate your code with this one. What do you think? Is that possible? I'm goin to start tomorrow to try it. Would you please so kind to help me? Whenever you have time of course. No need to rush -Mike
It's not a bad idea, but I think you should contact Cybernetec before...
Btw, I will help you as much as I can, of course.
Quote:
Originally Posted by yingzhou
I like it! Sound very interest. Will wait to try your mod. Thank becafuel, I did it. But can I place the menu into ACP? No need to show it in the ModCP.
It's a matter of choice I think its place is in ModCP, that's why I've put it there. I will post the XML file ASAP for the ACP.
Most noticeable change : forums are now correctly ordered. That is : same order than your layout.
It also shows forum with 0 (zero) messages.
A new variable that you should modify in the above source code : $phrase_percentage. This is the translation for french "Par rapport au total", which could be "Compared to total number of messages" in english.
As I didn't want to create a vbphrase only for this one, I've kept it in a variable.
Next version change will add the option to include or not forum with no messages.
For the second question, it's not a matter of speed, IMHO. XML method requires vbphrases to be created for your options & menu title in admincp, not with modcp menus.
Although you can work without vbphrases in admincp, options and titles will be displayed like *[your_text]*, meaning you missed some vbphrases. See attached screenshot.
This is one of the two reasons why I've put this mod in the modcp section. I didn't want to play with xml and phrases for only one option in a menu. In a way, we can say it's faster to code for me, but code is not faster either way