Quote:
Originally Posted by insidedesign
Figured it out. I simply looked at how other plug-ins were implementing template conditions.
Here is what I ended up with, within the flashchat template:
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:phrase flashchat_title}</title>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<vb:if condition="$bbuserinfo['userid'] == 0">
<p>Please login above to view the chatroom.</p>
<vb:else />
<!-- main -->
<!-- $Id: Flashchat-vb-integration.xml,v 1.15 2010/03/12 01:04:10 pem Exp $ -->
<div id="fci_div" class="block">
<h2 align="center" class="blockhead">{vb:phrase flashchat_title}</h2>
<iframe style="border: 0px" width="100%" height="{vb:raw fci.height}" src="{vb:raw fci.fcpath}/flashchat.php{vb:raw fci.room}"></iframe>
<div class="blocksubhead" style="text-align: center;">{vb:phrase flashchat_title} © {vb:raw fci.year}</div>
</div>
<!-- /main -->
</vb:if>
{vb:raw footer}
</body>
</html>
|
Quote:
Originally Posted by TazDevilLooney
Hi insidedesign,
Were do you put that lovely code you produced?
|
Styles & Templates -> Style Manager -> Edit Templates for Default Style -> FlashChat