[pmwiki-users] SVG cookbook: not displayed when Attach:file.svg is inside hyperlink

2016-03-19 Thread Jo Vermeulen
Hi,

I'm having some difficulties displaying SVG's inline, when they're also
linked. I have installed the SVG cookbook, and made the necessary changes
to config.php.

My markup used to look like this:

[[http://www.example.com/ | Attach:icon.png]]

I want to replace this by

[[http://www.example.com/ | Attach:icon.svg]]

The SVG displays fine if I don't include it in a link (i.e.,
Attach:icon.svg), but just displays the linked Attach:icon.svg text when
it's inside a link.

Any ideas?

Thanks!

Cheers,

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


Re: [pmwiki-users] IP Address

2016-03-19 Thread Petko Yotov

On 2016-03-19 19:19, DaveG wrote:

NB: Looks like devel list is down -- this is a cc to user list.


Thanks for your message.


Is there an existing function which would return the IP address of the
initial creator of a page? Perhaps some sort of pagelist function?


Sorry, there isn't.


It seems like this would be the lowest 'host:' in a pmwiki page file.
Is it safe to assume this would always be the last thing in the file,
or is that just due to my setup?


If the file format is ordered (version= line), probably. Otherwise you 
can check the timestamps and get the host:stamp with the 
lowest/smallest/earliest stamp.


Note that PmWiki drops the oldest page history: see the variables 
$DiffKeepDays and $DiffKeepNum. By default, it should drop history older 
than 3650 days (almost 10 years) but should keep at least 20 diffs, even 
if older than 10 years.


Also, the content can be refactored, moved, sliced, deleted and restored 
by new authors: then the page history may be lost. The pages shipped 
with the core installation only have the latest author's name and for 
most of them have their IP addresses discarded. What will show the page 
variable for such a page?


See also:
   http://www.pmwiki.org/wiki/PmWiki/AuthoringPhilosophy
   http://www.pmwiki.org/wiki/Cookbook/PageCreator
   http://www.pmwiki.org/wiki/Cookbook/MovePage (keeps the page history 
after renaming/moving a page)
   http://www.pmwiki.org/wiki/PmWiki/EditVariables#EnableDraftAtomicDiff 
(if enabled, draft history and authors' names/ips are discarded)


IIRC years ago there was a discussion on the mailing list about the 
original author's name but I don't seem to find it now. ("The initial 
author may not be the one who added the most content or improved most 
the page...")


Petko

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


[pmwiki-users] IP Address

2016-03-19 Thread DaveG

NB: Looks like devel list is down -- this is a cc to user list.


Is there an existing function which would return the IP address of the 
initial creator of a page? Perhaps some sort of pagelist function?


It seems like this would be the lowest 'host:' in a pmwiki page file. Is 
it safe to assume this would always be the last thing in the file, or is 
that just due to my setup?



 ~ ~ David

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


[pmwiki-users] Test if page is in a category

2016-03-19 Thread Simon
Is there a meaning of using conditional markup
 to determine if a
page is a member of a particular category or categories
?

tia

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


Re: [pmwiki-users] SVG cookbook: not displayed when Attach:file.svg is inside hyperlink

2016-03-19 Thread Petko Yotov
Gilles is right, the function that links embedded pictures needs to know 
that the link text is actually a picture. Something like this in 
config.php should do the trick:


  $ImgExtPattern="\\.(?:gif|jpg|jpeg|png|GIF|JPG|JPEG|PNG|SVGZ?|svgz?)";

(This will also work with compressed SVG files.)

Incidentally, if you enable this in config.php, you no longer need the 
recipe, you can remove cookbook/svg.php and the svg file will display 
fine with the  tag (core PmWiki) instead of the  tag 
(recipe).


I believe at some point more browsers supported SVGs with the  
tag. But today all current versions of the browsers, and older versions 
released as early as 5 years ago, can display SVG pictures with the 
 tag:


  http://caniuse.com/#feat=svg-img

I think about adding SVG(Z) as an embeddable image extension to the 
core. Anyone sees a reason not to?


Petko

---
Change log :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades


On 2016-03-16 17:56, Jo Vermeulen wrote:

Hi,

I'm having some difficulties displaying SVG's inline, when they're also
linked. I have installed the SVG cookbook, and made the necessary 
changes

to config.php.

My markup used to look like this:

[[http://www.example.com/ | Attach:icon.png]]

I want to replace this by

[[http://www.example.com/ | Attach:icon.svg]]

The SVG displays fine if I don't include it in a link (i.e.,
Attach:icon.svg), but just displays the linked Attach:icon.svg text 
when

it's inside a link.


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


Re: [pmwiki-users] SVG cookbook: not displayed when Attach:file.svg is inside hyperlink

2016-03-19 Thread Simon
ditto


http://kiwiwiki.nz

On 17 March 2016 at 11:31, John Rankin  wrote:

>
> On 17/03/16 10:25 AM, Petko Yotov wrote:
>
>>
>> I think about adding SVG(Z) as an embeddable image extension to the core.
>> Anyone sees a reason not to?
>>
> I support this proposal.
>
> JR
>
> --
> John Rankin
>
>
>
> ___
> 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] SVG cookbook: not displayed when Attach:file.svg is inside hyperlink

2016-03-19 Thread ABClf
I guess you have to add an image type in config :
http://www.pmwiki.org/wiki/Cookbook/AddImageType

Something like :
$ImgExtPattern = "\\.(?:gif|jpg|jpeg|png|svg|GIF|JPG|JPEG|PNG|SVG)";

Gilles.

2016-03-16 17:56 GMT+01:00 Jo Vermeulen :
> Hi,
>
> I'm having some difficulties displaying SVG's inline, when they're also
> linked. I have installed the SVG cookbook, and made the necessary changes to
> config.php.
>
> My markup used to look like this:
>
> [[http://www.example.com/ | Attach:icon.png]]
>
> I want to replace this by
>
> [[http://www.example.com/ | Attach:icon.svg]]
>
> The SVG displays fine if I don't include it in a link (i.e.,
> Attach:icon.svg), but just displays the linked Attach:icon.svg text when
> it's inside a link.
>
> Any ideas?
>
> Thanks!
>
> Cheers,
>
> -- Jo
>
> ___
> 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