Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
XP is just a number
 
PerlMonks  

Re: Making edit histories more viewable

by ysth (Canon)
on Feb 24, 2005 at 18:06 UTC ( [id://434296]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Making edit histories more viewable

All looks good, thanks.

Only thing that bothers me is showing the edithistory link even when there is none; I have a preference toward avoiding giving links to pages that turn up empty of detail (or forbidden). AM obviously shouldn't see the link, and it shouldn't show for non-editable nodetypes. Don't know if it is worth a db query to catch cases of no data, or if there is a way to make it determinable from the node itself.

  • Comment on Re: Making edit histories more viewable

Replies are listed 'Best First'.
Re^2: Making edit histories more viewable
by castaway (Parson) on Feb 27, 2005 at 03:27 UTC
    I can prevent AM from seeing it, but as you say, I'm not sure its worth the extra effort of a DB query, just to check the presence. (Although it should be a fairly succint one: select count(*) from edithistory where edithistory_id=getId($NODE), and check for >1 ..

    C.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434296]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.