Viewing 15 replies - 1 through 15 (of 46 total)
  • Laughinglizard

    (@laughinglizard)

    Added your hacks to my list, including those of Jon, Mike and others. If anyone else has significant hacks for WP, please send me a link or simply logon and blog away at https://dinki.mine.nu/word/
    I figure when these hacks get put into their right place, my site will be a good starting point. ??

    otaku42

    (@otaku42)

    @codergurl: you should consider to run the upgrade-script for 0.73 in order to get rid of the “[Unknown column ‘comment_approved’ in ‘where clause’]” messages that currently show up in your test-blog.

    Kathie

    (@kathie)

    The link to the auto commenter is dead for me.

    Thread Starter codergurl

    (@codergurl)

    *blush* None of the links were working because I typed in the wrong directory. Try clicking on the link again.

    Kathie

    (@kathie)

    Oh works fine now ?? Thank yoooou. I installed the commenter one. I just have one question… How can I get the links from the LAST post? I know you have to put 1 instead of 0 BUUUUT when I do that I also get the old comments in my comments site (the pop-up you know… where you comment on the recent post)?
    I would try it myself but Im not too familiar with php *blushes*

    Thread Starter codergurl

    (@codergurl)

    Fixed.
    Change:
    $id = ($show) ? ($id - 1) : $id;
    To:
    $cid = ($show) ? ($id - 1) : $id;
    Change:
    WHERE comment_post_ID='$id'
    To:
    WHERE comment_post_ID='$cid'

    Kathie

    (@kathie)

    Awesome!!! Oh my god love you ??

    Kathie

    (@kathie)

    This is weird… I just posted a new entry and now it does the same like before… I had 4 comments, but they arent showing up. Instead it says that I havent had any comments so far ?? Oh well.

    Kathie

    (@kathie)

    Nervmind. I thing whats wrong with it… Do you know how I change the ‘number’ of the post? Like my last post was number 46 but the most recent 49. How can I make it 47?

    Thread Starter codergurl

    (@codergurl)

    oh, i thought about that last night after i made the last post. this wasn’t such a good idea after all. i think it’s time to go back to doing it the manual way. i’ll try to get it done tomorrow. ??

    Anonymous

    I had issues with the getstats function, it didn’t appear to be complete because it wasn’t returning any values. I’ve hacked it into working shape and document it here :-
    function get_stats($what) {
    global $wpdb;
    switch($what) {
    case ‘users’:
    global $tableusers;
    $request = $wpdb->get_var(“SELECT COUNT(*) FROM $tableusers WHERE user_level > 0”);
    break;
    case ‘posts’:
    global $tableposts;
    $request = $wpdb->get_var(“SELECT COUNT(*) FROM $tableposts WHERE post_status <> ‘draft'”);
    break;
    case ‘comments’:
    global $tablecomments;
    $request = $wpdb->get_var(“SELECT COUNT(*) FROM $tablecomments”);
    break;
    }
    echo $request;
    }

    Is it possible to put a target=”_blank” in the comments hack? I tried and didnt work for me ??

    I’m a wordpress and php newbie. For the above hacks, what files do we modify to insert the code or are we treating each hack as its own .php page (e.g., stats.php) and then calling that page from somewhere? Please put in layman’s terms. Thanks.

    Deb, looks like if you read the source, the instructions for placement are in the code.

    A slightly easier way to post the date since would be to just do the years if greater than months if greater than weeks,….ect… I have posted the code for my hack here (www.chrisandabigail.com).

Viewing 15 replies - 1 through 15 (of 46 total)
  • The topic ‘codergurl’s hacks’ is closed to new replies.