Bug in gallery RSS plug-in

Bug in gallery RSS plug-in, a forum discussion on Jojo CMS. Join us for more discussions on Bug in gallery RSS plug-in on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
BruceClement

Epsom, New Zealand

19 Oct 2008
Posts: 6

Hi,

When I installed the GalleryRSS plug-in from the 18-October-2008 nightly build, I lost my Jojo administration area as the plug-in requires simplepie.inc to be in a plug-in directory based on mysite, not the Jojo software install directory.

Based on some "Monkey see, monkey do"(*) programming, I fixed it (at least for my installations) by changing _PLUGINDIR to _BASEPLUGINDIR on line 20 of jojo_galleryrss.php

(*) i.e. I had a look at how working plug-ins did the same thing.
Bruce Clement
Rick Rick

20 Oct 2008
Posts: 336

If you use this instead

foreach (Jojo::listPlugins('external/SimplePie/simplepie.inc') as $pluginfile) {
require_once($pluginfile);
break;
}

Then it'll let you override it on a site-by-site basis if you wish by looking for it in the site's plugin folder, then reverting back to the base plugin folder if it's not there.
Rick Rick

20 Oct 2008
Posts: 336

And yes, another function to simply grab the first one would be nice... :)
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.