in reply to http://perlmonks.org: Title, or Trash?

Can titles be user settable?
PM1="\u@\h::\w"(sic) sort of thing.
no clue on why user, but to each their own

Will perl for money
JJ Knitis
(901) 756-7693
gt8073a@industrialmusic.com

  • Comment on Re: http://perlmonks.org: Title, or Trash?

Replies are listed 'Best First'.
(crazyinsomniac) Re^2: http://perlmonks.org: Title, or Trash?
by crazyinsomniac (Prior) on Nov 28, 2001 at 13:02 UTC
    hear hear!

    I sugguest the only tokens available be:
    %T - the actual post title
    %D - the gmt date the post was created
    %N - the node_id

    It would be user setting, blank by default (in which case it's just the node_title in the title). It would be have a 12 character limit (<INPUT TYPE="text"..., and anything other than %T %D and %N would be represented litelarlly, so that
    perlmonks (%N) %T
    for this post would translate into
    perlmonks (128020)(crazyinsomniac) Re^2: http://perlmonks.org: Title, or Trash?

    That'd be pretty easy to implement, some potential code (which should work if some pmdev-er wants to submit the patches), on user settings (with appropriate html around)

    [{textfield:customnodetitledefinition,12}] # or, in case that don't work (i don't recall, i'll have to check) [{setvar:customnodetitledefinition,12}]
    and on basichead
    my $V=getVars $USER; my $pt = (exists $$V{customnodetitledefinition} and defined $$V{customnodetitledefinition} )? $$V{customnodetitledefinition} : undef; return qq{<TITLE>$$NODE{title}</TITLE>} unless $pt; $pt =~ s/\%T/$$NODE{title}/; $pt =~ s/\%N/$$NODE{node_id}/; $pt =~ s/\%D/$$NODE{createtime}/; return qq{<TITLE>$pt</TITLE>};

     
    ___crazyinsomniac_______________________________________
    Disclaimer: Don't blame. It came from inside the void

    perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Re: Re: http://perlmonks.org: Title, or Trash?
by stefan k (Curate) on Nov 28, 2001 at 15:19 UTC
    Hi,
    this sounds like The Real Way To Do Ittm! It is good to have a common identifier in the title so that your (cool and lisp-expandable) windowmanager can match the title against a regular expression and do some special features to the perlmonks surfing window, or that your time- and focustracking application can find out what your doing right now. Of course there are hundreds of other uses in a user customizable setting that the original developers never thought of and that 83% of all users can't imagine at all :)

    Regards... Stefan
    you begin bashing the string with a +42 regexp of confusion