Jump to content

If Admin is logged in


earthgirlllc

Recommended Posts

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 by earthgirlllc
typo
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated