ericfrederich
Forum Replies Created
-
Forum: Plugins
In reply to: Showing User’s First and Last Name in the commentsShoot…as I was hitting the “Send Post” button I saw to put code between backticks, so here is the same thing as above and hopefully you can read it better….
// TODO: Use API instead of SELECTs.
if ( empty(gr) ) {
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");
} else {
$author_db = $wpdb->escape($comment_author);
$email_db = $wpdb->escape($comment_author_email);
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND ( comment_approved = '1' OR ( comment_author = '$author_db' AND comment_author_email = '$email_db' AND comment_approved = '0' ) ) ORDER BY comment_date");
foreach($comments as $comment){
if($comment->user_id != 0){
$fname = $wpdb->get_var("select meta_value from $wpdb->usermeta where user_id = $comment->user_id and meta_key = \"first_name\"");
$lname = $wpdb->get_var("select meta_value from $wpdb->usermeta where user_id = $comment->user_id and meta_key = \"last_name\"");
if($fname != "" && $lname != "")
$comment->comment_author = $lname . ", " . $fname;
}
}
}
Forum: Fixing WordPress
In reply to: WordPress 2.1 fast in Firefox but Slow in IEWell I solved it by commenting out the following 3 lines.
I have no idea what the repercussions of this will be.var update1 = new Ajax.Updater( ‘incominglinks’, ‘index-extra.php?jax=incominglinks’ );
var update2 = new Ajax.Updater( ‘devnews’, ‘index-extra.php?jax=devnews’ );
var update3 = new Ajax.Updater( ‘planetnews’, ‘index-extra.php?jax=planetnews’ );Forum: Fixing WordPress
In reply to: WordPress 2.1 fast in Firefox but Slow in IEI don’t know much php and I don’t know ajax at all.
In 2.0.5 the default dashboard took a long time to load no matter which browser I was in so I was so happy to see how quick things were in 2.1 until someone told me how slow it was for them and then I found that it was only in IE.I’m sure there were major changes to the dashboard between 2.0.5 and 2.1 since like I said 2.0.5 was unusable in both browsers.
Are there sections I could try commenting out to see if that helps anything?
I have no idea how to debug this web stuff when it works fine in one browser and not in another. Is there a way I can check all the requests coming out of IE to see if there is anything out of the ordinary?
Maybe it is some javascript hanging things up in IE.
Any help is appreciated.
~Eric
Forum: Fixing WordPress
In reply to: WordPress 2.1 fast in Firefox but Slow in IEUnless it is included and enabled by default in Firefox 2 I don’t have the fasterfox plugin.
This is really weird. If it was instant in Firefox and took 3 seconds in IE I wouldn’t even say anything, but this literally takes around 30 seconds to go from the dashboard directly to a comment or from the dashboard to my profile.
The weird thing is that those links from the dashboard load just fine in IE if I copy them to the clipboard, go to the main page and then paste it in the address bar. But if I click on it from the dashboard or even if I paste the link in the address bar while the dashboard is loaded, it takes 30 seconds.