Wordpress + Flash = Different Hrefs
Posted: Fri Feb 04, 2011 4:15 pm
i know that learning regex it's a pain quite worthy, but, please, if some good folk can shortcut me to the solution it'd be very much appreciated...
i'm programming a site with wordpress backend and flash frontend: www.curtaminas.com.br
(google see backend, user see frontend)
so, when i'm reading the database i need to convert normal links into special flash links
if a link contains *.doc, *.zip, *.jpg then i need one output
else the output is different
Thankx,
rudolf
i'm programming a site with wordpress backend and flash frontend: www.curtaminas.com.br
(google see backend, user see frontend)
so, when i'm reading the database i need to convert normal links into special flash links
if a link contains *.doc, *.zip, *.jpg then i need one output
Code: Select all
<a href="http://www.site.com/uploads/document.doc">Download</a>
must be
<a href="download.php?file=http://www.site.com/uploads/document.doc">Download</a>Code: Select all
<a href="http://www.site.com/page/this-page">View</a>
must be
<a href="asfunction:openLightbox,http://www.site.com/page/this-page">View</a>Thankx,
rudolf