Peter van Westen
ADMIN
I am not sure why you are getting offended. I have tried to help by giving you the correct code to do what you want.
You give no feedback on what the result of that correct code is.
Reason why I assumed you do not have a high level of php knowledge:
You try to nest php tags (for starters).
Also you are using very old/outdated Joomla php code:
$doc =& JFactory::getDocument();
Reason why I assumed you did not read the documentation:
You are initialising the $doc variable, whilst the documentation says you don't need to do that.
And you say something about maybe JCE Editor being an issue. So probably your code gets messed up.
Either you are placing the code in the html view of the editor, instead of the WYSIWYG view.
Or JCE is setup so that it is not happy with the <...> tags. Which is also covered in the documentation.
Sorry if you took my technical advise and assumptions as something personal. That was not my intention.
Please post a rating at the
Joomla! Extensions Directory