<xen:if is="{$visitor.user_id}">
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=0'}"></xen:callback>
<xen:else />
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=1'}"></xen:callback>
</xen:if>
Thank you for quick response. Where do I put the code?Using embed mode and conditionals could work.
Something like this:
What this does is, it includes the room 0 (General chat) for members and room 1 for guests. Depending on the permissions, users can join multiple rooms, but not guests because they can't have a session.Code:<xen:if is="{$visitor.user_id}"> <xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=0'}"></xen:callback> <xen:else /> <xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=1'}"></xen:callback> </xen:if>
More information on embed mode in FAQ.
<xen:if is="{$contentTemplate} == 'forum_list'">
<xen:if is="{$visitor.user_id}">
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=0'}"></xen:callback>
<xen:else />
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=1'}"></xen:callback>
</xen:if>
</xen:if>
Thanks!Hover over the edit/delete icon in rooms list and in the browser corner it will display the action URL with the room_id at the end.
<xen:if hascontent="true">
<div class="{xen:if @uix_removeAdWrappers, 'section', 'sectionMain'} funbox">
<div class="funboxWrapper">
<xen:contentcheck>
<xen:if hascontent="true">
<xen:contentcheck>
<xen:hook name="ad_above_content" />
<xen:comment> PLACE YOUR ADVERTISEMENT CODE DIRECTLY BELOW </xen:comment>
<xen:if is="{$contentTemplate} == 'forum_list'">
<xen:if is="{$visitor.user_id}">
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=0'}"></xen:callback>
<xen:else />
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=6'}"></xen:callback>
</xen:if>
</xen:if>
</xen:contentcheck>
<xen:elseif is="{$visitor.is_admin} && @uix_previewAdPositions" />
<div>{xen:phrase 'template'}: ad_above_content</div>
</xen:if>
</xen:contentcheck>
</div>
</div>
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.