User Defined Tags not working?
Posted: Sun Dec 21, 2008 4:21 am
I've CMS Made Simple 1.5.1 Base version
I'm using PHP 5.2.6 & MySQL 5.0.67-community with Apache 2.2
Ok so in admin panel i went to Extensions -> User Defined Tags and clicked add new user-defined tag
for tag name i put in gmember and for code i put in:
When i pressed submit i got this error:
Assuming that i went to Content in dashboard and clicked on Global Content Blocks, and added name gmember and the same code as before. this time it worked and it gave me this tag to insert into my templates:
"{global_content name='gmember'}"
so i did that and the first thing i see after i hit submit and viewed my homepage was this error:
is this a smarty error? the codes are from Google Friend Connect script..
Also i've some questions about using some things/fixing up some things according to my template, is this also the right section to post that?
I'm using PHP 5.2.6 & MySQL 5.0.67-community with Apache 2.2
Ok so in admin panel i went to Extensions -> User Defined Tags and clicked add new user-defined tag
for tag name i put in gmember and for code i put in:
Code: Select all
<!-- Include the Google Friend Connect javascript library. -->
<__script__ type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></__script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-1229831595266" style="width:200px;border:1px solid #ffffff;"></div>
<!-- Render the gadget into a div. -->
<__script__ type="text/javascript">
var skin = {};
skin['HEIGHT'] = '385';
skin['BORDER_COLOR'] = '#ffffff';
skin['ENDCAP_BG_COLOR'] = '#ffffff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
{ id: 'div-1229831595266',
site: '11664437414973744958'},
skin);
</__script>
So i thouht i probably uploaded adduserplugin.php wrongly and re-uploaded it and still the same error, is the user-defined tags just for PHP codes only??Invalid code entered.
Parse error: syntax error, unexpected '<' in /home/stanleyu/public_html/admin/adduserplugin.php(100) : eval()'d code on line 1
Assuming that i went to Content in dashboard and clicked on Global Content Blocks, and added name gmember and the same code as before. this time it worked and it gave me this tag to insert into my templates:
"{global_content name='gmember'}"
so i did that and the first thing i see after i hit submit and viewed my homepage was this error:
Code: Select all
string(119) "Smarty error: [in globalcontent:gmember line 8]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(120) "Smarty error: [in globalcontent:gmember line 8]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(177) "Smarty error: [in globalcontent:gmember line 23]: syntax error: unrecognized tag: id: 'div-1229831595266', site: '11664437414973744958' (Smarty_Compiler.class.php, line 446)" string(121) "Smarty error: [in globalcontent:gmember line 23]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Also i've some questions about using some things/fixing up some things according to my template, is this also the right section to post that?