PDA

View Full Version : Template var question


Code Monkey
09-25-2006, 03:35 AM
Is there a canview type of template var for conditionals? I seem to remember there was one to use to keep adsense from apearing in non public areas. I can't seem to remember what it is. :confused:

Guest190829
09-25-2006, 03:36 AM
Is there a canview type of template var for conditionals? I seem to remember there was one to use to keep adsense from apearing in non public areas. I can't seem to remember what it is. :confused:

Can you clarify a bit more on canview type?

calorie
09-25-2006, 03:43 AM
is_member_of perhaps

Code Monkey
09-25-2006, 03:43 AM
$show['guest'] maybe?

Ah, $show['search_engine']. I knew I had seen that before.

Nah, that won't work either.

Guest190829
09-25-2006, 04:09 AM
$show['guest'] maybe?

Ah, $show['search_engine']. I knew I had seen that before.

Nah, that won't work either.


<if condition="!$show['member']">
<!--User is a guest -->
</if>


Is that what you are looking for?

Code Monkey
09-25-2006, 05:04 AM
No, because it needs to show to members and guests. I just want to stop the adsence spider from being trigered in forums it can't see. Too many errors and they get upset. ;)

I guess I have to sleep on it and code my own.

kall
09-25-2006, 07:23 AM
Have you hacked it so Guests can see what spiders cannot?

'They' tend to frown on that too, AFAIK. :)

Otherwise... is there some reason why you can't just use an array of $forum[forumid]?

Or, if it is more complicated... pull the Permissions for it and restrict/allow it that waY?

Code Monkey
09-25-2006, 01:24 PM
No I am not cloaking.

There are lot's of things I can do with code, I just wanted to know if vBulletin already took care of that. I guess it doesn't