old hacks need to be upgraded
February 16th, 2005
a lot of old plugins or hacks for wp 1.2 is no longer working for wp 1.5
here are the ones i encountered and how i fixed them. they might not be the most ideal fixes but they worked for me.
page-navi plugin. open page-navi.php,
find:
global $querystring_start, $querystring_equal, $querystring_separator;
add below:
$querystring_equal = "=";
$querystring_separator = "&";
$querystring_start = "?";
in your index.php
put:
$what_to_show = 'paged';
just need this line:
$now = gmdate('Y-m-d H:i:59');
right after:
<?php
and on yea, concerning this
now you should replace the old edit_post_link function with this:
function edit_post_link($link = 'Edit This', $before = '', $after = '|', $edit_link = 'Edit Comments') {
global $user_ID, $post;
get_currentuserinfo();
if (!user_can_edit_post($user_ID, $post->ID)) {
return;
}
$edit_comments_location = get_settings('siteurl') . "/wp-admin/edit.php?p=$post->ID&c=1#comments";
$location = get_settings('siteurl') . "/wp-admin/post.php?action=edit&post=$post->ID";
echo "$before <a href=\"$location\">$link</a> $after <a href=\"$edit_comments_location\" rel=\"external\">$edit_link</a>";
}
btw i don’t plan to offer multi-more plugin any more. i don’t even use it myself.
3 Comments Leave a Comment
February 17th, 2005 at 12:51 am February 17th, 2005 at 2:50 amI envy anyone who is able to program so well, that means you! :P
I just upgraded to 1.5 as well. ^^


Aww, I really like the multi-more plugin hehe