vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove from index for guest only (https://vborg.vbsupport.ru/showthread.php?t=187810)

Wizardjv 08-11-2008 06:43 AM

Remove from index for guest only
 
I was wondering if someone could help me with a conditional problem having.

I know this removes something from the index only

<if condition="THIS_SCRIPT != 'index'">

But how would I remove something from the index only for only guests.

I need it off the index but only when they are guests, but when not guests on the index.

djxcee 08-11-2008 07:09 AM

PHP Code:

<if condition="!is_member_of($bbuserinfo, X)"></if> 

X = Usergroup #

Wizardjv 08-11-2008 02:16 PM

That doesnt work. It removes it from the entire board for guests. I just need it removed from the index for guests only. But I want guests to see it elsewhere. But thank you anyway

Lynne 08-11-2008 02:44 PM

Are you talking about the code to put in a plugin or in a template? If it's the template and you only want to show something to members, you can use:
HTML Code:

<if condition="$show['member']">
whatever is only shown to members
</if>


Wizardjv 08-11-2008 08:30 PM

I want to combine 2 conditionals

If they are a guest and this is on the homepage it is not shown.

Code:

<if condition="$bbuserinfo['userid'] == 0" and "THIS_SCRIPT != 'index'">
SOmething like that but I cant get it to work. This is on the forumhome

RLShare 08-11-2008 09:38 PM

It belongs in a single set of quotation marks, not a set of quotation marks for each condition.
PHP Code:

<if condition="$show['member'] and THIS_SCRIPT != 'index'"


Wizardjv 08-11-2008 09:57 PM

Thank you very much that was very helpful :)


All times are GMT. The time now is 09:14 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.01095 seconds
  • Memory Usage 1,723KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete