dailyjapan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks on NetfirmsI guess its just not possible?
Forum: Fixing WordPress
In reply to: Future Posts & Future Pings?Anyone got a URL for that wp-cron plugin? I just clicked to find that the hosting account is suspended.
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…Fixed it!!!
Just did a little playing around with php and this solved my problem:
function get_pagenum_link in template-functions-links.php
I added the following under $qstr = $_SERVER[‘REQUEST_URI’];
$qstr = substr($qstr,26);
I had 26 characters showing up as extras (absolute path) so used that to get rid of them.
I then removed $index from the line
$qstr = $index . ‘?’ . $page_querystring . ‘=’ . $pagenum;
near the bottom of the function.
Now I have a working next and previous page on netfirms! ??
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…I have been trying to fix this problem, and figured if I went in and changed the function to reflect the proper URL it would work, but I’m lost when I look at the template-functions-links.php file and find:
function posts_nav_link($sep=’ — ‘, $prelabel=’« Previous Page’, $nxtlabel=’Next Page »’) {
global $request, $posts_per_page, $wpdb, $max_num_pages;
if (! is_single()) {if (get_query_var(‘what_to_show’) == ‘posts’) {
if ( ! isset($max_num_pages) ) {
preg_match(‘#FROM (.*) GROUP BY#’, $request, $matches);
$fromwhere = $matches[1];
$numposts = $wpdb->get_var(“SELECT COUNT(ID) FROM $fromwhere”);
$max_num_pages = ceil($numposts / $posts_per_page);
}
} else {
$max_num_pages = 999999;
}if ($max_num_pages > 1) {
previous_posts_link($prelabel);
echo preg_replace(‘/&([^#])(?![a-z]{1,8};)/’, ‘&$1’, $sep);
next_posts_link($nxtlabel, $max_page);
}
}
}I cant figure out where it makes the link in there… no abspath or anything, so I’m lost.
Can anyone help?
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…Are you using netfirms as well?
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…still tinkering with it but no luck… I cant believe nobody else has had this problem!
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…So nobody else has had a problem like this? Do you think it could be a problem with my host? (netfirms)
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…and now that I’ve switched back its not working for the old code either…
there must be something hiding telling it that its sitting at /subdomain/dailyjapan.com
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…macmanx,
I tried your code, and now it doesnt work at all even from the first page…
Is there a setting hiding in some config file that might be making it think that its in a different location than it actually is on the server?
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…I dont have any plugins enabled…
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…I’m using whatever the default is in the themes… I thought maybe it was the theme that I was using that was causing the problem, but I tried the default and classic themes that come with it and still had the same problem.
Here is the code anyway:
<?php posts_nav_link() ?>
Thats the usual, right?
Forum: Fixing WordPress
In reply to: Previous Page – Next Page not working…Any ideas? I tried upgrading to 1.5.1.1 but no luck…
Forum: Fixing WordPress
In reply to: Importing MySQL databaseYeah that worked. Turns out there was also an invisible character in between the — and word create that I had to get rid of.
Everything works just fine now. Thanks!
Forum: Fixing WordPress
In reply to: Importing MySQL databaseI think it looks like that already… here is what I have:
PHP Version: 4.3.11
—
— Database:d60155072
—
CREATE DATABASEd60155072
;
USE d60155072;— ——————————————————–
—
— Table structure [continued]That didnt paste very well, but when you look at the .sql in notepad, it has a — before create database. Do I need to add an extra — before that?
Forum: Fixing WordPress
In reply to: Permalinks on a windows serverNevermind… I’ve switched over to a unix server ??