Page 1 of 1

Php code within {AG} tags

Posted: Fri Jul 08, 2011 1:33 am
by lneto
Hi there,

I've just got Admiror Gallery installed in my Joomla 1.5 and its working great. Thank you guys for making such a great piece of software available for free for the community.
I've been playing around trying to integrate a piece of php code within {AG} tags and I had no luck. I have includePHP installed.

What I'm trying to accomplish is: from one article I have a link to another article, and I'm passing a variable in the URL, like this
/index.php?option=com_content&view=article&id=35&Itemid=108&folder=fruits

in the landing page, I get this code: {php}$a=$_GET["folder"]; echo $a; {/php}
and I can see its working properly seen I see 'fruits' printed on my page. So far so good.

Now here comes the problem. When I do like this:
{AG}{php}$a=$_GET["folder"]; echo $a; {/php}{/AG}
I was expecting to get as result {AG}fruit{/AG}

But what I get is an error: Cannot find folder inside folder
and right below, printed on the page I can see {AG}fruit{/AG}

Basically, it seems to me Admiror is not getting the $a variable. But why am I getting {AG}fruit{/AG} printed on the page? If {AG} tags were not being parsed I wouldn't get any error. I'm really confuse on this one. Can you guys shed a light on this for me?

Thanks in advance and best regards from Brazil

Leni

Re: Php code within {AG} tags

Posted: Fri Jul 08, 2011 5:52 pm
by Vasiljevski
Hello,

My guess is that AdmirorGallery is process before your includePHP script.
You should check to see in joomla admin if you could arrange the order of the plugin so that includePHP is run firs and AG after, that should fix your issue.

Does this idea make sense? :)