Andreas Gohr | 1 Jun 04:00
Favicon
Gravatar

darcs changes 2007-06-01


Good Morning!

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

---------------------------------------------------------------------
Fri Jun  1 01:00:01 CEST 2007  Andreas Gohr <andi[at]splitbrain.org>
  tagged develsnap 2007-06-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

Danjer | 1 Jun 10:58

Re: preg_match() Compilation failed: regular expression too large...

Hi,

 I am still working on it. But, I didn't find the best way to replace 
p_get_instructions. Each time I recall p_get_instruction, 
$this->_getCompoundedRegex() grow. I think p_get_instructions is not 
design to be call like dokutexit do.

Jaume, I'll try to provide you a new version next week.

Regards,
Danjer

Harry Fuecks wrote:
> No confessions ;)
>
> Think your best best is help yourself. In
> /var/www/lledoner/dokuwiki/inc/parser/lexer.php on line 115,
> _temporarily_ replace this
>
> if (! preg_match($this->_getCompoundedRegex(), $subject, $matches)) {
>
> with
>
> $regex = $this->_getCompoundedRegex();
> if (! preg_match($regex, $subject, $matches)) {
>    file_put_contents('/tmp/regexes.txt', $regex, FILE_APPEND);
>
> That should hopefully catch the problem regex and provide a clue to
> where it's coming from.
>
(Continue reading)

koeppe | 1 Jun 18:58
Picon

accessing namespace

Hi!

I'm trying to write a plugin, and I would like to get the namespace information for the current document, is
there a way to to that?

Saludos,
Jakob

--

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

Ben Coburn | 1 Jun 19:07

Re: accessing namespace


On Jun 1, 2007, at 9:58, <koeppe <at> kazur.dk> wrote:

> I'm trying to write a plugin, and I would like to get the namespace 
> information for the current document, is there a way to to that?
>

How to get the namespace? Try getNS($ID) ... or just $NS. Or try 
reading the source a little. The PHPXref pages make it relatively "user 
friendly".

http://dev.splitbrain.org/reference/dokuwiki/nav.html?index.html

Regards, Ben Coburn

-------------------
   silicodon.net
-------------------

--

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

koeppe | 1 Jun 19:14
Picon

Re: accessing namespace


On Fri, 1 Jun 2007 10:07:39 -0700, Ben Coburn <btcoburn <at> silicodon.net> wrote:
> 
> On Jun 1, 2007, at 9:58, <koeppe <at> kazur.dk> wrote:
> 
>> I'm trying to write a plugin, and I would like to get the namespace
>> information for the current document, is there a way to to that?
>>
> 
> How to get the namespace? Try getNS($ID) ... or just $NS. Or try
> reading the source a little. The PHPXref pages make it relatively "user
> friendly".
> 
> http://dev.splitbrain.org/reference/dokuwiki/nav.html?index.html
> 

Thank you, just what i needed

Saludos,
Jakob

--

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

Ferdinand Soethe | 1 Jun 22:30
Favicon

Re: Testing for existence of a page

Michael Klier wrote:

> The arctic template just copies the html_index function but uses a
> slightly different callback function to build the index. If you like to
> surpress the :start links (I assume that`s what you`re up to ;)) in the
> index you only need to add another if condition to _html_list_index() in
> the tpl_functions.php (at line 295) and test if $item['id'] contains
> :start.

Actually yes, that was kind of what I was after. Or rather that was my
first attempt at improving ginas template. But then I realized that
suppressing the start-page was also very confusing.

So now I'm placing the start page first in the submenu rather then
suppress it.

I posted the code here:
http://www.chimeric.de/projects/dokuwiki/template/arctic/custom_sidebar_examples

Re-reading your message I just realize that your index-panel actually
does a TOC. So perhaps I could habe just modified that code. But then, I
also wanted to improve Ginas template soo ....

Thanks anyway.

Best regards,
Ferdinand Soethe

--

-- 
DokuWiki mailing list - more info at
(Continue reading)

Ferdinand Soethe | 2 Jun 07:29
Favicon

Arctic Template Problem?

When I try to insert an image into a page I get the following error
message from Firefox 2.0.0.4

> opener.insertTags is not a function
> hasOwnProperty(click clientX=0, clientY=0, a.select)js.php (line 1)
> hasOwnProperty(click clientX=0, clientY=0)js.php (line 1)
> handleEvent(click clientX=0, clientY=0)

When I try the same with IE 6 things work ok.

Best regards,
Ferdinand Soethe
--

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

Michael Klier | 2 Jun 10:35
Picon
Favicon
Gravatar

Re: Arctic Template Problem?

Ferdinand Soethe wrote:
> When I try to insert an image into a page I get the following error
> message from Firefox 2.0.0.4
> 
> > opener.insertTags is not a function
> > hasOwnProperty(click clientX=0, clientY=0, a.select)js.php (line 1)
> > hasOwnProperty(click clientX=0, clientY=0)js.php (line 1)
> > handleEvent(click clientX=0, clientY=0)
> 
> When I try the same with IE 6 things work ok.

Hi,

sounds like a problem with the cached javascript. Try a hard reload of
the page (re-caching its javascript) with <CTRL>+<SHIFT>+R. If that
doesn`t work you can disable javascript and CSS caching in your
configuration. Also watch out for javascript erros in your javascript
error console of firefox.

HTH
chi

--

-- 
Michael Klier

mail:   chi <at> chimeric.de
www:    http://www.chimeric.de
icq:    206179334
jabber: chi <at> jabber.shipdown.de
key:    http://downloads.chimeric.de/chi.asc
(Continue reading)

Ferdinand Soethe | 2 Jun 11:29
Favicon

Re: Arctic Template Problem?

Michael Klier wrote:

> Hi,
> 
> sounds like a problem with the cached javascript. Try a hard reload of
> the page (re-caching its javascript) with <CTRL>+<SHIFT>+R. If that
> doesn`t work you can disable javascript and CSS caching in your
> configuration. Also watch out for javascript erros in your javascript
> error console of firefox.

Tried that but same result. Error message remains the same.
Where do you disable caching?

Thx
Ferdinand

--

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

Michael Klier | 2 Jun 11:34
Picon
Favicon
Gravatar

Re: Arctic Template Problem?

Ferdinand Soethe wrote:
> Michael Klier wrote:
> 
> > Hi,
> > 
> > sounds like a problem with the cached javascript. Try a hard reload of
> > the page (re-caching its javascript) with <CTRL>+<SHIFT>+R. If that
> > doesn`t work you can disable javascript and CSS caching in your
> > configuration. Also watch out for javascript erros in your javascript
> > error console of firefox.
> 
> Tried that but same result. Error message remains the same.
> Where do you disable caching?

login as admin => go to configuration settings => Advanced Settings =>
Compact CSS and javascript output

http://wiki.splitbrain.org/wiki:config#compress

--

-- 
Michael Klier

mail:   chi <at> chimeric.de
www:    http://www.chimeric.de
icq:    206179334
jabber: chi <at> jabber.shipdown.de
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Gmane