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!

abroad 01-02-2008 06:33 AM

Actually it worked. When I checked it again I got this message:

Unable to add cookies, header already sent.
File: ml/forum/modules/vba_randgroups.php
Line: 18

Now I reinstalled it and it works again...but I am afraid that I will get the error message above again...

360junkie 01-02-2008 06:48 AM

Hope to install soon

goblues 01-02-2008 10:38 AM

Let me know if it pops up again and don't forget to click install.
Quote:

Originally Posted by abroad
Actually it worked. When I checked it again I got this message:

Unable to add cookies, header already sent.
File: ml/forum/modules/vba_randgroups.php
Line: 18

Now I reinstalled it and it works again...but I am afraid that I will get the error message above again...


forumrunt 01-02-2008 04:23 PM

nice idea

abroad 01-03-2008 09:12 AM

tried it again. And I get again

Unable to add cookies, header already sent.
File: /home/www/web99/html/forum/modules/vba_randgroups.php
Line: 18

This happens when I log out and click on "Go to Forums Index".

wattieuk 01-03-2008 12:39 PM

As soon as it was installed, my front page wouldnt load. When I removed it, it was ok again. Weird.

zmmmzz 01-03-2008 01:07 PM

thaaaaaaaanks!!!!

goblues 01-03-2008 09:43 PM

Try this wattieuk:

Admin CP => vBa CMPS => Default Settings => Main Options => Process PHP File Modules Within A Function

wattieuk 01-05-2008 11:55 AM

Quote:

Originally Posted by goblues (Post 1414927)
Try this wattieuk:

Admin CP => vBa CMPS => Default Settings => Main Options => Process PHP File Modules Within A Function

Thanks for the reply but it's already turned on.

goblues 01-05-2008 12:16 PM

See post below.

goblues 01-05-2008 12:20 PM

See update in Blue in first post. For some reason, some modules are adding spaces after the closing ?> tag in the php files in your forum/modules folder. This fix seems to work with any modules that you may have installed.

sinistergaming 01-08-2008 01:25 AM

thanks

Alfa1 01-09-2008 09:56 PM

How about a 'latest group comments' function?

goblues 01-09-2008 11:06 PM

Sounds easy enough (Famous Last Words). Give me until the weekend and I will Have this ready if possible. Please click install for this one if you use it. Thanks!

Alfa1 01-10-2008 01:58 AM

That would be awesome.

Alfa1 01-10-2008 11:21 PM

I am getting this error:
Quote:

Unable to add cookies, header already sent.
File: /home/myforum/domains/my-forum.com/public_html/forum/modules/vba_groups.php
Line: 20
I can't find line 20.

goblues 01-11-2008 12:34 AM

Exactly. Thats why you need to do the file edit in blue in the first post, or overwrite the vba_groups.php file with the one in the first post. Again, for some reason, the export is adding spaces after the ?> tag. If you put you cursor at the end of that and hit delete to delete the empty spaces, all will be fine.

goblues 01-12-2008 11:00 AM

The zip files have been updated. There shouldn't be any more issues with headers being sent and cookies anymore.

Alfa1 01-12-2008 01:43 PM

That fixed it. Thanks for the swift update! Its looking good.
I hope it works out with the latest comments feature.

ricoche 01-13-2008 07:38 AM

I'm getting this error with vbulletin 3.7.0 beta 3 and vbCMPS v3.0 RC2

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /admincp/vba_cmps_admin.php on line 3375
The file you have uploaded is not a valid module file.

Not sure what that's all about. Thanks.

Jim

goblues 01-13-2008 11:10 AM

Zip files have been updated. Sorry :(

ricoche 01-13-2008 12:31 PM

Thanks! Works great now.

goblues 01-13-2008 12:49 PM

You are welcome.

:Judge: 02-03-2008 04:45 AM

Installed without any troubles. vB 3.7.0 Beta 4 and vBA 3.0 RC2

Thanks!

gertoo 02-23-2008 06:43 PM

Blank index page

goblues 02-23-2008 09:17 PM

What is your site url? PM if you don't want it public

romanticyao 02-25-2008 08:08 AM

installed but not showing any public groups... same problem. I downloaded the lastest zip

DawnsWebDesigns 02-25-2008 09:56 PM

I had to uninstall then reinstall to get them to show up. But then it caused a bunch of errors so I had to take it back off again. Around 40 of them out of about 60 were from this one mod. :(

goblues 02-25-2008 10:54 PM

So you had 20 more errors? What were you doing, upgrading vbadvanced?

romanticyao 02-26-2008 12:07 AM

I m using vb3.7 beta5 and vba 3.0 gold... downloaded the lastest zip from the first post and installed, showing nothin...


All times are GMT. The time now is 05:14 AM.

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.01233 seconds
  • Memory Usage 1,782KB
  • 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
  • (3)bbcode_code_printable
  • (3)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
  • (40)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