user defined tag trucating

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
dreams3577
New Member
New Member
Posts: 5
Joined: Sat May 15, 2010 6:50 pm

user defined tag trucating

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: user defined tag trucating

Post 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
NaN

Re: user defined tag trucating

Post 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.
Post Reply

Return to “CMSMS Core”