This is also useful in case I change my template since it'll also affect my entire site without me having to do much code editing.
Problem is, that I get what I want but the plugins on the right do not show. It is the exact same code I copied from a post about integrating some gallery scripts into Serendipity.
Did you look at your index.tpl template and see if the if-fragment for displaying the right sidebar is evaluated and executed?
Try to see if 'rightSidebarElements' variable is larger than 0 and if not, see what the count_plugins('right') function returns.
And have patience, we do not all live in the same timezone as you do
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Anyways, yes I have checked the variable when loading that page I want integrated into Serendipity and it does return an integer larger than 0 so I know it doesn't have a problem there. I also checked to make sure the function that shows the plugins is correctly placed and it is (otherwise it wouldn't work on the s9y portion of the site )
If you can think of anything else, I'll really appreciate it.
Then the problem seems to be that the load_plugin or enum_plugins function call does not work probably. This may happen if Serendipity is not within its path to include/require the plugin files.
Maybe you can have a look at include/plugin_api.inc.php and investigate the returns/execution of serendipity_plugin_api::generate_plugins() creates errors?!
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
and it gave me what I needed, now the question is why wouldn't it show in the right place if it looks like the call is correct from the template file. Here's the sidebar portion of the template file:
Maybe you can check the Smarty function serendipity_printSidebar and see if it returns "bad" stuff. The function should reside in include/functions_smarty.inc.php.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Well, just calling it doesn't do anything but echoing with the correct params gives the sidebar correctly. I'm going to try to investigate this a bit further and let you know of my findings. Other than that, got any other ideas?
Sorry, no other clues. Only that maybe the path settings to the template path are wrong or so...?!
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/