old hacks need to be upgraded

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';

wp-stats.php

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

Bubs [ Quote ]

Aww, I really like the multi-more plugin hehe ;)

February 17th, 2005 at 12:51 am
Daynah [ Quote ]

Thanks for sharing sis! :D

February 17th, 2005 at 2:50 am
Brenda [ Quote ]

I envy anyone who is able to program so well, that means you! :P

I just upgraded to 1.5 as well. ^^

February 17th, 2005 at 11:37 am

Leave a Comment Name, email and comment are required.
Email will never be displayed.

Leave a Comment
  1. :biggrin: :blank: :blush: :bored: :confused: :cool: :down: :evil: :frown: :grin: :grr: :laidback: :left: :mad: :right: :sad: :secret: :shock: :smile: :stress: :tongue: :up: :wink: :yawn: :cute: :dead: :film: :floppy: :glasses: :grumpy: :headphones: :heart: :lightbulb: :ouch: :tv: :upsidedown: :vodka: :yell: :yuck: :yummy: