nark3d
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Next/Previous Links not workingoops, missed a bit:`
$offset = “0”;
$no_of_posts = “2”;
if (preg_match(‘/page/’, $_SERVER[‘REQUEST_URI’])) {
$uri = explode(‘/’, $_SERVER[‘REQUEST_URI’]);
foreach ($uri as $key=>$value) {
if ($value == “”) {
unset($uri[$key]);
}
}
$offset = (array_pop($uri) * 2) – 2;
}
query_posts(‘showposts=’ . $no_of_posts . ‘&offset=’ . $offset);
if (have_posts()) :`That should work.
Forum: Themes and Templates
In reply to: Next/Previous Links not workingI had the same problem, but I found a work around:
$offset = "0"; $no_of_posts = "2"; if (preg_match('/page/', $_SERVER['REQUEST_URI'])) { $uri = explode('/', $_SERVER['REQUEST_URI']); foreach ($uri as $key=>$value) { if ($value == "") { unset($uri[$key]); } } $offset = array_pop($uri) * $no_of_posts; } query_posts('showposts=' . $no_of_posts . '&offset=' . $offset); if (have_posts()) :
And continue your loop. Use the next_posts_link and previous_posts_link as you normally would.
Have a look at it in action here:
https://adamlewis.me.ukForum: Plugins
In reply to: Automatic Upgrade: Unable to Identify WordPress Directory via FTPChange your FTP users home directory to be the directory where your wordpress installation is.
For example, my installation is in:
/var/www/vhosts/cheaperbycar.co.uk/httpdocs/newsSo change the users home page to be this directory. In *nix do this:
usermod -d /var/www/vhosts/cheaperbycar.co.uk/httpdocs/news userForum: Your WordPress
In reply to: Review my site design: BE BRUTAL!!It’s only valid transitional, I’d work towards Strict if you can. Also, as others have mentioned, the page is 319kb and some of the image work is a bit pixelated.
Forum: Installing WordPress
In reply to: How do I get my admin user name/pw?I had this issue once, so I manually edited the admin user in the database. To get the password right I made a quick page on a site and encrypted it:
<?php
echo md5(‘password’);
?>Then grab the hashed value and stick in the DB.
Forum: Installing WordPress
In reply to: Installation appears to be a blank page?You could edit the top of the index.php file to allow you to see the errors. It’s probably hiding them as you’re in “safe _mode” or have your error reporting turned down.
<?php error_reporting(E_ALL); ?>
or try:
<?php ini_set('error_reporting', E_ALL); ?>
Then you’ll have some meaningful error messages to help work out what’s gone wrong.
Forum: Fixing WordPress
In reply to: Problems with Homepage <title>I’m getting the same problem.
The Object Buffer appears to have been started for something else already, however I’ve disabled most of the plugins and it’s still happening?
I’ve outputted the handlers and got this:
<!– handler is All_in_One_SEO_Pack::output_callback_for_title –>
<!– handler is kml_flashembed –>I’ve looked up kml_flashembed and it’s not a plugin I’ve installed:
https://kimili.com/plugins/kml_flashembed/wpCould it be part of another plugin I’ve put in?
Any help or advice gratefully appreciated.