PDA

View Full Version : List of $Show variables


BasilFawlty
03-21-2018, 03:34 AM
I have a couple of silly questions.

First question: If I have code like:
<vb:if condition="$show['guest']"> or
<vb:if condition="$show['member']">

Then I can do some action if, for example, a person is not logged in (case 1) or they are logged in (case 2). What of I want to test for a member's post count? For example to test if the user has a post count = 1000

<vb:if condition="$bbuserinfo['posts'] = 1000">

Second question, is there a way to determine all the conditions that could be tested with "$show"?

MarkFL
03-21-2018, 04:21 AM
What I generally would do, is use a plugin to display the contents of the $show array at the desired location, because its contents will vary depending on which script is running.

BasilFawlty
03-21-2018, 11:15 PM
Thanks.