Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter amonon

    (@amonon)

    Alright, thanks to Firebug and the command ‘findstr’ in dos I was able to locate the IP php file. Anyway here’s the solution in case some of you might find this post via google.

    It’s located in: wp-admin/includes/template.php
    search for:

    echo '">';
    comment_author_IP();
    echo '</a>';

    replace it with:

    echo '">';
    if ( current_user_can('manage_options') ) {
    comment_author_IP();
    }
    echo '</a>';

    or better yet, replace the entire block (starting with if ( $user_can ) with this:

    if ( $user_can ) {
    	if ( current_user_can('manage_options') ) {
    		if ( !empty($comment->comment_author_email) ) {
    			comment_author_email_link();
    			echo '<br />';
    		}
    		echo '<a href="edit-comments.php?s=';
    		comment_author_IP();
    		echo '&mode=detail';
    		if ( 'spam' == $comment_status )
    			echo '&comment_status=spam';
    		echo '">';
    		comment_author_IP();
    		echo '</a>';
    	}
    } //current_user_can

    Try Firebug extension for FireFox. You’ll be able to detect class/id and then you can add in the css rule even if it’s not already in the css file.

    Thread Starter amonon

    (@amonon)

    Thanks, didn’t know about that simple solution. This will be handy later on but for now I’m on two different URLs. I wonder if it’s possible to put in custom URL as well as a force to HTTPS?

    Example:

    http://nonsslblog/wp-admin
    https://mysuperblog/wp-admin

    Thread Starter amonon

    (@amonon)

    Just found out that it’s not just deleting posts, but comments as well. Strange bug, wonder what is going on here.

    After a deletion whether it’s a post or a comment I’m being redirected to myblog.com (root)

    Here’s another way of looking at it for beginners:

    always wrap float elements inside a div and create a special css rule for that div. example:

    <div class='floatcontainer'>
    AND ONLY PLACE FLOATING ELEMENTS IN HERE. IF IT DOESN'T FLOAT, IT DOESN'T GO IN HERE.
    <div>

    and the floatcontainer is just a clearfix hack. Second, all floating DIVs must have a width otherwise there’s no point in floating it.

    Now you can go crazy with floating divs.

Viewing 5 replies - 1 through 5 (of 5 total)