Page 1 of 1

User Defined Tag problem

Posted: Thu Apr 09, 2009 3:53 pm
by Scotto87
Hello,

I've literally just finished installing CMSmadesimple.

I've logged into the admin control panel and went to 'User Defined Tag' then I clicked on 'Add User Defined Tag'


I then put my code into the box provided and the title etc...clicked on submit and the following errors come up:
Invalid code entered.
# Parse error: syntax error, unexpected '<' in /home/redmante/public_html/cmsmadesimple/admin/adduserplugin.php(100) : eval()'d code on line 1
I've had a look at the file but can't see a problem or what could be causing this. I've also re-downloaded CMSmadesimple and replaced the file but still the problem exists.

Any ideas on sorting this?


Thanks in advance!

Re: User Defined Tag problem

Posted: Thu Apr 09, 2009 3:57 pm
by jmcgin51
1. what CMSMS version did you install?

2. what exactly did you paste into your UDT?

Re: User Defined Tag problem

Posted: Thu Apr 09, 2009 3:59 pm
by Scotto87
1) I'm using the latest, the one thats available for download on the site 1.5.4 I downloaded: cmsmadesimple-1.5.4-full.tar.gz from the list.


2) I'm pasting in code which works perfect, its a header section of my website.


Basically the way the site works at the moment without the CMS is:

I have index.php

In it I have a PHP include for the header and then the content comes below it.

I'm trying to recreate this by using the tag as the header include.

Am I doing this wrong?

Re: User Defined Tag problem

Posted: Thu Apr 09, 2009 4:06 pm
by Nullig
You don't really need to do this. Look in the default templates to see how the header is done.

Nullig

Re: User Defined Tag problem

Posted: Thu Apr 09, 2009 4:06 pm
by jmcgin51
please paste the code you're trying to use in the UDT, exactly as you're pasting it in the UDT.

Re: User Defined Tag problem

Posted: Thu Apr 09, 2009 7:12 pm
by uniqu3
Maybe you forgot to remove
You dont need these in UDT

Re: User Defined Tag problem

Posted: Sun Apr 12, 2009 10:58 pm
by Ted
This would be solved a lot more quickly of the code used was pasted as it is in the system.  It's probably something really easy...