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 03-06-2007 05:42 PM

Quote:

Originally Posted by Tom_S (Post 1197166)
Is it possible that this can work for both guest and registered members of a group? Our website is a paysite that once they pay they are upgraded into another group. Until then they are just a registered member but with no access to forums. We would like to do this so it works for both guests and the usergroup "registered users" to encourge them to upgrade their account to paid status.

Thanks in advance :)

This hack is not intended to do this but you could certainly make it do so. The question to ask yourself if is if you want to let members or guests ever access forums. It sounds like right now people get no access, limited guest viewing is intended to let them view a few threads, then stop them (and bug them until then). If you don't want people _ever_ viewing threads then you should not use this hack but can take advantage of the welcome headers system to show registered members a message about subscribing.

Tom_S 03-06-2007 06:29 PM

Registered paid members do indeed see threads and post and everything. The intent here was to allow both guests and initial registered members the ability to see a certain number of posts and then they will only see your register screen but modified.

I am using your mod on one of my other boards that is not a pay site and it works wonderful. I just would like to use it on my other board. Even if it only worked for registered users Group ID #2 then that would be okay. Anyway to implement that?

Tom_S 03-07-2007 08:47 AM

Ideas here Ted?

I really need this to work for at least just group ID 2.

I went through your code and I don't see how you are doing it and since vB is new to me I will wait until someone that knows can help and since you created this bad boy I am hoping that will be you.

Thanks

Ted S 03-08-2007 02:49 AM

Code:

<if condition="is_member_of($bbuserinfo,2)"> Message for Group 2</if>

Tom_S 03-08-2007 09:43 AM

Where does that go? I tried using something similar yesterday by changing the line:
Quote:

if ($show['guest'] AND !$lvgbot AND $vbulletin->options['lgvon'])
to:
Quote:

if ($bbuserinfo['2'] AND !$lvgbot AND $vbulletin->options['lgvon'])
but that didn't work.

I really appreciate your help on this :)

Ted S 03-09-2007 03:32 AM

$bbuserinfo['2'] doesn't do much of anything ;)

Try

PHP Code:

$membergroups fetch_membergroupids_array($vbulletin->userinfo);
if (
in_array('2'$membergroups) AND !$lvgbot AND $vbulletin->options['lgvon']) 


Tom_S 03-09-2007 08:44 AM

Those changes made it work for the initial test. I will do further testing later today. With that in mind do you realize the potential for this mod? You could basically set it up to control campains over any usergroup setup. Wow! Great job my friend. Great job indeed. :)

milsirhc 03-10-2007 07:41 AM

works great! Good to have abit of teaser for the guest.. let see how it goes!

ArabSQuad 03-10-2007 10:52 AM

Awesome ..

* installed :)

thanks alot

sdebank 03-10-2007 06:41 PM

Is it possible to allow guests to only see posts that are x amount of hours old. Thus guests wanting to see the latest news/posts will have to register/sign-in.


All times are GMT. The time now is 04:18 AM.

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.01509 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_php_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