PDA

View Full Version : Miscellaneous Hacks - SocialForums 1.4


Pages : [1] 2 3

Phalynx
02 Apr 2008, 10:04
SocialForums for vBulletin 3.7
Created by Marius Czyz aka Phalynx.

This mod will work *ONLY* with vBulletin 3.7 or higher. It will not run on vBulletin 3.6.x due to non existent feature of "social groups".

Support will be only given for people who clicked Mark as INSTALLED.

Description
Not satisfied with vBulletin social groups messaging function? With SocialForums your social group leaders can create a standard forum for their group.
A group leader can only create a forum if the group has at least 5 members - this can be changed via settings. Optionally the group leader can be a moderator of such a social forum.

Permissions
Since 1.3 there are advanced permissions active (Forum and Archive). This includes read/write public and private (moderated/invite only) socialforums and creation of forum. As this needs two additional queries on every page you can disable this.

Demo
None, see screenshots

Installation
This product is fully phrased and uses template hooks. No file changes or manual template edits needed.
1. Upload bitfield_socialforums.xml to existing folder /includes/xml/
2. Upload functions_socialforums.php to existing folder /includes/
3. Fresh Installation: Just import the product. Upgrade: Import the product, allow overwrite. No forums get lost!
4. Check settings, especially for parent forum. Don't forget to set permissions via usergroups!

Troubleshooting
Q: I don't see a link to create a forum. Why?
A: Check permissions for the usergroup, espacially if the user is allowed to create forum.
A: Check if the usergroup meet min users requirement, see AdminCP/Settings/SocialForums.

Q: My users see the forums, but they shouldn't!
A: Check permissions for the usergroup, if the users usergroup is set to "can see".
A: Did you disabled the restriction mode? Enable it.

Todo
- By deleting a group the forum should also be deleted/archived. Currently this has to be done manually.

Known Issues
- On big boards with hundreds of social groups this mod can really impact the performance because of the mass of new created forums. If you still want to use this mod use the "Minimum Members" feature with a higher value. Using the permission check there are additional two queries on every page.


History
1.4.6, 6th October 2008
- Permissions are now also active in Archive

1.4.2, 27th May 2008
- Added: If a group has a linked forum the grouplisting has the last post date and count of postings (with permission check).
- Added: Recent threads in linked forum on group home
- Added: Private groups: Link to forum only shown to members of group
- Changed: Enabled permissions for unregistered usergroup. Unregistered Users are not more explicit denied without a check of it's usergroup

1.3.1, 23th May 2008
- Fixed: Not existing array

1.3.0, 23th May 2008
- Added: Permissions are now active. This includes read/write public and private (moderated/invite only) socialforums and creation of forum. Please check permissions for every usergroup! As this needs two additional queries on every page you can disable this.
- Added: Checks for permission before the creation link will be displayed
- Changed: Default View Age set to "Show all Threads"

1.2.1 8th April 2008:
- Added: Group messaging can be disabled via options (previously: always disabled)

1.2.0 4th April 2008:
- Added: Groupleader can now be moderator of group forum
- Added: Minimum Members that are required for own forum
- Added: Group messaging will be automatically hide for group that has own forum
- Added: Forums are created with more allowances
- Added: By deleting a forum the linked socialgroup get's updated
- Added: Forum's description contains link back to social group
- Added: By changing group's name it synchronize it with the forum's name

1.0/1.1 1st April 2008:
- Initial releases

romanticyao
02 Apr 2008, 10:05
wow,first install

Magnumutz
02 Apr 2008, 10:05
How about a demo?

NeuroLancer
02 Apr 2008, 10:09
This looks good. Its actually making me think of turning social groups on for the first time.

Am I reading this right;-
.. anyone can see the groups forum but only group members can post?

Can we have the following feature please?;-
.. group creator gets groups forum moderation ability. or similar. Hope that was clear.

Thanks alot!

gwerzal
02 Apr 2008, 10:12
Would be very good if you could make it so anyone in the group can post

SEOvB
02 Apr 2008, 10:15
*tagging this to watch what develops :D

Phalynx
02 Apr 2008, 10:18
How about a demo?
No demo, as you have to register on forum and create a social group.


anyone can see the groups forum but only group members can post?
Correct.

Can we have the following feature please?;-
.. group creator gets groups forum moderation ability. or similar. Hope that was clear.
I must check this.

Would be very good if you could make it so anyone in the group can post
It is set to this, only user from group can post.

RvG2
02 Apr 2008, 10:36
holy cow... :)

KURTZ
02 Apr 2008, 11:15
*tagging this to watch what develops :D

me too :)

PS. now testing onto my local board ... :P

KURTZ
02 Apr 2008, 11:55
OK, i'm back (just tested onto RC2 and it runs perfectly) ... but now i've some questions:

1) the "create forum" link is showed only when other users are into the SG right? if i've got a SG without any user this links isn't showed ...
2) i understand that only members can post into the created forum, but i'm wonderind about the visibility, if the Admin sets "NO", that means that only the members can view (and post into the forum)?

anyway needs some features (maybe put the SG's forum like a subforum no simply a parent) ...

this hack has a GREAT POTENTIAL ... it's simply awesome ...

ALREADY NOMINATED (it's your second Marius ;)), i'm waiting new developments ...

Phalynx
02 Apr 2008, 12:03
This is the first simple version, without any comfort features.

1) the "create forum" link is showed only when other users are into the SG right? if i've got a SG without any user this links isn't showed ...
Yes, only when the membercount is higher than 1

2) i understand that only members can post into the created forum, but i'm wonderind about the visibility, if the Admin sets "NO", that means that only the members can view (and post into the forum)?
A social group forum is a normal forum. It's visibility is set to 0, which means it does only hide from forumlisting, but not from accessing it via direct link. There is no support for private sg-forums right now.

anyway needs some features (maybe put the SG's forum like a subforum no simply a parent) ...
I've a forum called "Community" and this counts for me as a parent forum. all sg-forums are defined as subforums of this "Community" forum. You can set the parent forum also as a category forum...

ALREADY NOMINATED (it's your second Marius ;)), i'm waiting new developments ...
Yeah, I'm working on my world supremacy.

RvG2
02 Apr 2008, 12:05
will it work lower than rc1?

Phalynx
02 Apr 2008, 12:09
Yes, I have it running on a Board with Beta 6. It *should* also run on Beta 2...

KURTZ
02 Apr 2008, 12:21
Marius, just a tip, right now i've made some tests onto my local board, and i saw which the SG-forum haven't the same 'Enable / Disable Features' like the 'parent' ... by default you have enable only the 'Count Posts Made in this Forum Towards User Post Counts', all the others are settled 'NO' ... it's correct? maybe is better give the same permissions or not?

Phalynx
02 Apr 2008, 12:26
This is correct. That is something I've still to implement.

Lionel
02 Apr 2008, 12:35
This is a nice idea, but if you have 10,000 members and 5000 of them decide to create a forum, does that mean that you'll have 5000 additional forums in admincp to manage???

KURTZ
02 Apr 2008, 12:40
This is a nice idea, but if you have 10,000 members and 5000 of them decide to create a forum, does that mean that you'll have 5000 additional forums in admincp to manage???

with this version: yes, but some new features are on the way ... :D

Phalynx
02 Apr 2008, 12:42
This is a nice idea, but if you have 10,000 members and 5000 of them decide to create a forum, does that mean that you'll have 5000 additional forums in admincp to manage???

A permission that can be set on a usergroup base is on the way. Also a limitation that only groups with an amount of f.e. 20 members can have a forum.

Lionel
02 Apr 2008, 12:44
Great. Can I also suggest minimum posts? So we reward only top posters?

Phalynx
02 Apr 2008, 12:46
Maybe. A usergroup should be enough in most cases to handle this.

KURTZ
02 Apr 2008, 12:46
Great. Can I also suggest minimum posts? So we reward only top posters?

why not the 'promotions'?

dotJoel
02 Apr 2008, 13:04
This is an excellent modification, i'm VERY impressed. I'll be watching to see how this develops.

Regards,

Joel

Nikke
02 Apr 2008, 14:18
I tried installing this but nothing came up in the social groups. There is no link to create a new forum..

This is what I did:

Imported product
Set the SocialForums settings

What else should I have done and where?

Phalynx
02 Apr 2008, 14:19
Does the group has at least 2 members? Are you the creator of the group?

Nikke
02 Apr 2008, 14:25
Ok, my bad. I though 1 was enough. Working now :)

wtrk
02 Apr 2008, 14:26
very cool. why jelsoft skipped this feature is beyond me, it seems so obvious that this is a must have feature to go with social groups. im going to keep an eye on this for sure. good work.

KURTZ
02 Apr 2008, 14:36
Ok, my bad. I though 1 was enough. Working now :)

ehehheh just read my previous posts ... :)

Phalynx
02 Apr 2008, 14:38
why jelsoft skipped this feature is beyond me, it seems so obvious that this is a must have feature to go with social groups. im going to keep an eye on this for sure.
They did not implement this as on very large boards with hundreds of social groups there could be a problem when there are additional 100 forums.

Because of this the next version 1.2 will have some features to limit forums. Only groups with at least X members can have a forum, also there will be a new usergroup permission.

Changes so far:
- Groupleader is now also moderator of group forum
- Added new setting: Minimum Members that are required for own forum
- Group messaging will be automatically disabled for group that has own forum
- More options for forum allowances

Tell me what you need else...

Maybe 1.2 will be released on friday. Beta testers for this version are welcome, please PM me.

MJFox
02 Apr 2008, 15:16
Hi!

Great Plugin! :up:

I have one feature request though: it would be great if one could open more than one forum per group

looking forward for the next version, keep up the good work!

greetings

MJFox

Phalynx
02 Apr 2008, 15:20
it would be great if one could open more than one forum per group
Maybe I don't understand this, but why should a group have more than one forum?

Taragon
02 Apr 2008, 15:21
I’ve created a forum, and deleted again using the forum manager.
Only the link to the forums still shows in the user group. Would it be possible to remove that link again?

Phalynx
02 Apr 2008, 15:24
You have to run a query to remove it:
UPDATE socialgroup SET forumid=0 where groupid=XX

It's already on my todo-list...

Taragon
02 Apr 2008, 15:31
You have to run a query to remove it:
UPDATE socialgroup SET forumid=0 where groupid=XX

It's already on my todo-list...

thanks! and many more thanks for the mod!

MJFox
02 Apr 2008, 15:40
Maybe I don't understand this, but why should a group have more than one forum?

think about people creating a community group about World of Warcraft

they could want to create a forum for newbies, a forum for organizing raids etc.

greetings

MJFox

Phalynx
02 Apr 2008, 15:41
Ah, ok. But I doubt it will be included in next releases.

romanticyao
02 Apr 2008, 16:49
when are u gonna release next version?

abroad
02 Apr 2008, 17:04
when I delete the social group forum, how can I set it up again? There is no link showing anymore in the group.

wtrk
02 Apr 2008, 17:20
They did not implement this as on very large boards with hundreds of social groups there could be a problem when there are additional 100 forums.

Because of this the next version 1.2 will have some features to limit forums. Only groups with at least X members can have a forum, also there will be a new usergroup permission.



yeah i understand what your saying. but it looks to me like youve solved that problem by simply putting a few minimum requirements on who can start a group forum. of course if you had thousands of users creating thousands of forums that would kill any server. anyway, i think your on to something here, keep up the good work.

abroad
02 Apr 2008, 17:48
any ideas how I can get back the link to the Social Forum once I have deleted the same Social Forum in the Forum Manager?

abroad
02 Apr 2008, 17:54
You have to run a query to remove it:
UPDATE socialgroup SET forumid=0 where groupid=XX

It's already on my todo-list...

Got this error:

error desc: Table 'usr_19_8.socialgroup' doesn't exist

crkgb
02 Apr 2008, 18:16
1. Possibility of adding moderators (by the group owner) to a social group forum would be nice.
2. Allowing a person creating a Social Group to choose an admin predefined category for their Social Group.
2. A "master-page" would be nice. For example something like this http://en.club.26l.com
- with best most active groups and most active users on it, as well as the list of all the social groups where they are members.

RvG2
02 Apr 2008, 19:21
I have installed in my live site but can't make it worked. :)

(disable the group message function and create a parent forum for group forum) but the link "create forum is not showing". vb version 3.7.0 b4.

Alfa1
02 Apr 2008, 20:00
Another great hack by you!

I would like to appoint one or more moderators to all group forums, so that I am certain that these forums get the same quality of moderation as the rest of my forums. Is this possible?

Phalynx
02 Apr 2008, 20:27
any ideas how I can get back the link to the Social Forum once I have deleted the same Social Forum in the Forum Manager?
See this:
http://www.vbulletin.org/forum/showpost.php?p=1480946&postcount=32
Got this error:

error desc: Table 'usr_19_8.socialgroup' doesn't exist
prefix the socialgroup table with your DB-prefix.


1. Possibility of adding moderators (by the group owner) to a social group forum would be nice.
2. Allowing a person creating a Social Group to choose an admin predefined category for their Social Group.
2. A "master-page" would be nice. For example something like this http://en.club.26l.com
- with best most active groups and most active users on it, as well as the list of all the social groups where they are members.
Already in 1.2:
http://www.vbulletin.org/forum/showpost.php?p=1480907&postcount=28


I have installed in my live site but can't make it worked. :)

(disable the group message function and create a parent forum for group forum) but the link "create forum is not showing". vb version 3.7.0 b4.
The group must have at least 2 members.


Another great hack by you!

I would like to appoint one or more moderators to all group forums, so that I am certain that these forums get the same quality of moderation as the rest of my forums. Is this possible?

Just assign a mod to the parent forum. That mod can moderate all subforums.

snunhuck
02 Apr 2008, 22:43
I've done it, but when I created a group, a socialforum did not appear in the forum.

Kyderoy
02 Apr 2008, 23:50
Will the posts in the social groups be added to the member's total post count?

NeuroLancer
03 Apr 2008, 00:05
Changes so far:
- Groupleader is now also moderator of group forum
- Added new setting: Minimum Members that are required for own forum
- Group messaging will be automatically disabled for group that has own forum
- More options for forum allowances


Legend :D . What an important feature the group leader as group forum moderator is. Im so glad you have added this in. :up:

Mark.B
03 Apr 2008, 00:08
A suggestion, if this is going to have the group leader automatically made a moderator in that forum, have an option to turn that off. I wouldn't want anyone other than my moderating team having that ability, on a site like mine there is potential for people to wreak havoc.

maidos
03 Apr 2008, 04:23
can u do something so ppl get redirected right to the forum section

Phalynx
03 Apr 2008, 07:44
I've done it, but when I created a group, a socialforum did not appear in the forum.
Do the group has at least 2 members?

Will the posts in the social groups be added to the member's total post count?
Yes, as the created forum is a normal forum. You can change it for every created forum.

A suggestion, if this is going to have the group leader automatically made a moderator in that forum, have an option to turn that off. I wouldn't want anyone other than my moderating team having that ability, on a site like mine there is potential for people to wreak havoc.
Yes, there is an option for that.

can u do something so ppl get redirected right to the forum section
Redirected when what happened? After creation of forum?

waza
03 Apr 2008, 09:25
I like forums for social groups, but if you do it with regular forums you will totally blow up forums cache (datastore).

On (semi-)large forums this will be disastrous (even with the limitations) on performance.

In the past there was already a hack that created blogs by creating a forum for members as a blog, with the same results (ok, the blog thing will be worse than this, but still)

Phalynx
03 Apr 2008, 10:27
Here is the promised Beta. Install the beta on your own risk or wait until tomorrow when the final 1.2 has been released.

Upgrade from 1.1:
1. Import the product, overwrite existing
2. Check settings, especially for parent forum

Changelog 1.2:
- Added: Groupleader can now be moderator of group forum
- Added: Minimum Members that are required for own forum
- Added: Group messaging will be automatically hide for group that has own forum
- Added: Forums are created with more allowances
- Added: By deleting a forum the linked socialgroup get's updated
- Added: Forum's description contains link back to social group
- Added: By changing group's name it synchronize it with the forum's name

snunhuck
03 Apr 2008, 10:52
There are more than two members in the group :)

Phalynx
03 Apr 2008, 11:05
Did you already created a forum? Do you have a link to that forum?

snunhuck
03 Apr 2008, 11:12
Yep sure, http://community.thinkteen.co.uk is the forum, the forum number is 61 :)

Phalynx
03 Apr 2008, 11:25
Please PM me a temporary user that has admin and query permissions so I can take a look for you.

Kyderoy
03 Apr 2008, 12:49
How will this mod effect current groups?

Phalynx
03 Apr 2008, 12:54
It will not affect existing one - the social forums is a feature that CAN be added by clicking the link "Create Forum". This link is available for all groups with at least 2 members (Can be changed in SocialForums 1.2)

Kyderoy
03 Apr 2008, 13:00
Will the privacy issue be taken care of in version 1.2? I have a lot of private groups and won't want members accessing the groups they don't belong to.

Phalynx
03 Apr 2008, 13:05
Which issue do you mean exactly? This mod does not change permissions for groups.

Kyderoy
03 Apr 2008, 13:20
I thought I saw a post where you can still see a post if given a link to a private group.

CHIPIT
03 Apr 2008, 13:23
Cool, but in the new version, with the link, it says "Click here to visit this social group (http://site.com)" shouldn't it say "Click here (http://site.com) to visit this social group" ?

It'd also be cool to setup exactly how new forums are created, permissions and everything...

Phalynx
03 Apr 2008, 13:29
I thought I saw a post where you can still see a post if given a link to a private group.
Again: This mod adds forums, it does not touch group's permissions.
If you choose hidden forums in the CP the new created forums are only hidden, they are not protected.

Cool, but in the new version, with the link, it says "Click here to visit this social group (http://site.com)" shouldn't it say "Click here (http://site.com) to visit this social group" ?
Fixed in final version.

It'd also be cool to setup exactly how new forums are created, permissions and everything...
Yes, it would be. But that would require to have a mass of settings. Instead of this, you can change default settings in product XML, check "$forumdm->set_bitfield" and for moderators "$moddm->set_bitfield".

Kyderoy
03 Apr 2008, 13:34
Anyway to add some protection in the future?

Phalynx
03 Apr 2008, 13:38
Maybe next releases will include such a protection.

Kyderoy
03 Apr 2008, 13:39
Thanks :D

MaxiMal
03 Apr 2008, 13:40
mega hack!
5+ easy

Phalynx, respect

somebody give to author heap of money that it has not thrown work

NFLfbJunkie
03 Apr 2008, 15:07
VERY NICE MOD.

How are newly created forum permissions handeled? Will they assume the permissions of the parent forum?

Phalynx
03 Apr 2008, 15:15
Yes, they get permission from parent forum.

Kyderoy
03 Apr 2008, 16:12
Ok let me see if I get this, the newly created forum will only show in the social group or will it show also on the forumhome page?

Varsh
03 Apr 2008, 16:17
Awesome hack, I've been needing this. There are some requests and features that I think might help, though some are probably sorted already:

Each social group has their own forum

The webmaster can set an option whether the forum is made when a social group is created, or when the social group leader sends a request
Social group forums are hidden from everyone except those that are part of the social group
The Social group forums are displayed at the top or bottom of the front page based on user preference
Social group leaders can set whether attachments are allowed

Social group leaders can set forum specific permissions and user groups

Social group leaders can give and take moderation status to anyone in the social group only for that social group forum
Social group leaders can appoint someone else as a social group leader
Social group leaders cannot leave a group without appointing another leader first
The first social group leader cannot be demoted from leader status unless demoted by themselves - the next in line leader then takes over owner status and cannot be demoted

An option for integration with Project Tools

A link to Project Tools "Create a project for the Social Group" displayed in the social group profile page and only available to social group leaders
The social group leader that creates a project can make it either public or private with private being available only to the social group
If a Social Group disbands then the projects under the Project Tools are also deleted


I've already installed the hack and it works peachily (v1.1).

Amit86
03 Apr 2008, 18:55
I LOVE everything you DO
I just had to say that
some sugestions if you would like
- Only group members can see forum
- Forum request from admin form
- Auto make group's admin forum's mod option

Yours Truly
03 Apr 2008, 19:22
Maybe change the bitfields to:

$forumdm = datamanager_init('Forum', $vbulletin);
$forumdm->set('title', $group['name']);
$forumdm->set('title_clean', $group['name']);
$forumdm->set('description', $group['description']);
$forumdm->set('parentid', $vbulletin->options['sf_parentforum']);
if ($vbulletin->options['sf_visibility']) {
$forumdm->set('displayorder', $group['groupid']);
} else {
$forumdm->set('displayorder', 0);
}
$forumdm->setr('options', $options); //Does not work
$forumdm->set_bitfield('options', 'active', '1');
$forumdm->set_bitfield('options', 'cancontainthreads', '1');
$forumdm->set_bitfield('options', 'allowposting', '1');
$forumdm->set_bitfield('options', 'indexposts', '1');
$forumdm->set_bitfield('options', 'countposts', '1');
$forumdm->set_bitfield('options', 'showonforumjump', '0');
$forumdm->set_bitfield('options', 'allowhtml', '0');
$forumdm->set_bitfield('options', 'allowbbcode', '1');
$forumdm->set_bitfield('options', 'allowimages', '1');
$forumdm->set_bitfield('options', 'allowsmilies', '1');
$forumdm->set_bitfield('options', 'allowicons', '1');
$forumdm->set_bitfield('options', 'allowratings', '1');
$forumdm->set_bitfield('options', 'defaultsortfield', 'lastpost');
$forumdm->set_bitfield('options', 'defaultsortorder', 'desc');

Then would match better with other forums, allowing the created forum to have the group description the same as the forum description and allowing: BB Code, [IMG] Code, Smilies, Post Icons, Thread Ratings in this Forum, Count Posts Made in this Forum Towards User Post Counts.

Any thoughts? :)

RvG2
03 Apr 2008, 20:10
I don't know why the Create Forum was not showing to me. I have a custom template maybe this could be the reason?

If this is the case, kindly advice how to do the template edit manually?

Phalynx
03 Apr 2008, 20:50
Ok let me see if I get this, the newly created forum will only show in the social group or will it show also on the forumhome page?
Depending on the setting in AdminCP it can be shown to all as a subforum of the parent forum or can be hide.


Each social group has their own forum

The webmaster can set an option whether the forum is made when a social group is created, or when the social group leader sends a request
Social group forums are hidden from everyone except those that are part of the social group
The Social group forums are displayed at the top or bottom of the front page based on user preference
Social group leaders can set whether attachments are allowed

Social group leaders can set forum specific permissions and user groups

Social group leaders can give and take moderation status to anyone in the social group only for that social group forum
Social group leaders can appoint someone else as a social group leader
Social group leaders cannot leave a group without appointing another leader first
The first social group leader cannot be demoted from leader status unless demoted by themselves - the next in line leader then takes over owner status and cannot be demoted

Nice ideas, but this would be something for the next major version of this hack. And to be honest: This features would lead into something that has been condemn here on vb.org: Custom, independent forums...


An option for integration with Project Tools

A link to Project Tools "Create a project for the Social Group" displayed in the social group profile page and only available to social group leaders
The social group leader that creates a project can make it either public or private with private being available only to the social group
If a Social Group disbands then the projects under the Project Tools are also deleted


Project Tools is another thing than Forums. This is a thing for another modification.


- Only group members can see forum
That's a permission thing, currently only very diffucult to do.

- Forum request from admin form
Dont understand this one.

- Auto make group's admin forum's mod option
Already included in 1.2, download beta of 1.2 here:
http://www.vbulletin.org/forum/showpost.php?p=1481809&postcount=52


Maybe change the bitfields to:

Then would match better with other forums, allowing the created forum to have the group description the same as the forum description and allowing: BB Code, [IMG] Code, Smilies, Post Icons, Thread Ratings in this Forum, Count Posts Made in this Forum Towards User Post Counts.

Any thoughts? :)
Already included in 1.2, download beta of 1.2 here:
http://www.vbulletin.org/forum/showpost.php?p=1481809&postcount=52


I don't know why the Create Forum was not showing to me. I have a custom template maybe this could be the reason?

If this is the case, kindly advice how to do the template edit manually?

Did you modified socialgroups_group? If not, this would not be the problem. It can only be that you didn't had at least 2 Members in the group.

Yours Truly
03 Apr 2008, 21:08
Do you have a list of what you added without me having to download it? I'm talking about the bit i edited myself :)

Varsh
03 Apr 2008, 21:15
Nice ideas, but this would be something for the next major version of this hack. And to be honest: This features would lead into something that has been condemn here on vb.org: Custom, independent forums...
Surely at least this:

Social group forums are hidden from everyone except those that are part of the social group

No? And perhaps when someone not in the social group will not be allowed access if they're not in the group.

RvG2
03 Apr 2008, 21:30
Did you modified socialgroups_group? If not, this would not be the problem. It can only be that you didn't had at least 2 Members in the group.

Nope I did not modified socialgroups_group. I have more than 2 members in my group so this should not be a problem at all. Just I need to have the template edit on themes aside from the vb default theme (if any)

Reeve of shinra
03 Apr 2008, 22:33
Invalid forum specified

This is what I see when I try and create a group :/


Awesome hack, I look forward to seeing what this turns into.

CHIPIT
03 Apr 2008, 23:20
Yes, it would be. But that would require to have a mass of settings. Instead of this, you can change default settings in product XML, check "$forumdm->set_bitfield" and for moderators "$moddm->set_bitfield".

Good enough for me, thanks. :)

wicked80
04 Apr 2008, 03:09
I installed the Mod and when i clicked "Create Forum" got the exact same error as described above by Reeve:

Invalid Forum Specified.

I am using 3.7 beta 5 version and can you tell me how to disable the default message board.

Thanks

traxxadd
04 Apr 2008, 06:57
Works great thanks for the time you put into this mod!!!!!:up:

Phalynx
04 Apr 2008, 07:04
Do you have a list of what you added without me having to download it? I'm talking about the bit i edited myself :)
Here are the settings from 1.2:
$forumdm->set_bitfield('options', 'active', '1');
$forumdm->set_bitfield('options', 'allowposting', '1');
$forumdm->set_bitfield('options', 'cancontainthreads', '1');
$forumdm->set_bitfield('options', 'moderatenewpost', '0');
$forumdm->set_bitfield('options', 'moderatenewthread', '0');
$forumdm->set_bitfield('options', 'moderateattach', '0');
$forumdm->set_bitfield('options', 'allowbbcode', '1');
$forumdm->set_bitfield('options', 'allowimages', '1');
$forumdm->set_bitfield('options', 'allowhtml', '1');
$forumdm->set_bitfield('options', 'allowsmilies', '1');
$forumdm->set_bitfield('options', 'allowicons', '1');
$forumdm->set_bitfield('options', 'allowratings', '1');
$forumdm->set_bitfield('options', 'countposts', '1');
$forumdm->set_bitfield('options', 'canhavepassword', '1');
$forumdm->set_bitfield('options', 'indexposts', '1');
$forumdm->set_bitfield('options', 'styleoverride', '0');
$forumdm->set_bitfield('options', 'showonforumjump', '0');
$forumdm->set_bitfield('options', 'prefixrequired', '0');


Surely at least this:

Social group forums are hidden from everyone except those that are part of the social group

No? And perhaps when someone not in the social group will not be allowed access if they're not in the group.
They can be hide, but for everyone. Direct access only for members of the group. But if someone knows the exact URL of the forum he gain's access.

Nope I did not modified socialgroups_group. I have more than 2 members in my group so this should not be a problem at all. Just I need to have the template edit on themes aside from the vb default theme (if any)
Please PM me login details as Admin to your site. I need also query permission.

This is what I see when I try and create a group :/
Invalid Forum Specified.
I installed the Mod and when i clicked "Create Forum" got the exact same error as described above by Reeve:
Invalid Forum Specified.
If you get a "Invalid Forum Specified" you should check parent forum setting in AdminCP/Settings/SocialForums

I am using 3.7 beta 5 version and can you tell me how to disable the default message board.
With 1.2 this is not needed anymore. SocialForums 1.2 will be released today.

Phalynx
04 Apr 2008, 07:53
SocialForums has been updated to 1.2 - here is the changelog:

- Added: Groupleader can now be moderator of group forum
- Added: Minimum Members that are required for own forum
- Added: Group messaging will be automatically hide for group that has own forum
- Added: Forums are created with more allowances
- Added: By deleting a forum the linked socialgroup get's updated
- Added: Forum's description contains link back to social group
- Added: By changing group's name it synchronize it with the forum's name


Upgrade:
- Simply import XML, overwrite existing

Varsh
04 Apr 2008, 10:57
They can be hide, but for everyone. Direct access only for members of the group. But if someone knows the exact URL of the forum he gain's access.
That's my only qualm really otherwise now it's just what I needed. Isn't it possible to use an if statement to check whether the user is part of the group or not? Ir not then give them a permission denied screen?

Phalynx
04 Apr 2008, 11:17
They are several ways of accessing a forum or a particular thread. To catch all this locations would be very intensive.

edenx
04 Apr 2008, 12:18
Suggestions:

1. Group Leader can set new moderators for group forum.

2. If I see a "group forum" new posts on "today topics" and click that forum without being a member, it will notify me and ask me to join the group.

NFLfbJunkie
04 Apr 2008, 12:49
Could there be an option to still allow messages to be made in the social group as well as in the social group's forum? And can "Allow HTML" be set as 'diasbled' upon creation of a social group's forum?

Phalynx
04 Apr 2008, 12:57
1. Group Leader can set new moderators for group forum.
That would not be part of this modification.

2. If I see a "group forum" new posts on "today topics" and click that forum without being a member, it will notify me and ask me to join the group.
Nice idea, let's see for next version.

Could there be an option to still allow messages to be made in the social group as well as in the social group's forum?
Possibly, let's see...

And can "Allow HTML" be set as 'diasbled' upon creation of a social group's forum?
That's I didn't see, it will be changed in next version.

toucan42
04 Apr 2008, 13:13
I am eager to get 3.7 installed on my board just to have this hack - THIS is how social groups and vb are meant to play together - nice nice work - thank you so much!

MaxiMal
04 Apr 2008, 13:14
it is necessary to make addition of moderators by the button
(if there was a version earlier 1.1)

for safety:
$forumdm->set_bitfield('options', 'active', '1');
$forumdm->set_bitfield('options', 'allowposting', '1');
$forumdm->set_bitfield('options', 'cancontainthreads', '1');
$forumdm->set_bitfield('options', 'moderatenewpost', '0');
$forumdm->set_bitfield('options', 'moderatenewthread', '0');
$forumdm->set_bitfield('options', 'moderateattach', '0');
$forumdm->set_bitfield('options', 'allowbbcode', '1');
$forumdm->set_bitfield('options', 'allowimages', '0');
$forumdm->set_bitfield('options', 'allowhtml', '0');
$forumdm->set_bitfield('options', 'allowsmilies', '1');
$forumdm->set_bitfield('options', 'allowicons', '1');
$forumdm->set_bitfield('options', 'allowratings', '1');
$forumdm->set_bitfield('options', 'countposts', '0');
$forumdm->set_bitfield('options', 'canhavepassword', '1');
$forumdm->set_bitfield('options', 'indexposts', '1');
$forumdm->set_bitfield('options', 'styleoverride', '0');
$forumdm->set_bitfield('options', 'showonforumjump', '0');
$forumdm->set_bitfield('options', 'prefixrequired', '0');
//////////////
$moddm->set_bitfield('permissions', 'caneditposts', '1');
$moddm->set_bitfield('permissions', 'candeleteposts', '1');
$moddm->set_bitfield('permissions', 'canopenclose', '1');
$moddm->set_bitfield('permissions', 'caneditthreads', '1');
$moddm->set_bitfield('permissions', 'canmanagethreads', '1');
$moddm->set_bitfield('permissions', 'canannounce', '0');
$moddm->set_bitfield('permissions', 'canmoderateposts', '1');
$moddm->set_bitfield('permissions', 'canmoderateattachments', '1');
$moddm->set_bitfield('permissions', 'canmassmove', '0');
$moddm->set_bitfield('permissions', 'canmassprune', '0');
$moddm->set_bitfield('permissions', 'canviewips', '0');
$moddm->set_bitfield('permissions', 'canviewprofile', '0');
$moddm->set_bitfield('permissions', 'canbanusers', '0');
$moddm->set_bitfield('permissions', 'canunbanusers', '0');
$moddm->set_bitfield('permissions', 'newthreademail', '0');
$moddm->set_bitfield('permissions', 'newpostemail', '0');
$moddm->set_bitfield('permissions', 'cansetpassword', '0');
$moddm->set_bitfield('permissions', 'canremoveposts', '0');
$moddm->set_bitfield('permissions', 'caneditsigs', '0');
$moddm->set_bitfield('permissions', 'caneditavatar', '0');
$moddm->set_bitfield('permissions', 'caneditpoll', '0');
$moddm->set_bitfield('permissions', 'caneditprofilepic', '0');
$moddm->set_bitfield('permissions', 'caneditreputation', '0');

traxxadd
04 Apr 2008, 14:08
I love this mod do you have a donate button id like to donate some money for this great mod

FleaBag
04 Apr 2008, 15:06
Yeah this is looking pretty sweet.

Reeve of shinra
04 Apr 2008, 17:02
Very nice -- would love to see a future option where forums are only visiable to group members. :)

Koroku
04 Apr 2008, 18:39
Can you please fix permissions so that the admin group (or maybe even make it so you can chose group id #s that automatically have permission) is able to view/post in the social forums?

I like this hack, but I don't really want to give my members a free-for-all...

nutnut
04 Apr 2008, 20:45
This works great, thanks!

Phalynx
04 Apr 2008, 21:56
it is necessary to make addition of moderators by the button
(if there was a version earlier 1.1)

for safety:
It is not very helpful to post all settings. Please post only relevant.

HTML is already disabled in next version.


I love this mod do you have a donate button id like to donate some money for this great mod
You can send me money via PayPal. Use this eMail: contact AT marius DOT de


Very nice -- would love to see a future option where forums are only visiable to group members. :)
Already on my Todo-list.

Can you please fix permissions so that the admin group (or maybe even make it so you can chose group id #s that automatically have permission) is able to view/post in the social forums?

I like this hack, but I don't really want to give my members a free-for-all...
That's something that has to be discussed. In vBulletin you can have private forums where admins don't have access. That's a feature not a bug.

jilly
05 Apr 2008, 00:11
there are two jpgs in the zip download, but no description on what to do with them?

Varsh
05 Apr 2008, 00:18
Just ignore those pics, they're the same screenshots as you see in the OP.

Koroku
05 Apr 2008, 00:57
That's something that has to be discussed. In vBulletin you can have private forums where admins don't have access. That's a feature not a bug.
Could you at least make it an option of some sort? "Let admins have access to all Socialforums? Y/N" or something?

wicked80
05 Apr 2008, 01:19
I thought the forum will also show up on the groups page where the "message bpx" is showing...but it only displays the forums in the forum page and not in the groups page.

Is this something possible?

maidos
05 Apr 2008, 02:18
well ppl can still start a thread on the forum section even if they arent meber or owner of the social group... and how do i make the subforum when a new group is created.

Phalynx
05 Apr 2008, 07:04
Could you at least make it an option of some sort? "Let admins have access to all Socialforums? Y/N" or something?
Sure.

I thought the forum will also show up on the groups page where the "message bpx" is showing...but it only displays the forums in the forum page and not in the groups page.

Is this something possible?
Very difficult, I would have to re-code stuff like in forumdisplay.php

well ppl can still start a thread on the forum section even if they arent meber or owner of the social group... and how do i make the subforum when a new group is created.
How do you can post in a forum when you cannot create a forum because of a missing link?!?

Varsh
05 Apr 2008, 10:02
how do i make the subforum when a new group is created.
Having a subforum for an SG isn't really the best idea, though if you still want one then you'll have to create it in the ACP.

trackpads
05 Apr 2008, 15:27
Nice work, whould be a default VB feature

toonysnn
05 Apr 2008, 17:39
Great modification! I will probably require the sub-forums, but I can code that myself. :)
/me installs and nominates for MOTM

Amit86
05 Apr 2008, 21:16
question
a member of mine opened up a group and he wanted to make a new forum, he pressed the link, and got a no access page
how do i fix this for his usergroup?

Varsh
05 Apr 2008, 23:02
Are there enough members in the SG? The default is set to 5 members in the ACP. Check the vBulletin Options.

jilly
05 Apr 2008, 23:50
Okay, I made a forum in a group, and the forum works fine, but the regular area of messages is gone - all the past ones disappeared, and there is no way to post new ones - the only place to post messages is the forum, is this supposed to happen?


Also, how does the group leader get 'permission' to moderate their social forum? Does it add them to the moderator usergroup?

Tynian
06 Apr 2008, 01:19
Yes, the fact that the 'original' messages of the social group disappear is a pitty. For the rest it's a very cool piece of code!

Amit86
06 Apr 2008, 03:00
Are there enough members in the SG? The default is set to 5 members in the ACP. Check the vBulletin Options.

if u were talking to me, there was more than 5 members in the group
is said NO ACCESS
not tha i need more members

AWMGolfer
06 Apr 2008, 03:07
Not sure if this has been asked but when I disable group messages so that the forum can be used, will those messages be lost or still viewable? Many of my groups currently have lengthy discussions going and I'd hate to lose those if possible. Thanks!!

Varsh
06 Apr 2008, 09:43
if u were talking to me, there was more than 5 members in the group
is said NO ACCESS
not tha i need more members
Which category are your SG forums pointed to? If they're pointing to "1" and you don't have a category/forum with an ID of "1" then you will get that error, same if you have a category with permissions for a set usergroup.

Yours Truly
06 Apr 2008, 10:57
Here are the settings from 1.2:
$forumdm->set_bitfield('options', 'active', '1');
$forumdm->set_bitfield('options', 'allowposting', '1');
$forumdm->set_bitfield('options', 'cancontainthreads', '1');
$forumdm->set_bitfield('options', 'moderatenewpost', '0');
$forumdm->set_bitfield('options', 'moderatenewthread', '0');
$forumdm->set_bitfield('options', 'moderateattach', '0');
$forumdm->set_bitfield('options', 'allowbbcode', '1');
$forumdm->set_bitfield('options', 'allowimages', '1');
$forumdm->set_bitfield('options', 'allowhtml', '1');
$forumdm->set_bitfield('options', 'allowsmilies', '1');
$forumdm->set_bitfield('options', 'allowicons', '1');
$forumdm->set_bitfield('options', 'allowratings', '1');
$forumdm->set_bitfield('options', 'countposts', '1');
$forumdm->set_bitfield('options', 'canhavepassword', '1');
$forumdm->set_bitfield('options', 'indexposts', '1');
$forumdm->set_bitfield('options', 'styleoverride', '0');
$forumdm->set_bitfield('options', 'showonforumjump', '0');
$forumdm->set_bitfield('options', 'prefixrequired', '0');



They can be hide, but for everyone. Direct access only for members of the group. But if someone knows the exact URL of the forum he gain's access.


Please PM me login details as Admin to your site. I need also query permission.



If you get a "Invalid Forum Specified" you should check parent forum setting in AdminCP/Settings/SocialForums


With 1.2 this is not needed anymore. SocialForums 1.2 will be released today.
Thank you :)

hrk
06 Apr 2008, 12:43
clicking social group messages(moderated and deleted ) output this error :

Database error in vBulletin 3.7.0 Beta 4:

Invalid SQL:

SELECT SQL_CALC_FOUND_ROWS
groupmessage.*, user.*, groupmessage.ipaddress AS messageipaddress, socialgroup.name

,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight


FROM moderation AS moderation
INNER JOIN groupmessage AS groupmessage ON (moderation.primaryid = groupmessage.gmid AND type = 'groupmessage')

LEFT JOIN user AS user ON (groupmessage.postuserid = user.userid)
LEFt JOIN socialgroup AS socialgroup ON (groupmessage.groupid = socialgroup.groupid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)


WHERE 1=1
AND moderation.dateline >= 1204893707

ORDER BY groupmessage.dateline DESC
LIMIT 0, 10;

MySQL Error : Column 'type' in on clause is ambiguous
Error Number : 1052

Classname : vb_database
MySQL Version : 4.1.22-standard


UNINstalled for now.

nerofix
06 Apr 2008, 19:01
I wonder that nobody else did post it yet, but when a member try to create a group forum, then he or she get the message:

XXX, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


What could be the reason?


Edit: By the way, it would looks great if the group forum would appears within the group itself.

And why the group message wall goes away?

jilly
06 Apr 2008, 20:45
I wonder that nobody else did post it yet, but when a member try to create a group forum, then he or she get the message:

XXX, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
And why the group message wall goes away?

My regular users are getting that too - only admins can make forums in groups right now - and yes, I am also confused as to why the group message wall goes away..

jilly
06 Apr 2008, 20:46
Not sure if this has been asked but when I disable group messages so that the forum can be used, will those messages be lost or still viewable? Many of my groups currently have lengthy discussions going and I'd hate to lose those if possible. Thanks!!

Mine disappeared, and I don't know if we will be able to get them back or not - so at this point I would not make the forum unless you don't mind losing the messages..

Phalynx
06 Apr 2008, 21:25
Not sure if this has been asked but when I disable group messages so that the forum can be used, will those messages be lost or still viewable? Many of my groups currently have lengthy discussions going and I'd hate to lose those if possible. Thanks!!
Mine disappeared, and I don't know if we will be able to get them back or not - so at this point I would not make the forum unless you don't mind losing the messages..
And why the group message wall goes away?
To avoid double-messaging it has been just disabled, they are simply not shown.
To make one thing clear: This mod does not delete group messages. It disables only the view of them. I will do in the next version a setting if they should be hide.

clicking social group messages(moderated and deleted ) output this error :
Please be more specific, as I cannot confirm this. SocialForums does not touch messages.


I wonder that nobody else did post it yet, but when a member try to create a group forum, then he or she get the message:

XXX, you do not have permission to access this page. This could be due to one of several reasons:

What could be the reason?
My regular users are getting that too - only admins can make forums in groups right now - and yes, I am also confused as to why the group message wall goes away..

Only Groupleaders can create forum. The link will be hide in next version for non-leaders.


Edit: By the way, it would looks great if the group forum would appears within the group itself.
Nice idea, yes. Had that idea also, but it's very difficult to accomplish this.

jilly
06 Apr 2008, 22:22
Only Groupleaders can create forum. The link will be hide in next version for non-leaders.


It is my Groupleaders who are getting the 'no permission to access' message.

TomJames
06 Apr 2008, 23:06
Looks very promising, going to test this out on my test board later. :)

hrk
07 Apr 2008, 01:39
Please be more specific, as I cannot confirm this. SocialForums does not touch messages.


I am not sure what is going on either.
install, activate, click social like. sql errors :erm:

thanks

Phalynx
07 Apr 2008, 07:31
It is my Groupleaders who are getting the 'no permission to access' message.
The user must have the permission "can_edit_group", this is beeing checked on top of the creation process.

I am not sure what is going on either.
install, activate, click social like. sql errors :erm:
To track this down I need an admin test account on your board. PM me if you want help.

jilly
08 Apr 2008, 11:11
How can I get the messages in my Social Group to appear again?

Phalynx
08 Apr 2008, 11:51
I released a new version , 1.2.1, this contains a new setting where you can decide if group messaging will be disabled by creating a forum.

For existing groups with forums you will have to re-enable messaging via edit group.

MaxiMal
08 Apr 2008, 12:55
may be add social forums rating ;)

toucan42
08 Apr 2008, 12:59
thanks for the update - this is a great hack!

Phalynx
08 Apr 2008, 13:02
may be add social forums rating ;)

What do you mean exactly? Please describe more.

IvyKeepMommy
08 Apr 2008, 14:07
It is my Groupleaders who are getting the 'no permission to access' message.


Mine as well... it isn't a major problem since the majority of my groupleaders are also mods, but at least one non-mod group leader PM'd me that she couldn't create (and I then went in and created it for her).

This may be a newbie question, but can you direct me to where to fix the setting so they can add the forum in vb?

Awesome mod... even with that super minor issue.

Phalynx
08 Apr 2008, 14:13
I'm checking for the permission "can_edit_group". Every Groupleader should have this permission.

KURTZ
08 Apr 2008, 15:09
Marius (i've installe this hack) it runs, but i saw that the admin/supermod can't post in a UG's Forum ...

KURTZ
08 Apr 2008, 16:39
i'm back, maybe i've found an issue:

1) i 'build' a fresh new UG
2) i create a forum for my UG (i'm the moderator) so that's OK
3) if someone join my (just) created UG i can't edit anything onto my UG (i mean forum, UG etc)

also about the Admin permissions: i also checked into 'forum permissions' and i saw that i got all the box checked to 'yes' but when i try to post into that forum i haven't the correct permissions ...

Phalynx
08 Apr 2008, 20:16
That's right, noone beside the members of a SG can post in such a social forum.

What do you mean you can't edit exactly? Forum is only editable via AdminCP. Name of forum is beeing synced with the name of the SG.

DieselTruck
09 Apr 2008, 05:28
I've read where you will make the forums accessable to just the members in the group? Correct?

Great mod, Thanks!

Phalynx
09 Apr 2008, 06:51
Yes, a future version will have a permission check for viewing and posting. Currently only posting is disallowed when the user ist not a member of the group.

KURTZ
09 Apr 2008, 08:50
That's right, noone beside the members of a SG can post in such a social forum.

What do you mean you can't edit exactly? Forum is only editable via AdminCP. Name of forum is beeing synced with the name of the SG.

i mean which when someone joins my 'fresh new' SG i can't edit anything into my social group (i mean: name of the SG, etc etc)

Phalynx
09 Apr 2008, 08:52
Does this happen also if you uninstall SocialForums? This modification does not change permissions for editing.

Varsh
09 Apr 2008, 10:21
Yes, a future version will have a permission check for viewing and posting. Currently only posting is disallowed when the user ist not a member of the group.
Once this eventually gets implemented I'll be a very happy bunny. :D
i mean which when someone joins my 'fresh new' SG i can't edit anything into my social group (i mean: name of the SG, etc etc)
You can't rename your SG, it has nothing to do with SF. If you want this feature you'll have to wait for someone else to make a hack for it or ask the vB team to implement it. If you renamed the SG name then I presume that the SF will get out of sync unless the rename of the SG also renames the SF at the same time.

I think renaming is a bad idea anyway.

jilly
09 Apr 2008, 10:51
I've installed the update, by overwriting the old .xml with the new one, and checked my admincp, and disable group messages is set to 'no', but the group messages still do not appear..

Phalynx
09 Apr 2008, 10:52
By renaming a SG the SF get's renamed also. Sync is done via ForumID, not Name.

Phalynx
09 Apr 2008, 10:53
I've installed the update, by overwriting the old .xml with the new one, and checked my admincp, and disable group messages is set to 'no', but the group messages still do not appear..

Please read my upgrade instruction:
http://www.vbulletin.org/forum/showpost.php?p=1485819&postcount=125
...
For existing groups with forums you will have to re-enable messaging via edit group.

NFLfbJunkie
09 Apr 2008, 13:31
Phalynx, were you to disable the "Allow HTML" permission for a newly created social group's forum in the last update?

Phalynx
09 Apr 2008, 13:43
allowhtml has been changed to 0 in SF1.2.1 - but this counts only for forums created after update. You will need to edit that for existing forums via AdminCP/Forums Manager

Basboss
09 Apr 2008, 18:54
Good work and thanks for sharing...

Regarding this:
Permissions
In the current version there are only basic permissions. Only group members can post in such a created forum. Forums of private groups are not protected.

What if we change the plugin @ newreply_start

From


if (intval($threadinfo['forumid']) <> 0) {
$checkpermq =$vbulletin->db->query_read("SELECT
groupid, forumid
FROM ".TABLE_PREFIX."socialgroup
WHERE forumid=".$threadinfo['forumid']);
if ($vbulletin->db->num_rows($checkpermq) > 0) {
$checkperm = $vbulletin->db->fetch_array($checkpermq);
$checkgroupq =$vbulletin->db->query_read("SELECT
*
FROM ".TABLE_PREFIX."socialgroupmember
WHERE
groupid=".$checkperm['groupid']." AND
userid=".$vbulletin->userinfo['userid']." AND
type='member'");
if ($vbulletin->db->num_rows($checkgroupq) == 0) {
print_no_permission();
}
}
}


To


if (intval($threadinfo['forumid']) <> 0) {
$checkpermq =$vbulletin->db->query_read("SELECT
groupid, forumid, type
FROM ".TABLE_PREFIX."socialgroup
WHERE forumid=".$threadinfo['forumid']);
if ($vbulletin->db->num_rows($checkpermq) > 0) {
$checkperm = $vbulletin->db->fetch_array($checkpermq);
$checkgroupq =$vbulletin->db->query_read("SELECT
*
FROM ".TABLE_PREFIX."socialgroupmember
WHERE
groupid=".$checkperm['groupid']." AND
userid=".$vbulletin->userinfo['userid']." AND
type='member'");
if ($vbulletin->db->num_rows($checkgroupq) == 0 AND $checkperm['type'] !='public') {
print_no_permission();
}
}
}



the plugin @ newthread_start

From


if (intval($foruminfo['forumid']) <> 0) {
$checkpermq =$vbulletin->db->query_read("SELECT
groupid, forumid
FROM ".TABLE_PREFIX."socialgroup
WHERE forumid=".$foruminfo['forumid']);
if ($vbulletin->db->num_rows($checkpermq) > 0) {
$checkperm = $vbulletin->db->fetch_array($checkpermq);
$checkgroupq =$vbulletin->db->query_read("SELECT
*
FROM ".TABLE_PREFIX."socialgroupmember
WHERE
groupid=".$checkperm['groupid']." AND
userid=".$vbulletin->userinfo['userid']." AND
type='member'");
if ($vbulletin->db->num_rows($checkgroupq) == 0) {
print_no_permission();
}
}
}


To


if (intval($foruminfo['forumid']) <> 0) {
$checkpermq =$vbulletin->db->query_read("SELECT
groupid, forumid, type
FROM ".TABLE_PREFIX."socialgroup
WHERE forumid=".$foruminfo['forumid']);
if ($vbulletin->db->num_rows($checkpermq) > 0) {
$checkperm = $vbulletin->db->fetch_array($checkpermq);
$checkgroupq =$vbulletin->db->query_read("SELECT
*
FROM ".TABLE_PREFIX."socialgroupmember
WHERE
groupid=".$checkperm['groupid']." AND
userid=".$vbulletin->userinfo['userid']." AND
type='member'");
if ($vbulletin->db->num_rows($checkgroupq) == 0 AND $checkperm['type'] !='public') {
print_no_permission();
}
}
}


I guess that should fix it and allow any user to post in any public social group's forum.

Phalynx
09 Apr 2008, 20:42
I guess that should fix it and allow any user to post in any public social group's forum.
Thanks for trying, but there is nothing that need's to be fixed that way. An open issue is that private groups have readable forums for everyone.

DieselTruck
09 Apr 2008, 22:23
Phalynx,

No rush or anything. But, do you have a time frame as to when you will config the forums to be private? :o

Alfa1
10 Apr 2008, 01:49
Some groups are created around the topic of an existing forum. In this case it would make no sense to have the group create a forum. Can you please add a solution for this like the admin option to turn forum creation of?

Phalynx
10 Apr 2008, 07:04
No rush or anything. But, do you have a time frame as to when you will config the forums to be private? :o
Count in weeks, not days. I have currently a lot to do.

Some groups are created around the topic of an existing forum. In this case it would make no sense to have the group create a forum. Can you please add a solution for this like the admin option to turn forum creation of?
You will have to put a query and assign the existing Forum ID to the Group.
UPDATE socialgroup SET forumid=YOURFORUMID WHERE groupid=YOURSOCIALGROUPID
Don't forget your DB-prefix.

Alfa1
10 Apr 2008, 21:56
You will have to put a query and assign the existing Forum ID to the Group.
I would like to allow such social group members to have a discussion page for the group. So, could you please add the function to just turn social forums off for specific social groups?

Phalynx
11 Apr 2008, 07:26
Yes, next version.

rob30UK
16 Apr 2008, 00:07
Just an idea....

How about locking down permissions for all users when the forum is created, and then faking an access mask if the user belongs to x social group? Could that be a way around the permissions thing?

Phalynx
17 Apr 2008, 07:56
Could be, but there are no hooks by processing permissions. I requested it already, but don't expect it in 3.7 GOLD.

juliannova
19 Apr 2008, 04:18
Can you have catogories for groups like in this one:
Groups commune

http://www.vbulletin.org/forum/attachment.php?attachmentid=53787&d=1158966272

Phalynx
19 Apr 2008, 10:36
Not in this hack - it does only create forums.

KURTZ
21 Apr 2008, 16:11
Marius it's possibile to implement a new option which can allows only a specific UG the creation of the forums?

Phalynx
21 Apr 2008, 21:12
Yes, this is already planned.

Varsh
28 Apr 2008, 10:24
For the next version could you set, on creation of the new forums, to have the following settings please:
Index of new posts - Set to no
Show private forum - Set to no
Permissions - Denied to all users except admins, supermods, mods, and registered users
That will prevent at least guests and unregistered users from checking the forums then for the time being.

Tigur
30 Apr 2008, 12:50
This is a perfect mod for "private team forums" for sport websites and people who want to have their own private team forum. Can't wait till the private forum part comes available, any idea on an ETA?

Phalynx
30 Apr 2008, 13:19
Hmmm... in few weeks I think.

IvyKeepMommy
30 Apr 2008, 13:52
Excellent! I *love* this mod -- thanks so much for the work!

Varsh
30 Apr 2008, 14:42
Everyone loves this mod. ;)

Can't wait to see the new additions mid May. :D

Tigur
01 May 2008, 03:43
Phalynx: That would be very very much appreciated :D
On a side note, a futre added feature I think would be AWESOME would be to integrate this with the subscriptions feature. Say for example I have an advertiser that wants a forum for their products and it lists it on the front page. They just set up a subscription and it auto creates the forum in the Sponsors Forums section. :) Ooo I see a lot of potential for this one :D

Rickeo
02 May 2008, 00:44
This should be made like MySpace where it doesn't create a forum on the actual board but creates a posting area in the group section.

Or just at least make it so people including admins and mods on the board can ONLY see forums THEY are apart of.

I mean otherwise it's going to look over flooded and stupid I think it would be best if there was a discussions area on the group page itself that's just my idea and suggestion would be nice to see.

Rick

Blackhat
02 May 2008, 18:44
Is there a way to make the current moderator team access the forums with their mod tools, by letting the social group creator be the only mod is not a good choice IMO :)

THanks

Varsh
02 May 2008, 23:25
If the SGF is hidden and private, why should the mod team have access to it? Defeats the point of having it private and hidden in the first place. Admins of course should be able to have access though (with an option not to be able to) but not mods.

Aclikyano
03 May 2008, 02:46
- Private social groups forums are not protected yet


^ any word on this?

Varsh
03 May 2008, 11:19
He mentioned earlier that it will be in the next version, I think.

oz_girl
04 May 2008, 02:27
Reserved :D

hichew
04 May 2008, 11:39
will try this tonight

joakandr
04 May 2008, 19:32
When a social group is deleted, the forum isn't.

BrandiDup
04 May 2008, 19:35
Very nice. Not sure if I will install or not but very nice mod!

Phalynx
04 May 2008, 20:06
When a social group is deleted, the forum isn't.

Readme:
- By deleting a group the forum should also be deleted/archived. Currently this has to be done manually

trackpads
04 May 2008, 20:55
Very nice!! Excellent work!!!

hichew
05 May 2008, 10:27
i tried this mod on my forum last night but can't find the "create forum" altough i set the minimum member to create forum is 1

any comment on performance issue with 450.000 members on board?

Varsh
05 May 2008, 13:11
Enter the social group and at the bottom bar where it has edit/delete group, pending members, etc., the link to create the forum is in there.

therogueforums
06 May 2008, 09:07
Installed! Thank you! Until this mod was released, I had no intention of using the Social Groups option.

trackpads
06 May 2008, 17:54
I think a good interim solution would be making the forum not viewable on the Vb index. That way it is still slightly private because you would have to atleast entire the club to get the link to the forum.

This is a freaking awesome idea for a hack!!!

Tigur
07 May 2008, 19:05
I've been wanting a hack like this for a long time - only one who came close was vBClubs and even then it wasn't truly what I wanted. I can't wait till the private forum part becomes available. Especially if it hid it from other user groups automatically.

Mum
07 May 2008, 19:58
In the meantime is there anyway to manually hide this except for members of the group? I am trying to work out how, but can't cos there isn't any 'permissions' for the group - is there any wya around this shortterm?

aggiefan
07 May 2008, 20:55
In the meantime is there anyway to manually hide this except for members of the group? I am trying to work out how, but can't cos there isn't any 'permissions' for the group - is there any wya around this shortterm?

i dont think there is a way but the next version would support that.... and yes its the only real problem with this script. this really needs to make it in and im hoping it will because this is an outstanding hack.

also one other little thing i would like to see added maybe.... have a similar section to "recent posts" showing on the group page in vbulletin. much like vbadvanced where we can get an idea of the forum w/o having to visit it.

FASherman
07 May 2008, 21:20
Nice hack. Interesting too. About three years or so back, there was a hack here that did something similar. It allowed users to set up their own forum within a forum. It didn't las long as Jelsoft felt it was "subleasing" vBulletin.

I can't remember the author, but it seems like he was too far ahead of the times, coming up with social groups before the concept was mainstream.

At any rate, love this hack and the new direction forums in general are taking. Definitely HOTM material.

trackpads
08 May 2008, 02:33
But cant you set the default display for each new forum to 0 so that it is hidden? If I do that for a top level forum it is hidden. Some hacks like the VBTube Pro do this so that the comments forums are hidden.

Phalynx
08 May 2008, 08:47
SocialForums has been nominated for Mod of the Month:
http://www.vbulletin.org/forum/showthread.php?t=177690

Phalynx
08 May 2008, 08:50
I think a good interim solution would be making the forum not viewable on the Vb index.
That is in fact a really good idea, which can be set via AdminCP/Settings/SocialForums/Visibility of social forums

Nice hack. Interesting too. About three years or so back, there was a hack here that did something similar. It allowed users to set up their own forum within a forum. It didn't las long as Jelsoft felt it was "subleasing" vBulletin.
I know that case, and it has been clearified with vBulletin in front of the release of this hack.

FASherman
08 May 2008, 11:38
I know that case, and it has been clearified with vBulletin in front of the release of this hack.
I wasn't suggesting there was any similar issues with this hack (which I voted for as MOTM). I just thought it is ironic that what that coder was tying to do then has become so mainstream now that we can apply a "social network" label to it.

trackpads
08 May 2008, 12:11
I wasn't suggesting there was any similar issues with this hack (which I voted for as MOTM). I just thought it is ironic that what that coder was tying to do then has become so mainstream now that we can apply a "social network" label to it.
Same here, I remember the old one and I vehemently supported it.

This is a fantastic idea and I appercaite you coding it!

Thanks again!

-Jason

queengoc
08 May 2008, 16:36
Thank you for this. I just had a member ask about this ability yesterday. My question is, is there a way to set it so that only one social group can start a forum? I am worried about server issues if I allow all of the groups to start their own forum but one of the groups is a book discussion group so this would be a wonderful option for them. If this was asked somewhere else, I'm sorry. I did read the other pages but I've been reading so many different mods lately and at different points I can't remember what is what.

Thanks!

Phalynx
09 May 2008, 10:15
They can create the forum and after that set the minimum members required to f.e. 9999

queengoc
09 May 2008, 12:18
Ahhhh, very smart. Thanks Phalynx! :up:

queengoc
09 May 2008, 16:52
OK, I have another question. When trying to open a new forum I get invalid forum specified. In a previous post this was answered with:

If you get a "Invalid Forum Specified" you should check parent forum setting in AdminCP/Settings/SocialForums


I don't understand what the parent forum should be set as. Currently it says 1. What does it mean by parent forum? I don't want it on the main forum page. I hope that this makes sense.

Thanks!

Varsh
09 May 2008, 21:11
All forums have an ID, make sure that the parent forum/category ID is the same one you want your social forums to be in. For instance:

General (1)
Gaming (3)
Social Forums (7)
- SG Forums1 (2)
- SG Forums2 (5)
- SG Forums3 (6)

In brackets is the forum ID, basically in this case I would set the parent forum as "7".

queengoc
09 May 2008, 21:50
I'm sorry, I am confused. Do I need to create a parent forum on the main page? If so, then how does that differentiate a social forum from all of the other forums I have set up? I thought the social forum went in the social group area where they are currently posting. Do I great a forum or child forum and then make in not visible so that it only shows up in the group area?

Thanks!

Phalynx
09 May 2008, 23:39
You can set your parents forum display level to 0 to hide it. All social forums are hidden then.

queengoc
10 May 2008, 01:06
Awesome, it works like a charm. :up: Thanks again Phalynx!

queengoc
10 May 2008, 02:42
Sorry, one final question (I hope). How do I prevent posts from the social group forum from showing up in the new posts search?

Thanks!

Varsh
10 May 2008, 10:37
Go to the forum and edit the settings, you want to turn off "Index New Posts in Search Engine" and set "Show Private Forum" to no. The old posts will still be viewable however.

queengoc
10 May 2008, 12:36
Fantastic! Thanks Varsh! That setting will help me in the future also. Now I have everything set just the way I want it. Thanks everyone for your help. It's been greatly appreciated and I learned some new things along the way. You definitely get my vote for MOTM!

irishblue
11 May 2008, 04:56
This looks like a great mod.
The default vb social groups looks kind of messy now with the group messages. It would be nice to see them organized as threads like how a forum works perhaps with stickys and all.
I hope to install this once the private groups protection issue is solved :)

queengoc
11 May 2008, 14:27
Varsh, posts are still showing in the new posts search. Is there something else I need to do? Thanks!

Varsh
11 May 2008, 22:37
Try rebuilding the cache and posts, if that doesn't work then I guess it's just waiting for the privacy settings which'll hopefully be this week or next.

queengoc
12 May 2008, 00:55
LOL, ok I don't know how to do that and I couldn't find it in a search so I'll wait for the privacy settings to be installed. I can wait a couple of weeks. Thanks again for all of your help.

KuJoe
13 May 2008, 02:04
Whenever a group owner tries to edit anything about their group they get an "Invalid Title Specified" message. Anybody else experiencing this? I uninstalled the plugin and it was working again, not sure what's causing this though.

Phalynx
13 May 2008, 07:53
This modification will try to change the title of the forum if someone changed the title of the group. What was the title of the group?

KuJoe
13 May 2008, 12:48
Nobody is trying to change the title. They are trying to turn off the Group Messages but when they click "Save" they get a "Invalid Title Specified" error. They don't have access to change the title (as they are not moderators) so their is no way around it. :(

swantonio
13 May 2008, 12:52
this posible create forum private ??

KuJoe
13 May 2008, 12:55
this posible create forum private ??

It's in the works according to this thread.

Phalynx
13 May 2008, 12:57
Nobody is trying to change the title. They are trying to turn off the Group Messages but when they click "Save" they get a "Invalid Title Specified" error. They don't have access to change the title (as they are not moderators) so their is no way around it. :(

Will be fixed in next version.

swantonio
13 May 2008, 13:13
It's in the works according to this thread.

ok Good !!++

Smiry Kin's
13 May 2008, 22:17
any ETA on when the permission will be fixed on weather its a invite-only/moderated or public forum.. as it should be addressed already?

regards

Phalynx
13 May 2008, 22:34
Already posted that I'm currently busy with other (paid) hacks.

Smiry Kin's
14 May 2008, 00:21
Already posted that I'm currently busy with other (paid) hacks.
ah i see. well if thats the case

/me uninstalls

Baldilocks
14 May 2008, 03:51
Very nice -- would love to see a future option where forums are only visiable to group members. :)

Yep, what's the point of having private Social Forums if anyone can see and post in them..... this MUST be addressed.

Mum
14 May 2008, 04:05
Yeah it's a shame, this almost fixed the problem of the social groups, and now it's been abandoned just when it was going to get good!

Baldilocks
14 May 2008, 04:15
Hopefully someone else will pick up on it.

Phalynx
14 May 2008, 07:20
This hack is NOT abandoned, it will continue just 1-2 Weeks. But CURRENTLY I'm busy with other stuff.

Phalynx
14 May 2008, 07:33
Yep, what's the point of having private Social Forums if anyone can see and post in them..... this MUST be addressed.

No, also with this version only members of the group can post in it. Also, why don't you set the visibility to 0?

Baldilocks
14 May 2008, 08:43
I was able to post in the forum of a private group without being a member of it, that's why I brought it up.
We tested it dozens of times just to make sure.

Even if I don't belong to a private group I can view messages and/or post to the forum.

Don't get me wrong, this is an EXCELLENT product. I just think it's not complete yet is all....

almera
14 May 2008, 17:22
When I set this product up I disabled the regular group guestbooks. However I decided to disable the product later, since I don't think the forum integrates as well with the group as the guestbook did.

Now when SocialForums is disabled again, and the option to disable guestbooks are set to no again, the guestbooks still doesn't appear! How do I get my guestbooks back?

Baldilocks
14 May 2008, 18:28
You will have to manually edit each social group. Just check the box that says, "Enable Messaging".

Mum
14 May 2008, 18:41
Baldilocks, i don't have that problem, i can't post in a group unless i am a member, however anyone can view them adn see then in New Posts/

queengoc
15 May 2008, 05:04
I just had 3 threads disappear from the social forum. I didn't delete them and the only other moderator didn't delete them. I checked the moderator's logs and there is no record of them being deleted and in fact, some of the deleted posts I had edited and I can click on that and read the threads but they're not in the forum. I even tried looking for them thru the poster and they're not showing up as ever have been posted.

Does anyone have any ideas on what happened and how I can fix this?

WDZaphod
15 May 2008, 05:22
Whow, installation was easier than easy, no Problems yet.
I will activate it in the productive Forum this weekend, can't wait so see the Users go crazy :-)
Amazing hack, this gives vB a bit the touch of Orkut.

WELL DONE!!!

Phalynx
15 May 2008, 07:52
I just had 3 threads disappear from the social forum. I didn't delete them and the only other moderator didn't delete them. I checked the moderator's logs and there is no record of them being deleted and in fact, some of the deleted posts I had edited and I can click on that and read the threads but they're not in the forum. I even tried looking for them thru the poster and they're not showing up as ever have been posted.

Does anyone have any ideas on what happened and how I can fix this?

This is not a behavior of SocialForums - this hack creates just normal standard forums. If you can click on the thread, you can see also it's location in the navbar. Maybe someone has moved it?

queengoc
15 May 2008, 13:43
This is not a behavior of SocialForums - this hack creates just normal standard forums. If you can click on the thread, you can see also it's location in the navbar. Maybe someone has moved it?

OK, I was just coming on here to comment. Apparently some people can see the missing threads and some can't. I am the moderator and admin, I should be able to see everything. I've logged on as someone else and as a guest using safari and firefox and I still can't see the missing threads yet someone else could see them. I can't figure out what the heck is happening. It's only happening in the social group forum though. Should I post this question somewhere else?

Phalynx
15 May 2008, 13:55
As I already said, a social forum is just a standard forum. Check permission for this forum.

queengoc
15 May 2008, 14:05
Thanks Phalynx, you were right, the setting for some reason on that forum was set to show only the last 2 days. I didn't even know we had that function.

rainyleaves
16 May 2008, 16:47
Thanks for your MOD.

I installed and setting for parent forum.
I get this error message when I created forum.

A required field called allowupdate is missing or has an invalid value.

How can I fix?
Thanks.

quioxte
17 May 2008, 19:26
I uploa this mod and it doesn't seem to be working

I am running vb 3.7.0 beta 3

When I uploaded the product i got confirmation that the upload was succesful.
When i checked my template (vb classic blue) there are 2 new templates in the social group section.

One is socialgroups_create_forum with the code:

</li><li class="smallfont"><a href="group.php?$session[sessionurl]do=createforum&amp;groupid=$group[groupid]">$vbphrase[sf_create_forum]</a>

The other is socialgroups_linkto_forum with the code

<div id="group_creator" class="smallfont"><phrase 1="$group[forumid]">$vbphrase[sf_linkto_forum]</phrase></div>


There are no other changes that i can see in any of the other templates (i.e. socialgroups_group)

I have tried uninstalling and reinstalling the mod.

Any help would be greatly appreciated. this mod is exactly what i need

Varsh
17 May 2008, 20:36
Why're you running Beta 3? 3.7 is already out.

jilly
17 May 2008, 22:49
How exactly do the group leaders get permissions to moderate their forums? Does it put them into my regular moderator usergroup? is it some custom method?

Phalynx
18 May 2008, 22:45
I uploa this mod and it doesn't seem to be working
What exactly does not work? This mod does not modificate the vBulletin templates in the database.

How exactly do the group leaders get permissions to moderate their forums? Does it put them into my regular moderator usergroup? is it some custom method?
It just add's the group leader as an moderator to the created forum.

Chewy954
18 May 2008, 23:09
can u make it that only the people in that usergroup view that forum? I can't figure that out...

jilly
18 May 2008, 23:24
How far away is the feature that will allow private groups to have private social forums?

Phalynx
19 May 2008, 08:27
It's coming soon.

Baldilocks
19 May 2008, 08:58
Good! :) Because this is probably one of THE best ideas for 3.7.x

chriszep
19 May 2008, 09:18
Good! :) Because this is probably one of THE best ideas for 3.7.x

i'm agree , a 'simple' mod for a great idea

almera
19 May 2008, 15:59
Will the forum section of a social group be more visible too? As it is now it's easy to miss out the feature. I think the best would be if the forum either was integrated in the group page, or if there was a feed consisting of the latest posts on the group page.

mallupirates
19 May 2008, 18:33
Beautiful Mod. I like the interface very much. 3 Cheers to the coder :)

edenx
19 May 2008, 21:11
Please make a new update!

trackpads
19 May 2008, 22:00
I just went ahead and opened this for some members to move their old clubs over but after creating the forum they cannot see the Create Forum link. I set the minimu users needed to 1 and I can see it but they, as group leaders cannot.

Any ideas what I screwed up? :)

thanks,

-Jason

Baldilocks
19 May 2008, 22:08
They probably just aren't seein the link, but it is there. Perhaps it should have been put in a more visible place and/or in a couple different locations.

VargTimmen
20 May 2008, 08:39
Great Mod!
But how can I change the settings and where I have to upload the ger language .xml?
It's my first Mod, so I don't know anything :)

Benny

WDZaphod
20 May 2008, 14:28
I'm very happy with this Addon, the Forum is using already like crazy!

It would be nice to have a symbol in the overview of the social Groups, if in this Group a social Forum is existing. Klicking this symbol will link to the Social Forum.
Can you include this?

Thanks a lot!

edenx
20 May 2008, 15:31
Would be nice if group owner can define moderators for group forum

mokonzi
20 May 2008, 17:25
Does this add the moderator to the moderators group, or can it be selected which group they go to?

droid101
20 May 2008, 23:17
So what is the option "Visibility of social forums"?

Should they be visible by default? If yes, forum's visibility is set to the value of the group id.

So... what does this mean? If yes, everyone can see the forum? If no, only members can see it? Only members of the group, or only members of the board?

Baldilocks
21 May 2008, 01:39
Where would I got to make "Visit groups Forum" larger and more visible??

Phalynx
21 May 2008, 07:58
They probably just aren't seein the link, but it is there. Perhaps it should have been put in a more visible place and/or in a couple different locations.
The creation of the forum is a one time thing, why should it be on different places?

But how can I change the settings and where I have to upload the ger language .xml?
It's my first Mod, so I don't know anything :)
- AdminCP/Einstellungen, SocialForums
- Sprache hochladen, use the existing language and choose "‹berschreiben"


It would be nice to have a symbol in the overview of the social Groups, if in this Group a social Forum is existing. Klicking this symbol will link to the Social Forum.
Part of next version

Would be nice if group owner can define moderators for group forum
Negative on that.

Does this add the moderator to the moderators group, or can it be selected which group they go to?
It just add's the user as a moderator to that forum.

Phalynx
21 May 2008, 07:59
So what is the option "Visibility of social forums"?
If yes, everyone can see the forum? If no, only members can see it? Only members of the group, or only members of the board?
Everyone can see the forum.

Where would I got to make "Visit groups Forum" larger and more visible??
Part of next version

WDZaphod
21 May 2008, 09:59
:up: Addon of the Year :up: