Ganners
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fatal ErrorIf you’re on shared hosting you wont have a php.ini file, in which case try step 2 or 3.
Forum: Fixing WordPress
In reply to: Functions : Colon ErrorWell it could be that your version of php uses the old syntax which would replace the “:” with “;” and that might work. If that doesn’t do the trick just use the normal syntax of { and }
<?php if($args['type'] == 'all' || get_comment_type() == 'comment') { comment_reply_link(array_merge($args, array( 'reply_text' => __('Reply','clean'), 'login_text' => __('Log in to reply.','clean'), 'depth' => $depth, 'before' => '<div class="comment-reply-link">', 'after' => '</div>' ))); } ?>
Should have been used in this case anyway really.
Forum: Fixing WordPress
In reply to: In Focus Theme Problem in IE8 with Slider Not DisplayingAll works for me
Forum: Fixing WordPress
In reply to: Dashboard problemsThat is bizarre! tried changing your IP?
Forum: Fixing WordPress
In reply to: Dashboard problemsCould be something to do with caching, cookies etc. have you tried a different web browser on that same computer?
Forum: Fixing WordPress
In reply to: Getting data from a custom database table?Hmm perhaps
$RandNum = rand(0, $NumRows-1);
Maybe the randomly generated number is outside of the count? Not sure. Else you could perhaps loop it all with a while loop which checks if both the philosopher and about returned are not null.
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorYeah that would be it looking at the code, interface objects were only integrated in PHP5. I’m sure this will solve it.
Forum: Fixing WordPress
In reply to: Getting data from a custom database table?Ah sorry my mistake, forgot it was an array! This should work for you:
function randomPhilosopher() { global $wpdb; $philosopher_table = $wpdb->prefix . 'philosophy_philosopher'; //Good practice $randomFact = $wpdb->get_results( "SELECT * FROM $philosopher_table"); $NumRows = count((array) $randomFact); $RandNum = rand(0, $NumRows); print $randomFact[$RandNum]->philosopher; print $randomFact[$RandNum]->about; //or return $randomFact[$RandNum]; ? }
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorThe deleting of the htaccess file was to solve the 500 error code. To fix the plugin, just delete the plugin file from the directory or fix it yourself, i’d just remove it though.
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorThats a plugin error. There are a few reasons this could happen I guess, my first guess would be its a htaccess problem, so try deleting your .htaccess file and see if that helps.
Forum: Fixing WordPress
In reply to: Getting data from a custom database table?There are a few ways you could do this, how I might do it would be:
function randomPhilosopher() { global $wpdb; $randomFact = $wpdb->get_row("SELECT * FROM wp_philosophy_philosopher, ARRAY_N); $NumRows = count($randomFact); $RandNum = rand(0, $NumRows); print $randomFact[$RandNum]->philosopher; print $randomFact[$RandNum]->about; }
I think that might do it off the top of my head though. Let me know if it works!
Forum: Fixing WordPress
In reply to: Need to get attachment ID by Image URLIf you’re looking to be able to put this information in inside your header admin panel, this will do that. It will add 2 text boxes for caption and for alt text. If you want this then open up wp-admin/custom-header.php and replace your code with this (from pastebin).
Then to use this code you need to use the code above to grab these.
Forum: Fixing WordPress
In reply to: Website looks great in Firefox and but bad in Internet ExplorerSo most people use IE8 or 7 from my experience, and these web browsers don’t support CSS attributes such as:
-moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; border-top-left-radius: 4px 4px; border-top-right-radius: 4px 4px; border-bottom-right-radius: 0px 0px; border-bottom-left-radius: 0px 0px;
This is what controls the round border at the top of your site. This makes sure it works in firefox, chrome, ie9 etc. But this isn’t in < IE8.
So the way around this would be to replace that top bar with an image. You could therefore put a div there for example, and have and image of the top bit with rounded corners as the background image.
It’s very common, this is the easiest way to do it. I use it on a few of my websites, such as https://www.avnews.co.uk so every rounded corner in that is made with a background image.
Your site is not coded in an uncommon language, just something which won’t work on all web browsers unfortunately. Until statistics start showing IE8 not really being used I would stay away from it.
Forum: Fixing WordPress
In reply to: How to install image script in the postif you want to wrap text around the img element then you should add the attribute of style=”float:left;” and that should do it.
Forum: Fixing WordPress
In reply to: YouTube Embedding affecting Search textbox stylingI think I’ve found your problem, you have no Doctype Declaration, at the top of your header.php put in the following line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
See if that works.