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 05-12-2008 09:26 PM

Quote:

Originally Posted by iheartvb (Post 1517583)
your the man ted! thank you sooooooooooo much!!!

Glad I could be of assistance.

swatkins 05-17-2008 11:36 PM

Thanks! Installed and working well!

mrkhm 06-06-2008 09:34 PM

hi!

thanks for this amazing hack, i hope someone can answer this,

at the moment, looking at your xml file it seems the current code is

Code:

if ($show['guest'] AND !$lvgbot AND $vbulletin->options['lgvon'])
but i would like the system to work as

Code:

if (is_member_of($bbuserinfo, x) AND !$lvgbot AND $vbulletin->options['lgvon'])
can you see what i am trying to do is make this work for a particular forum for a particular usergroup not just for guests and the only other way is to use if ($show['member']) (which does work but then it's a blanket application to ALL MEMBERS, i just want a specific usergroup.

do i have to call the global file or something?

please advise.

Ted S 06-06-2008 10:43 PM

mrkhm, You can combine the function is_member_of($bbuserinfo, x) with $show['guest'] like follows:

PHP Code:

if( ($show['guest'] OR  is_member_of($bbuserinfox) ) AND !$lvgbot AND $vbulletin->options['lgvon']) ) .... 


mrkhm 06-06-2008 11:37 PM

thanks for your response Ted S, before i saw yours, i managed to get this line of code to work:

Code:

if ($show['member'] AND is_member_of($vbulletin->userinfo, 2) AND !$lvgbot AND $vbulletin->options['lgvon'])
as supposed to

Code:

is_member_of($bbuserinfo, 2)
it's just every time they log out, vbulletin clears the cookies, but i take point that this was designed for guest views and not exactly for the way i am trying to modify it into sort of pay-per-views

but thank you all the same...

Ted S 06-07-2008 04:20 PM

Theres no need for "$show['member'] AND ", to be in a group you must be a member. :D

But yes, logging out clears the cookies which would get around this. If your goal is pay per view you'd likely want an addon that stores views in a database and hard counts them. This can of course be done with a little bit of customization.

mrkhm 07-20-2008 02:48 PM

hi ted can you do this.. i will pm you

Welshy2008 08-05-2008 06:17 PM

Thank You very Much. Works a treat. (My first Hack too).

Welshy2008 08-09-2008 11:21 AM

Hi,

Could you tell me how I can remove the message at the top on the hompage Please? And just keep the message that shows when guests have used up the stated amount of viewings before registering.

Many Thanks.

Ted S 08-11-2008 04:51 AM

Quote:

Originally Posted by Welshy2008 (Post 1594703)
Hi,


Could you tell me how I can remove the message at the top on the hompage Please? And just keep the message that shows when guests have used up the stated amount of viewings before registering.

Many Thanks.

This addon does not show on your forum homepage. Check your other addons and be sure you have properly installed this one.


All times are GMT. The time now is 10:09 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.01629 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
  • (1)bbcode_php_printable
  • (2)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
  • (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