Page 1 of 1
Single category on front page
Posted: Sat Jun 11, 2005 7:11 am
by vastneonwolf
Just finished my first solo plugin!
This one gives the admin the ability to show just one category on the front page.
Don't know how to add it to CVS so
get it here
Found a bug...
Posted: Sat Jun 11, 2005 10:32 am
by vastneonwolf
It seems that the plugin shows only the selected category on the Edit Entries page...
Will look into it tomorrow.
Posted: Thu Jun 16, 2005 3:14 am
by vastneonwolf
Can some one take a look at this for me please?
I can't seem to work out why it is effecting the "Edit Entries" page as well.
Code: Select all
function event_hook($event, &$bag, &$eventData) {
global $serendipity;
$hooks = &$bag->get('event_hooks');
if (isset($hooks[$event])) {
switch($event) {
case 'frontend_configure':
$serendipity['GET']['category'] = $this->get_config('base_category');
break;
}
}
}
Thanks in advance

Posted: Thu Jun 16, 2005 2:57 pm
by garvinhicking
You could try to surround it by using:
Code: Select all
case 'frontend_configure':
if (!empty($serendipity['GET']['adminModule'])) return true;
$serendipity['GET']['category'] = $this->get_config('base_category');
This will not apply your plugin when the admin panel is used
Regards,
Garvin
Posted: Fri Jun 17, 2005 12:35 pm
by vastneonwolf
Thank you once again

Posted: Thu Sep 08, 2005 11:38 pm
by Untamed
If the answer to this (the plug in) is here:
http://www.s9y.org/forums/viewtopic.php ... t+category
I have another question...
I would very much like to employ this plug in - I read in another place (though as usual I can't find it now...) that this is for a newer version of serendipity. I'm running 0.8.1 I think - just downloaded and installed today. Can I use this plug in?
Also, now that I've downloaded the plug in, how do I employ it so it does what it's supposed to do?
OH yeah, I'm a real honest to goodness, still wet behind the ears newbie to all things regarding the internet...
Thanks heaps for your help!
Posted: Thu Sep 08, 2005 11:58 pm
by garvinhicking
Untamed,
the announced plugin should work with serendipity 0.8! Just try it out by downloading the file, copy it to your /plugins directory (with directory structure) and then go to your s9y admin panel, click on "configure plugins", then click the link "click here to install a new event plugin" and then select the plugin you just uploaded.
HOWEVER, if you installed Serendipity 0.8.1 you should UPGRADE immediately. 0.8.1 and 0.8.2 have serious security issues with the bundled XML-RPC library, which many other systems also had. Or delete the serendipity_xmlrpc.php file if you do not want to upgrade...
Regards,
Garvin
Posted: Fri Sep 09, 2005 12:03 am
by Col. Kurtz
I use this plugin with 0.8.4, before with 0.8.2. and its doin fine!
Posted: Fri Sep 09, 2005 8:04 am
by Untamed
Fabulous! Works like a charm!
Yes, it's taken me this long to do it and fix things like I want it but hey - Rome wasn't built in a day either right?
Many thanks for your help and assistance!! I really appreciate it!
Posted: Fri Sep 09, 2005 10:58 am
by wesley
Interestingly, this plugin sort of does the exact opposite of one of my
plugins... show all categories except one.

(and no, I didn't know this
plugin before making my own)