Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 04:42
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
can't get DidiWiki to display local images - a solution
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Wed 22 Apr 2009, 21:55    Post subject:  can't get DidiWiki to display local images - a solution  

I tried various methods to display an image kept in the /root/spot/.didiwiki/ directory. The only images that display are remote ones.

I've ensured the didiwiki folder and all its contents are set to user and group "spot", and only the user has write access.

Here is a didiwiki example page I tested:

Links to images display an (external) image:

Code:
Remote images work fine
http://www.google.com/images/logo.gif
 http://www.google.com/images/logo.gif

But I tried to display a local image with no success...

[smile.gif]
 [smile.gif]

Another attempt...

http://localhost:8000/smile.gif
 http://localhost:8000/smile.gif

And yet another...

file:///root/spot/.didiwiki/smile.gif
 file:///root/spot/.didiwiki/smile.gif

or, after copying the smile.gif image to my "/" directory...

file:///smile.gif
 file:///smile.gif

Anybody have any ideas?

_________________
A life! Cool! Where can I download one of those from?

Last edited by miriam on Fri 24 Apr 2009, 06:37; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 23 Apr 2009, 00:14    Post subject:  

Check the image addresses on some of the preinstalled documentation.
_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Thu 23 Apr 2009, 00:43    Post subject:  

Only the help page has an image, and it is the remote google logo in my example above. It works on both the help page and my example, but I can't get any local images to work.

Thanks for the suggestion though.

_________________
A life! Cool! Where can I download one of those from?
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 23 Apr 2009, 01:29    Post subject:  

Inside the ~/haiawatha/blog folder there are some images. The .css file in there has links to the images. Maybe something there to explore further.
_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 23 Apr 2009, 02:49    Post subject:  

Else try http://Pmwiki.org
_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Thu 23 Apr 2009, 04:28    Post subject:  

aarf wrote:
Inside the ~/haiawatha/blog folder there are some images. The .css file in there has links to the images. Maybe something there to explore further.


You had me somewhat non-plussed there. I thought, Hiawatha? It's a webserver. There is a tiny webserver inside DidiWiki, but that is a different program. Then I read, after a while of searching, that the most recent Puppies come with Hiawatha web servers. I'll have to use Puppy 4 more and check that out, though it doesn't appear to be in Puppy 4.11 as far as I can see...

How do you get hiawatha running? What Puppy version are you using?

Thanks for the suggestion...

_________________
A life! Cool! Where can I download one of those from?
Back to top
View user's profile Send private message Visit poster's website 
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Thu 23 Apr 2009, 04:41    Post subject:  

aarf wrote:
Else try http://Pmwiki.org


This doesn't help with my current problem, but it does possibly solve another thing I'd been wondering about: php-based wiki software so I can run it on the hosting server where my website is. Cool! Very Happy Thank you.

As far as relating to the current problem of displaying local images pmwiki doesn't explain how to display them either. All its image examples deal with absolute addresses. At the bottom of the pmwiki page that discussing images there is a link to something about relative addressing, but as far as I can work out this is simply a different form of absolute addressing that lets you show things at the pmwiki home site (not your own wiki) using the pmwiki: prefix. Odd, confusing, but potentially useful.

Didiwiki has a different (and much simpler) markup language than pmwiki. In fact I found pmwiki's markup so complex that I found myself wondering why they don't simply use html -- it is easier to read.

I really am interested in getting DidiWiki displaying relative addressed images. I know it can be done because I saw it on one of my Puppies early this morning, but was unable to repeat it. Damn!

Again, thanks muchly for the suggestions, aarf.

_________________
A life! Cool! Where can I download one of those from?
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 23 Apr 2009, 07:27    Post subject:  

in puppy 4.1.1
Code:
#hiawatha
#
in a terminal will start hiawatah.
then in a browser http://localhost/blog/pup_pplog.pl will get you into the blog and password woofwoof will allow you to post images
Code:
[img]http://localhost/blog/header.png[/img]

in General

have previously used XAMPP for php on puppy. not used hiawatha before cant see that it does php.
pmwiki was use for ripples info data base
has how to post images info at the masterindex. and at Images not able to use the same code in didiwiki though.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Thu 23 Apr 2009, 14:02    Post subject:  

so if you start hiawath and put your images in /root/httpd/hiawatha/blog/header.png
then you can have images in didiwiki by just posting the url
http://localhost/blog/header.png
works for me. let me know how you go. or if it is not clear.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Thu 23 Apr 2009, 23:56    Post subject:  

Thanks aarf. Last night I checked through my various Puppies and found that version 4.1.1 has hiawatha pre-installed. It is used as the web server for PPLOG. Hiawatha doesn't actually have a menu entry, but starting "PPLOG personal blog" from the menu (under the "Personal" sub-menu) will first start hiawatha, then PPLOG. The menu item also gives the choice to stop hiawatha if it is already running.

I spent quite a while familiarising myself with PPLOG last night, and it is very nice, but I think I still prefer DidiWiki for the kind of notes I want to write... or I would, if only I could get the darned thing to display local images! I tried more experiments last night on a completely fresh installation and still couldn't get it to work. It has me quite puzzled. In the end PPLOG may win out over DidWiki just on the strength of that alone. And I can always hack the perl code for PPLOG to add the other functions I need (though my perl these days is a bit rusty).

Regardingn php: that was why your pmwiki suggestion interested me. It could solve another completely different problem... though I'm thinking perhaps not. I'm currently looking into Photo-Website posted by MU here last year. It looks quite a bit more promising. Edit: Oops! I said it was 25MB, but I read the numbers wrongly. It is only 25KB!!! Neat!
http://dotpups.de/puppy3/dotpups/Internet/
http://murga-linux.com/puppy/viewtopic.php?p=194798#194798

Thanks again for the suggestions. I appreciate it.
Still wishing I could put images in DidiWiki. It is sweet software... and so small!

_________________
A life! Cool! Where can I download one of those from?
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Fri 24 Apr 2009, 03:32    Post subject:  

miriam wrote:

Still wishing I could put images in DidiWiki. It is sweet software... and so small!

A solution is in my previous post above. Use hiawatha to serve the local images to DidiWiki.

click for bigger screen shot.


try again, if not i will give a step by step layout.
this link to the image also works:
Code:
http://127.0.0.1/blog/header.png

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send private message Visit poster's website 
miriam


Joined: 06 Dec 2006
Posts: 268
Location: Queensland, Australia

PostPosted: Fri 24 Apr 2009, 06:35    Post subject:  

Well I'll be.... It works.

I must admit I misunderstood what you'd said.
Well, this proves I can get absolute images into DidiWiki from the same machine. Yay! I wonder why I can't do relative images.
I might be able to edit hiawatha's configuration to change its default directory to DidiWiki's default directory. It still isn't relative addressing, but at least the images and pages could live together. And it is messy having 2 web servers (one in DidiWiki and one in Hiawatha)... but at least now I have a partial solution that lets me enter locally held images.

I know DidiWiki can display local images on its own -- I've seen it do so. I'll keep looking into it.

Thanks aarf, for your cool solution. Until I solve the image weirdness in DidiWiki I can use Hiawatha to serve them.

_________________
A life! Cool! Where can I download one of those from?
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0744s ][ Queries: 12 (0.0050s) ][ GZIP on ]