Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Social Group Statistics in Categories Listing Details »
Social Group Statistics in Categories Listing
Mod Version: 1.1.5, by vbboarder (Member) vbboarder is offline
Developer Last Online: Apr 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (6 votes - 5.00 average) Installs: 33
Released: 07 Feb 2009 Last Update: 01 Oct 2009 Downloads: 234
Not Supported Uses Plugins Auto-Template Additional Files  

Group Statistics in Categories Listing
This mod adds 10 features to social groups.

The categories listing page is probably the most bland VB page, only showing the category name and # of groups. This mod will make that page much more interesting and visited by adding statistics per category and overall. You can specify how many groups will be shown in each category. This mod is fully phrased. 10 features are added:
  • Show statistics for newest groups (last created).
  • Show statistics for active groups (last updated).
  • Show statistics for popular groups (most members).
  • Show statistics for photogenic groups (most pics).
  • Show statistics for talkative groups (most messages).
  • Show statistics for talkative groups (most discussions).
  • Show group icon next to unread groups. You can also specify to never show, always show, or alternate show the group icon.
  • Group search input field provided for convenient searching.
  • Show the overall group statistics in forumhome at 3 different places.
  • Show the overall group statistics in VBA blocks; links will work for both VBA installed inside and outside forum directory.
Important Notes:
  • The group statistics in VBA blocks will not show statistics for most discussions to allow cleaner presentation in 3-columns layout.
  • 2-3 queries are required for the group statistics (3 if you enable marking unread groups with icons). If you installed version 1.0, the 2 manual edits are no longer required in version 1.1 in order to achieve 2-3 queries total.
  • This mod requires VB 3.8+ and MySql 4.1+.
Installation:
  • Upload the files to their respective folders in your forum directory.
  • Import the product at Manage Products page and allow overwrite.
  • Go to VB Options > Categories’ Group Statistics to set your settings.
  • Optional: to display the tag cloud in vbAdvanced, go to VBA CMPS > Download / Upload Modules > in “Module to Upload”, select ‘groupstats_vba.xml’ (in the zip file), and click ‘Submit’. Then go to VBA CMPS > Default Settings > Main Options > add to “Portal Output Global Variables”:
groupstats
.
Version History:
1.0.0 - Initial Release.
1.0.1 - fixed table prefix bug.
1.1.0 - upgraded mod to not require file edits to reduce queries.
1.1.5 - fixed a minor bug. Added RTL language support.

Notes:
1. I read all posts for this mod so feel free to post any comments or suggestions.
2. You will be notified by e-mail for future updates if you click “Marked as Installed.” If you find this mod useful, remember to click “Nominate for MOTM.”

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	group_stats.jpg
Views:	1022
Size:	138.8 KB
ID:	94362   Click image for larger version

Name:	groupstats_home.jpg
Views:	774
Size:	128.8 KB
ID:	94363  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 07 Feb 2009, 21:15
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Fixed the TABLE_PREFIX bug in v1.0.0. Reupload all files and reimport the 1.0.1 product xml file with allow overwrite.

Last edited by vbboarder; 09 Feb 2009 at 04:09.
Reply With Quote
  #3  
Old 08 Feb 2009, 08:41
Huy Hoàng's Avatar
Huy Hoàng Huy Hoàng is offline
 
Join Date: Dec 2008
Import the file groupstats_vba.xml, you place?
Reply With Quote
  #4  
Old 08 Feb 2009, 18:02
alehawk alehawk is offline
 
Join Date: Apr 2008
It doesnt work

Database error in vBulletin 3.8.0:

Invalid SQL:
SELECT COUNT(*) AS groups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.visible DESC, club.name) AS CHAR(255)) AS postgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.discussions DESC, club.name) AS CHAR(255)) AS topicgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.picturecount DESC, club.name) AS CHAR(255)) AS picsgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.members DESC, club.name) AS CHAR(255)) AS hotgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.dateline DESC, club.name) AS CHAR(255)) AS newgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.lastupdate DESC, club.name) AS CHAR(255)) AS activegroups
FROM socialgroup AS club WHERE club.groupid IS NOT NULL;

MySQL Error : Table 'adforop_000032.socialgroup' doesn't exist
Error Number : 1146
Request Date : Sunday, February 8th 2009 @ 02:56:10 PM
Error Date : Sunday, February 8th 2009 @ 02:56:10 PM
Classname : vB_Database
MySQL Version : 5.0.32-Debian_7etch8-log

For some reason didnt add the table prefix to the query, it will query from table socialgroup instead of myprefix_socialgroup.

Can that be fixed?
Reply With Quote
  #5  
Old 08 Feb 2009, 18:42
RvG2's Avatar
RvG2 RvG2 is offline
 
Join Date: Jan 2007
very very nice mod!

thanks for sharing
Reply With Quote
  #6  
Old 08 Feb 2009, 22:58
kleinschwanz kleinschwanz is offline
 
Join Date: Jan 2007
It doesn't work...

However... when I enable this hack it shows me following:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It is not the edit, as I haver undone it with the editor... but the failure still showed up. I can only browse index.php when the mod is disabled... I guess this is not what you wanted...

Last edited by kleinschwanz; 08 Feb 2009 at 23:06.
Reply With Quote
  #7  
Old 09 Feb 2009, 02:10
PakFuse PakFuse is offline
 
Join Date: Jan 2009
I am getting a very similar error ... except that my MySQL version is 5.0.51a-log

I first installed noedit version and had to uninstall it due to this error.

I then, installed 2edit version and edited the group.php as advised; same error...

I have disabled the MOD but if this can be fixed or pointed out why such an error is occuring, that would be a great help.


Originally Posted by alehawk View Post
It doesnt work

Database error in vBulletin 3.8.0:

Invalid SQL:
SELECT COUNT(*) AS groups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.visible DESC, club.name) AS CHAR(255)) AS postgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.discussions DESC, club.name) AS CHAR(255)) AS topicgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.picturecount DESC, club.name) AS CHAR(255)) AS picsgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.members DESC, club.name) AS CHAR(255)) AS hotgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.dateline DESC, club.name) AS CHAR(255)) AS newgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.lastupdate DESC, club.name) AS CHAR(255)) AS activegroups
FROM socialgroup AS club WHERE club.groupid IS NOT NULL;

MySQL Error : Table 'adforop_000032.socialgroup' doesn't exist
Error Number : 1146
Request Date : Sunday, February 8th 2009 @ 02:56:10 PM
Error Date : Sunday, February 8th 2009 @ 02:56:10 PM
Classname : vB_Database
MySQL Version : 5.0.32-Debian_7etch8-log

For some reason didnt add the table prefix to the query, it will query from table socialgroup instead of myprefix_socialgroup.

Can that be fixed?
Reply With Quote
  #8  
Old 09 Feb 2009, 02:18
kleinschwanz kleinschwanz is offline
 
Join Date: Jan 2007
I guess it can... if oyu have a new install create at least one group and then enable the product again... it worked for me
Reply With Quote
  #9  
Old 09 Feb 2009, 02:38
PakFuse PakFuse is offline
 
Join Date: Jan 2009
^ tried that, got the following error:

Database error in vBulletin 3.8.1:

Invalid SQL:
SELECT COUNT(*) AS groups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.visible DESC, club.name) AS CHAR(255)) AS postgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.discussions DESC, club.name) AS CHAR(255)) AS topicgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.picturecount DESC, club.name) AS CHAR(255)) AS picsgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.members DESC, club.name) AS CHAR(255)) AS hotgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.dateline DESC, club.name) AS CHAR(255)) AS newgroups,
CAST(GROUP_CONCAT(club.groupid ORDER BY club.lastupdate DESC, club.name) AS CHAR(255)) AS activegroups
FROM socialgroup AS club WHERE club.groupid IS NOT NULL;

MySQL Error : Table 'pakfuse_vbulletin_011409.socialgroup' doesn't exist
Error Number : 1146
Request Date : Sunday, February 8th 2009 @ 09:38:12 PM
Error Date : Sunday, February 8th 2009 @ 09:38:12 PM
Script : [url of my forum]
Referrer : [URL of the group I created]
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.51a-log
Reply With Quote
  #10  
Old 09 Feb 2009, 03:42
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Sorry guys about the Sql error. There were 3 queries where I forgot to prefix the name of the table with TABLE_PREFIX. This error does not affect users who don't use table prefixes. I think I caught all the prefix problems now. The zip files were updated.

To Update: For both versions of this mod, reupload all files to your forum directory AND reimport the product xml file with allow overwrite.

Last edited by vbboarder; 09 Feb 2009 at 03:48.
Reply With Quote
  #11  
Old 09 Feb 2009, 04:53
Huy Hoàng's Avatar
Huy Hoàng Huy Hoàng is offline
 
Join Date: Dec 2008
Has successfully installed. Very good
Reply With Quote
  #12  
Old 09 Feb 2009, 17:53
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
Originally Posted by Huy Hoàng View Post
Has successfully installed. Very good
Glad to hear it works fine
Reply With Quote
  #13  
Old 09 Feb 2009, 18:43
alehawk alehawk is offline
 
Join Date: Apr 2008
it worked. tnx!
Reply With Quote
  #14  
Old 10 Feb 2009, 00:27
Huy Hoàng's Avatar
Huy Hoàng Huy Hoàng is offline
 
Join Date: Dec 2008
I then upgraded that version is still 1.0.0? (selected override mode)
Reply With Quote
  #15  
Old 10 Feb 2009, 00:44
vbboarder's Avatar
vbboarder vbboarder is offline
 
Join Date: Jun 2008
The version number in the xml file was not updated - it will not affect the functionality of the mod or VB. If you want to update it, simply go to Manage Products > Categories' Group Statistics > and update the version # to 1.0.1
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:40.

Layout Options | Width: Wide Color: