Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Extra CSS for "new nodes" when viewing a thread

by Gavin (Archbishop)
on Aug 22, 2007 at 17:37 UTC ( [id://634441]=note: print w/replies, xml ) Need Help??


in reply to Extra CSS for "new nodes" when viewing a thread

tye has intimated that the overheads would be too great to implement this server side, could it not then be implemented client side through a script?
  • Comment on Re: Extra CSS for "new nodes" when viewing a thread

Replies are listed 'Best First'.
Re^2: Extra CSS for "new nodes" when viewing a thread
by suaveant (Parson) on Aug 22, 2007 at 19:23 UTC
    Actually... if on pages like newest nodes the html held the last updated thread time then it would be easy to either have javascript on the PM or use GreaseMonkey to store the last time you visited a node... then highlight those that have been updated since you last visit. Should be almost no extra work on the server side. Would be a nice option.

                    - Ant
                    - Some of my best work - (1 2 3)

Re^2: Extra CSS for "new nodes" when viewing a thread
by Popcorn Dave (Abbot) on Aug 23, 2007 at 00:44 UTC
    That's what I was thinking. Every time you visit a node, couldn't you store the nodes below it locally and if you revisit a node base your CSS on your own data of read nodes? Seems like something that could be hacked together using GreaseMonkey or a Firefox extention.


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

Re^2: Extra CSS for "new nodes" when viewing a thread
by holli (Abbot) on Aug 22, 2007 at 17:42 UTC
    Read before you speak ;-)


    holli, /regexed monk/
      Read before you speak ;-)

      Sorry Holli, but could you please explain what you mean by this?

      Maybe Gavin understands (or not), but as one of the gallery following along, I do not see any context in this thread that explains what he should have read before speaking?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        holli suggested marking replies newer than the last time the user clicked "I've checked all of these". That's radically different from almut's suggestion to mark replies which have been added since the thread was last visited.

        tye only struct down almut's suggestion, not holli's. It's tye's post that needed rereading.

        holli's suggestion is actually quite cheap. All that's needed is to fetch the RAT/NN timestamp associated with the user (which could be fetched at the same time as other user info is fetched) and the timestamp of every post (which is already fetched).

        almut's suggestion would require creating a new timestamp for every thread every user visits and fetching numerous timestamps everytime a thread is displayed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-20 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found