[pmwiki-users] Is there any way to make a Pmwiki frontpage to look like this?

2011-07-05 Thread adm

I want front page of the wiki to look like this:
http://www.khanacademy.org/

All the articles and categories on one page. Is this possible? And how to 
implement it?



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


Re: [pmwiki-users] I want a pagelist template like the oneline sample, but NO spaces between entries...help

2011-07-05 Thread c...@endlessnow.com
Turns out we dont need the feature... So not needing an answer.

Sent from my HTC smartphone on the Now Network from Sprint!

- Reply message -
From: "Tamara Temple" 
To: "pmwiki users" 
Subject: [pmwiki-users] I want a pagelist template like the oneline sample, 
but NO spaces between entries...help
Date: Tue, Jul 5, 2011 12:39 pm



On Jul 4, 2011, at 5:27 PM, Chris Cox wrote:

> Like the subject says.  I desire something like the #oneline fmt > example in 
> the pagelist samples, but I do NOT want intervening > spaces in the result.  
> Even if I specify a backslash, I end up with > a space between the items.  
> Possible to eliminate without writing > some custom markup expression?

Could this be because of your CSS? Have you looked at the generated HTML to see 
if there are in fact displayable spaces between the lines?

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


Re: [pmwiki-users] Could someone summarize the programmatic use of page lists?

2011-07-05 Thread Tamara Temple


On Jul 5, 2011, at 6:20 PM, Peter Bowers wrote:


echo "DEBUG: opt=".print_r($opt,true)."\n";


Hold that thought --

Peter, didn't you write the toolbox.php recipe? That's pretty ideal  
for this sort of thing, I think, rather than having a bunch of echo  
statements littering up your code and output.



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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread Tamara Temple


On Jul 5, 2011, at 3:59 PM, adam overton wrote:

could you tell me what command you have in your .htaccess?
was it something like:

Order Deny,Allow
Deny from all


That is it precisely.


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


Re: [pmwiki-users] Could someone summarize the programmatic use of page lists?

2011-07-05 Thread Peter Bowers
On Tue, Jul 5, 2011 at 12:57 PM, Ryan Varick  wrote:

> Thanks for the response, but unfortunately that recipe is a bit too dense
> for me to make sense of.
>
> In particular, I do not understand the $opt parameter -- how it is built,
> what is necessary for pagelists, etc. I have a vague idea of how markup is
> translated, but I have no idea how to achieve the same effect without
> markup.
>
>
I understand the desire for a simple example which does what you want, but
for lack of such I'm afraid you are going to need to do some editing of the
recipe and putting echo statements in key places to understand what's going
on.  In particular a statement such as this:

echo "DEBUG: opt=".print_r($opt,true)."\n";

when placed in the right location will be helpful for you.

I believe that you will find that a markup expression like this:

{(pagelist group=Foo order=name anotheropt=abc searchterm term2)}

will end up with an $opt having these elements:

$opt['group']='Foo'
$opt['order']='name'
$opt['anotheropt']='abc'
$opt['']=array('searchterm', 'term2')

or something like that.  You can check out Cookbook/ParseArgs for more
specifics (I'm 99.9% certain PowerTools is using ParseArgs() to handle
this).

Ultimately putting trace/debug statements into code is the way to understand
how it is working.  (Obviously you will need to do this research/learning in
a non-AJAX environment first or else switch from echo to error_log($msg, 3,
$pathname) or the equivalent.)

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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread adam overton

hi Tamara. thanks for the advice!
could you tell me what command you have in your .htaccess?
was it something like:

Order Deny,Allow
Deny from all

?
thanks!



On 5 Jul 2011, at 1:39 PM, Tamara Temple wrote:

> 
> On Jul 5, 2011, at 3:09 PM, adam overton wrote:
>> 
>> so for now, looking back in the documentation online for setup, i'm seeing 
>> that 777 seems to be the standard for setting up wiki.d; if so, i'm just not 
>> sure how mine ended up at 755. anyways, unless someone else votes for 755, 
>> i'll leave mine now at 777.
> 
> Because of the silly management software on my VPS, I have to have my 
> apache-writeable directories set at 777. Not encountered a problem with that 
> so far. I do have an .htaccess file set so they can't be accessed directly 
> from a browser.
> 


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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread Tamara Temple


On Jul 5, 2011, at 3:09 PM, adam overton wrote:


so for now, looking back in the documentation online for setup, i'm  
seeing that 777 seems to be the standard for setting up wiki.d; if  
so, i'm just not sure how mine ended up at 755. anyways, unless  
someone else votes for 755, i'll leave mine now at 777.


Because of the silly management software on my VPS, I have to have my  
apache-writeable directories set at 777. Not encountered a problem  
with that so far. I do have an .htaccess file set so they can't be  
accessed directly from a browser.



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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread adam overton
hi Rogut
thanks for the reply
i'll check with my host to see if anything changed. thanks.

my permissions before were definitely 0755, not 2755.
and yes, my pages are still writable. it seems like the new setttings are only 
causing problems with .files like .pageindex (and another .file for another 
recipe).

so for now, looking back in the documentation online for setup, i'm seeing that 
777 seems to be the standard for setting up wiki.d; if so, i'm just not sure 
how mine ended up at 755. anyways, unless someone else votes for 755, i'll 
leave mine now at 777.

thanks,
adam



> 
> Message: 7
> Date: Tue, 5 Jul 2011 03:10:05 -0700
> From: adam overton 
> To: pmwiki-users 
> Subject: [pmwiki-users] pagelist error msg due to permissions
> Message-ID: <13f46b24-22d0-48f9-aeb5-e74dae7ef...@plus1plus1plus.org>
> Content-Type: text/plain; charset=us-ascii
> 
> hi y'all
> i'm now getting the following msg on any page with a pagelist:
> 
> 
> Warning: fopen(wiki.d/.pageindex,new) [function.fopen]: failed to open 
> stream: Permission denied in /home/user/public_html/wiki/scripts/pagelist.php 
> on line 755
> Warning: fputs(): supplied argument is not a valid stream resource in 
> /home/user/public_html/wiki/scripts/pagelist.php on line 767
> Warning: fputs(): supplied argument is not a valid stream resource in 
> /home/user/public_html/wiki/scripts/pagelist.php on line 767
> Warning: fputs(): supplied argument is not a valid stream resource in 
> /home/user/public_html/wiki/scripts/pagelist.php on line 781
> 
> ... ad infinitum ... then:
> 
> Warning: fclose(): supplied argument is not a valid stream resource in 
> /home/user/public_html/wiki/scripts/pagelist.php on line 785
> Warning: unlink(wiki.d/.pageindex) [function.unlink]: Permission denied in 
> /home/user/public_html/wiki/scripts/pagelist.php on line 786
> Warning: rename(wiki.d/.pageindex,new,wiki.d/.pageindex) [function.rename]: 
> No such file or directory in /home/user/public_html/wiki/scripts/pagelist.php 
> on line 787
> 
> 
> i'm not sure whether this is being caused by:
> A. having just updated to the latest pmwiki version a couple weeks ago (after 
> having not updated in awhile)
> or
> B. my host changing some settings on their server.
> 
> 
> the problem seems to be solved by changing the permissions of wiki.d from 755 
> to 777.
> is that a security risk? or is that alright? i had had most folders set to 
> 755 before, and everything seemed to be working fine for quite some time, but 
> now something has changed.
> 
> thanks,
> adam
> 
> 
> (ps - sorry if this has been covered already in a previous post - the gmane 
> search feature seems to be down right now)
> 
> 
> 
> 
> --
> 
> Message: 8
> Date: Tue, 5 Jul 2011 13:53:54 +0300
> From: Rogut?s Sparnuotos 
> To: pmwiki-users@pmichaud.com
> Subject: Re: [pmwiki-users] pagelist error msg due to permissions
> Message-ID: <20110705105354.GA9667@urvas>
> Content-Type: text/plain; charset=utf-8
> 
> adam overton (2011-07-05 03:10):
>> hi y'all
>  
>> B. my host changing some settings on their server.
>> 
>> the problem seems to be solved by changing the permissions of wiki.d from 
>> 755 to 777.
>> is that a security risk? or is that alright? i had had most folders set to 
>> 755 before, and everything seemed to be working fine for quite some time, 
>> but now something has changed.
> 
> PmWiki didn't change in this regard, so it's B.
> Re. security, you should ask your host what changes it has done to its web
> server setup, because the web server (PHP) could write to 0755 directories
> and now it can't. From a paranoid perspective, it is a security risk, but
> if their setup is right, having a 0777 wiki.d might be ok.
> 
> P.S. Was it really 0755 before? Or 2755?
> 
> -- 
> --  Rogut?s Sparnuotos
> 
> 
> 
> --
> 
> Message: 9
> Date: Tue, 5 Jul 2011 14:00:51 +0300
> From: rogu...@googlemail.com
> To: pmwiki-users@pmichaud.com
> Subject: Re: [pmwiki-users] pagelist error msg due to permissions
> Message-ID: <20110705110051.GA10333@urvas>
> Content-Type: text/plain; charset=utf-8
> 
> Rogut?s Sparnuotos (2011-07-05 13:53):
>> adam overton (2011-07-05 03:10):
>>> hi y'all
>>  
>>> B. my host changing some settings on their server.
>>> 
>>> the problem seems to be solved by changing the permissions of wiki.d from 
>>> 755 to 777.
>>> is that a security risk? or is that alright? i had had most folders set to 
>>> 755 before, and everything seemed to be working fine for quite some time, 
>>> but now something has changed.
>> 
>> PmWiki didn't change in this regard, so it's B.
>> Re. security, you should ask your host what changes it has done to its web
>> server setup, because the web server (PHP) could write to 0755 directories
>> and now it can't. From a paranoid perspective, it is a security risk, but
>> if their setup is right, having a 0777 wiki.d might be ok.
>> 
>> P.S. Was it really 0755 before? Or 2755?
> 
> Forgot to look into the er

Re: [pmwiki-users] I want a pagelist template like the oneline sample, but NO spaces between entries...help

2011-07-05 Thread Tamara Temple


On Jul 4, 2011, at 5:27 PM, Chris Cox wrote:

Like the subject says.  I desire something like the #oneline fmt  
example in the pagelist samples, but I do NOT want intervening  
spaces in the result.  Even if I specify a backslash, I end up with  
a space between the items.  Possible to eliminate without writing  
some custom markup expression?


Could this be because of your CSS? Have you looked at the generated  
HTML to see if there are in fact displayable spaces between the lines?


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


Re: [pmwiki-users] Could someone summarize the programmatic use of page lists?

2011-07-05 Thread Ryan Varick
Thanks for the response, but unfortunately that recipe is a bit too dense
for me to make sense of.

In particular, I do not understand the $opt parameter -- how it is built,
what is necessary for pagelists, etc. I have a vague idea of how markup is
translated, but I have no idea how to achieve the same effect without
markup.

To give a specific example, I have some client-side Javascript that fires
off an AJAX call to PmWiki with a custom action handler. I want to return a
JSON response, but I do not know how to use MakePageList() without starting
with (:pagelist:) markup.

I think a simple example that explains the process from beginning to end
would help me understand more complex recipes like the one you provided
below. Does that make sense?

Thanks,
Ryan


On Sat, Jul 2, 2011 at 6:29 AM, Peter Bowers  wrote:

> On Thu, Jun 30, 2011 at 1:55 PM, Ryan Varick  wrote:
>
>> Ideally, I would like to see a "hello world" recipe for recreating
>> something basic like "(:pagelist:)" or "(:pagelist group=Main:)" without
>> actually using the pagelist markup on a wiki page. Perhaps a recipe that
>> takes a directive like "(:pagelistexample:)" and returns the actual pagelist
>> result. Hopefully from there, I can deduce how to construct more elaborate
>> pagelists.
>>
>>
>> Check out Hans's "Powertools" recipe.  He has pagelist being used within a
> markup expression context which should be very helpful.
>
> -Peter
>
>
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] I want a pagelist template like the oneline sample, but NO spaces between entries...help

2011-07-05 Thread Dominique Faure
> Like the subject says.  I desire something like the #oneline fmt example in
> the pagelist samples, but I do NOT want intervening spaces in the result.
>  Even if I specify a backslash, I end up with a space between the items.
>  Possible to eliminate without writing some custom markup expression?

Hi,
According to this test:

http://www.pmwiki.org/wiki/Test/OneLinePagelist

it seems to work as expected, and even more since Camel case
concatenated strings are recognized as potential links.

-- 
Dominique

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


[pmwiki-users] BlogIt Vulnerability

2011-07-05 Thread ki...@kirpi.it
Thank you twice, Dave: for your prompt fix, and also for having mailed
me off-list (I was not aware of the problem yet).

Luigi

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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread rogutes
Rogutės Sparnuotos (2011-07-05 13:53):
> adam overton (2011-07-05 03:10):
> > hi y'all
>  
> > B. my host changing some settings on their server.
> > 
> > the problem seems to be solved by changing the permissions of wiki.d from 
> > 755 to 777.
> > is that a security risk? or is that alright? i had had most folders set to 
> > 755 before, and everything seemed to be working fine for quite some time, 
> > but now something has changed.
> 
> PmWiki didn't change in this regard, so it's B.
> Re. security, you should ask your host what changes it has done to its web
> server setup, because the web server (PHP) could write to 0755 directories
> and now it can't. From a paranoid perspective, it is a security risk, but
> if their setup is right, having a 0777 wiki.d might be ok.
> 
> P.S. Was it really 0755 before? Or 2755?

Forgot to look into the error messages... The first question should've
been this: can you edit and delete pages from PmWiki?

And it looks like the error messages seem to show that PmWiki could better
at error handling.

-- 
--  Rogutės Sparnuotos

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


Re: [pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread Rogutės Sparnuotos
adam overton (2011-07-05 03:10):
> hi y'all
 
> B. my host changing some settings on their server.
> 
> the problem seems to be solved by changing the permissions of wiki.d from 755 
> to 777.
> is that a security risk? or is that alright? i had had most folders set to 
> 755 before, and everything seemed to be working fine for quite some time, but 
> now something has changed.

PmWiki didn't change in this regard, so it's B.
Re. security, you should ask your host what changes it has done to its web
server setup, because the web server (PHP) could write to 0755 directories
and now it can't. From a paranoid perspective, it is a security risk, but
if their setup is right, having a 0777 wiki.d might be ok.

P.S. Was it really 0755 before? Or 2755?

-- 
--  Rogutės Sparnuotos

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


[pmwiki-users] pagelist error msg due to permissions

2011-07-05 Thread adam overton
hi y'all
i'm now getting the following msg on any page with a pagelist:


Warning: fopen(wiki.d/.pageindex,new) [function.fopen]: failed to open stream: 
Permission denied in /home/user/public_html/wiki/scripts/pagelist.php on line 
755
Warning: fputs(): supplied argument is not a valid stream resource in 
/home/user/public_html/wiki/scripts/pagelist.php on line 767
Warning: fputs(): supplied argument is not a valid stream resource in 
/home/user/public_html/wiki/scripts/pagelist.php on line 767
Warning: fputs(): supplied argument is not a valid stream resource in 
/home/user/public_html/wiki/scripts/pagelist.php on line 781

... ad infinitum ... then:

Warning: fclose(): supplied argument is not a valid stream resource in 
/home/user/public_html/wiki/scripts/pagelist.php on line 785
Warning: unlink(wiki.d/.pageindex) [function.unlink]: Permission denied in 
/home/user/public_html/wiki/scripts/pagelist.php on line 786
Warning: rename(wiki.d/.pageindex,new,wiki.d/.pageindex) [function.rename]: No 
such file or directory in /home/user/public_html/wiki/scripts/pagelist.php on 
line 787


i'm not sure whether this is being caused by:
A. having just updated to the latest pmwiki version a couple weeks ago (after 
having not updated in awhile)
or
B. my host changing some settings on their server.


the problem seems to be solved by changing the permissions of wiki.d from 755 
to 777.
is that a security risk? or is that alright? i had had most folders set to 755 
before, and everything seemed to be working fine for quite some time, but now 
something has changed.

thanks,
adam


(ps - sorry if this has been covered already in a previous post - the gmane 
search feature seems to be down right now)


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


[pmwiki-users] applying group javascript---displaying subnav in the sidebar div when user clicks to the tab nav menu

2011-07-05 Thread Canan Has
Dear all,

I am using simpletab skin and css files for each group. I added a horizontal
tab menu to the tmpl.  When user clicks on a certain item of the horiztontal
tab menu, I want the code display the related submenus of that item on the
left sidebar. Meaning that I want to hide others and show the submenus of
the clicked one.

  Main*Item1Item2***Item3

*SubItem1*
*SubItem2*
*
*
However, I can not do it. I learnt if there is a group customization for
javascript, while uploading each group I can display different thing on the
left sidebar. Otherwise, it won't work.

Can you help me to solve this problem?

Thanks a lot.

BTW: I can sent what I tried if necessary.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] applying group javascript---displaying subnav in the sidebar div when user clicks to the tab nav menu

2011-07-05 Thread Canan Has
Dear all,

I am using simpletab skin. I added a horizontal tab menu to the tmpl.  When
user clicks on a certain item of the horiztontal tab menu, I want the code
display the related submenus of that item on the left sidebar.

MainItem1***Item2***Item3

However, I can not do it. I thought if I
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users