PDA

View Full Version : Miscellaneous Hacks - Module CMPS: Latest and Random Public Social Groups


goblues
30 Dec 2007, 23:36
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 (http://www.vbadvanced.com/products.php?do=productinfo&productid=4)


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:

FROM " . TABLE_PREFIX . "socialgroup WHERE type = 'public'

and replace with:

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
30 Dec 2007, 23:41
First install , thankyou :)

goblues
30 Dec 2007, 23:47
You are welcome!

Networknutz
31 Dec 2007, 07:03
installed works great!

goblues
31 Dec 2007, 13:53
I added to the first post a Random Module in addition to the Latest Module. Enjoy!

abroad
01 Jan 2008, 12:55
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 Jan 2008, 13:05
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 Jan 2008, 13:15
My groups are public...

goblues
01 Jan 2008, 13:22
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
02 Jan 2008, 07:17
overwrote it and now it works well! Thanks!

abroad
02 Jan 2008, 08:33
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
02 Jan 2008, 08:48
Hope to install soon

goblues
02 Jan 2008, 12:38
Let me know if it pops up again and don't forget to click install.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
02 Jan 2008, 18:23
nice idea

abroad
03 Jan 2008, 11:12
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
03 Jan 2008, 14:39
As soon as it was installed, my front page wouldnt load. When I removed it, it was ok again. Weird.

zmmmzz
03 Jan 2008, 15:07
thaaaaaaaanks!!!!

goblues
03 Jan 2008, 23:43
Try this wattieuk:

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

wattieuk
05 Jan 2008, 13:55
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
05 Jan 2008, 14:16
See post below.

goblues
05 Jan 2008, 14:20
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
08 Jan 2008, 03:25
thanks

Alfa1
09 Jan 2008, 23:56
How about a 'latest group comments' function?

goblues
10 Jan 2008, 01:06
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
10 Jan 2008, 03:58
That would be awesome.

Alfa1
11 Jan 2008, 01:21
I am getting this error:
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
11 Jan 2008, 02:34
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
12 Jan 2008, 13:00
The zip files have been updated. There shouldn't be any more issues with headers being sent and cookies anymore.

Alfa1
12 Jan 2008, 15:43
That fixed it. Thanks for the swift update! Its looking good.
I hope it works out with the latest comments feature.

ricoche
13 Jan 2008, 09:38
I'm getting this error with vbulletin 3.7.0 beta 3 and vbCMPS v3.0 RC2

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
13 Jan 2008, 13:10
Zip files have been updated. Sorry :(

ricoche
13 Jan 2008, 14:31
Thanks! Works great now.

goblues
13 Jan 2008, 14:49
You are welcome.

:Judge:
03 Feb 2008, 06:45
Installed without any troubles. vB 3.7.0 Beta 4 and vBA 3.0 RC2

Thanks!

gertoo
23 Feb 2008, 20:43
Blank index page

goblues
23 Feb 2008, 23:17
What is your site url? PM if you don't want it public

romanticyao
25 Feb 2008, 10:08
installed but not showing any public groups... same problem. I downloaded the lastest zip

DawnsWebDesigns
25 Feb 2008, 23:56
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
26 Feb 2008, 00:54
So you had 20 more errors? What were you doing, upgrading vbadvanced?

romanticyao
26 Feb 2008, 02:07
I m using vb3.7 beta5 and vba 3.0 gold... downloaded the lastest zip from the first post and installed, showing nothin...

goblues
26 Feb 2008, 02:53
I m using vb3.7 beta5 and vba 3.0 gold... downloaded the lastest zip from the first post and installed, showing nothin...
Try the XML instead attached to this post and report back.

romanticyao
26 Feb 2008, 08:06
hi, this one works! so wut was the problem? hope you could update the xml file in zip package or release a newer version? once I put my site live from testing server I could install it without this xml "patch" file.

goblues
26 Feb 2008, 12:17
I am not sure what the problem is. I changed nothing but downloaded the module via XML instead of .module. The files are exactly the same, my guess there may be something goofy with vbadvanced gold.

romanticyao
26 Feb 2008, 19:44
some ppl installed and it worked without problem, it might caused by different php version?

Dilldogs
07 Apr 2008, 23:59
I installed it on VB 3.7 bata 6 and it works fine. But when I install on 3.7 RC 2 not working.

Only thing different That is bata 6 and RC 2. So I am stumped...lol

goblues
08 Apr 2008, 00:18
I just installed the random XML module on a vanilla RC1 board no problems. I have not installed RC2 yet so I am not sure what has changed. Did you install the .module file or the XML?

crkgb
09 Apr 2008, 10:44
My group is publick with 3 members at this time and the module is empty. It only states - View All Groups

setishock
10 Apr 2008, 01:44
That spices up my cmps. May be get those lurkers to sign up. Thanks
I used the modules out of the zip files and it worked correctly the first time.
Using VB 3.7 beta 5 and vBadvanced's 3.0 gold cmps.

crkgb
10 Apr 2008, 03:13
RC2 vBa 3.0 - Not Showing up the groups... (((

goblues
11 Apr 2008, 02:24
I will take a look. By the way, did you install this module using the .module file or upload the XML in vbadvanced?

crkgb
11 Apr 2008, 04:31
Both actually. And after updating to RC3 still a no show.

tormodg
16 Apr 2008, 10:55
Installed on vB 3.7 RC1, vBa 3.0.0, works like a charm. Easy to customize! Thanks for this hack.

IrPr
02 May 2008, 22:55
Nice work
what about group messages?

goblues
03 May 2008, 01:05
What exactly would you like to see with group messages? Count or the actual messages?

edenx
03 May 2008, 03:23
could you add a group icon, based on any picture uploaded to the group?

IrPr
03 May 2008, 08:16
What exactly would you like to see with group messages? Count or the actual messages?
Sorry for bad explain, I mean another block for recent group messages

BTW again thanks for this mod, i modified php module n template to show group owner
screenie added

carphead
14 May 2008, 21:54
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vbadv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '6');


On a 3.6.8 Upgraded to 3.7 with VBa 3.0.1 installed. On a completely fresh 3.7 with Vba installed it works. Any ideas why?

MrEyes
29 May 2008, 13:08
Great plugin, installed

goblues
30 May 2008, 00:59
### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vbadv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '6');


On a 3.6.8 Upgraded to 3.7 with VBa 3.0.1 installed. On a completely fresh 3.7 with Vba installed it works. Any ideas why?

There has been better luck using the XML for install, did you try that?

Great plugin, installed

Thank you ;)

mikkitine
13 Jun 2008, 03:21
How do I install the .xml file?

goblues
14 Jun 2008, 13:07
Same way as you would a .module file. See and read screenshot which was taken from ADMINCP->Vba CMPS->Download/Upload Module

S7rik3R
14 Jun 2008, 15:22
Good Work !
Installed

mikkitine
14 Jun 2008, 18:40
Same way as you would a .module file. See and read screenshot which was taken from ADMINCP->Vba CMPS->Download/Upload Module
Thanks. Very good stuff.

UltraFanatics
14 Jun 2008, 19:02
AWESOME!

Do you have anymore?

goblues
15 Jun 2008, 03:08
Like what? :)

buckethead
15 Jun 2008, 04:26
Good job!
INSTALLED

UltraFanatics
15 Jun 2008, 10:19
Anything really lol

Wouldn't mind something for the facebook type status mod

goblues
15 Jun 2008, 15:05
Could you point me to the hack?

UltraFanatics
17 Jun 2008, 20:17
Sure here you go mate
http://www.vbulletin.org/forum/showthread.php?t=181283

pmkb
28 Jul 2008, 14:15
Is it possible to adapt this module to list the groups with the most recent posts like the "Available Groups" section of the social groups page?

pmkb
28 Jul 2008, 17:02
Thanks for this module. I was able to adapt the code (see attached) to show the groups with most recent posts. :)

Coop1979
06 Aug 2008, 15:49
What is the raw PHP code for showing the latest groups? I'm trying to insert it into a block in Drupal.

GrendelKhan{TSU
07 Aug 2008, 03:24
thanks. works fine.

REQ:
would love to see comments updates as well. :)

tintin74
08 Nov 2008, 09:35
I'm running vbulletin 3.7.3 with cmps 2.0 and Vbseo Gold . I've install this module without any problem.

Now, I've into the latest social group box on cmps page every urls not S.E. friendly. But, into social page index I've every link search engine friendly.

This could generate a duplicate content indexing in Google.

Does anyone could help me to change urls in "Latest Social Group" box ?

Thank you Tintin

tormodg
10 Nov 2008, 15:13
As long as the urls are rewritten before the page is loaded you should be fine (ie, you're not serving two similar pages with different URLs).

jacobi
19 Jan 2009, 03:40
Great mod - working with vBulletin 3.8.0 and vBadvanced CMPS v3.1.0.

BWJ
22 Jan 2009, 19:11
Does any one know how to restrict this mod to one specific social group category? (instead of all social group categories)

jl255
23 Jan 2009, 02:56
thank you for this, but cld it be modified to show the group image and name? this shld make the module much more attractive (IMHO). And of course, the ability to determine how many rows and columns of images to show. think it will look great ;)

goblues
24 Jan 2009, 03:09
It is has been a long time since I released this mod, but I will take a look to see if I can get this to your liking BWJ and jl255

jl255
24 Jan 2009, 03:50
tks will be looking forward to it!

BWJ
26 Jan 2009, 23:29
It is has been a long time since I released this mod, but I will take a look to see if I can get this to your liking BWJ and jl255

Thank you very much. That would really be great and appreciated :)

trotskid
08 Mar 2009, 04:32
I would like to show just an especific number of groups, where exactly can I modify this?

PS: Thanks for this hack ;)

Arkham
15 Apr 2009, 19:07
Does any one know how to restrict this mod to one specific social group category? (instead of all social group categories)

That option is what brought me to this mod. I need something like that, to be able to select the category(ies) to choose from.

Good looking mod so far though!

Brandon Sheley
08 Jul 2009, 01:07
Wish this worked :(
groups can be seen by guest, I can navigate to the group as a guest, but the modual doesn't show anything but "View All Groups"

goblues
08 Jul 2009, 01:16
Wish this worked :(
groups can be seen by guest, I can navigate to the group as a guest, but the modual doesn't show anything but "View All Groups"

Didn't know that it didn't ;). I haven't played with this in some time now. Everyone, What are we looking at doing with this mod now? PLease create a wish list and I will see what I can do.

Brandon Sheley
08 Jul 2009, 01:20
Didn't know that it didn't ;). I haven't played with this in some time now. Everyone, What are we looking at doing with this mod now? PLease create a wish list and I will see what I can do.

I just need it to work like described in the first post ;)

ps.. I tried the .modal and the .xml and got the same results :(

goblues
08 Jul 2009, 01:51
I just need it to work like described in the first post ;)

ps.. I tried the .modal and the .xml and got the same results :(


Just installed "latest" and "random" (XML's) on a vanilla 3.8.3 test site and works as designed. Please take note that moderated or invite only groups will not show for this module. Only Public groups will show (as stated in the first post). However can be easily modified if you need, just let me know.

goblues
08 Jul 2009, 02:19
Does any one know how to restrict this mod to one specific social group category? (instead of all social group categories)

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

FROM " . TABLE_PREFIX . "socialgroup WHERE type = 'public'

and replace with:

FROM " . TABLE_PREFIX . "socialgroup WHERE type = 'public' AND socialgroupcategoryid = '2'

Where socilagroupcategoryod is the category id of the group you wish to show.

Mattius
28 Jul 2009, 13:05
Just installed "latest" and "random" (XML's) on a vanilla 3.8.3 test site and works as designed. Please take note that moderated or invite only groups will not show for this module. Only Public groups will show (as stated in the first post). However can be easily modified if you need, just let me know.

Id like to be able to show moderated groups. How can I alter the SQL? Im not sure how to do "not equal to"...is it != or <>, I get an sql error either way.

goblues
31 Jul 2009, 01:14
Going off of memory right now, Not at a computer where I can look at code, I believe by changing the WHERE type = to moderated or inviteonly depending on what you want to display. to display all, I think you can just get delete WHERE type = 'public'

Let me know if this helps

AND PLEASE MARK INSTALLED

peterle1
15 Aug 2009, 01:11
Why do you have that many errors in your templates?

Here are two corrected ones in german language:

adv_portal_groups

<tr>
<td class="$bgclass">
$showgroupsbit<br />
<i><a href="$vboptions[bburl]/group.php?do=grouplist">alle Interessengemeinschaften</a></i>
</td>
</tr>


adv_portal_groups_bit

<div style="padding-top: 1px; padding-bottom: 1px" class="smallfont">
• <a href="$vboptions[bburl]/group.php?groupid=$showgroup[groupid]"><b>$showgroup[name]</b></a>
<br />
Miglieder - $showgroup[members]<br />
Bilder - $showgroup[picturecount]
</div>
<br />


w3c validator missed some " and the end tag for i had to be /i

goblues
15 Aug 2009, 01:25
Why do you have that many errors in your templates?


Because you are smarter than me ;)

Thanks!

peterle1
15 Aug 2009, 23:27
Sorry for the hard words, but I was very tired the time I wrote it.
Thanks for your mod, it was a great help. :)

ahmedipa
04 Jan 2010, 07:54
good

viper357
20 Jun 2011, 14:12
Thanks, working fine on vb 3.8.5 and vbA CMPS 3.2.1