Andreas Gohr | 1 Mar 04:00 2007

darcs changes 2007-03-01


Good Morning!

This are the darcs changes for DokuWiki committed
yesterday. Please test them and report bugs.

---------------------------------------------------------------------
Thu Mar  1 01:00:01 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  tagged develsnap 2007-03-01
---------------------------------------------------------------------

Single patches can be downloaded from
http://dev.splitbrain.org/darcs/index.cgi/dokuwiki/?c=patches

Bye,
your darcs changelog mailer

--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Oliver Geisen | 1 Mar 11:37 2007
Picon

How to "override" legacy dokuwiki functions ?

Hello,

i have specific question, but it's maybe more generic:

I want to use hierachical navigation, like provided by "tpl_youarehere 
()", but in a little modified behaveour:

what it does now:
   - shows pagename or H1-title* of start-page as first element
   - shows pagename or H1-title* of page "index" in each parent  
namespace
   - shows pagename or H1-title* of current page as last element
* H1-line of pages are only used when global configuration setting  
"useheading" is enabled.

what "I" want it to do:
   - show "Start" as first element, regardless of its pagename or H1- 
title
   - show pagename or H1-title* of page "index" in of each parent  
namespace
* H1-line should always be used if it's defined, regardless of global  
"useheading" setting.

----------

Now, to do this i think i have to hack the inc/template.php- 
 >tpl_youarehere() function.
I know this is bad, but what i my alternatives ?
I could include it into an own template and use "mytpl_youarehere()"  
instead of "tpl_youarehere()" in it's main.php.
(Continue reading)

Andreas Gohr | 1 Mar 11:50 2007

Re: How to "override" legacy dokuwiki functions ?


> I could include it into an own template and use "mytpl_youarehere()"  
> instead of "tpl_youarehere()" in it's main.php.

That's what I'd recommend.

> But there maybe some things which can not easily be handled by  
> templates, like authentication.

Well you can pretty much do everything in your template. You can call any 
DokuWiki function you like, including authentication functions.

Andi
--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Chris Smith | 1 Mar 12:44 2007
Picon

Re: How to "override" legacy dokuwiki functions ?

Oliver Geisen wrote:
>
> As far as i know "action plugins" are just like hooks, they're 
> executed before or after a specific event, line of code. So they can't 
> fully replace an internal function, only extend it, right.
>
Wrong.  :-)

If the event  allows preventDefault (which many do) then the DW 
function  can effectively be replaced.

--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Oliver Schulze L. | 1 Mar 12:53 2007

Re: Howto debug php "Cannot modify header information" errors

Hi Alexander,
I tested using ed and could not find the UTF-8 foot print.
Also, I only used Linux/Vi to edit all files in dokuwiki

But will check the all the LOCALE variables

Thanks for the tip
Oliver

Alexander Sorkin wrote:
> I had the same problem with my installation of DW and successfully 
> solved it.
>
> Check if your files have UTF-8 foot print in the beginning (three
> bytes EF BB BF). You might edit your config files in MS Notepad which
> has built in particularity - it add foot print to every UTF-8 file.
>
> Delete these bytes in appropriate editor and your problems could 
> disappear.
>
> Best regards,
> Alexander Sorkin aka Kibi.

-- 
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver 

--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
(Continue reading)

Andreas Gohr | 2 Mar 04:00 2007

darcs changes 2007-03-02


Good Morning!

This are the darcs changes for DokuWiki committed
yesterday. Please test them and report bugs.

---------------------------------------------------------------------
Fri Mar  2 00:03:09 CET 2007  Guy Brand <gb[at]isis.u-strasbg.fr>
  * Allow [at]USER[at] variable in ACLs

  This saves a lot of ACL lines for users namespaces for example:

  users:*               [at]ALL        1
  users:[at]USER[at]          [at]USER[at]      8

Thu Mar  1 22:17:51 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * fix pass by reference problem in indexer.php
---------------------------------------------------------------------

Single patches can be downloaded from
http://dev.splitbrain.org/darcs/index.cgi/dokuwiki/?c=patches

Bye,
your darcs changelog mailer

--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

(Continue reading)

Adam Shand | 2 Mar 06:55 2007
Picon

Minor addition to inc/common.php to include <at> YEAR <at> and <at> MONTH <at> variables

I think this go trapped in the moderator interface so I've subscribed
and am trying again.  Apologies if it is a repost.

Adam.

----

Hi,

I have added a couple of  <at>  <at>  variables to inc/common.php because they are
useful to me.  I don't think there's any overhead from installing them
and they might be helpful to other people as well.

The reason I added them was because I'm using the Tag plugin and I
wanted to pre-populate my namespace template with some helpful tag
defaults.  Eg.

{{tag> <at> YEAR <at>   <at> MONTH <at>   <at> NS <at>   <at> USER <at> }}

Might not be everone's cup of tea, but I thought it was a nice idea to
provide some useful starting points for tags.

Adam.
Here's the patch:

--- common.php  2007-02-15 18:11:43.000000000 -0800
+++ common.php.orig     2007-02-15 16:44:02.000000000 -0800
 <at>  <at>  -628,9 +628,6  <at>  <at> 
   $tpl = str_replace(' <at> NAME <at> ',$INFO['userinfo']['name'],$tpl);
   $tpl = str_replace(' <at> MAIL <at> ',$INFO['userinfo']['mail'],$tpl);
(Continue reading)

Oliver Geisen | 2 Mar 08:28 2007
Picon

Re: How to "override" legacy dokuwiki functions ?

Hi,

>> As far as i know "action plugins" are just like hooks, they're  
>> executed before or after a specific event, line of code. So they  
>> can't fully replace an internal function, only extend it, right.
>>
> Wrong.  :-)
> If the event  allows preventDefault (which many do) then the DW  
> function  can effectively be replaced.
Sounds good!
Is see i have to go deeper into action plugins :-)

So all it needs is an hook into functions who are subject to  
override, right ?
I don't ask how to do this, i think it's better to read some docs  
about first...

Oliver Geisen
Systemadministrator
_____________________________
Kreisboten Verlag Mühlfellner KG
82362 Weilheim i. Ob.
Tel. 0881/686-904
Fax 0881/686-74
Sitz Weilheim, AG München, HRA 64016, p.h.G.:
Kreisboten-Verlag Verwaltungsgesellschaft mbH,
Weilheim, AG München, HRB 119773,
Geschäftsführer: Dr. Dirk Ippen, Dr. Gerd Waldenmaier

--

-- 
(Continue reading)

Werner Flamme | 2 Mar 09:39 2007
Picon

Re: darcs changes 2007-03-02

Andreas Gohr schrieb am 02.03.2007 04:00:
> Good Morning!
> 
> This are the darcs changes for DokuWiki committed
> yesterday. Please test them and report bugs.
> 
> ---------------------------------------------------------------------
> Fri Mar  2 00:03:09 CET 2007  Guy Brand <gb[at]isis.u-strasbg.fr>
>   * Allow [at]USER[at] variable in ACLs
>   
>   This saves a lot of ACL lines for users namespaces for example:
>   
>   users:*               [at]ALL        1
>   users:[at]USER[at]          [at]USER[at]      8
>   
> 
> Thu Mar  1 22:17:51 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
>   * fix pass by reference problem in indexer.php
> ---------------------------------------------------------------------
> 
> Single patches can be downloaded from
> http://dev.splitbrain.org/darcs/index.cgi/dokuwiki/?c=patches
> 
> Bye,
> your darcs changelog mailer
> 
> 

This patch causes a syntax error - in line 79 a ')' is missing before '{'!

(Continue reading)

Alexander Johannes | 2 Mar 15:49 2007
Picon

From CVS to Dokuwiki

Hello,

i have a website, which is stored in a cvs-repository. Now i'd like  
to migrate this project to dokuwiki, by keeping the current revision- 
history.
Has something like that been done before and is anyone on this list  
aware of that? Maybe you can point me to a script or instruction on  
how to achieve this.

TIA,

Alex
--

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist


Gmane