I am trying to display member information on a page that can also display raw CSS and html code together, I cant figure out how to make it work. Basically I want to be able to give my members a paragraph of code that they can paste into a textbox on their Myspace page for example to have it display all their details and track any sales back to them through amember. I am using this function {$smarty.session._amember_user.name_f} to display the member details and this works fine on all my other pages. I am then using a textarea box to display the raw code inside of an iframe. When I put the 2 of these together I get this error. ERROR [256] Smarty error: [in code-about.html line 5]: syntax error: unrecognized tag: background-position:top center;margin-top: 116; (Smarty_Compiler.class.php, line 403) in line 1102 of file /home/ncdproco/public_html/amember/smarty/Smarty.class.php It looks like its trying to run the css code, so how do I get it so it will ignore the css code AND display the members details so that all my user has to do is open the page copy the code and paste it where it needs to be? Here is short sample of the code: -------------------------------------- <style type="text/css"> body{ background-position:top center;margin-top: 116;} div.topbanner { top: 0; left: 49%; margin-left: -420px; width: 100%; height: 116px; position: absolute; } </style> <div class="topbanner"><a href="http://www.ncdpro.com/{$smarty.session._amember_user.name_f}"><IMG SRC="http://www.ncdpro.com/myspace/top.jpg" border="0"></a></div> ------------------------ Any help I can get would be much appreciated.
to make this easier... <style type="text/css"> body { background-position:top center;margin-top: 116;} div.topbanner { top: 0; left: 49%; margin-left: -420px; width: 100%; height: 116px; position: absolute; } </style> <div class="topbanner"> <a href="http://www.ncdpro.com/{$smarty.session._amember_user.name_f}"> <IMG SRC="http://www.ncdpro.com/myspace/top.jpg" border="0"></a> </div> This code is easier to read... I displayed the other version because I need it to display the actual code on the page rather than run it. I should also point out I am not a great programmer but I can follow directions and figure things out. The overall solution I am looking for is being able to display a ton of code within a text box that I can integrate amember details in with it.