Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top Groups Module for vBadvanced Details »»
Top Groups Module for vBadvanced
Version: 1.00, by Kaelon Kaelon is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 06-26-2008 Last Update: Never Installs: 76
Re-useable Code Translations  
No support by the author.

What is "Top Groups"?

Top Groups (aka, "Largest Groups") is a module for vBadvanced CMPS that will display in a small box the largest social groups in your online community. This is a very simple add-on (hence, its designation as a "Mini-Mod"), and is designed for people who intentionally want to tinker with the source code to play with and optimize their results.

It's my first vBulletin modification in years, and I'm generally a neophyte at this sort of stuff, so please, be gentle. That said, I'm very interested in your feedback and suggestions on how we can improve upon this module in any way, and any advice or lessons you'd like to share from your own coding experiences would be much appreciated. On a final note, the module was inspired by the work that "Oneback" did on the "Recent vB Blogs" module for vBadvanced, and he is owed my deepest thanks.

Finally, if you like this hack and install it, please:



Requirements
  • vBulletin 3.7.x Series
  • Social Groups enabled
  • vBadvanced 3.x Series
Installation

Installation is a breeze using vBadvanced's built-in "Download / Upload Module" function in the vBulletin Admin Control Panel. Simply upload/import the attached zipped topgroups.modile file, and you're all done. The .modules file will create the template and the PHP file that you require. You can then activate and position the module in any of your vBadvanced CMPS pages to your heart's content.

Customization

All actual customization is done through the "largestgroups.php" file, which was created during installation in your /forums/module directory. Simply open largestgroups.php in your favorite text editor. There are many ways in which you can customize the output of the module, and because this module is so simple, you can use it as a basic learning tool.
Changing the Number of Top Groups
The default is "5". You can edit the query by changing "LIMIT 5" to "LIMIT X", where X is the number of top groups you'd like to display in your block.

Changing the Forums Path
By default, all links are generated presuming you have installed vBulletin at "/forums" on your site. If you are using a different path, you should search-and-replace all instances of "/forums/" with the proper absolute path. For example, if you installed your forums at your site/domain-root, you would change all instances of "/forums/" to simply "/".
DemonstrationsVersion History
  • 1.0.0: Initial Release (June 26, 2008)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-30-2008, 06:45 AM
mariannet's Avatar
mariannet mariannet is offline
 
Join Date: Mar 2003
Location: Denmark
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using the Socialgroup forum funktion and all socialgroups messages now is in the groups forum, så maybe thats why.
I have just removed the "Last post by" funktion - still find this hack usefull, thanks!
Reply With Quote
  #13  
Old 07-02-2008, 01:29 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mariannet View Post
I'm using the Socialgroup forum funktion and all socialgroups messages now is in the groups forum, s? maybe thats why.
I have just removed the "Last post by" funktion - still find this hack usefull, thanks!
The "Last post by" pulls messages only from the Social Group messaging center, not from other add-ons, like Social Forums. So, you'll want to make sure that, even if you have Social Forums up, you also use Social Group messaging.
Reply With Quote
  #14  
Old 07-09-2008, 02:29 AM
uneek1 uneek1 is offline
 
Join Date: May 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks works great. Although for some reason, I had to change the largestgroups.php from linking to forums to forum...don't know why it used forums.

Thanks for the mod.
Reply With Quote
  #15  
Old 07-09-2008, 01:00 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by uneek1 View Post
Thanks works great. Although for some reason, I had to change the largestgroups.php from linking to forums to forum...don't know why it used forums.

Thanks for the mod.
I'm glad this worked for you well. Yes, I hard-coded in the /forums path, so in the customization notes above, I suggested that people who use a different path change it:

Quote:
Originally Posted by Kaelon
Changing the Forums Path
By default, all links are generated presuming you have installed vBulletin at "/forums" on your site. If you are using a different path, you should search-and-replace all instances of "/forums/" with the proper absolute path. For example, if you installed your forums at your site/domain-root, you would change all instances of "/forums/" to simply "/".
Reply With Quote
  #16  
Old 07-09-2008, 03:05 PM
S7rik3R's Avatar
S7rik3R S7rik3R is offline
 
Join Date: Mar 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks works perfectly without any hazzard ...
Reply With Quote
  #17  
Old 07-14-2008, 01:11 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by S7rik3R View Post
Thanks works perfectly without any hazzard ...
Excellent. Thanks for installing!
Reply With Quote
  #18  
Old 07-22-2008, 05:24 PM
Jon4444 Jon4444 is offline
 
Join Date: May 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like it. Anyway that each forum could have a small picture for it on the list which could be one of the pictures in the group?
Reply With Quote
  #19  
Old 07-24-2008, 12:41 AM
ade5675 ade5675 is offline
 
Join Date: Mar 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What am I doing wrong? I get the below error.
I need some help here.



Quote:
Database error in vBulletin 3.7.2:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO adv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '4,6,8,7,2,5,1,3');

MySQL Error : Unknown column '0' in 'field list'
Error Number : 1054
Request Date : Wednesday, July 23rd 2008 @ 06:38:56 PM
Error Date : Wednesday, July 23rd 2008 @ 06:38:56 PM
Script : http://www.sitename/admincp/vba_cmps...o=uploadmodule
Referrer : http://www.sitename/admincp/vba_cmps...hp?do=download
Username : ade5675
Classname : vb_database
MySQL Version : 5.0.51a-community
Reply With Quote
  #20  
Old 07-28-2008, 11:44 AM
pmkb's Avatar
pmkb pmkb is offline
 
Join Date: Sep 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to adapt this module to show the groups with most recent activity (like the Available Groups block on the social groups page)?
Reply With Quote
  #21  
Old 07-28-2008, 03:09 PM
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ade5675 - It looks like you have an outdated/modified version of vBaCMPS. Please make sure that you are using the latest version of vBa CMPS; this module was designed to work with vBa CMPS 3.0's Module Import System.

pmkb - Absolutely, but I'm not sure if the proper way to do it would be to add a query (making it two queries), or modify the original query in such a way as to include that information. Any thoughts?

(Also, if you have installed this modification, please mark this add-on as installed so that I can properly support you.)
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04617 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete