Smarty IP Address

{if $smarty.server.REMOTE_ADDR == '123.456.789.012'} {* other debugging code goes here *} {/if}
In Smarty templating code you sometimes just want to show content to a specific IP address. This is ideal for trying something on the live site but only you can see what is happening.

Where 123.456.789.012 is your ip address.

To Get you IP address goto

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.