authorpic tags not saved in ep_cache_body

Found a bug? Tell us!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Many thanks for your help! I was able to find a bug with how the caching works/worked and made a patch.

First off, you need to patch your file include/functions_entries.inc.php.

You need to find this code within the function serendipity_printEntries():

Code: Select all

            serendipity_plugin_api::hook_event('frontend_display', $entry);
replace that with:

Code: Select all

            $addData = array('from' => 'functions_entries:printEntries');
            if ($entry['is_cached']) {
                $addData['no_scramble'] = true;
            }
            serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
Then you also need to fetch the latest userprofile plugin which looks like this and also contains your replacement changes:

http://nopaste.php-q.net/209361

HTH,
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/
Oldy
Regular
Posts: 14
Joined: Sun Apr 30, 2006 11:57 pm

Post by Oldy »

Hi!
I'm glad to help. If you are seriouse. :)

Garvin, I think about userprofile follows.

IMHO

Code: Select all

'" title="' . htmlspecialchars($eventData['author']) . '" /><br>' . htmlspecialchars($eventData['author']
some better than your variant because in this way user real name showing in native alphabet.

Thank you very much! Language barrier crashed. I drink for this. And for you. :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Great, yes. Your patch of course is better, I didn't think of this. I also fixed this behaviour in the plugin.

Many, many thanks for your help and that you kept trying to help me understand your problem! :-)

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