Quote:
Originally Posted by Selene
utw, just one question tho, what i want that page to be viewed by Registered Members only. Is that possible?
|
You could add an <if> condition to achieve it
Code:
<if condition="$bbuserinfo['usergroupid'] == '2'">
</if>
where the
2 is the usergroup id which is in this example registered user.
If you would like to speficy or usergroupids use
Code:
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7'">
and so on .. the complete template would look like
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<if condition="$bbuserinfo['usergroupid'] == '6'">
<center>
<iframe src="http://www.google.com" width="80%" height="400"></iframe></center>
</if>
$footer
</body>
</html>
However, I am not a professional if it comes to <if> stuff. In this example you simply would not see the iframe instead of getting an error and you need to specify each usergroup id .. if you specify registered user, you still need to add administrator as well otherwise you won't be able to see it either ..
There is another solution for this, I simply don't know it... but lemme browse a bit here and on vb.com - I might come up with a solution ...