Page 1 of 1
Removing certain line from code!
Posted: Tue Dec 05, 2006 10:09 pm
by emm1
Hello, I am having a little problem with my setup. I have a Gallery2 plugin to show a random picture on my blog and I want to remove a certain line which is ontop of the picture called "Random Image". You can see it on
www.emmi.is , anyone know in what file this is so I can remove it?
Thanks!
Posted: Tue Dec 05, 2006 10:35 pm
by mgroeninger
Ok, a quick fix would be to open up the plugin (the file is called serendipity_plugin_gallery_menalto_random.php) and find the line that looks like this:
Code: Select all
$file = 'main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_itemFrame=none';
And change it to this:
Code: Select all
$file = 'main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_itemFrame=none&g2_show=date|views';
At least, I think that should do it. (I don't actually use Gallery, so please let me know).
If I get a chance I will update the plugins with some options in the next few days (if this thread falls quiet for too long feel free to ping it to remind me, though).
Posted: Tue Dec 05, 2006 10:47 pm
by emm1
Yeah that worked. Thanks again.

Posted: Wed Dec 13, 2006 9:14 am
by mgroeninger
Ok, I just updated the Unified Sidebar Image plugin to support new features for Gallery2.
Basically it adds support for g2_type (not just random) g2_maxSize, g2_linkTarget, and g2_show. I also added caching option, so that server will not do gallery request on every page request.
Honestly, I didn't do a whole lot of testing on this, since I don't have my own Gallery installation. Please let me know if you find any bugs.
I'm not going to backport these changes into the menalto sidebar plugin at this time. If this is something you really, really need, please feel free to drop me a note and explain why the unified sidebar plugin won't work for you. I could probably port the changes over if there is serious incentive.
Please let me know if you have any problems!