[pmwiki-users] Embed Sporcle

Steve Glover steve.glover at ed.ac.uk
Tue Mar 15 08:20:51 CDT 2011


On 15/03/11 11:31, Hans wrote:
> Tuesday, March 15, 2011, 11:11:14 AM, Mark Trumpold wrote:
>
>> Is there a way it could be site wide? From what I understand you
>> saying is that it is a page only directive
>
> just use the (:sporcle:) markup directive whereever
> you want to embed the game. The markup definition in config.php
> is for all pages (site wide).

If you are using different games on different pages the simple\\\\\\ 
easy approach would be to have

(:sporcle:)  (:sporcle1:) (:sporcle2:) etc....

or - I don't know how you'd do the actual coding, but you could perhaps have

(:sporcle)
gid: 38ae49c090c
pid: 0cbc0c029d4bc453d24975f38c84dc18
(:sporcleend:)

and pass the page variables back somehow?

Steve

-- 
Steve Glover: SDSS, EDINA, Causewayside House, 160 Causewayside EH9 1PR
e:steve.glover at ed.ac.uk t:0131 650 2908 f:0131 650 3308 m:07961 446 902

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the pmwiki-users mailing list