PDA

View Full Version : shoiw iframe only for members


andreamarucci
03-04-2010, 06:36 AM
I've put on my forum an iframe containing a chat at the top of the navbar. I've put this code at the top of the navbar template

<vb:if condition="is_member_of($bbuserinfo, 6,5,33)">
<DIV ALIGN=CENTER>
<IFRAME src="http://xxxxxx/chat/blab.php" width="99%" height="300">
<p>Your browser doesn't support frames.</p>
</IFRAME>
</vb:if>

And it works very well. Problem is that if someone logout intead of going to the main forum page he get a login screen from the chat software.

I'm asking if the code I've used to show the iframe only for specific group is correct.

Thanks!

--------------- Added 1267697409 at 1267697409 ---------------

I've to add a question

I would like to put the chat iframe only on the forum home. What template I've to touch?

ChopSuey
03-04-2010, 11:58 AM
<vb:if condition="is_member_of($bbuserinfo, 6,5,33)">
<DIV ALIGN=CENTER>
<IFRAME src="http://xxxxxx/chat/blab.php" width="99%" height="300">
<p>Your browser doesn't support frames.</p>
</IFRAME></div>
</vb:if>

That looks better. Oh yeah FORUMHOME Templates > forumhome.

andreamarucci
03-04-2010, 02:37 PM
Solved thanks!