vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Top Groups Module for vBadvanced (https://vborg.vbsupport.ru/showthread.php?t=183659)

Kaelon 06-26-2008 10:00 PM

Top Groups Module for vBadvanced
 
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)

UncoderMom 06-27-2008 04:26 AM

Thank you thank you thank you!

INSTALLED

mariannet 06-27-2008 11:35 AM

Installed and everything but the "Last post by" works.
It does not show the posters name/link

Kaelon 06-27-2008 12:18 PM

Quote:

Originally Posted by mariannet (Post 1560347)
Installed and everything but the "Last post by" works.
It does not show the posters name/link

Do you have actual posts in those social groups, in the actual Social Group Messaging area?

rooban12 06-27-2008 03:27 PM

look nice man
welldone

tekram 06-27-2008 04:30 PM

Quote:

Originally Posted by mariannet (Post 1560347)
Installed and everything but the "Last post by" works.
It does not show the posters name/link

The same Problem here

Kaelon 06-27-2008 04:42 PM

Quote:

Originally Posted by tekram (Post 1560509)
The same Problem here

Do you have actual posts in the social groups? If you're using an addon like "Social Forums", that last post will not be displayed, since that would require a separate query.

tekram 06-27-2008 05:09 PM

Aha ok, all the post before the addon was installed was not showing. New post and allways is up to date :)

thx for this addon

is there a chance to show the date and time on the next line?

Kaelon 06-28-2008 08:19 PM

Quote:

Originally Posted by tekram (Post 1560533)
Aha ok, all the post before the addon was installed was not showing. New post and allways is up to date :)

thx for this addon

is there a chance to show the date and time on the next line?

Great! Glad to hear it. :)

Captain Tycoon 06-29-2008 01:17 PM

Works Perfectly! Installed and Marked! Thanks :)


All times are GMT. The time now is 11:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01199 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete