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)

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.


All times are GMT. The time now is 07:40 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.01863 seconds
  • Memory Usage 1,779KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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