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)
-   -   Social Group and Album Enhancements - Hidden Invite Only Social Groups (https://vborg.vbsupport.ru/showthread.php?t=184715)

JamesAB 12-08-2008 06:35 AM

I believe it's still not possible to hide invite only groups in vbulletin 3.8.0 RC1

Anyone else working on this?

This line should not use TABLE_PREFIX, instead try this:

PHP Code:

$socialgroupsearch->generator->where['type'] = "socialgroup.type != 'inviteonly'"

Thanks,
James

PtitLu 01-05-2009 12:00 PM

Quote:

Originally Posted by JamesAB (Post 1680750)
This line should not use TABLE_PREFIX, instead try this:

Works perfectly on 3.7.4 without TABLE_PREFIX. Thanks.

PtitLu 01-06-2009 08:30 AM

With your mod installed it is no longer possible to view the date/hour of the last post in the group you belong to. Would it be possible to display this (only hour or hour and name of the poster) ?
Thanks.

donnyaz 04-06-2009 07:32 PM

Shoot you have a great idea but I am scared so scared.

grey_goose 05-17-2011 08:29 PM

Seems to work fine with the groups.php and modifying functions_online.php. I get an error with the class_profileblock.php.

Using 3.8.6; would like to see this updated.

EDIT:

Ooops, doesn't work. Get an error on a new group creation:
A required field called socialgroupcategoryid is missing or has an invalid value.
(Category dropdown is non-functional)

grey_goose 05-17-2011 08:54 PM

Found another one:

PHP Code:

//wesley MOD
// If a group id is specified, but the group doesn't exist, error out
if ($vbulletin->GPC['groupid'])
{
    
$group fetch_socialgroupinfo($vbulletin->GPC['groupid']);

    if (empty(
$group)) {
        
standard_error(fetch_error('invalidid'$vbphrase['social_group'], $vbulletin->options['contactuslink']));
    }
    else if (
$group['type'] == 'inviteonly' && $group['membertype'] != 'member' AND $group['membertype'] != 'invited' && !can_moderate(0'caneditsocialgroups'))
    {
        
print_no_permissions();
    }
}
//WESLEY MOD 

The last line should be:

print_no_permission();

Note that the 's' is removed from permission. I guess this is a 3.8 change?


All times are GMT. The time now is 02:15 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.01035 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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