PrymlUrg Posted March 6, 2008 Share Posted March 6, 2008 I am having a little trouble with this code. I am able to get the iframe to work correctly. However, the link is always the same. The linked pages are just to be able to tell when it is working correctly. I have tried different variations but I keep getting the yahoo page to open. Is the something wrong with the way the code is written? <table width="100%" border="0" cellpadding="0" cellspacing="0" > <tr> <td width="100%" valign="top"> {assign var="page_hdr01_text" value="{lang mkey='store'}"} {include file="page_hdr01.tpl"} </td> </tr> <tr> <td class="module_detail" width="100%" height="100%" valign="top"> {if $user.level == '2' or $user.level =='1'} <iframe src="http://www.gmail.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;"> </iframe> {else} <iframe src="http://www.yahoo.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;"> <center>Sorry, your browser doesn\'t support iframes.</center> </iframe> {/if} </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted March 6, 2008 Share Posted March 6, 2008 I must be blind but can u point out the php in that? Quote Link to comment Share on other sites More sharing options...
chronister Posted March 6, 2008 Share Posted March 6, 2008 I must be blind but can u point out the php in that? There is none. The PHP is buried somewhere in probably 1500 other files. Smarty Templating Engine Sucks. Thats all I got to say about that Nate Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.