vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - SocialForums 1.4 (https://vborg.vbsupport.ru/showthread.php?t=174878)

TomJames 04-06-2008 10:06 PM

Looks very promising, going to test this out on my test board later. :)

hrk 04-07-2008 12:39 AM

Quote:

Originally Posted by Phalynx (Post 1484661)
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 04-07-2008 06:31 AM

Quote:

Originally Posted by jilly (Post 1484698)
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.

Quote:

Originally Posted by hrk (Post 1484837)
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 04-08-2008 10:11 AM

How can I get the messages in my Social Group to appear again?

Phalynx 04-08-2008 10:51 AM

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 04-08-2008 11:55 AM

may be add social forums rating ;)

toucan42 04-08-2008 11:59 AM

thanks for the update - this is a great hack!

Phalynx 04-08-2008 12:02 PM

Quote:

Originally Posted by MaxiMal (Post 1485869)
may be add social forums rating ;)

What do you mean exactly? Please describe more.

IvyKeepMommy 04-08-2008 01:07 PM

Quote:

Originally Posted by jilly (Post 1484698)
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 04-08-2008 01:13 PM

I'm checking for the permission "can_edit_group". Every Groupleader should have this permission.

KURTZ 04-08-2008 02:09 PM

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

KURTZ 04-08-2008 03:39 PM

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 04-08-2008 07:16 PM

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 04-09-2008 04:28 AM

I've read where you will make the forums accessable to just the members in the group? Correct?

Great mod, Thanks!

Phalynx 04-09-2008 05:51 AM

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 04-09-2008 07:50 AM

Quote:

Originally Posted by Phalynx (Post 1486170)
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 04-09-2008 07:52 AM

Does this happen also if you uninstall SocialForums? This modification does not change permissions for editing.

Varsh 04-09-2008 09:21 AM

Quote:

Originally Posted by Phalynx (Post 1486487)
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
Quote:

Originally Posted by KURTZ (Post 1486525)
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 04-09-2008 09:51 AM

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 04-09-2008 09:52 AM

By renaming a SG the SF get's renamed also. Sync is done via ForumID, not Name.

Phalynx 04-09-2008 09:53 AM

Quote:

Originally Posted by jilly (Post 1486579)
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:
https://vborg.vbsupport.ru/showpost....&postcount=125
Quote:

Originally Posted by Phalynx (Post 1485819)
...
For existing groups with forums you will have to re-enable messaging via edit group.


NFLfbJunkie 04-09-2008 12:31 PM

Phalynx, were you to disable the "Allow HTML" permission for a newly created social group's forum in the last update?

Phalynx 04-09-2008 12:43 PM

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 04-09-2008 05:54 PM

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

PHP Code:

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

PHP Code:

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) == AND $checkperm['type'] !='public') {
   
print_no_permission();
  }
 }



the plugin @ newthread_start

From

PHP Code:

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

PHP Code:

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) == 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 04-09-2008 07:42 PM

Quote:

Originally Posted by Basboss (Post 1486882)
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 04-09-2008 09:23 PM

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 04-10-2008 12:49 AM

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 04-10-2008 06:04 AM

Quote:

Originally Posted by DieselTruck (Post 1487003)
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.

Quote:

Originally Posted by Alfa1 (Post 1487119)
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.
Code:

UPDATE socialgroup SET forumid=YOURFORUMID WHERE groupid=YOURSOCIALGROUPID
Don't forget your DB-prefix.

Alfa1 04-10-2008 08:56 PM

Quote:

Originally Posted by Phalynx (Post 1487284)
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 04-11-2008 06:26 AM

Yes, next version.

rob30UK 04-15-2008 11:07 PM

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 04-17-2008 06:56 AM

Could be, but there are no hooks by processing permissions. I requested it already, but don't expect it in 3.7 GOLD.

juliannova 04-19-2008 03:18 AM

Can you have catogories for groups like in this one:
Groups commune

https://vborg.vbsupport.ru/attachmen...7&d=1158966272

Phalynx 04-19-2008 09:36 AM

Not in this hack - it does only create forums.

KURTZ 04-21-2008 03:11 PM

Marius it's possibile to implement a new option which can allows only a specific UG the creation of the forums?

Phalynx 04-21-2008 08:12 PM

Yes, this is already planned.

Varsh 04-28-2008 09:24 AM

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 04-30-2008 11:50 AM

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 04-30-2008 12:19 PM

Hmmm... in few weeks I think.

IvyKeepMommy 04-30-2008 12:52 PM

Excellent! I *love* this mod -- thanks so much for the work!


All times are GMT. The time now is 05:55 PM.

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

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

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete