plugin confuses s9y
Posted: Thu Sep 30, 2004 3:45 pm
Hi,
I'm writing my first plugin right now and have a problem with it
I try to include a random photo from my gallery installation. There exists a php file block-random.php that opens the gallery album, *does some stuff* and echoes some html to display a random photo. I had written a plugin for wordpress and this worked perfectly.
The basics of my plugin for s9y are working right now, but some of this "does some stuff" that random-block.php does confuses s9y. F.i. in the plugin list of admin area all images of the arrows are not loaded anymore after this plugin. And the complete list of event plugins is empty, not one event plugin is there, but the event plugins are working when I load my mainpage.
When I try to move my new plugin up or down, the order gets totally messed up, other plugins are moved mysteriously to another order !?
When I load my mainpage, my new plugin is working, the photo is displayed as intended, but all other plugins that are placed after my plugin, are not working properly anymore. Like in plugin list, all images are not shown, because in source code there is no URL for the image given. Also the category plugin returns an empty category list. And so on ...
That all seems to be because the gallery seems to be doeing something that s9y doesn't like. If I comment out the call to random-block.php (include ../gallery/block-random.php) all is fine and s9y is working as ever, but naturally no photo anymore. So at least it seems to be not my fault with the plugin itself, instead its the gallery.
Can someone explain this to me? Or give me some hints?
my plugin: http://www.romulus23.de/s9y/uploads/rom ... yembed.txt
block-random.php: http://www.romulus23.de/s9y/uploads/block-random.txt
init.php (init file of gallery that gets called by random-block): http://www.romulus23.de/s9y/uploads/init.txt
I'm writing my first plugin right now and have a problem with it
I try to include a random photo from my gallery installation. There exists a php file block-random.php that opens the gallery album, *does some stuff* and echoes some html to display a random photo. I had written a plugin for wordpress and this worked perfectly.
The basics of my plugin for s9y are working right now, but some of this "does some stuff" that random-block.php does confuses s9y. F.i. in the plugin list of admin area all images of the arrows are not loaded anymore after this plugin. And the complete list of event plugins is empty, not one event plugin is there, but the event plugins are working when I load my mainpage.
When I try to move my new plugin up or down, the order gets totally messed up, other plugins are moved mysteriously to another order !?
When I load my mainpage, my new plugin is working, the photo is displayed as intended, but all other plugins that are placed after my plugin, are not working properly anymore. Like in plugin list, all images are not shown, because in source code there is no URL for the image given. Also the category plugin returns an empty category list. And so on ...
That all seems to be because the gallery seems to be doeing something that s9y doesn't like. If I comment out the call to random-block.php (include ../gallery/block-random.php) all is fine and s9y is working as ever, but naturally no photo anymore. So at least it seems to be not my fault with the plugin itself, instead its the gallery.
Can someone explain this to me? Or give me some hints?
my plugin: http://www.romulus23.de/s9y/uploads/rom ... yembed.txt
block-random.php: http://www.romulus23.de/s9y/uploads/block-random.txt
init.php (init file of gallery that gets called by random-block): http://www.romulus23.de/s9y/uploads/init.txt