From: John K. <jo...@ke...> - 2002-02-12 21:00:45
|
On Sunday, I wrote: >I've been trying to get an image to be a link, ie the equivalent of > ><a href="large_image.jpg"><img src="small_image.jpg">View full size</a> > >Can this be done with wiki formatting? There followed an eerie silence broken only by the sounds of the forest and the distant howl of a Great Dane (we have no wolves in England, alas). Would that be a 'no' then? John -- --------------------------------------------------------- email: jo...@ke... phone: 07944 755613 web: www.kershaw.org AOL: johnkershaw --------------------------------------------------------- |
From: Adam S. <ad...@pe...> - 2002-02-13 01:45:27
|
> There followed an eerie silence broken only by the sounds of the forest > and the distant howl of a Great Dane (we have no wolves in England, > alas). > > Would that be a 'no' then? 'fraid so (at least as far as i know). it wouldn't be hard to add but it's not something that wiki's have historically supported so there would need to be new syntax invented for it ... and we're getting pretty overloaded already. it could be done with a fairly simple plugin i imagine or maybe something like this: [ image | url ] which is really just a minor extension of the setup we already have for arbitrary links, however you'd have to do a rule which said something like if tag matchs "^(ftp|http://).*\.(gif|jpg|jpeg|png)$" then it's an image link. other wise it's just a normal anchor. would that work? adam. |
From: John K. <jo...@ke...> - 2002-02-13 01:58:36
|
>or maybe something >like this: > >[ image | url ] > >which is really just a minor extension of the setup we already have for >arbitrary links, however you'd have to do a rule which said something like >if tag matchs "^(ftp|http://).*\.(gif|jpg|jpeg|png)$" then it's an image >link. other wise it's just a normal anchor. That looks probable - where would I stick it? Somewhere in transform.php? John. -- --------------------------------------------------------- email: jo...@ke... phone: 07944 755613 web: www.kershaw.org AOL: johnkershaw --------------------------------------------------------- |
From: Jeff D. <da...@da...> - 2002-02-13 17:33:40
|
John Kershaw said: >> however you'd have to do a rule which said something >>like if tag matchs "^(ftp|http://).*\.(gif|jpg|jpeg|png)$" then it's an >>image link. other wise it's just a normal anchor. > > That looks probable - where would I stick it? Somewhere in > transform.php? In LinkBracketLink(), I think (lib/stdlib.php). Since, it seems this feature is really only useful for admin(s), and that a finite set of images will be used for the image links, maybe the best way to go is to use the new image-button features in Theme.php. Eg: something like [ button:Top | HomePage ] Then, if you have a Top.png in the current themes buttons directory, that will be used. (If Top.png can't be found, then link will contain the text "Top", but CSS will be used to make it look like a button, if possible.) (This is how the action buttons (PageHistory, EditPage, etc... are currently produced.) (See Theme::makeButton().) |
From: John K. <jo...@ke...> - 2002-02-13 19:39:14
|
>Since, it seems this feature is really only useful for admin(s), >and that a finite set of images will be used for the image links, >maybe the best way to go is to use the new image-button >features in Theme.php. I was more thinking of linking from a small thumbnail image to a full picture. I've set up a wiki for a local school with photo uploading, as two of the teachers are on a trip to Australia and wanted to update the site daily from their digital camera without hassle. They put a link under the photo saying 'view this photo full size' or some such, but visitors are tuned to clicking *on* photos... John. -- --------------------------------------------------------- email: jo...@ke... phone: 07944 755613 web: www.kershaw.org AOL: johnkershaw --------------------------------------------------------- |
From: Reini U. <ru...@x-...> - 2002-02-13 22:31:29
|
John Kershaw schrieb: > I was more thinking of linking from a small thumbnail image to a full > picture. I've set up a wiki for a local school with photo uploading, > as two of the teachers are on a trip to Australia and wanted to > update the site daily from their digital camera without hassle. > > They put a link under the photo saying 'view this photo full size' or > some such, but visitors are tuned to clicking *on* photos... I would recommend php-gallery then, where everybody can add comments below the thumbs or full-sizes images, and where you have a good control over user/groups permissions. esp. uploading and browsing through from digital cam fotos is much easier. I have tons of them in my galleries. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://tv.mur.at/ (kulturelles) |
From: Reini U. <ru...@x-...> - 2002-02-13 12:49:40
|
Adam Shand schrieb: > > There followed an eerie silence broken only by the sounds of the forest > > and the distant howl of a Great Dane (we have no wolves in England, > > alas). > > > > Would that be a 'no' then? > > 'fraid so (at least as far as i know). it wouldn't be hard to add but > it's not something that wiki's have historically supported so there would > need to be new syntax invented for it ... and we're getting pretty > overloaded already. I supported that in my hacked 1.2 acadwiki version. but now i converted to 1.3 and have not enough time to redive into the new tranformer. [ image | link ] as in [ images/prev.gif | PreviousPage ] [ images/next.gif | NextPage ] I didn't support external img sources, to prevent from bad links. not! [ http://some.server.com/images/prev.cgi | PreviousPage ] > it could be done with a fairly simple plugin i imagine or maybe something > like this: > > [ image | url ] > > which is really just a minor extension of the setup we already have for > arbitrary links, however you'd have to do a rule which said something like > if tag matchs "^(ftp|http://).*\.(gif|jpg|jpeg|png)$" then it's an image > link. other wise it's just a normal anchor. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://tv.mur.at/ (kulturelles) |