Re: [pmwiki-users] Problem with PTV in Pagelists

2010-05-28 Thread Ian Barton

On 28/05/10 14:43, Eemeli Aro wrote:

On 28 May 2010 16:32, Ian Barton  wrote:

{(ftime fmt="%A, %B %d, %Y" when='{=$Name}')} doesn't appear to work, see
the page referenced above for the output.


On the page itself, you need to use {$Name} or {*$Name}.

{=$Name} is required in the pagelist template to refer to the name of
page being listed at the moment.

eemeli


Thank you. Page list now working!

Ian.

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


Re: [pmwiki-users] Problem with PTV in Pagelists

2010-05-28 Thread Ian Barton

On 28/05/10 12:56, Eemeli Aro wrote:
> On 28 May 2010 14:37, Ian Barton  wrote:
>> The pagelist displays the next five events in the Calendar group. The
>> problem is with $JournalDateTitle. This splits the filename from
>> Calendar.201005028 into a more human readable format. It displays 
correctly
>> when I use it on a page in the calendar group, but not displayed in 
a side
>> bar on the front page. This worked OK with the previous version of 
PmWiki

>> that I had installed.
>
> Where's $JournalDateTitle coming from? Is it some custom code that's
> generating it, as it doesn't appear on the page sources?
>
> I'd recommend instead using the standard MarkupExpression ftime:
>
> {(ftime fmt="%A, %B %d, %Y" when='{=$Name}')}
>
> instead of {=$JournalDateTitle}.

It's a custom function (see end of message). It's designed to return a 
human readable date from the Page name e.g. News.20100527 would give 
Thursday, 27 May 2010.


If you look at http://www.dodcott-cum-wilkesley.co.uk/wiki/News/20100527 
you can see that it works in the base page, but not when used in a pagelist.


I don't normally write php and it's been a couple of years since I set 
up this site. As it's always worked OK before the latest upgrade, my 
memory of why I did it that way is a bit rusty:)


{(ftime fmt="%A, %B %d, %Y" when='{=$Name}')} doesn't appear to work, 
see the page referenced above for the output.


Thanks for your help.


# Title that appears as at the top of each entry.
$FmtPV['$JournalDateTitle'] = 'TitleToDate2($pagename)'

function TitleToDate2($pagename) {
$tname = 
preg_replace("/[^.]*\.([\d\-]*)(.*)/e","'$1'==''?'$2':'$1'",$pagename);

preg_match("/([\d]*)[-]?([\d]*)[-]?([\d]*)/e",$tname,$m);

$year = (integer) substr($tname, 0, 4);
$month = (integer) substr($tname, 4, 2);
$day = (integer) substr($tname, 6, 2);

   $tdate=  mktime(0, 0, 0, $month, $day, $year);


$bmonth = strftime("%A, %d %B %Y",$tdate);
return $bmonth;
}

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


[pmwiki-users] Problem with PTV in Pagelists

2010-05-28 Thread Ian Barton
I have just upgraded my PmWiki to the latest stable 2.2.16 from a 
previous 2.x version. I am now having a problem using page text 
variables in page lists. I am presuming that this is caused by a change 
in behavior, but can't work out how to fix it.


My page list looks like this:

(:pagelist group=Calendar if="date {(ftime %Y%m%d)}.. {=$Name}" count=5 
fmt=#calendar order=name -Calendar.HomePage -RecentChanges:)


the format command looks like:

[[#calendar]]
||'''[[{=$FullName}| {=$JournalDateTitle}]]'''||

(:include {=$FullName} lines=2:)

(:if ! equal {>$Group}:)
-
(:if:)
[[#calendarend]]

The pagelist displays the next five events in the Calendar group. The 
problem is with $JournalDateTitle. This splits the filename from 
Calendar.201005028 into a more human readable format. It displays 
correctly when I use it on a page in the calendar group, but not 
displayed in a side bar on the front page. This worked OK with the 
previous version of PmWiki that I had installed.


You can see the site at: http://www.dodcott.org/wiki/

Ian.

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


[pmwiki-users] How to Deal With a DOS Type Attack

2009-09-06 Thread Ian Barton
I have noticed on one of my servers that Apache was using up all my RAM. 
Looking in the logs I see thousands of lines like:

94.102.63.14 - - [03/Sep/2009:10:10:43 +0100] "POST 
/wiki/PmWikiAdmin/PageHeader?action=edit HTTP/1.1" 200 168 
"http://www.wilkesley.net/wiki/PmWikiAdmin/PageHeader?action=edit"; 
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

The wikis on this server are all password protected. It looks as though 
someone is trying a generic type of spam attack by editing pages. There 
are a number of different ip addresses being used, which seem to have no 
obvious connection - it looks as though there are several different 
groups trying the attack.

As a first step I can extract their ip addresses and add them to my 
hosts.deny, but I don't expect this to be very effective. Does anyone 
have any alternative suggestions?

Ian.

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


Re: [pmwiki-users] Editing Pmwiki *Locally* in a *Text Editor*

2009-03-22 Thread Ian Barton
> Summary question: Is there a way to keep a local copy of your wiki on
> your machine and change it locally (via a text editor preferably) and
> then upload a batch of changes at once?
> 


I have used git for doing something similar. Very brief HowTo:

On your local computer:

cd wiki.d
git init
vim .gitignore - add any files you don't want synced
Your wiki: edit, edit, edit
git commit -a -m "Committed my changes"

On the remote side (you only need to do this once):
cd wiki.d
git init (create repo on the remote)

On your local computer:
git remote add origin ssh://myserver.com/~/public_html/pmwiki/wiki.d
git push origin master

If you use bzr there is a plugin called "upload", which makes this 
process easier. From the description:

Upload *just* the working tree, and keep track of what has been sent for 
incremental uploads. Mostly oriented towards web development.

Ian.

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


Re: [pmwiki-users] upload does not overwrite

2009-01-28 Thread Ian Barton

> It has actually had this same problem for weeks. I also noticed that 
> files uploaded after I upgraded last summer are listed under webservd.
>  
> 
It sounds like a permissions problem. If you have ftp access to the area 
where the files are uploaded, can you overwrite the files? If you have 
access to the web server logs that might give you more information.

Ian.


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


Re: [pmwiki-users] Using dates in if Clauses with Pagelists

2009-01-28 Thread Ian Barton

>  > What I want is to produce a pagelist that shows pages from this group
>> with a pagename equal or greater than today's date. Using the pagelist 
>> examples I have tried:
> There was a thread on this yesterday titled "problem with PTV and if= 
> date in pagelists", so you might want to check that as well. Here's what 
> I use:
>   if="date {(ftime %Y%m%d)}.. {=$Name}"
> 
> Or this for pages within a specific month:
>   if="date 200901..200902 {=$Name}"
> 
> Note in this case, page names must be of the format mmdd.
> 
Thanks both of you, that does exactly what I want. My email is going a 
bit slowly at the moment for some reason, so I didn't see yesterday's 
discussion until after my post.

Ian.


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


[pmwiki-users] Using dates in if Clauses with Pagelists

2009-01-28 Thread Ian Barton
Apologies if this is obvious, but I am struggling to get the right 
syntax. I have events in Calendar/PageName where page name is formatted 
like mmdd.

What I want is to produce a pagelist that shows pages from this group 
with a pagename equal or greater than today's date. Using the pagelist 
examples I have tried:

(:pagelist group=Calendar if="date {(ftime %Y%m%d {*$Name})} {=$Name}" 
count=5 fmt=#calendar order=name -Calendar.HomePage -RecentChanges:)

However, I don't get any pages in the list. I have tried various other 
combinations, can't seem to hit on the correct syntax. can anyone help?

Thanks,

Ian.




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


Re: [pmwiki-users] A personal update

2008-09-02 Thread Ian Barton
I am pleased to hear that things are on the up. It has obviously been a 
very difficult year for you. Our thoughts are with you.

Best wishes,

Ian.


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


Re: [pmwiki-users] Web for mobiles -- Apple sold over 1 million iPhones last weekend...

2008-07-14 Thread Ian Barton

>> I agree we can customize output for mobile devices, but it shouldn't
>> require a separate command.  Instead, the site (or skin or whatever)
>> can detect that the request is coming from a mobile device and alter
>> the display accordingly.
> 
> While "intelligent" computers are useful at times, they make me
> nervous quite often.
> But maybe you mean that there should be a way to just sniff the user
> agent and make the switch towards mobiles, while always retaining the
> ability to manually force ?action=mobile if desired?
> Yes, nice, but even too nice for a start. Too complicated for my skills, 
> anyway.
> Would anything like this
> http://dev.mobi/article/lightweight-device-detection-php be of any
> use...?
> 
>
Mythweb (part of MythTV) has quite a nice mobile detection script. You
can find it at:
http://svn.mythtv.org/svn/branches/release-0-21-fixes/mythplugins/mythweb/includes/mobile.php

Ian.

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


Re: [pmwiki-users] Marking Draft Pages

2007-12-05 Thread Ian Barton

> I have recently started to use Draft pages. On thing I would like to be 
> able to do is to make it obvious that the page I am working on is a 
> draft. I don't think that SwitchToAndFromDraft quite does what I want.
> 
> I would like something like a background water mark on the page, or a 
> big red "Draft" in the title. So really my question is "How can I 
> customize a set of pages with names like *-Draft?".
> 
> I can see how I can customize whole groups using config.php, but not 
> subsets of pages within a group.
> 
Of course ten minutes after posting this I found out how to do it! The 
following example changes the page logo for all pages ending in -Draft.

$pagename = ResolvePageName($pagename);

$name = PageVar($pagename, '$Name');

if (preg_match('/-Draft$/', $name)) {
   $PageLogoUrl = "$PubDirUrl/skins/pmwiki/pmwiki-32.gif";
}

Ian.

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


[pmwiki-users] Marking Draft Pages

2007-12-04 Thread Ian Barton
I have recently started to use Draft pages. On thing I would like to be 
able to do is to make it obvious that the page I am working on is a 
draft. I don't think that SwitchToAndFromDraft quite does what I want.

I would like something like a background water mark on the page, or a 
big red "Draft" in the title. So really my question is "How can I 
customize a set of pages with names like *-Draft?".

I can see how I can customize whole groups using config.php, but not 
subsets of pages within a group.

Ian.

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


Re: [pmwiki-users] including the contents of a php file on a wiki page

2007-12-04 Thread Ian Barton
If you are running on a Linux system you could create symlinks to the 
php files with a .txt suffix and use the IncludeFile recipe.

Ian.

>> as I said I probably misunderstood. You do want some markup which can
>> pull php files into view in a wiki page. Not just paste code. Sorry,
>> my mistake! I have no answers.
> 
> Yes, I am trying to figure out a way to basically auto-document a given page
> in a "live" form which doesn't require remembering to cut/paste changes onto
> the page nor having to remember to re-copy the *.php file to another name...
> Maybe I'm just being lazy, but I know too often I document something and
> then realize a better way to do it in the code but the new code never makes
> it back into any kind of documentation...
> 
> Again, I'm interested both in the security ramifications as well as any
> thoughts how to get non-eval'd source included onto a page...
> 


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


Re: [pmwiki-users] collecting e-mail addresses for a newsletter

2007-11-29 Thread Ian Barton

> Questions:
> 
> - Do you know a module that can do this?
> - How to store the result securely? That is, the file containing the
> addresses should be hidden from outside.
> - Next step: what is the simplest way for sending newsletters?
> 
There are a few obvious problems doing this via PmWiki:

You need to stop spammers/vandals adding addresses to the list, so you 
would probably need some sort of capatcha to the registration screen.

Once you get past a relatively small number of users, managing lists 
manually becomes an admin headache. As an example what happens when 
someone wants to unsubscribe, but can't remember the email address they 
used to subscribe. This might sound unlikely, but it's quite common to 
get users who have multiple accounts with complex forwarding rules. You 
will then get an angry email from [EMAIL PROTECTED] demanding you 
un-subscribe him, when he had originally subscribed as [EMAIL PROTECTED]


You might want to consider using one of the available packages, like Gnu 
Mailman then including its user management page in your wiki.

Ian.

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


Re: [pmwiki-users] Subversion PageStore

2007-11-09 Thread Ian Barton

> A while back, a few people expressed mild interest in using Subversion
> as a backend for a PmWiki PageStore (that is, using subversion for the
> storage of wiki pages).  Did anything ever come of this?  I'm getting
> interested in this; or adapting something like this to be used with
> svk(1).
> 
> [1] SVK is a distributed version-control system which uses Subversion as
> a back-end.  http://svk.elixus.org/

Out of curiosity why would you want to do this? PmWiki already gives you 
  version history.

If you are interested in distributed version control, you might want to 
give bazaar (aka bzr) a look. See http://bazaar-vcs.org/

It has quite an extensive Python API. It might be easier to translate 
this interface to PHP, or to interact directly via some wort of wrapper.

Ian.


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


Re: [pmwiki-users] New install help

2007-10-11 Thread Ian Barton
Joseph Sands wrote:
>> -Original Message-
>> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John Rankin
>> Sent: Wednesday, October 10, 2007 5:55 PM
>> To: pmwiki-users@pmichaud.com
>> Subject: Re: [pmwiki-users] New install help
>>
>> On Thursday, 11 October 2007 4:29 AM, [EMAIL PROTECTED]
> wrote:
>>>   8. Re: New install help (Joseph Sands)
>>>
>>> The default webpage comes up fine. I created a hello world php page
> when
>>> I installed php to test it. It works and I can open it from both
>>> http://localhost/index.php and http://localhost/pmwiki/index.php, I
>>> copied the file to both locations for testing. It would seem if I
> could
>>> copy index.php into the pmwiki folder and access it I should be able
> to
>>> access pmwiki.php in the same folder.
>> Try placing the following index.php file in the pmwiki directory to 
>> replace the pmwiki/index.php example above:
>>
>> 
>>
>> This should tell php to load up pmwiki.php.
>>
>> JR
>> -- 
> 
> I tried this and it just opens a blank page. I already asked this in
> another post but does the PHP mode make a difference? I installed it in
> ISAPI mode vs CGI mode. Maybe that's where my problem lies.
> 

I don't think so. From my understanding using ISAPI is similar to using 
mod_php with Apache. As a next step I would suggest looking in your IIS 
logs. There is probably some sort of error, which isn't giving you an 
error message in the browser.

Ian.

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


Re: [pmwiki-users] New install help

2007-10-11 Thread Ian Barton
> 
> As far as wikilib.d, being that this is a windows system, does this mean
> "Everyone" should have full access to it? Seems like a security no no.
> 
It's usually OK just to give the webserver read/write permissions. 
Giving everyone full permissions shouldn't be a problem as there is an 
.htaccess file that prevents anyone doing something nasty:

Order Deny,Allow
Deny from all


Ian.

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


Re: [pmwiki-users] New install help

2007-10-10 Thread Ian Barton
I am definitely not an IIS expert, but here a couple of things to try:

Can you see other sites in C:\inetpub\wwwroot OK? If there are no other 
sites installed there try creating a test ste with just an index.php 
file in it.

Does the pmwiki folder have the correct permissions? In particular 
wikilib.d should be readable/writeable by all users.

Ian.

> 
> OK, on to PmWiki. I downloaded and extracted the zip file. Renamed the 
> folder to pmwiki and moved it into C:\inetpub\wwwroot so it would be 
> accessible to the website. Next step says to open a browser and open the 
> pmwiki.php file. When I open that file with internet explorer on the 
> local server with IE7 I get a http 404 error, The webpage cannot be 
> found. If I browse to it another computer , using FireFox, I get “No 
> input file specified.” That’s all it says on a white background, nothing 
> more.
> 
>  


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


Re: [pmwiki-users] New Skin: Skidoo

2007-10-05 Thread Ian Barton
> 
> I use it for the various wiki's I use for note taking on a daily basis.
> 
> Feel free to drop me a line, or leave a comment if you find it useful, 
> or have a question.
> 
Dave,
Very nice, I think I'll start using it for my notes wikis. I like the
PDA interface. I often want to refer to something on one of my wikis
from a cell phone.

Ian

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


Re: [pmwiki-users] making brute force attacks more difficult #2

2007-08-21 Thread Ian Barton
> May I suggest you to make a recipe with this code and publish it in
> the cookbook ?  I am pretty sure there would be a lot of interest for
> it, and we would get more comments/suggestions and reports.
> 
> Anyway, I will try this very soon on my own as my logs keep showing
> automated login attempts and I definitely want to stop them.
> 
For *nix style servers there is already a solution called fail2ban. From 
the READDME:

Fail2Ban scans log files like /var/log/pwdfail and bans IP
that makes too many password failures. It updates firewall
rules to reject the IP address. These rules can be defined by
the user. Fail2Ban can read multiple log files such as sshd
or Apache web server ones.

It's not a pmwiki based solution, but I use it on my own server and it's 
very effective.

Ian.

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


Re: [pmwiki-users] Wiki vandalism via chgrp?

2007-08-15 Thread Ian Barton

> 
> Is it conceivable that another user on the same system (this being a 
> shared host) could have used the chgrp command to gain access to the 
> files?  Or is chgrp pretty well locked down?  Ideas welcome.  Thanks! 
> --Ben S
> 
> ___

That would depend on how the shared host was configured. If some twit 
had arranged things so that all virtual users shared the same web 
account group, so your file permissions looked like:

ben.webgroup

Then it's possible that anyone with a shell account might be able to 
overwrite your files. However, that doesn't explain how they changed the 
group ownership.

Given the nature of the attack it seems likely that someone has 
exploited a security loophole in the ISP's setup. As you say anyone who 
had direct ftp/shell access would probably simply delete the files.

Ian.


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


Re: [pmwiki-users] Files missing from wiki.d directory

2007-06-30 Thread Ian Barton
> wiki.d directory, but are not.  These pages show up when I navigate the 
> site in a browser, but I can't find them on the server.  Have I 
> configured the site wrong?  Any ideas on how to restore the files that 
> have gone missing?  Thanks in advance.
> 

If you can see them in your browser they are on the server, somewhere 
(excluding the unlikely possibility that they are only present in your 
browsers' cache).

It's possible, but unlikely, that it's a permissions problem and that 
Dreamweaver can't see them. If you have ftp access to your server, try 
looking for them like that.

Pmwiki can also be configured to store things outside wiki.d. Do you 
have any recipes, or things in your config.php that might cause this?

If you have shell access and are on a Unix server typing find . -name 
NameOfMissingPage from the root directory of your web space will show 
you where the file is hiding (assuming it's in your accessible web space).

Ian.

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


Re: [pmwiki-users] back ups

2007-06-23 Thread Ian Barton

> If I want to do desktop backups of my site, do I have to copy everything 
> or just some of the directories?  Which ones?
> 
It's safest to do them all, then you don't forget anything important. 
You might want to consider something like rdiff-backup from 
http://www.nongnu.org/rdiff-backup/

It runs on both Windows and Linux. It will maintain a mirror of the 
current site, but also a configurable number of changed files, so you 
can recover files changed some time ago.

Ian.

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


Re: [pmwiki-users] POLL: Why PmWiki over Other CMS?

2007-04-23 Thread Ian Barton
Simple data storage system, which works.

Very flexible, especially with cookbook recipes.

Easy to deploy - works on most hosted systems.

Helpful and friendly community.

Multi-purpose web development system (it's not just a wiki).

Ian.

> I just wanted to poll the Community about your deciding factors for
> choosing PmWiki over other wikis/CMS tools. I personally chose PmWiki
> because of its flat-file focus and customizability. It seems that the
> greatest strength of PmWiki is its flexible nature, augmented by
> dynamic content generation. But, what do you think?
> 


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


Re: [pmwiki-users] EnableDiag

2007-03-02 Thread Ian Barton

> Note that passwords held in $DefaultPasswords and $AuthUser
> are encrypted, so even if someone obtains the encrypted values
> they would still need to break the encryption to learn the
> actual passwords.
> 
I am not sure exactly how the PHP encryption function works, but could 
getting the encrypted passwords make it possible for someone to run a 
dictionary attack.

In other words if you don't use strong passwords someone just runs their 
dictionary/generation algorithm through the crypt function and compares 
the output to the encrypted value?

Ian.

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


Re: [pmwiki-users] Problem Using RyeVote in Triad Skin

2007-02-27 Thread Ian Barton
> So, it would seem that the form
> 
> (:input form "{$PageUrl}?action=ryevote" :)
> 
> is the correct one, so that {$PageUrl} gets the RightBar page
> instead of Test.FrontPage.
> 
> So, I reverted the Test.RightBar page back to using {$PageUrl}
> (hope you don't mind), but the form is still ending up with

No problems. After all it's a page for testing stuff:)

> the url for Test.FrontPage.  Perhaps you have
> $EnableRelativePageVar set to zero, or perhaps there's a
> problem with relative page vars in the right bar in the
> triad skin.
> 
> But we should be able to avoid the issue of relative page
> vars altogether by making the variable absolute, as in:
> 
>(:input form "{Test.RightBar$PageUrl}?action=ryevote" :)
> 
> Let me know if this works.  (Even if it does, it might be good
> to figure out why page vars aren't working on your site the
> way they are supposed to.)
> 

Yes, that works. Let me know if there is anything I can do to try and 
find out why page vars aren't working.

Ian.

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


Re: [pmwiki-users] Problem Using RyeVote in Triad Skin

2007-02-27 Thread Ian Barton
> 
>> If you're using the latest Beta, shouldn't it be
>  
>> (:input form "{*$PageUrl}?action=ryevote" :)
> 
>> Otherwise wouldn't it give the page url of the SideBar page?
> 
> Yes, without the star the side (or right) bar url is used.
> With the star the page url is used.
> 
> Strangely, it works for me without the star from a RightBar page
> (Triad skin), and it does not when I put in a star to get the page
> url. But it does not work for Ian.
> 
> Something strange going on in the RyeVoting script???
> 
Thanks, I just tried putting the star in and it made no difference.

Ian.

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


Re: [pmwiki-users] Problem Using RyeVote in Triad Skin

2007-02-27 Thread Ian Barton
>>
>> I run the latest pmwiki 2.2.0 beta.
>>
>> Can you set  $RyeVoteRestrictions = 0;
>> so it is easier to test?
>>
> It is already set to 0. I don't get the message telling me I can't vote 
> more than once when I vote.
> 
> So far my best guess is that it's some sort of server issue and that in:
> 
> (:input form "{$PageUrl}?action=ryevote" :)
> 
> $PageUrl isn't what it's supposed to be when called from the side bar. 
> I'll see if I can insert some debugging code to log what's happening.
> 
Update:

I am running the latest Beta. I have just copied the site to my computer 
running Apache 2 on Ubuntu (the remote host runs Apache2 on FreeBSD). I 
get the same problem here. I can vote when the form is shown in the main 
content section, but not the right bar.

Ian.

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


Re: [pmwiki-users] Problem Using RyeVote in Triad Skin

2007-02-27 Thread Ian Barton

>> I am trying to use the RyeVote recipe with the Triad skin. It works when
>>   the vote form is shown in the main section of the page, but not in a
>> RightBar.
> 
> I just tested RyeVoting with Triad. I set
> $RyeVoteRestrictions = 0;
> so I can vote several times for testing.
> I used your markup source code in the right bar.
> I was able to vote from the right bar, from different pages in the
> group.
> 
> I run the latest pmwiki 2.2.0 beta.
> 
> Can you set  $RyeVoteRestrictions = 0;
> so it is easier to test?
> 
It is already set to 0. I don't get the message telling me I can't vote 
more than once when I vote.

So far my best guess is that it's some sort of server issue and that in:

(:input form "{$PageUrl}?action=ryevote" :)

$PageUrl isn't what it's supposed to be when called from the side bar. 
I'll see if I can insert some debugging code to log what's happening.

Ian.

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


[pmwiki-users] Problem Using RyeVote in Triad Skin

2007-02-26 Thread Ian Barton
I am trying to use the RyeVote recipe with the Triad skin. It works when 
  the vote form is shown in the main section of the page, but not in a 
RightBar.

See  http://www.dodcott-cum-wilkesley.co.uk/wiki/Test/FrontPage which 
doesn't record a vote.

However, http://www.dodcott-cum-wilkesley.co.uk/wiki/Test/RightBar works 
fine if you use the form displayed in the main content section.

Any ideas why it won't work in a RightBar?

Ian.

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


Re: [pmwiki-users] Speed tips?

2007-02-16 Thread Ian Barton
Out of interest how slow is slow? My journal has about that number of 
pages and is based on Blogsimple2, which uses page lists entensively. 
The longest anything takes to display is about 10 seconds. Most stuff 
displays in less than 5 seconds.

One thing that puzzles me slightly is that the time take to display a 
list of titles in my Category Archives (pagelist driven) varies a lot. 
However, once I have viewed a category once it displays much faster a 
second time.

My category page uses a pagelist like:

(:pagelist order=-ctime Category.Fishing fmt=#category:)

Does the pagelist function use the .pageindex file for page lists? If so 
is there a way of forcing .pageindex to be updated eg by a cron job.

Ian.
> I have a personal wiki with about 2000 pages in it (golly, I didn't
> realize there were *that* many) and some pages are very slow to load.
> Yes, I am using pagelists quite heavily:

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


Re: [pmwiki-users] Trouble with web host

2007-02-12 Thread Ian Barton
> Ruthtrumpold.id.au
> Www.ruthtrumpold.id.au
> 
Very slow - no graphics displayed.

> Ruthtrumpold.id.au/itgswiki/pmwimi.php
> Www.Ruthtrumpold.id.au/itgswiki/pmwimi.php
> 
404 not found

> Www.Ruthtrumpold.id.au/accesshealth/pmwimi.php
> Ruthtrumpold.id.au/accesshealth/pmwimi.php
> 
404 not found

Ian.


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


Re: [pmwiki-users] Turn Off Safe Mode

2007-02-07 Thread Ian Barton
It's possible that Plesk is enabling safe mode on a per virtual host 
basis. You might possibly be able to turn it off with an .htaccess 
directive.

I think that the magic directive is (you may need t check the apache docs):

php_value safe_mode "1"

Ian.

> It  sure looks like the web server is running as "apache" ; .flock
> .htaccess. .lastmod .pageindex
> are all owned by apache. httpd.conf show it running as apache
> (but there other httpd.includes  that cat together
> for conf httpd start up, it's complicated)
> 
> but if I  chown -R apache wiki.d  then PMwiki is not happy at all.
> the skin loads (from the core farm/pub)
> but it cannot load the home page for the field.. says "cannot acquire
> lockfile"...
> 
> Note: these are virtual domains set up by control panel PLESK. in this
> case PLESK
> is setting the virtual domain own for this site as "wikihinduorg"
> 
> it lives  here along side the core PMwiki installation
> 
> /var/www/vhosts/wiki.hindu.org/httpdocs/pmwiki/*stand installation files
> /var/www/vhosts/wiki.hindu.org/httpdocs/seva/wiki.d  (it is a field)
> 
> in pmwiki.php I looked for "mkdir" and see this
> 
>   $safemode = ini_get('safe_mode');
>if (!$safemode) $msg .= "Or, for a slightly more
>  secure installation, try executing chmod 2777
> $parent [snip-etc.]
> 
> I'm not getting that message... does this mean PHP is still running in
> safe mode
> and that perhaps in fact, despite my setting  it off in /etc/php.ini
> and restarting
> the server, that it is still on?
> 
> I'll escalate this up to the support team at the data center...though they
> may deem it a "pay for support, customization" request to sort it out.
> I'm over  my head here...
> 
> PMwiki.php itself is owned by wikihinduorg
> 

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


Re: [pmwiki-users] Turn Off Safe Mode

2007-02-06 Thread Ian Barton
Try changing the ownership of wiki.d to whoever the web server is 
running as. In my case this would be:

chmod -R www.data-www.data wiki.d

You may need to poke about in the Apache config file to find out what 
user the web server is running as.

Ian.

> OK, I'm stumped:
> 
> phpinfo.php shows that this to be the primary config file on the wiki
> domain:
> 
> /etc/php.ini
> 
> I edited that, set
> 
> safe_mode= Off
> 
> restarted httpd, but still pmwiki cannot run mkdir for new groups'
> folders in wiki.d
> 
> ?
> 

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


Re: [pmwiki-users] Problem opening pages with Emacs pmwiki-mode

2007-02-04 Thread Ian Barton
Bear in mind I am an emacs newbie:) If I open the HTTP POST buffer in 
one window and watch it whilst I try editing posting a wiki page in the 
pmwiki buffer, I see no output. I assume that the buffer should hold all 
the information that is POSTED to the web server.

Ian.

> I've started working on XEmacs compatibility.
> 
> Have you looked into the buffer *HTTP POST ... *?
> 
> On 2/4/07, Ian Barton <[EMAIL PROTECTED]> wrote:
>> I have updated pmwiki-mode.el. When I open a wiki page I get:
>>
>> Symbol's function definition is void: nil
>>
>> When I save a page I get no errors, but the page's content is not 
>> updated.


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


Re: [pmwiki-users] Problem opening pages with Emacs pmwiki-mode

2007-02-04 Thread Ian Barton
I have updated pmwiki-mode.el. When I open a wiki page I get:

Symbol's function definition is void: nil

When I save a page I get no errors, but the page's content is not updated.

Ian.

> Thanks. I'll try and find time to play with this this evening.
> 
> Ian.
> 
>> You can update pmwiki-mode.el to get more info in this buffer.
>>
>> Or add arguments "nil nil t" to the call `http-post' in definition of
>> `pmwiki-default-save-function'.
>

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


Re: [pmwiki-users] Problem opening pages with Emacs pmwiki-mode

2007-02-03 Thread Ian Barton
Thanks. I'll try and find time to play with this this evening.

Ian.

> You can update pmwiki-mode.el to get more info in this buffer.
> 
> Or add arguments "nil nil t" to the call `http-post' in definition of
> `pmwiki-default-save-function'.
> 
> On 2/2/07, Lukasz Stafiniak <[EMAIL PROTECTED]> wrote:
>> Look at the contents of the buffer named *HTTP POST http://...url 
>> here...*
>>


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


[pmwiki-users] Problem opening pages with Emacs pmwiki-mode

2007-02-01 Thread Ian Barton
I am trying out the pmwiki-mode Emacs recipe and have hit a problem 
opening pages. I am using the CVS version with pmwiki 2.20 beta 16.

When I try to open a page on http://www.pmwiki.org everything works 
correctly. However, if I try to open a page on any other site one of two 
things happens:

If I specify an address as 
http://www.ian-barton.com/wiki/Main.WikiSandbox I get an 
"pmwiki-uri-type Does not match a URI pattern error".

If I specify an address in the format 
http://www.ian-barton.com/wiki/Main/WikiSandbox I get a 301 Page Moved 
error from Apache.

In my .emacs I have:

(add-to-list 'load-path "~/emacs/pmwiki-mode")
(require 'pmwiki-mode)

Any ideas what the problem might be?

Ian.

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


Re: [pmwiki-users] How Many pages?

2007-01-31 Thread Ian Barton

> 
> A simple question, please...It´s very important for my project
> Anybody knows how many pages a PmWiki project supports?

I don't think there is any limit imposed by PmWiki itself. It all 
depends on your webserver performance and configuration. I have got one 
wiki with about 3,000 pages that has no performance problems.

Ian.


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


Re: [pmwiki-users] upload text files - Windows -> Unix

2007-01-31 Thread Ian Barton

> When uploading text files with FTP from a Windows system to a Unix 
> system, the line separators are converted properly (CR/LF -> LF).
> 
> When uploading the same files with the PmWIki "upload" feature, this 
> conversion does not appear to be made, and the files are uploaded as if 
> they were binary files.
> 
> Is there a way to change that ?
> 
I don't know about doing it from within PmWiki, but there are several 
utilities like dos2unix that convert Windows->Unix. Many text editors 
can be configured to save with Unix line endings.

Ian.


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


Re: [pmwiki-users] More errors

2007-01-29 Thread Ian Barton
> Warning: move_uploaded_file(): Unable to move '/var/tmp/phpkSyxOm' to
> 'img/Main/itgsemail.gif' in
> /home/ruthtru1/public_html/itgswiki/scripts/upload.php on line 201
> PmWiki can't process your request
> 
> ?cannot move uploaded file to img/Main/itgsemail.gif
> 
Check the file permissions on the img and img/Main folders. These should 
be writeable by the webserver. chmod the folder to 777 should fix it, 
but depending on exactly where your image files are stored it might pose 
a security risk as the folders would then be writeable by anybody.

Ian.


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


Re: [pmwiki-users] Error message`

2007-01-22 Thread Ian Barton

> i cannot find any .flock file in the wiki.d. Is the file hidden and if 
> so how to access it?
> 
Yes it's hidden if you are using a Unix/Linux server. If you are using 
ftp see if your ftp client has a "Show hidden files" option. If you have 
shell access typing ls -a should show all hidden files.

Ian.

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


Re: [pmwiki-users] Puzzled Newbie

2007-01-18 Thread Ian Barton
> I am new to php and am installing pmwiki on my website. (Version 
> pmwiki-2.2.0-beta21)
> 
> Despite (I think) having followed the installation guide to the letter, 
> I find myself in a situation where although I can access the Main/Home 
> page, everything is locked up; there is no sidebar; and the links don't 
> lead anywhere.
> 
> Also, I have tried altering a few simple things in local/config.php 
> (Just simple stuff like the page name), but nothing happens when I run 
> the home page.
> 
> I am sure this must be something simple but it has baffled me all day. 
> Please help.


Can you provide us with a bit more info about your system:

Webserver (Apache, IIS)
OS (Linux, Windows, etc)
Any info about PHP on your system

Ian.

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