amonon
Forum Replies Created
-
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_canForum: Fixing WordPress
In reply to: How to remove screen options and Help from DashboardTry 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.
Forum: Fixing WordPress
In reply to: force https for dashboard/login pageThanks, 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:
Forum: Fixing WordPress
In reply to: auto url redirect to wrong page after post deletionJust 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)
Forum: Fixing WordPress
In reply to: Help with postioning divsHere’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.