Andreas Gohr | 1 Dec 04:00
Favicon
Gravatar

darcs changes 2006-12-01


Good Morning!

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

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

Thu Nov 30 21:25:41 CET 2006  Andreas Gohr <andi[at]splitbrain.org>
  * special char encoding fix for breadcrumbs #993
---------------------------------------------------------------------

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

master | 1 Dec 09:16
Picon

Re: indexer.php warnings.

Здравствуйте, Shawn.

Вы писали 30 ноября 2006 г., 16:02:12:
> I got hundreds of the following warning:
> bannerdoc:programs:sg:sg013re... PHP Warning:  array_keys(): The
> first argument should be an array in /var/www/myhtml/doc.geneseo.edu/ 
> inc/indexer.php on line 57
> PHP Warning:  join(): Bad arguments. in /var/www/myhtml/ 
> doc.geneseo.edu/inc/indexer.php on line 57

at the
http://wiki.splitbrain.org/plugin:searchindex_manager#array_keys_error

array_keys() error
After upgrading to the 2006-11-06 release and re-installing this
plugin, I am getting the following error inside the box continuously
when it attempts to create the new index.
> Warning: array_keys(): The first argument should be an array in
> /home/zyberdog/public_html/wiki/inc/indexer.php on line 56
> Warning: join(): Bad arguments. in
> /home/zyberdog/public_html/wiki/inc/indexer.php on line 56

A temporary fix/hack for this is to insert the following on line 56 in
/inc/indexer.php:
if (!is_array($links)) { $links = Array($links); }

It really work...

--

-- 
С уважением,
(Continue reading)

Van Lommel, James | 1 Dec 17:24

Re: How to move to LDAP

You'll have to do a little bit of reading to learn how to set everything up
correctly. It's easier of your web server is already connected to the domain
- use mod_auth_sspi to pass an AD login through Apache into PHP.

See if these pages help:

How to join Ubuntu/Samba to a Windows 2003 Active Directory domain
http://www.onnoot.com/wiki/how_to_join_ubuntu_samba_to_a_windows_2003_active
_directory_domain

http://wiki.splitbrain.org/wiki:auth:ldap

http://wiki.splitbrain.org/ldap

-----Original Message-----
From: dokuwiki-bounce <at> freelists.org [mailto:dokuwiki-bounce <at> freelists.org]
On Behalf Of Bob McConnell
Sent: Thursday, November 30, 2006 6:02 AM
To: dokuwiki <at> freelists.org
Subject: [dokuwiki] How to move to LDAP

Good morning,

I duplicated the default template and made a few minor modifications for
our corporate wiki. One of those was to display the full name in the
"Last modified" entry in the bottom right corner. That was relatively
easy with the plain ACL authentication. We are now looking at switching
to LDAP authentication, using a Windows Active Directory server as the
target. What do I need to do to make sure my template still gets the
full name?
(Continue reading)

aliasonline | 1 Dec 22:17
Picon

Can dokuwiki talk to Microsoft SQL server?

I know there is SQL (Experimental plugin) for dokuwiki to execute an SQL query on a database and displays the
result as a table.  Does this plugin work with Microsoft SQL as well?  If not is there a way to display the date
grabbed from the database on dokuwiki?
--

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

Martin Tschofen | 2 Dec 01:05
Picon

links in plugins

I've implemented popup links inside a command plugin extension.

#ui?popup(wikiID=label|wikiID=label|wikiID=label)#
It's a popup that allows the user to select

I noticed that links created like this, don't end up showing up in the
backlinks.

What do I need to do so that DW recognizes links created in such a way
and ads the pages connect this way in the backlinks?

Hope this makes sense and thanks in advance...martin
--

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

Martin Tschofen | 2 Dec 01:32
Picon

do plugin js events run on every page

If I have a plugin that adds a javascript event, does this event get
called on every page (that's what it looks like) or just when the
plugin (it's syntax) was used?

How can I control that? Is it possible to only trigger the js event
when I use the plugin on a page?
I'm noticing some performance issues on some older computers and hope
that this can be controlled.

Thanks...martin
--

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

Chris Smith | 2 Dec 04:24
Picon

Re: links in plugins

Martin Tschofen wrote:
> I've implemented popup links inside a command plugin extension.
>
> #ui?popup(wikiID=label|wikiID=label|wikiID=label)#
> It's a popup that allows the user to select
>
> I noticed that links created like this, don't end up showing up in the
> backlinks.
>
> What do I need to do so that DW recognizes links created in such a way
> and ads the pages connect this way in the backlinks?
>
> Hope this makes sense and thanks in advance...martin

iirc, backlinks are determined from the search index and the page 
metadata. The index quickly finds pages who's content includes the page 
name and the metadata confirms that the found pages have links to the 
current page.  To add metadata to the page your plugin will need to 
handle the metadata renderer (respond to the $format="metadata" in the 
render() method) and write the metadata key, "relation references" for 
each link. e.g.

function render($format, &$renderer, data) {
  switch ($format) {
    case 'xhtml' :
      /* do your wiki page xhtml output, e.g $renderer->doc = "..."; */
      break;

    case 'metadata' :
      /* set required metadata keys, e.g. $renderer->metadata[<primary 
(Continue reading)

Chris Smith | 2 Dec 14:34
Picon

Re: do plugin js events run on every page

Chris Smith wrote:
> Martin Tschofen wrote:
>> If I have a plugin that adds a javascript event, does this event get
>> called on every page (that's what it looks like) or just when the
>> plugin (it's syntax) was used?
>>
>> How can I control that? Is it possible to only trigger the js event
>> when I use the plugin on a page?
>> I'm noticing some performance issues on some older computers and hope
>> that this can be controlled.
>>
>> Thanks...martin
> Yes. Subscribe to the "TPL_METAHEADERS_OUTPUT" event.  You can add to 
> the event data, information used to construct <script></script> tags 
> for inclusion within the page's <head> ... </head> block.
>
On thinking about this some more, it may not work properly for syntax 
plugins.  The wiki page is rendered after TPL_METAHEADERS_OUTPUT event 
has been triggered.  This could mean the js is out of step from the page 
by one visit. Ie. it won't have the javascript the first  time the page 
is viewed after adding the syntax and it will have the javascript one 
more time after the syntax has been removed from the page.

For the googlemaps plugin, the first time some google map syntax is 
encountered, I include a script element in the page to load the 
(external) google map javascript. Each piece of google map syntax also 
generates its own script element which sets javascript variables.  The 
plugin has its own javascript file included on every page - however the 
first line of its setup is a check to see if there are any googlemaps 
javascript variables set.  If there aren't any, it exits straight away.
(Continue reading)

Andreas Gohr | 2 Dec 04:00
Favicon
Gravatar

darcs changes 2006-12-02


Good Morning!

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

---------------------------------------------------------------------
Fri Dec  1 22:01:55 CET 2006  Andreas Gohr <andi[at]splitbrain.org>
  * norwegian 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

Chris Smith | 2 Dec 04:33
Picon

Re: do plugin js events run on every page

Martin Tschofen wrote:
> If I have a plugin that adds a javascript event, does this event get
> called on every page (that's what it looks like) or just when the
> plugin (it's syntax) was used?
>
> How can I control that? Is it possible to only trigger the js event
> when I use the plugin on a page?
> I'm noticing some performance issues on some older computers and hope
> that this can be controlled.
>
> Thanks...martin
Yes. Subscribe to the "TPL_METAHEADERS_OUTPUT" event.  You can add to 
the event data, information used to construct <script></script> tags for 
inclusion within the page's <head> ... </head> block.

For more details checkout
- inc/template.php, the metaheader functions
- the badbehaviour plugin which uses this technique

Again, if you find this helpful, please add some documentation to the 
plugin reference/tutorial pages at splitbrain.

Cheers,

Chris
--

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

(Continue reading)


Gmane