Page 1 of 1

how to change {ga} to {gallery}

Posted: Tue May 15, 2012 4:56 am
by jscully
I've replaced another gallery plugin with this one, and would love to flip a switch onto this new one.
Is there an easy way to change the php script somewhere so that this plugin works with {gallery}?

Re: how to change {ga} to {gallery}

Posted: Tue May 15, 2012 5:21 am
by jscully
I feel like I'm talking to myself on my Facebook Wall, but....
In the AdmirorGallery.php file, I replaced {GA with {gallery and /GA} with /gallery}
and it seems to be working.
Also, de-activate any other gallery plugins, and you should be rocketin'

Re: how to change {ga} to {gallery}

Posted: Tue May 15, 2012 12:21 pm
by Vasiljevski
Well, yes, that is exactly the way to change it :)

But it's {AG} not {ga} :)

So to change trigger code you need to change it in two places in AdmirorGallery.php with the one you like, and that's all.

Maybe it would be good to make this changeable from parameters, what do you think?

Re: how to change {ga} to {gallery}

Posted: Tue May 15, 2012 4:15 pm
by jscully
That would be a nice touch, especially for those in my position.
The plugin worked splendidly and easily (once I found) replaced the other erroneous plugin.