vBulletin Modifications

need help with if condition for template

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 02-07-2005, 05:01 PM   #1
Coder
Idan's Avatar
Join Date: Feb 2005
Real Name: Idan
Location: Israel
Idan is on a distinguished road

Default need help with if condition for template

hi,

I want to change a template so it will display something only if you are a registered member.
I want to use the <if condition="'></if> tags, but not sure what general var the vb forum has to indicate whether the current user is logged or not.

Wold be glad for some help with issue...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02-09-2005, 11:24 PM   #2
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

use $bbuserinfo['userid'] eg
<if condition="$bbuserinfo['userid']"> code </if>

If user is not logged/registered etc then they dont have a userid.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-10-2005, 08:09 AM   #3
Coder
Idan's Avatar
Join Date: Feb 2005
Real Name: Idan
Location: Israel
Idan is on a distinguished road

Default

thanks m8, gonna try that now.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
if condition question netzoner General vBulletin Support 5 02-17-2006 06:46 PM
if condition (forum only) Ghost Shadow vBulletin Modification Requests 2 12-07-2005 12:10 PM


All times are GMT -3. The time now is 03:49 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)