Thomas Griffin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting Static Home Page to Act Like Main Index PageThanks for you help Michael! I reviewed over conditional tags and I am loving them! They are extremely powerful and I can’t wait to map out ideas for them in the future! I got everything squared away with title tags, meta descriptions and keywords, and a whole slew of other things.
Forum: Fixing WordPress
In reply to: Getting Static Home Page to Act Like Main Index PageNeed to look at the Conditional Tags is_home() and is_front_page().
Where in my files do I add conditional tags?
Forum: Fixing WordPress
In reply to: Combining External JS and CSSThat’s great, but do you think it would be helpful that when you do figure something out, you tell other people how you did it?
Thanks.
Good idea. Sorry about not doing that. Here’s what I had to do.
1) Since my server does not allow mod_deflate or mod_gzip, I had to compress the jsquery script with PHP. I created a file and placed it in my root directory called
gzip.php
. Within the file is this code:<?php ob_start ("ob_gzhandler"); if( isset($_REQUEST['file']) ){ $file = $_REQUEST['file']; if( goodfile($file) ){ $ext = end(explode(".", $file)); switch($ext){ case 'css':$contenttype = 'css';break; case 'js':$contenttype = 'javascript';break; default:die();break; } header('Content-type: text/'.$contenttype.'; charset: UTF-8'); header ("cache-control: must-revalidate"); $offset = 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT"; header ($expire); $data = file_get_contents($file); $data = compress($data); echo $data; } } exit; function goodfile($file){ $invalidChars=array("\\","\"",";",">","<",".php"); $file=str_replace($invalidChars,"",$file); if( file_exists($file) ) return true; return false; } function compress($buffer) { $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer); $buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); return $buffer; } ?>
I then added this to my .htaccess file:
RewriteEngine on RewriteRule ^(.*).js$ pathtoyourwebsite/gzip.php?file=$1.js [L]
Now all my scripts are compressed. I still have not figured out how to combine the external scripts, but I am pleased with them all being compressed. Saves a lot of space. Hope this is helpful!
Thomas
Forum: Fixing WordPress
In reply to: Missing Dashboard IconsIssue fixed.
This line in my .htaccess file was the culprit:
RewriteRule ^(.*).js$ .../gzip.php?file=$1.js [L]
Since my server doesn’t enable compression, had to do it manually with PHP. Apparently it was blocking images. I removed the line, logged out of WordPress, logged back in, and everything was fine. I proceeded to re-add the line and the images are still there in good order. Not really sure what happened, but it is fixed now.
Forum: Fixing WordPress
In reply to: Missing Dashboard IconsHave you tried re-uploading the complete wp-admin directory? preferably from a fresh downloaded and locally unzipped set of WP and with an FTP program.
Tried that, but didn’t work either. Any other suggestions?
Forum: Your WordPress
In reply to: Detailed Record Label WebsiteNice website man! I’m impressed with all the technical goodies you offer.
Forum: Your WordPress
In reply to: A creative writer’s blog–simple, classy, readable.I’m definitely sending a few of my friends a link to this site. They are nuts about zombies, and I am sure they would love reading your stuff. I like the layout – stylish and easy to navigate.
Forum: Your WordPress
In reply to: Finalist for “Best Real Estate Blog in Texas”You have a good looking site built Matt! I’m impressed!
Forum: Fixing WordPress
In reply to: Missing Dashboard IconsThe images are contained within the wp-admin/images folder. Even after clearing my browser cache the images are not showing up. Anything else I can do?
Also, just made a new post, and I noticed that while I was making the post, the visual post icons (like center, right align, left align, etc.) were not showing up either.
Forum: Fixing WordPress
In reply to: Combining External JS and CSSUPDATE: Got it fixed up enough to get a low A/high B on Yslow.
Forum: Fixing WordPress
In reply to: Combining External JS and CSSUPDATE:
Figured out how to get Google’s Minify uploaded into my site and compressed my style.css sheet. Now I have an issue that is bugging the absolute fool out of me..maybe someone can help. I need to compress a .css and .js file to get my site to near optimal potential, which are:
/wp-content/plugins/contact-form-7/styles.css?ver=2.1.1
/wp-includes/js/jquery/jquery.js?ver=1.3.2
However, I cannot find either of these files located in the <head> tag of my header.php file. But I know they are located in the <head> tag because when I view the source code for my home page, they are tucked away in the <head> tag. How do I go about about editing those things which I cannot see in my theme editor. My guess is they are located in some HTML thing that I cannot seem to access. Can anyone help me? It’s driving me nuts!
Forum: Fixing WordPress
In reply to: Combining External JS and CSSOk, I got it down to 9 external JS and still 4 external CSS. I still need help on how to combine these into single JS and CSS files, minifying and compressing to speed up upload time. Also, I have 3 files that are not compressing:
/wp-content/themes/halftone/style.css
/wp-content/plugins/contact-form-7/styles.css?ver=2.1.1
/wp-includes/js/jquery/jquery.js?ver=1.3.2
None of these files are compressing..if they would compress, that almost 100k of space I could save. Can anybody help me with this? I’m still using WP Minify, and I’ve tried adding these specific files to the plugin, but it still will not compress them. I know there is a way to do this, but I just don’t know how. Your help is greatly appreciated!
Forum: Fixing WordPress
In reply to: Hiding Pingbacksedit a post
scroll to bottom
check mark to disallow pingbacksWill that disallow all pingbacks, including ones from other sites? Or will it still allow pingbacks and just hide them from the public?
Forum: Your WordPress
In reply to: First WordPress site dedicated to singingThanks for letting me know. I’ll start working to see about a resolution for it!
Thomas
Forum: Your WordPress
In reply to: First WordPress site dedicated to singingThere appears to be some cross browser issues between FF and IE.
What issue were you having with IE?
Thanks for your comments. I have about 10-15 articles I am finishing up for the site, hopefully to post them by Sunday. The blurb idea is a good one. I will work on implementing that.
Thomas