mkbclr
Forum Replies Created
-
The theme is old, but I only have a few plugins and have disabled them all – one at a time.
I can see the data in the s2member log and the database, and the s2member server scanner had 1 error that I cleared up. Still nothing.
I am having this same problem. These headings:
Custom Capabilities
EOT Time
# Of Logins
Last Login TimeOnly show long dashes after August of this year. I don’t know what happened in August, but I would be willing to bet a WordPress update, since nothing else on the site gets changed. Ever…
Forum: Hacks
In reply to: I have a doozy…..This was resolved thanks to Umbercode – all around good guy
Here’s his response
So I did some test on my testsite and found that any single.php page accepts any slug behind it. For example, taking wordpress’s own site if you go to this link: http://ww.wp.xz.cn/news/2012/09/wordpress-3-5-beta-1
is the same as going to this link:
http://ww.wp.xz.cn/news/2012/09/wordpress-3-5-beta-1/11111111111111111111111111/Bit of a weird behaviour, but it seems to be “normal” so at least it is not something in your code. So as long as you make sure there are no links to any of these strange pages Google will be happy and so will you π
Forum: Hacks
In reply to: I have a doozy…..fwiw i put in the offset key and removed paged
everything works the same – with the crazy urls still serving.as for what i am trying to do….
take a look here –http://www.todayshomeowner.com/video/installing-bifold-doors/2/
this will give you the second page
everything works like i want it to, but it will still serve these crazy urls ending with a long string of numbers (if you replace the 2 with 111111111111111111 the page will load)
google has indexed all these crazy urls and it’s causing us trouble. i don’t know how they got to the bad urls, since there is no link to them. you can only get there by typing the numbers in.
all i want it for those crazy urls not to load a page – a 404 would be nice.
Forum: Hacks
In reply to: I have a doozy…..as best i can tell i should remove the paged key and replace with ‘offset’ => 1
am i on the right track?
Forum: Hacks
In reply to: I have a doozy…..as if it is not obvious – i am kind of a php / wordpress hack.
and chance you could help me out with what would work?
i have never heard of offset, but am reading the link you sent now. i just don’t quite understand yet.
Forum: Hacks
In reply to: I have a doozy…..the whole problem came about when i wasn’t able to use pagination on a single.php. that’s when i had to start all this craziness rather than just the plain ole’ use the loop – use a pagination plug like normal.
$cat_ID is just an if statement so i can control which wordpress category is used.
you got any idea where i should start looking? i have the standard wordpress stuff in htaccess – and i dont have any other ideas…
Forum: Hacks
In reply to: I have a doozy…..oh yea h- that makes sense π
how does this look? (it still servers the crazy 11111111111 urls btw)
<?php function curPageURL() {
$pageURL = ‘http’;
//check what if its secure or not
if ($_SERVER[“HTTPS”] == “on”) {
$pageURL .= “s”;
}
//add the protocol
$pageURL .= “://”;
//check what port we are on
if ($_SERVER[“SERVER_PORT”] != “80”) {
$pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI”];
} else {
$pageURL .= $_SERVER[“SERVER_NAME”].$_SERVER[“REQUEST_URI”];
}
//cut off everything on the URL except the last 3 characters
$urlEnd = substr($pageURL, -3);
//strip off the two forward shashes
$page = str_replace(“/”, “”, $urlEnd);
//return just the number
return intval($page);}
?>
<?php
$query = new WP_Query(array(
‘paged’ => $page,
‘post_type’ => ‘video’,
‘order_by’ => ‘date’,
‘order’ => ‘desc’,
‘cat’ => $cat_ID,
‘posts_per_page’ => 18)
); ?>
<h3><?php $num = $query->found_posts;
$totalpages = ceil($num / 18);
echo $num;?>Forum: Networking WordPress
In reply to: .htaccss gone crazyat least could someone tell me what the $2 variable refer to?
i have limited knowledge of htaccess – but i know that if i change those last two $2 to $1 – the site still loads, and the redirect errors stop, but my sub-sites cannot load any css or scripts
Forum: Networking WordPress
In reply to: .htaccss gone crazyJust looking over that i should also mention that we changed the names of the subsites. one is now called television, one called radio. that’s what’s up with those 301s