View previous topic :: View next topic |
Author |
Message |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Mon Sep 30, 2002 12:07 am Post subject: Big problem with Comment/trackback/pingback popups |
|
|
Michel, I've just found a (for me) big problem with the comment and track/ping-back popup links: Google is indexing the popup page!
If you search google for earthquake in england you'll see I'm number 4 and 5 in the list (incredible!) but that they take you to the popup windows with no content!
I'm not sure what to do about this; I guess a check on the referrer could detect an external reference and redirect to the non-popup version.
I quite like the popup, but for now, I've made all three into the non-popup versions.
Mike |
|
Back to top |
|
 |
.Chris
Joined: 30 Apr 2002 Posts: 186 Location: Hawaii
|
Posted: Mon Sep 30, 2002 12:32 am Post subject: |
|
|
The same thing happens when I used the trackback url to get to your link. I was wondering why the page is blank. |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Mon Sep 30, 2002 12:45 am Post subject: Workaround |
|
|
For now, I've got a workaround: The top of my b2XXXpopup.php files (where XXX is comments, trackback or pingbacks) look like this
Code: | <?php /* Don't remove this line, it calls the b2 function files ! */
$blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) { start_b2();
$ref = getenv('HTTP_REFERER');
if (strstr($ref,'.google.') != null) {
header("Location: $siteurl?p=$p&c=1");
exit;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
I've added a test for google in the referer header and redirect to the normal page with the story opened for commenting or ping/track-back
Unfortunately this is specific to google, but at least it gets around the immediate problem.
Hmmm, still pondering a 'proper' solution. |
|
Back to top |
|
 |
.Chris
Joined: 30 Apr 2002 Posts: 186 Location: Hawaii
|
Posted: Mon Sep 30, 2002 12:51 am Post subject: |
|
|
How about editing the meda tags? I haven't even looked at the php files yet, but using "no index" in a meta tag would work for not getting it indexed. |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Mon Sep 30, 2002 1:15 am Post subject: |
|
|
Ahh, but I want my story to be indexed! Just in a manner which won't dissappoint the searcher.
I think I've convinced myself my work around is the right thing to do. See my post on the subject.
Mike |
|
Back to top |
|
 |
|