Search found 1952 matches

by Jo Morg
Wed Aug 28, 2024 11:46 am
Forum: Modules/Add-Ons
Topic: LISE in UDT gives 500 error
Replies: 13
Views: 489

Re: LISE in UDT gives 500 error

No worries, it happens. :)
by Jo Morg
Wed Aug 28, 2024 10:36 am
Forum: Modules/Add-Ons
Topic: LISE in UDT gives 500 error
Replies: 13
Views: 489

Re: LISE in UDT gives 500 error

$smarty_data = "{cms_module module='$CustomGS.MyTextField'}"; cms_module only work for module tags, in fact it is meant to replace them for backend module calls, so of course that won't work. I've tried first with (which i've used in a dosen of older solutions): $smarty_data = "{$Cus...
by Jo Morg
Tue Aug 27, 2024 6:30 pm
Forum: Modules/Add-Ons
Topic: LISE in UDT gives 500 error
Replies: 13
Views: 489

Re: LISE in UDT gives 500 error

It may be a different aspect of the same issue; as stated above by @DIGI3: "Short tags to modules aren't registered in admin" , but parsing the UDT on save is done in admin, so it will trigger the error only on save. At least that's what it looks like without testing... PS: using {cms_modu...
by Jo Morg
Tue Aug 27, 2024 5:50 pm
Forum: Modules/Add-Ons
Topic: LISE in UDT gives 500 error
Replies: 13
Views: 489

Re: LISE in UDT gives 500 error

There are changes to the way UDT's get parsed before being saved. Although that was not the goal, which was to parse any PHP syntax error on save, it seems that the UDT gets executed once. I'll have to revisit the code (tbh the original broken code also seemed to parse the code in a similar way with...
by Jo Morg
Sat Aug 24, 2024 4:33 pm
Forum: Developers Discussion
Topic: Adding a script to the head in frontend mode.
Replies: 1
Views: 474

Re: Adding a script to the head in frontend mode.

There are a few ways to do that in the head tag, but anywhere else it needs to listen to and process the core ContentPostRender event, and do a search and replace on the "$params['content']" variable;
by Jo Morg
Sat Aug 24, 2024 4:25 pm
Forum: CMSMS Core
Topic: Large number of cache files
Replies: 5
Views: 551

Re: Large number of cache files

Can you tell if there is any sub-folder or any particular file name pattern that stands out? 25000+ is not particularly common but there is not much more info for us to be able to help
by Jo Morg
Sat Aug 24, 2024 4:19 pm
Forum: Modules/Add-Ons
Topic: LISE in UDT gives 500 error
Replies: 13
Views: 489

Re: LISE in UDT gives 500 error

Hard to say without access or more info, but it seems like the total template is the one giving an error. If possible post here the template.
by Jo Morg
Sun Jun 23, 2024 12:10 pm
Forum: Modules/Add-Ons
Topic: Using LISE MAMS Groups Multi Select
Replies: 4
Views: 1882

Re: Using LISE MAMS Groups Multi Select

Now I have had time to test and the UDT just works perfectly "Out of the box". Thank you very much! It was more complicated to retrieve the MAMS group names than I first thought. And the solution was not at all within my thinking, how to solve it. Just out of curiosity, what is the origin...
by Jo Morg
Fri Jun 21, 2024 4:50 pm
Forum: Modules/Add-Ons
Topic: Using LISE MAMS Groups Multi Select
Replies: 4
Views: 1882

Re: Using LISE MAMS Groups Multi Select

I didn't test it but an UDT like this: $gids = $params['gids'] ?? []; $out = ''; $assign = $params['assign'] ?? 'groups'; if(!is_array($gids) && FALSE !== strpos($gids, ',')) { $gids = explode(',', $gids); } $mams = cms_utils::get_module('MAMS'); if( is_object($mams) ) { $g_alias = []; forea...
by Jo Morg
Mon Jun 17, 2024 11:54 am
Forum: CMSMS Core
Topic: Error 503 after Server Problems
Replies: 8
Views: 2862

Re: Error 503 after Server Problems

Just as a note: We need more information on the versions of CMSMS, PHP, etc you are running. There was some time ago a race condition that could have the consequences you described. It took a while to fix it (it wasn't easily reproducible) but it was fixed, and there have been no other reports of si...
by Jo Morg
Mon Jun 17, 2024 10:26 am
Forum: Developers Discussion
Topic: How to include a *.tpl file in my template???
Replies: 7
Views: 4377

Re: How to include a *.tpl file in my template???

For the sake of clarity: when this thread started CMSMS had a different and more limited mechanism to handle with templates in files; This is no longer the case; using an UDT as suggested by Deykun is a valid possibility, but not needed nor recommended; the correct way to use tpl files is as follows...
by Jo Morg
Sat Jun 15, 2024 8:39 am
Forum: Modules/Add-Ons
Topic: Formbuilder Save to LISE
Replies: 5
Views: 1851

Re: Formbuilder Save to LISE

Sorry for the late reply. I think I understand what you are suggesting and correct me if I am wrong but this is how I interpret your suggestion. 1. Add a "Replace/Delete Image" checkbox on my form. 2. On my UDT check the value of "Replace/Delete Image" and then either replace or ...
by Jo Morg
Sat Jun 15, 2024 7:18 am
Forum: Modules/Add-Ons
Topic: Formbrowser giving "Error sending: XSS attempt"
Replies: 3
Views: 1450

Re: Formbrowser giving "Error sending: XSS attempt"

If it is a ticket system you need you may want to check this one: http://dev.cmsmadesimple.org/projects/supporttickets. It is integrated with MAMS already. It's a fork of the old CG one. There are no files released yet but it has been pretty stable on my tests, I can send you a beta for you to test,...
by Jo Morg
Fri Jun 07, 2024 12:09 pm
Forum: Modules/Add-Ons
Topic: Formbuilder Save to LISE
Replies: 5
Views: 1851

Re: Formbuilder Save to LISE

Cool! In that case I would suggest the following: Add to the form a non-persistent checkbox that appears only when there is a value on that field and name it anything like {action_id}delete_this_field_value (less is more I'll leave the naming and labeling to you :) ). On your UDT check if the delete...
by Jo Morg
Fri Jun 07, 2024 11:36 am
Forum: Modules/Add-Ons
Topic: Formbuilder Save to LISE
Replies: 5
Views: 1851

Re: Formbuilder Save to LISE

Not sure I understand the question but, from what I could gather: if you have the item_id from the record you want to edit you can pull all its values from LISE easily and assign them to an array that you can then use to pre-fill the fields; file inputs are a particular issue because the browser can...

Go to advanced search