Re: [pmwiki-users] Problem with pagelist fmt=#include

2007-10-06 Thread Petko Yotov
On Friday 05 October 2007, Phil S wrote:
 In order to have pagelists default to listing pages only in the current
 group, I have this in my config:

 $pagename = ResolvePageName($pagename);
 $group = PageVar($pagename, '$Group');
 $SearchPatterns['default'][] = /^$group\\./;

 It works fine, but I've noticed one problem: whenever I use fmt=#include,
 it will only list pages in the current group. For example, if I'm in the
 group Main, and I use:

 (:pagelist list=all group=Xyz:)

 it will list all pages in group Xyz, but if I use

 (:pagelist list=all group=Xyz fmt=#include:)

 it will not list at all (unless the current group is Xyz).

Hi Phil.

Use 'apostrophes' and not quotes when you refer to a variable that will be 
substituted by the pagelist at runtime:

$SearchPatterns['default'][] = '/^$group\\./'; // or maybe :
$SearchPatterns['all'][] = '/^$group\\./'; // if you use list=all

Otherwise, just check your pagelist template page, if the [[#include]] 
definition is the same as the original, like at
http://pmwiki.org/wiki/Site/PageListTemplates . If someone edited the page, it 
may be broken.

Otherwise, check if the variable $MaxIncludes is not modified, see:
  http://www.pmwiki.org/wiki/PmWiki/LayoutVariables#MaxIncludes

Thanks,
Petko


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] PMWiki, performance on IIS

2007-10-06 Thread Erik Lindberg
Hello,

 

My Wiki keeps being slow, loading a page takes 30-60 secs. Especially, if
I'm using (:pagelist ... :)

 

The server is IIS6 (shared one).

 

Does anyone have experiences on performance on Linux vs. Windows + IIS?

 

I think this is also related to performance of PHP in general.

 

 

Best regards,

 

Erik

wiki.verbix.com

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Help with Skidoo Layout

2007-10-06 Thread DaveG
I'm having a fairly minor layout problem, but I've been trying to 
resolve it forever, and getting no-where. Hopefully some can shed some 
light on the problem.

Here's the URL: http://skidoo.solidgone.com/

Firefox and IE7 both display correctly.

Problem(s):
1] Safari: each tab seem to be shifted up 1px or so. I have no idea why 
this is shifting.
2] IE6:
2a] the whole tab-holder is shifted down 1px;
2b] there is a #FDFDFA bottom-border on selected tabs.

I could fix [2a] shift problem using an IE6 specific padding-top of 
10px, but the I suspect I have something wrong with the basic layout 
that's causing both problems. If not, then I have no issue using a 
browser specific fix.

Any insight is appreciated.

  ~ ~ Dave

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] PHP-GD image library not found?

2007-10-06 Thread Nicholas Buttle
Hi

I'm trying to use the thumblist cookbook with the
latest PHP and Apache installed.

However, I'm getting this error message...

'PHP-GD image library not found'

How do I install the library for my PMWiki?

System is XP and latest PHP and Apache.

TIA

Nick


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] using PmWiki for project development

2007-10-06 Thread Jabba Laci
Hi,

We have a project, and I plan to set up two PmWiki sites for this
project: one for the users, and one for the developers to organise the
work (bug tracking, TODO lists, etc.). I have the following
requirements:

(1) Both sites could only be edited by the developers. In the Recent
Changes, I would like to see which developer added anything.
Question: what to do instead of sharing a common admin password?
Developers, of course, should have the rights to change anything.

(2) I want to hide the developer site from the outside world. How to
add a site-wide read protection?


Thanks in advance for your hints,

Laszlo

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] CondAuth ignores $HandleAuth: Bug?

2007-10-06 Thread Stirling Westrup
I've just tracked down a problem that I was having with a statement like:

  (:if auth upload {$PAGE}:)

I presume (and I could be wrong) that this is supposed to test if the user has
the authority to upload to page {$PAGE}. It turns out that auth calls
CondAuth, which (among other things) tests $AuthCascade, but it completely
ignores $HandleAuth. In my config.php, I have the lines:

  $DefaultPasswords['admin'] = '@admins';
  $DefaultPasswords['edit'] = '@editors';

  # Anyone with edit rights also has upload rights.
  $HandleAuth['upload'] = 'edit';

So, although the standard (:if auth upload:) is false, I can, in fact, do an
?action=upload, and it will work. I fixed it by redefining auth as follows:

  # redefine 'auth' so it cares about $HandleAuth
  $Conditions['auth'] = 'NoCache(CondAuth2($pagename, $condparm))';

  function CondAuth2($pagename, $condparm)
{ global $HandleAuth;

  @list($level, $pn) = explode(' ', $condparm, 2);
  $level = array_key_exists($level,$HandleAuth) ? $HandleAuth[$level] :
$level;
  $pn = ($pn  '') ? MakePageName($pagename, $pn) : $pagename;
  msg(lvl=$level, ha=$HandleAuth[$level], pn=$pn);
  return (boolean)RetrieveAuthPage($pn, $level, false, READPAGE_CURRENT);
}

And now everything works as I expected. So, did I find and fix a bug, or did I
just mess things up in some subtle way that I don't yet understand?






___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] CondAuth ignores $HandleAuth: Bug?

2007-10-06 Thread sti
Stirling Westrup wrote:
   @list($level, $pn) = explode(' ', $condparm, 2);
   $level = array_key_exists($level,$HandleAuth) ? $HandleAuth[$level] :
 $level;
   $pn = ($pn  '') ? MakePageName($pagename, $pn) : $pagename;
   msg(lvl=$level, ha=$HandleAuth[$level], pn=$pn);
   return (boolean)RetrieveAuthPage($pn, $level, false, READPAGE_CURRENT);

Oops. Remove the line that starts 'msg(...'. Its a left-over bit of debug code.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users