Search found 7 matches

by rogerlatur
Tue Aug 05, 2014 5:28 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

Rolf's UDT works fine like this $img = isset($params['img']) ? $params['img'] : ''; $smarty_data = "{Gallery img='".$img."'}"; $smarty->display('eval:'.$smarty_data); No matter how I call it, with 'echo' or not, I always have the errors listed above. Maybe because I run version ...
by rogerlatur
Mon Aug 04, 2014 9:08 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

I've seen this example , but it does not work. Yes, it does! ;) I tried with this: $smarty = cmsms()->GetSmarty(); $smarty_data = "{Gallery}"; echo $smarty->display($smarty_data); and I get only errors. httpdocs/lib/smarty/Smarty.class.php:1593 - trigger_error /httpdocs/lib/smarty/Smarty....
by rogerlatur
Mon Aug 04, 2014 8:06 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

I found the file.

Just that you know.:

Code: Select all

# This program is free software; [b]you can redistribute it and/or modify
# it under the terms of the GNU General Public License[/b] as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
by rogerlatur
Mon Aug 04, 2014 8:02 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

As I don't know where is the php to edit directly what the smarty tag "Gallery" does (I asked here but my question was never displayed), I thought I'd ask how to manipulate a tag in a tag! The question implied hacking the module so it violated the forum rules... Now I see that I got the r...
by rogerlatur
Mon Aug 04, 2014 7:58 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

It would be the first time for me that modifying an open source php file is considered as a hacking fact! As long as you don't use it commercially, keep all copyrights, headers etc, I really don't see what would be wrong in doing this. Imagine if nobody was able to modify anything, then the open sou...
by rogerlatur
Mon Aug 04, 2014 9:08 am
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

Re: How to call a Gallery smarty tag from a UDT?

What are you trying to achieve? Although possible, and in some situations the only solution to get an specific result, it's not recommended to use it if there are alternatives... This tag is cool cause it adds an image and takes all lytebox parameters too (opens in a new window on click etc etc): {...
by rogerlatur
Sun Aug 03, 2014 5:58 pm
Forum: Modules/Add-Ons
Topic: How to call a Gallery smarty tag from a UDT?
Replies: 15
Views: 3772

How to call a Gallery smarty tag from a UDT?

I am trying to call this Smarty tag
{Gallery dir='Content_images' img='66'}
from a UDT, without success.

I've seen this example, but it does not work.

Go to advanced search