Page 2 of 2

Posted: Tue May 02, 2006 10:01 am
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

Posted: Tue May 02, 2006 10:57 am
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

Posted: Tue May 02, 2006 12:31 pm
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