boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Big problem with Comment/trackback/pingback popups

 
Post new topic   Reply to topic    boardom Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Mon Sep 30, 2002 12:07 am    Post subject: Big problem with Comment/trackback/pingback popups Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
.Chris



Joined: 30 Apr 2002
Posts: 186
Location: Hawaii

PostPosted: Mon Sep 30, 2002 12:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Mon Sep 30, 2002 12:45 am    Post subject: Workaround Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
.Chris



Joined: 30 Apr 2002
Posts: 186
Location: Hawaii

PostPosted: Mon Sep 30, 2002 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Mon Sep 30, 2002 1:15 am    Post subject: Reply with quote

Ahh, but I want my story to be indexed! Just in a manner which won't dissappoint the searcher. Smile

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group