Page 1 of 1

user defined tag trucating

Posted: Sat Sep 04, 2010 7:28 pm
by dreams3577
Hi All..

I am using 'User Defined Tags' to run a php script within the cmsms template, all works well...  however... I made some changes to the script and thats when i have found the issue...

The script is now trucating around line 2290.. IE: when i submit the 'user defined tag' then go back in to check it, everything below line 2290 is gone..

where is the limit for the tags?

can the limit be increased?

am I doing this right? is there a better way to run a php script with the cmsms template?

many thanks
steve

Re: user defined tag trucating

Posted: Sat Sep 04, 2010 7:49 pm
by Nullig
Unless you can tighten up the code, which is probably the preferable way to do it, you can change the field type using phpmyadmin.

Open the yourtableprefix_userplugins table and change the "code" field from TEXT to MEDIUMTEXT.

Nullig

Re: user defined tag trucating

Posted: Mon Sep 06, 2010 4:48 pm
by NaN
That is pretty much code.
I would suggest to create a file plugin instead of a UDT.

Example: create a file function.yourtagname.php
In that file create a function smarty_cms_function_yourtagname($params, &$smarty) that contains your script.
Store that file in CMSms plugins directory.
Just take a look into the source code of other plugins to see more details.