Andreas Gohr | 1 Dec 04:00
Favicon
Gravatar

darcs changes 2007-12-01


Good Morning!

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

---------------------------------------------------------------------
Sat Dec  1 01:00:01 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  tagged develsnap 2007-12-01

Sat Dec  1 00:42:49 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * removed obsolete language strings

Sat Dec  1 00:35:09 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * Swedish language update

Sat Dec  1 00:33:02 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * Spanish language update
---------------------------------------------------------------------

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)

Picon

plugin modify template

Hello,

I'm in the process of writing a Menalto G2 plugin for dokuwiki and
running into a few questions.  I'm hoping the list can point me in the
right direction.

I am doing this as a syntax plugin, but will consider doing it as a
render plugin instead.

The Issue: While using the minima template, my output gets squished
inside the .page div.  I would like to disable the sidebar div an make
the page div cover the entire width.
Truly, I mainly desire the header and footer portion.    I can change
these (and make the changes configurable) using javascript, but am
limited by my methods.

method#1:  create a link with an onclick function.  This requires the
user to see the ugly page and interact with it before it goes full
width.
method#2:  add an onload to an img tag and hope it loads after the
rest of the page does.  This requires a (potentially large) image and
isn't foolproof.
method#3:  add an onload to the body tag.  This can't be done as a
syntax plugin, AFAIK.  If I can append to the body tag, this would be
the best.

So any suggestions on doing this with the syntax plugin would be great.

I have also looked at doing this through the render plugin method,
which looks like the most "complete" solution.  The only
(Continue reading)

Jason Keltz | 3 Dec 19:31
Picon

wiki farm

Hi.

I was experimenting (again) with the idea of a DokuWiki wiki farm where 
all the wikis use the same symlinked copy of DW.  I couldn't do this in 
the past because the use of the php realpath function.  However, in the 
DW development code, this was replaced with the fullpath() function in 
order to alleviate this problem.  I still wasn't able to successfully 
farm just yet.

I ran into two problems:

1) There's still no built in way to make DOKU_CONF refer to the "local" 
DW version, rather than the distribution copy:

if(!defined('DOKU_INC')) 
define('DOKU_INC',fullpath(dirname(__FILE__).'/../').
'/');

// define config path (packagers may want to change this to /etc/dokuwiki/)
   if(!defined('DOKU_CONF')) define('DOKU_CONF',DOKU_INC.'conf/');

I know it can be done through php prepend, but it's just not elegant. 
I'd like to be able to do it completely through DW.

2) The second problem is, I think, a bug.  The CSS didn't seem to load 
properly for my template.  I think this is because lib/exe/css.php 
doesn't surround the DOKU_INC define with fullpath:
  if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');

(Neither does ajax.php, detail.php, fetch.php, indexer.php, js.php, 
(Continue reading)

Andreas Gohr | 3 Dec 19:48
Favicon
Gravatar

Re: new ACL editor feedback

On Fri, 23 Nov 2007 11:33:53 -0500
Jason Keltz <jas <at> cse.yorku.ca> wrote:

> >> I'm experimenting with the new ACL editor now and wanted to
> >> mention a few issues..
> >>
> >> First, there seems to be a bug in that as I'm clicking on
> >> namespaces in the namespace/page selector, they don't open up to
> >> reveal the pages within.  The only way I can get to the pages
> >> within a namespace is to open up the ACl editor on that page.
> >> This is almost certainly a bug. I'm using FireFox 2.0.0.9.  Anyone
> >> else experiencing this problem?
> > 
> > You need to click the plus + icons in front of the namespace to open
> > it. It works like in the media manager.
> 
> Clicking on the plus doesn't do anything... :(  I believe it works
> fine for me in media manager unless something has changed in this
> version.  I tried this in the stock DW from the repository without
> any changes.

Can anyone confirm this? I can not reproduce it on a freshly checked
out copy.

Jason, do you get any JavaScript errors?

Andi

--

-- 
http://www.splitbrain.org
(Continue reading)

Jason Keltz | 3 Dec 20:40
Picon

Re: wiki farm

On 12/03/07 13:31, Jason Keltz wrote:

> 2) The second problem is, I think, a bug.  The CSS didn't seem to load 
> properly for my template.  I think this is because lib/exe/css.php 
> doesn't surround the DOKU_INC define with fullpath:
>  if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
> 
> (Neither does ajax.php, detail.php, fetch.php, indexer.php, js.php, 
> mediamanager.php, opernsearch.php, and xmlrpc.php in the same directory)
> 
> ... but even after adding it, things look better, but some of the images 
> in the css, etc. seem to be missing, so there might be something else 
> going on here.

Somehow it's working now.  It must have been a browser cache issue.

jas.

--

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

Guy Brand | 3 Dec 21:04
Picon
Picon

Re: new ACL editor feedback

On 03 December at 19:48, Andreas Gohr wrote:

> > Clicking on the plus doesn't do anything... :(  I believe it works
> > fine for me in media manager unless something has changed in this
> > version.  I tried this in the stock DW from the repository without
> > any changes.
> 
> Can anyone confirm this? I can not reproduce it on a freshly checked
> out copy.

  Confirmed with Firefox 2.0.0.8 and Opera 9.24
  I have one error: console is not defined in lib/exe/js.php?edit=0&write=1

-- 
  bug
--

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

Guy Brand | 3 Dec 21:10
Picon
Picon

Re: wiki farm

On 03 December at 13:31, Jason Keltz wrote:

> Hi.

  Hello

> 1) There's still no built in way to make DOKU_CONF refer to the "local" DW 
> version, rather than the distribution copy:
> 
> if(!defined('DOKU_INC')) 
> define('DOKU_INC',fullpath(dirname(__FILE__).'/../').

  __FILE__ is not symlink friendly.

> 2) The second problem is, I think, a bug.  The CSS didn't seem to load 
> properly for my template.  I think this is because lib/exe/css.php doesn't 
> surround the DOKU_INC define with fullpath:
>  if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
> 
> (Neither does ajax.php, detail.php, fetch.php, indexer.php, js.php, 
> mediamanager.php, opernsearch.php, and xmlrpc.php in the same directory)

  Similar change needed in all lib/exe/* files.
  Check out http://wiki.splitbrain.org/wiki:farm it could help.

  Cheers,

-- 
  bug
--

-- 
(Continue reading)

Andreas Gohr | 3 Dec 21:41
Favicon
Gravatar

Re: new ACL editor feedback

On Mon, 3 Dec 2007 21:04:23 +0100
Guy Brand <gb <at> isis.u-strasbg.fr> wrote:

> On 03 December at 19:48, Andreas Gohr wrote:
> 
> > > Clicking on the plus doesn't do anything... :(  I believe it works
> > > fine for me in media manager unless something has changed in this
> > > version.  I tried this in the stock DW from the repository without
> > > any changes.
> > 
> > Can anyone confirm this? I can not reproduce it on a freshly checked
> > out copy.
> 
>   Confirmed with Firefox 2.0.0.8 and Opera 9.24
>   I have one error: console is not defined in
> lib/exe/js.php?edit=0&write=1

Ahh! Okay. I forgot a firebug debug statement in the code. That's why
it was working for me on all my computers.

Andi

--

-- 
http://www.splitbrain.org
Andreas Gohr | 4 Dec 04:00
Favicon
Gravatar

darcs changes 2007-12-04


Good Morning!

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

---------------------------------------------------------------------
Mon Dec  3 21:41:15 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * removed debug statement from ACL manager script code

Mon Dec  3 21:23:42 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * no write check for users.auth.php when non-plain backend is used FS#1271

Mon Dec  3 21:15:32 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * getUserData should really be implemented always... (FS#1272)

  ... but with this patch DokuWiki will not break completely when left out for
  trustExternal() auth backends

Mon Dec  3 20:19:45 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * construct toolbar signature from $INFO (FS#1274)

Mon Dec  3 19:30:11 CET 2007  Andreas Gohr <andi[at]splitbrain.org>
  * romanian language update
---------------------------------------------------------------------

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

Bye,
(Continue reading)

Guy Brand | 4 Dec 09:04
Picon
Picon

Re: new ACL editor feedback

On 03 décembre at 21:41, Andreas Gohr wrote:

> >   Confirmed with Firefox 2.0.0.8 and Opera 9.24
> >   I have one error: console is not defined in
> > lib/exe/js.php?edit=0&write=1
> 
> Ahh! Okay. I forgot a firebug debug statement in the code. That's why
> it was working for me on all my computers.

  It now works with your fix ("removed debug statement from ACL
  manager script code"). Thank you.

-- 
  bug

--

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


Gmane