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)
-   -   Miscellaneous Hacks - Module CMPS: Latest and Random Public Social Groups (https://vborg.vbsupport.ru/showthread.php?t=166484)

goblues 12-29-2007 10:00 PM

Module CMPS: Latest and Random Public Social Groups
 
Adds a Module which shows the last 5 public Social Groups Created

Added a module which randomly displays Groups.
Use latestsocialgroups to display the most recently created or use randomsocialgroups to display 5 random groups.

See screenshot for details

Dependencies:
VbA CMPS


How to install

Admincp => vBa CMPS => Download / Upload Module
Click [Browse]
Browse for the file "latestsocialgroups.module" or randomsocialgroups.module
2-26-2008 - Added XML files as an alternative to install.
Submit
Select pages and locations

To restrict to a specific category find in your modules folder either vba_groups.php for latest or vba_randgroups.php for random:

Code:

FROM " . TABLE_PREFIX . "socialgroup WHERE type = 'public'
and replace with:

Code:

FROM " . TABLE_PREFIX . "socialgroup WHERE type = 'public' AND socialgroupcategoryid = '2'
Where socilagroupcategoryid is the category id of the category you wish to show.

Tested on Vb 3.8.3
VbAdvanced CMPS v3.2

Please Click Installed if you use this.

acegames 12-30-2007 09:41 PM

First install , thankyou :)

goblues 12-30-2007 09:47 PM

You are welcome!

Networknutz 12-31-2007 05:03 AM

installed works great!

goblues 12-31-2007 11:53 AM

I added to the first post a Random Module in addition to the Latest Module. Enjoy!

abroad 01-01-2008 10:55 AM

Installed it and the modules are shown on my portal BUT

it doesnt show any group. Only if I click on "Show all GRoups"

What is wrong?:confused:

goblues 01-01-2008 11:05 AM

These modules only pull "Public" groups. If the only groups you have created are invite only, they will not show.

EDIT: Now that I said above I got to looking at the code and realized that statement wasn't true. Updated the Zips to make it true.

abroad 01-01-2008 11:15 AM

My groups are public...

goblues 01-01-2008 11:22 AM

Redownload the module and allow overwrite and see if that helps. If it does not, PM your site with login details and I will have a look if you want.

abroad 01-02-2008 05:17 AM

overwrote it and now it works well! Thanks!


All times are GMT. The time now is 07:21 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.01648 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_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