The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show HTML only to logged in members?
I'm completely new at PHP... I've been using a perl hack I wrote that reads the vb database in perl so I can write code that I know.
Time to learn... So let's start with the basics please... How do I show HTML code only to logged in members? Now I'm assuming I can not do this via the template area correct? So I'll have to add it to the correct spot? Let's say I wanted to put "HELLO WORLD", and show it only to the members in the footer. How would I go about doing this? Thanks for the help in advance, and I'm looking forward to learning this stuff. |
#2
|
||||
|
||||
In your footer template, add this:
Code:
<if condition="!$show['guest']">HELLO WORLD</if> |
#3
|
|||
|
|||
Really? That easy? Wow.. I have been doing this the hard way.
Thanks! |
#4
|
||||
|
||||
Quote:
Code:
<if condition="$show['member']">HELLO WORLD</if> |
#5
|
||||
|
||||
Quote:
Quote:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|