vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Limited Guest Viewing -- Improve community registration rates (https://vborg.vbsupport.ru/showthread.php?t=131985)

Ted S 11-15-2007 06:57 PM

Changing the title of the groups won't do anything... they're referanced by ID numbers.

You would need to change the line of code you referanced to add an appropriate OR statement for the usergroup you want to check against.

BadgerDog 11-15-2007 07:40 PM

Can anyone tell me how to restructure this line within Ted's mod with an "OR" statement, so that it will include Usergroup #3 "Users Awaiting Email Confirmation" as well as guests which is Usergroup #1 "Unregistered / Not Logged In"?

In this way, it will extend the use of this fine mod and visitors to our community will end up being blocked until they fully complete the registration process.

Code:

// check if user is a guest and if system is enabled
if ($show['guest'] AND !$lvgbot AND $vbulletin->options['lgvon'])

Thanks for any help offered .... :)

Regards,
Badger

Ted S 11-15-2007 10:53 PM

I'm not in a place where I can test but try

Code:

if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon'])
Where X,Y,Z are groups you want to treat like guests (it can be just one group).

If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead.

BadgerDog 11-16-2007 10:55 PM

Quote:

Originally Posted by Ted S (Post 1383415)
I'm not in a place where I can test but try

Code:

if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon'])
Where X,Y,Z are groups you want to treat like guests (it can be just one group).

If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead.


Thanks Ted.... :)

I tried both approaches....

if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])

if ( ($show['guest'] OR in_array($vbulletin->userinfo['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon'])

..... but I get an error as follows:

Parse error: syntax error, unexpected '{' in /forums/mysite/showthread.php(345) : eval()'d code(133) : eval()'d code on line 7

Thanks...

Regards,
Badger

Ted S 11-17-2007 09:47 PM

Missing a closing )

Code:

if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3')) AND !$lvgbot AND $vbulletin->options['lgvon'])

kiFF 12-15-2007 02:57 AM

My only problem is that when the "Register Take-Over Message" is enabled, my welcome headers only show up on the main page. If I go into a thread no header shows up.

Ted S 12-15-2007 06:18 AM

Quote:

Originally Posted by kiFF (Post 1401301)
My only problem is that when the "Register Take-Over Message" is enabled, my welcome headers only show up on the main page. If I go into a thread no header shows up.

Go into your Limited Guest Viewing settings and disable Welcome Header Message Suppression.

kiFF 12-15-2007 01:50 PM

Quote:

Originally Posted by Ted S (Post 1401351)
Go into your Limited Guest Viewing settings and disable Welcome Header Message Suppression.

That's not one of the options.

diviniti 12-15-2007 03:38 PM

Installed on 3.6.8 and working great. Thanks!
(Clicks Installed)

Racecar 12-16-2007 02:44 PM

Installed on 3.6.8 and it seems to be working great


All times are GMT. The time now is 01:18 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.01583 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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