Disney Count support may be spotty from here. We apologize for the inconvenience.

Links don't go 'read' properly, as advertised

just FYI
Permalink Send private email muppet 
January 25th, 2006 8:51am
I noticed that too, but I think fixing the OP bug is more important. :)
Permalink Send private email Mat Hall 
January 25th, 2006 9:45am
No way - it's kind of surreal that we're all the OP. Gives a great sense of psychosis.
Permalink  
January 25th, 2006 10:18am
The name thing is fixed, which is nice.  Just checking to see if the visited link business works properly.  (Also, just to nitpick, when you go to the posting page the OK button seems to be the control with focus rather than this textarea.)
Permalink Send private email Mat Hall 
January 25th, 2006 10:53am
The links still don't "work", but I declare this fit for human consumption.  (Ectopia has precisely the same "bug", and the interface there is *UGLY*.  (No offense intended if you read this, Simon, but you know deep down that it's true. :)
Permalink Send private email Mat Hall 
January 25th, 2006 10:56am
The link visiting should now work properly (along with the cancel button on posts/replies).

Permalink Send private email Almost H. Anonymous 
January 25th, 2006 11:14am
Links are properly changed now.

I'd love to know how that's done, for my own purposes.  :)
Permalink Send private email muppet 
January 25th, 2006 11:22am
After the post is complete, you redirect back to the topic.  All I had to do was ensure that I included the comment count in the URL when I did that.
Permalink Send private email Almost H. Anonymous 
January 25th, 2006 11:29am
My guess is that it was redirecting to the URL you replied from rather than the newly formed one, so you'd not "visited" your current post, but now it's redirecting properly.  (As far as I can make out the last parameter of the query string serves no purpose other than to make the URL unique to allow for the link flagging.)
Permalink Send private email Mat Hall 
January 25th, 2006 11:29am
So you're using Location headers?
Permalink Send private email muppet 
January 25th, 2006 11:30am
As far as I understand it, the index page displays links composed of topic and number of links.  If you've viewed a post and nothing new has been added then the links shows this in the normal way; if a new post has been added the post count (and therefore the URL) changes, and your browser displays it accordingly.  My guess was the bug arose because after posting the URL it redirected you to was *not* the one that the index displays (probably by not including the post count), so as far as your browser was concerned you'd not looked at it yet.  Nothing particularly magical about it, really.
Permalink Send private email Mat Hall 
January 25th, 2006 11:36am
I understand the comment count deal.

But Mat, unless you use a redirect via a meta refresh or a location header, there's no way to duplicate the same URL as what will result from your post, giving you a read link.

I'm just curious which way AA is doing it.  :)

I'm assuming a location header, since a meta-refresh would be more obvious I think.
Permalink Send private email muppet 
January 25th, 2006 11:38am
I guess clicking on "OK" on the post screen points to some sort of PHP, which squirts stuff into the database, generates you a new URL based on the current post count, and then redirects you to said URL, via (as you surmise) a location header...  (I ain't no PHP guru, but this is my surmise -- I have similar code on my site to redirect you me to a news article once I've created it.)

<? php
//some DB code

...

// so long as nothing gets sent to the browser
// before here we're good
// more DB code to craft new URL
$URL = {whatever};

header ("Location: $URL");
?>
Permalink Send private email Mat Hall 
January 25th, 2006 11:48am
Yes yes yes I know all that I was just asking whether he was doing:

header ("Location: $URL");

or in the resulting HTML:

<meta refresh ...


Since I've tried both before without luck but must have been doing it wrong.  :)
Permalink Send private email muppet 
January 25th, 2006 11:50am
I've found the meta tag version to be unreliable -- before I'd spotted the Location: feature I was spitting out HTML meta redirects but FF didn't seem to do anything.  (IE normally worked though, which was odd, and odder because it didn't work every time.)

Since switching to the header() function it seems to work much better (although I've yet to change it in all the places I used it, so the backend for my site sometimes redirects me, and other times not so much. :)
Permalink Send private email Mat Hall 
January 25th, 2006 11:53am
"there's no way to duplicate the same URL as what will result from your post, giving you a read link."

I use header('Location:..') and I duplicate the same URL that will result from your post.

After I add the post to the database, I just count up the number of posts and add that to the end of the URL just like the main topic page does.
Permalink Send private email Almost H. Anonymous 
January 25th, 2006 12:05pm
I didn't say there was no way, I said there was no way w/o a redirect.  :)

Thanks for clarifying which redirect you're using.
Permalink Send private email muppet 
January 25th, 2006 12:06pm

This topic is archived. No further replies will be accepted.

Other topics: January, 2006 Other topics: January, 2006 Recent topics Recent topics