0.8 change question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
techiem2
Regular
Posts: 35
Joined: Sun Feb 15, 2004 6:59 am
Contact:

0.8 change question

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 0.8 change question

Post 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
# 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/
Post Reply