earthgirlllc Posted January 8, 2018 Share Posted January 8, 2018 (edited) I have 2 chat scripts. One is mine, one is my support team. I want to create a quick script that will switch what is displayed depending on whether or not admin id #1 is logged in. What I tried (below) isn't doing it. Any help appreciated. I am clearly no developer. This is on the front end in the header.tpl Thanks! {if $smarty.session.adminid>1} {literal} -- ADMIN #1 CHAT SCRIPT -- {/literal} {else} {literal} -- SUPPORT TEAM CHAT SCRIPT -- {/literal} {/if} Edited January 8, 2018 by earthgirlllc typo Link to comment Share on other sites More sharing options...
sentq Posted January 8, 2018 Share Posted January 8, 2018 try this {if intval($smarty.session.adminid) === 1} {literal} -- ADMIN #1 CHAT SCRIPT -- {/literal} {else} {literal} -- SUPPORT TEAM CHAT SCRIPT -- {/literal} {/if} Link to comment Share on other sites More sharing options...
earthgirlllc Posted January 9, 2018 Author Share Posted January 9, 2018 That did the trick, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts