Log in

View Full Version : Quick question on a conditional


Guest210212002
01-21-2006, 02:24 AM
I've got a page (webtemplates) that I use to load a separate page in an iframe for content. What'd the correct conditional be for the following (pardon layman's terms):

If - Registered User
Show - <iframe>loggedin.html</iframe>

If - Guest
Show - <iframe>youneedtologin.html</iframe>

Would something like:


<if condition="($show['guest'])">
<iframe>guest content</iframe>
<else />
<iframe> logged in content</iframe>
</if>


Would that be correct?

Thanks as always. :)

Guest190829
01-21-2006, 02:31 AM
<if condition="$bbuserinfo['userid'] == 0">
// code for guest
<else />
//code for not guest
</if>




I hope that's what your asking for.

Danny

Guest210212002
01-21-2006, 03:00 AM
Yep, it is, thanks man. https://vborg.vbsupport.ru/