Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2011-07-13 04:43:14

timecott01
New member
Registered: 2010-07-19
Posts: 8

'Linker' plugin - configuration - problems...

Hello:
I am trying to get the Linker plugin to display on the left of its window the root of the website, as opposed to the root of the xinha directory. I know this is documented in the linker info, but i cant get it to work. please advise. The code from the documentation:

with(xinha_config.Linker)
  {
    <?php
      require_once('/path/to/xinha/contrib/php-xinha.php');
      xinha_pass_to_php_backend
      (
         array(
          'dir' => '/path/to/base/dir',
          'include' => '/\.(php|shtml|html|htm|shtm|cgi|txt|doc|pdf|rtf|xls|csv)$/',  // REGEXP or empty
          'exclude' => '', // REGEXP or empty
          'dirinclude' => '', // REGEXP  or empty
          'direxclude' => '/(^|\/)[._]|htmlarea/' // REGEXP or empty
         )
      );
    ?>
  }

is obviously what i want to edit my local values into 'dir' etc. Where do i put this code? (scan.php?) does it replace existing code? A working example, or guidance, would be much appreciated. Thank you
Tim Ecott.

Offline

#2 2011-07-13 09:43:05

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: 'Linker' plugin - configuration - problems...

It goes in your Xinha configuration in "Step 3".

Eg in the testbed.html, that's around Line 89

http://trac.xinha.org/browser/trunk/exa … d.html#L89

Naturally you need to ensure that your Xinha config is processed by PHP!

All you are doing is using the xinha_pass_to_php_backend() PHP function to put some stuff into your Xinha's config object in a tamper-proof manner.


James Sleeman

Offline

Board footer

Powered by FluxBB