Re: [pmwiki-users] www. to working links
Hi Adam, Do you know this cookbook (same purpose) ? http://www.pmwiki.org/wiki/Cookbook/LazyWebLinks Gilles. 2010/7/18 adam overton a...@plus1plus1plus.org: hi there i want to have user-contributed links in the form www.mylink.com be automatically converted into working links. i'm wondering if this is the most efficient way to handle this: Markup('www', 'inline', '/([\s\n]+)\b(www\.[^\s]*)\b/ei', 'WWWLink_func($1,$2)' ); function WWWLink_func($spaceBefore, $wwwLink) { return $spaceBefore.[[(http://)$wwwLink]]; } thanks, adam ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users -- --- | A | de la langue française | B | http://www.languefrancaise.net/ | C | languefranca...@gmail.com --- ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] www. to working links
ah, thanks, that's exactly what i was looking for. thx On 18 Jul 2010, at 12:38 AM, ABClf wrote: Hi Adam, Do you know this cookbook (same purpose) ? http://www.pmwiki.org/wiki/Cookbook/LazyWebLinks Gilles. 2010/7/18 adam overton a...@plus1plus1plus.org: hi there i want to have user-contributed links in the form www.mylink.com be automatically converted into working links. i'm wondering if this is the most efficient way to handle this: Markup('www', 'inline', '/([\s\n]+)\b(www\.[^\s]*)\b/ei', 'WWWLink_func($1,$2)' ); function WWWLink_func($spaceBefore, $wwwLink) { return $spaceBefore.[[(http://)$wwwLink]]; } thanks, adam ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users -- --- | A | de la langue française | B | http://www.languefrancaise.net/ | C | languefranca...@gmail.com --- ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Online Survey
Greetings, Quick summer exercise by using KISSInsight's with pmwiki Check http://stephaneheckel.com/ and click on the first post (Listening to your customers ?) Your input welcome ! SH ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] html title
Hello, I would change the title of my main page (the html titler, the one that is displayed on the browser top) how can I do this, I don't find the solution in the pmwiki web site thanks jdd -- http://www.dodin.net http://pizzanetti.fr ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] html title
Please see http://www.pmwiki.org/wiki/PmWiki/CustomizationConcept and http://www.pmwiki.org/wiki/PmWiki/SkinTemplates The html page title is set in pmwiki.tmpl (\pmwiki\pub\skins\pmwiki\), by default it is title$WikiTitle | {$Group} / {$Title} $ActionTitle/title hope this helps Simon On 19 July 2010 07:01, jdd-gmane j...@dodin.org wrote: Hello, I would change the title of my main page (the html titler, the one that is displayed on the browser top) how can I do this, I don't find the solution in the pmwiki web site thanks jdd -- http://www.dodin.net http://pizzanetti.fr ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users -- http://kiwiwiki.co.nz ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] html title
On 7/18/2010 3:01 PM, jdd-gmane wrote: I would change the title of my main page (the html titler, the one that is displayed on the browser top) how can I do this, I don't find the solution in the pmwiki web site ## $WikiTitle is the name that appears in the browser's title bar. $WikiTitle = 'PmWiki'; Is the primary way to change the title. ~ ~ Dave ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] html title
On Sunday 18 July 2010 21:01:14, jdd-gmane wrote : I would change the title of my main page (the html titler, the one that is displayed on the browser top) how can I do this, I don't find the solution in the pmwiki web site In addition to the $WikiTitle variable, in the wiki page, you can use this directive : (:title My New Homepage Title:) The documentation is here : http://www.pmwiki.org/wiki/PmWiki/PageDirectives http://www.pmwiki.org/wiki/PmWikiFr/PageDirectives Thanks, Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] html title
Le 18/07/2010 22:06, DaveG a écrit : ## $WikiTitle is the name that appears in the browser's title bar. $WikiTitle = 'PmWiki'; Is the primary way to change the title. yes, but it's doubled in Firefox may be I should say I use the triad skin thanks jdd -- http://www.dodin.net http://pizzanetti.fr ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] html title
Le 18/07/2010 22:16, jdd-gmane a écrit : yes, but it's doubled in Firefox well, I think I better understand what happen. The html title is made of several parts. * the local config wikititle * + the group name * the page title that's why on my main page it's doubled, of course the main page title is the same as the wiki one. So there is no real solution to what I asked :-( - the better answer is Simon's one (thanks :-) Just an other word. you can see here http://pizzanetti.fr/index.php?n=Main.LesClassiques that color tag in title is not correctly rendered in the html title thanks jdd -- http://www.dodin.net http://pizzanetti.fr ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Getting the list of all anchors in a page ?
On Thursday 15 July 2010 18:35:19, ABClf wrote : In my case, I have a page with some anchors well named ; and I would find convenient to use something as (:listanchor:) to get a basic list (I would like an horizontal format : word1 ; word2 ; word3) instead of doing the list by hand. [[#word1]] ... [[#word2]] ... [[#word3]] You can add a markup definition : Markup('listanchor', '[[#', '/\\(:listanchor:\\)/e', 'implode( ; , array_keys($GLOBALS[SeenAnchor]))' ); Thanks, Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] PageVar security (was: How to detect if a page has @nopass for the read password)
On Tuesday 13 July 2010 23:55:20, Eemeli Aro wrote : On 14 July 2010 00:20, Petko Yotov 5...@5ko.fr wrote: On Tuesday 13 July 2010 13:41:27, Eemeli Aro wrote : Which actually raises an interesting point: is it really sensible that page variables don't obey any permissions, but are always accessible? Page text variables are protected, mind. Would it really give a huge performance hit if PageVar() also checked for permissions before processing a page variable? Most default PageVariables have to be visible even if the page is read- protected, for example {$Author}, {$Group}, {$FullName}, {$DefaultGroup} etc., otherwise major parts of PmWiki may break, notably links and skins. And because the PageVariables are 'eval'-uated from strings, we can't know in advance if a page should or shouldn't be checked against permissions. So we don't check. I don't think that is a problem that needs to be addressed at the moment. Actually, none of that would break if the $page in PageVar() came from RetrieveAuthPage() instead of ReadPage(). The only default entries in $FmtPV that refer to $page are $Title, $Titlespaced, $Description and $LastModified*, and of those the titles default to the page name (which I agree shouldn't be protected). The $PCache check would need to be complicated a bit, to something similar to what's done in PageListProtect(). As for why I think this ought to be done, I at least find it unexpected that I can read the given title, description and change summary of any page even if I don't have read access to it. This metadata about a page should get the same protection as the page itself. I think that you're right -- we should try to change this, while allowing admins to revert back to the ReadPage() function if it is important to them. ToDo. Thanks, Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users