Posts

Showing posts from June, 2014

New South African Digital artist Digital Colonel very impressive

Came across this new South African digital musician called Digital Colonel on Soundcloud and his tracks are very impressive. Take a listen to his dance track and my personal favourite below.

Buy House Music Samples

Buy top quality South African House Samples from as little as R50 Go here to purchase samples Listen to a snippet below

Disable Home Title in Wordpress

Replace <?php the_title(); ?> with <?php if ( ! is_front_page() ) { the_title(); } ?> in page.php to not show title on home page if you want

Best breadcrumb plugin for Wordpress - tried and tested

This breadcrumb Wordpress plugin is very simple to install and use and it has been tried and tested on all my Wordpress instrallations In your Wordpress admin backend search for "Really Simple Breadcrumb" Download and Install the plugin Add the code below to page.php <?php if(function_exists(simple_breadcrumb) && !is_front_page()) {simple_breadcrumb();} ?> NB: The PHP code above will show the breadcrumb on all pages except the homepage Add .breadcrumb { } to your CSS stylesheet Edit CSS breadcrumb class accordingly

Contact Form 7 Wordpress Plugin Redirect to another page after submission

With the Contact Form 7 plugin in Wordpress this is how I redirected to another page with my Google Conversion Tracking code in place Redirect to unique thank you page with conversion tracking Add this to the "additional settings" section for Contact Form 7: on_sent_ok: "location.replace('http://www.YOURSITEURL.com');"

Secure Wordpress site with use of htaccess rules

To secure my Wordpress sites from SQL injection and folder browsing I've used these htaccess rules after installing Wordpress. These htaccess rules do not break your Wordpress site or interfere with the database in any way. Use these htaccess rules to secure your Wordpress site from attack in addition to your other security plugins and measures. # Enable rewrite engine RewriteEngine On # Prevent folder browsing Options All -Indexes # Disable server signature ServerSignature Off # Block suspicious request methods RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK|DEBUG) [NC] RewriteRule ^(.*)$ - [F,L] # Block WP timthumb hack RewriteCond %{REQUEST_URI} (timthumb\.php|phpthumb\.php|thumb\.php|thumbs\.php) [NC] RewriteRule . - [S=1] # Block suspicious user agents and requests RewriteCond %{HTTP_USER_AGENT} (libwww-perl|wget|python|nikto|curl|scan|java|winhttp|clshttp|loader) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (<|>|'|%0A|%0D|%27|%3C|%3E|) [N

Contact Form 7 Additional Tags

I found these additional tags for the Contact Form 7 plugin for Wordpress.   I found it helpful when customising my subject line to include the date and time and the post title to Contact Form 7 email to track effective pages with the contact form. [_remote_ip] This tag will be replaced by the sender’s client IP address. [_user_agent] This tag will be replaced by the sender’s user agent information. [_url] This tag will be replaced by the URL of the contact form. [_date] This tag will be replaced by the date of the submission. [_time] This tag will be replaced by the time of the submission. [_post_id] This tag will be replaced by the ID of the post which contains the contact form. [_post_name] This tag will be replaced by the name (slug) of the post which contains the contact form. [_post_title] This tag will be replaced by the title of the post which contains the contact form. [_post_url] This tag will be replaced by the permalink of the post whic