Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Top Groups Module for vBadvanced Details »
Top Groups Module for vBadvanced
Mod Version: 1.00, by Kaelon (Member) Kaelon is offline
Developer Last Online: Feb 2020 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (9 votes - 4.56 average) Installs: 75
Released: 27 Jun 2008 Last Update: Never Downloads: 249
Not Supported Re-usable Code Translations  

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)

Download Now

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

Screenshots

Click image for larger version

Name:	topgroups.jpg
Views:	860
Size:	50.4 KB
ID:	83062  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Major Additions [Module]Teamspeak module for vBadvanced CMPS v3.0 RC2 dt-pain Modification Graveyard 15 28 Jan 2008 14:17

  #16  
Old 14 Jul 2008, 14:11
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Originally Posted by S7rik3R View Post
Thanks works perfectly without any hazzard ...
Excellent. Thanks for installing!
Reply With Quote
  #17  
Old 22 Jul 2008, 18:24
Jon4444 Jon4444 is offline
 
Join Date: May 2008
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
  #18  
Old 24 Jul 2008, 01:41
ade5675's Avatar
ade5675 ade5675 is offline
 
Join Date: Mar 2007
What am I doing wrong? I get the below error.
I need some help here.



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
  #19  
Old 28 Jul 2008, 12:44
pmkb's Avatar
pmkb pmkb is offline
 
Join Date: Sep 2005
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
  #20  
Old 28 Jul 2008, 16:09
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
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
  #21  
Old 28 Jul 2008, 19:04
pmkb's Avatar
pmkb pmkb is offline
 
Join Date: Sep 2005
I was able to modify a different hack to get what I wanted, so I didn't install your hack here. FYI, this is what I did: http://www.vbulletin.org/forum/showp...4&postcount=71
Reply With Quote
  #22  
Old 30 Jul 2008, 17:33
ade5675's Avatar
ade5675 ade5675 is offline
 
Join Date: Mar 2007
Originally Posted by Kaelon View Post
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.

I am actually using CMPS v3.0.1 so it is kind of weird to see the error. Any ideas ?
Reply With Quote
  #23  
Old 08 Aug 2008, 18:32
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Originally Posted by ade5675 View Post
I am actually using CMPS v3.0.1 so it is kind of weird to see the error. Any ideas ?
That's really weird. Can you give me a step-by-step description of how you generated the error message you were getting? I'm not able to reproduce it on a clean installation of vB 3.7.2 PL1 and vBa CMPS 3. Thanks!
Reply With Quote
  #24  
Old 10 Aug 2008, 04:05
ade5675's Avatar
ade5675 ade5675 is offline
 
Join Date: Mar 2007
Originally Posted by Kaelon View Post
That's really weird. Can you give me a step-by-step description of how you generated the error message you were getting? I'm not able to reproduce it on a clean installation of vB 3.7.2 PL1 and vBa CMPS 3. Thanks!


Note that my forum is in a different directory from the vBadvanced portal.
vBa CMPS: www.mysitename.com
forum: www.mysitename.com/forums/

Just like your installation instructions outlines it. I download the zip file, extract and then went to my vB admincp.

vBa CMPS >> Download / Upload Module >> Browse (under Upload Module) >> selected topgroup module from extracted folder >> select active (Yes) and the style >> clicked submit >> error generated.

Hope it helps.
Reply With Quote
  #25  
Old 27 Aug 2008, 14:44
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
vBa CMPS >> Download / Upload Module >> Browse (under Upload Module) >> selected topgroup module from extracted folder >> select active (Yes) and the style >> clicked submit >> error generated.
Did you select a specific style, a default style, or a child style? This looks like it may be an issue with the vBa CMPS Module Import System; we may want to check over at vBadvanced.com.
Reply With Quote
  #26  
Old 28 Aug 2008, 13:43
DstrucTIonS DstrucTIonS is offline
 
Join Date: Aug 2008
Would be good if the config file was used for the install path.
My vb is installed in "forum" not "forums" ...
had to tweak the file a bit.
Reply With Quote
  #27  
Old 28 Aug 2008, 20:36
Kaelon's Avatar
Kaelon Kaelon is offline
 
Join Date: Jan 2002
Originally Posted by DstrucTIonS View Post
Would be good if the config file was used for the install path.
My vb is installed in "forum" not "forums" ...
had to tweak the file a bit.
Right, I mentioned that in the installation instructions in the original post above.

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 "/".
How do you think I could make it easier? Maybe insert a single $forumdir variable?
Reply With Quote
  #28  
Old 30 Aug 2008, 02:56
ade5675's Avatar
ade5675 ade5675 is offline
 
Join Date: Mar 2007
Originally Posted by Kaelon View Post
Did you select a specific style, a default style, or a child style? This looks like it may be an issue with the vBa CMPS Module Import System; we may want to check over at vBadvanced.com.
Yes, I specified the default style and still get the error. Infact I followed the instructions to the book.
Reply With Quote
  #29  
Old 04 Nov 2008, 15:21
djxcee djxcee is offline
 
Join Date: Mar 2008
Real name: Chris N.
Installed and working great .

Will it be possible to show random groups instead of the top groups?
Reply With Quote
  #30  
Old 23 Jan 2009, 02:55
jl255 jl255 is offline
 
Join Date: May 2007
nice one. wld install it if it showed the group logo too
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 10:52.

Layout Options | Width: Wide Color: