PDA

View Full Version : Social Group and Album Enhancements - Social Group Statistics in Categories Listing


vbboarder
02-06-2009, 10:00 PM
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.?

MAKE SURE TO CLICK INSTALL;)
(https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=204581)

vbboarder
02-07-2009, 07:15 PM
Fixed the TABLE_PREFIX bug in v1.0.0. Reupload all files and reimport the 1.0.1 product xml file with allow overwrite.

Huy Ho?ng
02-08-2009, 06:41 AM
Import the file groupstats_vba.xml, you place?

alehawk
02-08-2009, 04:02 PM
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?

RvG2
02-08-2009, 04:42 PM
very very nice mod! :)

thanks for sharing

kleinschwanz
02-08-2009, 08:58 PM
However... when I enable this hack it shows me following:

Database error in vBulletin 3.8.1:

Invalid SQL:
SELECT groupid, name, visible, discussions, picturecount, members, lastpost, lastupdate,
dateline AS createtime FROM socialgroup WHERE groupid IN ();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
Error Number : 1064

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...

PakFuse
02-09-2009, 12:10 AM
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.


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?

kleinschwanz
02-09-2009, 12:18 AM
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

PakFuse
02-09-2009, 12:38 AM
^ 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

vbboarder
02-09-2009, 01:42 AM
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.

Huy Ho?ng
02-09-2009, 02:53 AM
Has successfully installed. Very good

vbboarder
02-09-2009, 03:53 PM
Has successfully installed. Very good
Glad to hear it works fine :)

alehawk
02-09-2009, 04:43 PM
it worked. tnx!

Huy Ho?ng
02-09-2009, 10:27 PM
I then upgraded that version is still 1.0.0? (selected override mode)

vbboarder
02-09-2009, 10:44 PM
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

Huy Ho?ng
02-10-2009, 07:23 AM
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

Thanks for the support :)

vbboarder
04-01-2009, 04:56 PM
Updated: version 1.1.0 was just released. New feature: 2-3 queries total with no file editing required. You do not need to reinstall the VBA module if you’re using it. It is recommended that you install this update.

godofwar2
04-11-2009, 03:08 PM
Thanks, working fine in VB 3.8.2.

DarkSoroush
06-16-2009, 03:19 PM
Any support for right-2-left?!

vbboarder
10-01-2009, 03:23 PM
Fixed a minor bug - updated to version 1.1.5. Added RTL language support. Updated VB & VBA templates. To update, reinstall xml file, allow overwrite, and revert updated templates.

Huy Ho?ng
02-10-2010, 12:44 PM
Uninstall because used for vbb 4.x

Leo Brazil
02-10-2010, 01:27 PM
No doubt, this one on 4.0 is very much needed.

navidmoj
07-10-2011, 03:57 PM
is there any way to show only specific categories?

bada_bing
01-31-2012, 09:37 PM
tried to install on vb 3.85 and got a database error, plugin removed? Sounds like a nice mod if it would work.

Anyone install on vb 3.85?