Hey, I'm trying to test this out and see if I can make something cool for my members, but I've noticed something a bit weird...
For the template, I've got the following code:
Code:
<if condition="$vbulletin->userinfo['userid'] == 15010">
<div class="alt1 block_row">
<ul class="list_no_decoration">
$block_data[animelist]
</ul>
</div>
</if>
The conditional is there because, as I said, I'm testing it out and don't want all my members to see it yet, just me. However, after not getting it to display and a bit of tinkering around, I've found out that the
$vbulletin object does not exist as far as the template is concerned. I've tried these variations to be sure:
Code:
<if condition="$vbulletin->userinfo['userid'] == 15010">
<if condition="$vbulletin->userinfo['userid']">
<if condition="$vbulletin->userinfo">
<if condition="$vbulletin">
<if condition="1">
The last one DID work, of course.
How would I make it so that the $vbulletin object IS recognized?
EDIT: BTW, I did "solve" it simply by putting the plugin itself in some "IF" brackets, but still for curiosity's sake, let's say for some reason I wanted to use the $vbulletin object in the tab (maybe I wanted to make a Tab with the User's name or something equally silly).