![]() |
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. |
In your footer template, add this:
Code:
<if condition="!$show['guest']">HELLO WORLD</if> |
Really? That easy? Wow.. I have been doing this the hard way.
Thanks! |
Quote:
Code:
<if condition="$show['member']">HELLO WORLD</if> |
Quote:
Quote:
PHP Code:
|
All times are GMT. The time now is 05:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|