Re: [pmwiki-users] Inserting files from the local file system

2007-04-07 Thread Stirling Westrup
Petko Yotov wrote:
> On Sunday 08 April 2007 04:47, Steven Benmosh wrote:
>> Two questions/problems I am running into:
>>
>> 1. I have pmwiki set up in my web server root. I have a directory called
>> "images", with image files in it, including one called "SantaBarbara.jpg".
>>
>> I would like to attach the image to a wiki page. I can do it by linking to
>> the actual url of the file, in the form
>> http://my.web.site/images/SantaBarbara.jpg. I am wondering if there is a
>> simpler way to connect to a local file, maybe with a relative link, without
>> having to type the whole url and create a static link (that would not
>> change if I move the wiki to another site)?
> 
> Yes, you can use a "Path:" link to point to files on the server, but that are 
> not on the wiki uploads directory structure:
> 
>Path:/images/SantaBarbara.jpg
> 
> If the link ends with .jpg, .gif or .png, it will be considered as an inline 
> image. To add a tooltip title, use 
>Path:/images/SantaBarbara.jpg"View from Santa Barbara"
> 
> To only link to the file, use
>[[Path:/images/SantaBarbara.jpg|this is a link]]
> 
> This way you can also link to other files on the same website, like old HTML 
> pages. See also:
>http://pmwiki.org/wiki/PmWiki/InterMap
> 

Like Petko said, Intermaps are the way to go. You can also define a custom
intermap entry so that you would just use

  Image:SantaBarbara.jpg

If you ever move the wiki, all you would have to redefine is the intermap
definition for Image.

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


Re: [pmwiki-users] Inserting files from the local file system

2007-04-07 Thread Petko Yotov
On Sunday 08 April 2007 04:47, Steven Benmosh wrote:
> Two questions/problems I am running into:
>
> 1. I have pmwiki set up in my web server root. I have a directory called
> "images", with image files in it, including one called "SantaBarbara.jpg".
>
> I would like to attach the image to a wiki page. I can do it by linking to
> the actual url of the file, in the form
> http://my.web.site/images/SantaBarbara.jpg. I am wondering if there is a
> simpler way to connect to a local file, maybe with a relative link, without
> having to type the whole url and create a static link (that would not
> change if I move the wiki to another site)?

Yes, you can use a "Path:" link to point to files on the server, but that are 
not on the wiki uploads directory structure:

   Path:/images/SantaBarbara.jpg

If the link ends with .jpg, .gif or .png, it will be considered as an inline 
image. To add a tooltip title, use 
   Path:/images/SantaBarbara.jpg"View from Santa Barbara"

To only link to the file, use
   [[Path:/images/SantaBarbara.jpg|this is a link]]

This way you can also link to other files on the same website, like old HTML 
pages. See also:
   http://pmwiki.org/wiki/PmWiki/InterMap




>
> 2. For some reason the Attach markup does not work for me - maybe because I
> did not allow attachment by authors, which is intentional. I tried the
> following, and each gives me a text result, not the image file:
>
> Attach:"/images/SantaBarbara.jpg"
> Attach:"images/SantaBarbara.jpg"
> "Attach:images/SantaBarbara.jpg"
> "Attach:/images/SantaBarbara.jpg"

Use Path: markup like above. Attach: works only for files "attached" to a page 
like this:
   Attach:SantaBarbara.jpg  #attached to the current page
   Attach:OtherPage/SantaBarbara.jpg#attached to OtherPage
   Attach:OtherGroup./SantaBarbara.jpg  #attached to OtherGroup, note the "."
   Attach:OtherGroup.Page/SantaBarbara.jpg #attached to Page in OtherGroup

>
> Is there a way to allow attachments without allowing uploads? I want access
> to the uploads to be through ftp or scp, not via pmwiki.

Yes. there is. You can enable uploads but set an invalid password like this:
   $EnableUploads = 1;
   $DefaultPasswords['upload'] = '*';

This way the uploads functions are loaded, but because of an invalid/blocked 
uploads password, noone can upload files. (The password in not "*", it is 
just blocked.)

However, being able to quickly attach a file through HTTP is a really really 
usefull feature, so you may consider alowing uploads at least to yourself. To 
do this, set a real uploads password like this:
   $EnableUploads = 1;
   $DefaultPasswords['upload'] = crypt('mysecretpassword');

Or, you can tell PmWiki to allow uploads only to the administrator:
   $EnableUploads = 1;
   $DefaultPasswords['admin'] = crypt('mysecretpassword'); # admin pw
   $HandleAuth['upload'] = 'admin'; # use admin pw for uploads

Enjoy,
Petko





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


[pmwiki-users] Inserting files from the local file system

2007-04-07 Thread Steven Benmosh

Two questions/problems I am running into:

1. I have pmwiki set up in my web server root. I have a directory called
"images", with image files in it, including one called "SantaBarbara.jpg".

I would like to attach the image to a wiki page. I can do it by linking to
the actual url of the file, in the form
http://my.web.site/images/SantaBarbara.jpg. I am wondering if there is a
simpler way to connect to a local file, maybe with a relative link, without
having to type the whole url and create a static link (that would not change
if I move the wiki to another site)?

2. For some reason the Attach markup does not work for me - maybe because I
did not allow attachment by authors, which is intentional. I tried the
following, and each gives me a text result, not the image file:

Attach:"/images/SantaBarbara.jpg"
Attach:"images/SantaBarbara.jpg"
"Attach:images/SantaBarbara.jpg"
"Attach:/images/SantaBarbara.jpg"

Is there a way to allow attachments without allowing uploads? I want access
to the uploads to be through ftp or scp, not via pmwiki.

Thanks for your help.

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


Re: [pmwiki-users] installation woes: links from homepage add "cgi-system/php.cgi?n="

2007-04-07 Thread H. Fox
On 4/7/07, Rick Lavin <[EMAIL PROTECTED]> wrote:
> Thanks for the quick reply, Hagan,
>
> Now I get the following error message:
>
> "Warning: Cannot modify header information - headers already sent by (output
> started at /home/.jong..."

>From http://www.pmwiki.org/wiki/PmWiki/Troubleshooting

   If this is the first or only error message you're seeing, it's usually
   an indication that there are blank lines or spaces before the  in a local customization file. Double-check the file and
   make sure there aren't any blank lines or spaces before the initial  altogether.

Hagan

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


Re: [pmwiki-users] installation woes: links from homepage add "cgi-system/php.cgi?n="

2007-04-07 Thread Rick Lavin

Thanks for the quick reply, Hagan,

Now I get the following error message:

"Warning: Cannot modify header information - headers already sent by  
(output started at /home/.jong..."


I suspect my problem is failing to understand the directory structure  
at DreamHost, where I host 4 domains on one account. At my previous  
hosting service (opensourcehost), I was able to see a unified view of  
all the directories in my account, whereas until I saw the error  
message I had no idea that such a path as the one above even existed.  
I think perhaps I'd better do some more research at DreamHost before  
going any further.


Thanks again,
Rick

On Apr 7, 2007, at 6:14 pm, H. Fox wrote:


On 4/7/07, Rick Lavin <[EMAIL PROTECTED]> wrote:

Hello,

I've just installed PmWiki (http://www.winkhome.org/pmwiki/
pmwiki.php), and manually created a wiki.d directory with permissions
777. The homepage comes up OK, with no error messages, but the path
to the Edit button and all internal links is incorrect, featuring a
directory that doesn't exist.


Rick,

Try setting $ScriptUrl and $PubDirUrl explicitly in local/config.php.

 ##  $ScriptUrl is your preferred URL for accessing wiki pages
 ##  $PubDirUrl is the URL for the pub directory.
 $ScriptUrl = 'http://www.winkhome.org/pmwiki';
 $PubDirUrl = 'http://www.winkhome.org/pmwiki/pub';

Hagan


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


Re: [pmwiki-users] installation woes: links from homepage add "cgi-system/php.cgi?n="

2007-04-07 Thread H. Fox
On 4/7/07, Rick Lavin <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've just installed PmWiki (http://www.winkhome.org/pmwiki/
> pmwiki.php), and manually created a wiki.d directory with permissions
> 777. The homepage comes up OK, with no error messages, but the path
> to the Edit button and all internal links is incorrect, featuring a
> directory that doesn't exist.

Rick,

Try setting $ScriptUrl and $PubDirUrl explicitly in local/config.php.

  ##  $ScriptUrl is your preferred URL for accessing wiki pages
  ##  $PubDirUrl is the URL for the pub directory.
  $ScriptUrl = 'http://www.winkhome.org/pmwiki';
  $PubDirUrl = 'http://www.winkhome.org/pmwiki/pub';

Hagan

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


[pmwiki-users] installation woes: links from homepage add "cgi-system/php.cgi?n="

2007-04-07 Thread Rick Lavin
Hello,

I've just installed PmWiki (http://www.winkhome.org/pmwiki/ 
pmwiki.php), and manually created a wiki.d directory with permissions  
777. The homepage comes up OK, with no error messages, but the path  
to the Edit button and all internal links is incorrect, featuring a  
directory that doesn't exist.

I remember in the past when installing PmWiki that, when there were  
permissions problems, PmWiki would give error messages explaining how  
to reset the permissions. This is the first time that I've  
experienced no error messages but an erroneous path. (It's also the  
first time for me to install PmWiki on Dreamhost.) Any ideas where I  
might have gone wrong?

Thanks,
Rick

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


Re: [pmwiki-users] WikiTrails and pagelists

2007-04-07 Thread Christophe David


> I am not sure whether page wikitrail can read dynamically created
ordered list. I would define template this way:



This does exactly what I wanted in a much more elegant way than I had
imagined.

Thanks a lot.

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