Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2012, 10:08:05 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155094 Posts in 21661 Topics by 7721 Members
Latest Member: arrow345
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Private Section  (Read 567 times)
Deluxe Studios

Offline Offline

Posts: 17


« on: February 28, 2007, 11:33:01 PM »

Hi,
What php code do I use if I want to add a; text button to a template design, which only appears when users are logged in? So a private button?

Thanks
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: March 01, 2007, 03:40:13 AM »

I'm not quite sure if I understand your question right, but I think this will do the trick:
Code:
<?php if ($wb->is_authenticated()) {--- your content goes here --- } ?>

Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Deluxe Studios

Offline Offline

Posts: 17


« Reply #2 on: March 01, 2007, 05:04:50 AM »

Genius!

Thankyou..
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!