[pmwiki-users] custom markup for personalized <script> tag

Sergio Andreozzi sergio.andreozzi at cnaf.infn.it
Sun Apr 17 09:33:43 CDT 2005


I submit to the list the final solution after some refinement thanks to 
Patrick:

in config.php

Markup('ebay:', '<links', 
"/\\bebay:([^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars])/e",
"Keep('<script 
src=\"http://syndicate.ebay.com/ebayshop/ebayshop.dll?$1\"></script>')");


in the wiki page:

ebay:GetSellerList&uid=MYEBAYID&fontsize=2&numofitems=50&highlight=1&fontface=verdana&sortby=endtime&sortdir=asc&siteid=101&catid=0

result in the html generated page:

<script 
src="http://syndicate.ebay.com/ebayshop/ebayshop.dll?GetSellerList&amp;uid=MYEBAYID&amp;fontsize=2&amp;numofitems=50&amp;highlight=1&amp;fontface=verdana&amp;sortby=endtime&amp;sortdir=asc&amp;siteid=101&amp;catid=0"></script>

This let you embed in a wiki page the eBay ads from a certain user. 
Check this for more info:

http://cgi3.ebay.it/aw-cgi/eBayISAPI.dll?snippetcreatorlogin

Cheers,
	Sergio



More information about the pmwiki-users mailing list