Page 1 of 1

0.8 change question

Posted: Fri Jan 28, 2005 8:25 pm
by techiem2
I just updated from 0.7.1 to the latest 0.8 version listed.
The update went smooth as usual, even with my funny integrated setup. :)

Anyhow, I have one question:
In 0.7.1, I called the blog entries using

Code: Select all

echo $blog_data;
in an included page to place it in a div on my layout page, and then put the sidebar stuff in a separate div
using

Code: Select all

        echo ('<div id=menu-right>');
           echo ('<b>Serendipity Menu</b>');
            serendipity_plugin_api::generate_plugins('left','div');
           serendipity_plugin_api::generate_plugins('right','div');
        echo ('</div>');
However, this seems to have changed in the 0.8 update.
The $blog_data variable apparently now includes the sidebar, and the above div is empty now.

Is there a way to set this back how I had it? I assume I'm just using the wrong calls with the update to get what I want.

It's not really a big deal, but I did like having the blog menu on all the pages instead of the just the front page with the entries.

Thanks.

Mark II

https://techiem2.no-ip.com

Re: 0.8 change question

Posted: Sat Jan 29, 2005 12:51 pm
by garvinhicking
Hi!

Thanks a lot for spotting this! Indeed it does not work the BC way. I've fixed it and committed to CVS, can you please try this:

1. Open include/plugin_api.inc.php
2. Find function generate_plugins.
3. Find the code

Code: Select all

        if (!is_array($plugins)) {
            return;
        }
4. Immediately after that, insert:

Code: Select all

        
        if (!isset($serendipity['smarty'])) {
            $serendipity['smarty_raw_mode'] = true;
            serendipity_smarty_init();
        }
You could also patch this code into the file from where you call serendipity_plugin_api::generate_plugins(), of course - if you don't like to modify s9y core files. Just update to latest CVS in a few days :)

Have fun,
Garvin