
Originally Posted by
urbanx
oh yeah, now i remember what i came to this thread for.
i've run into a small problem with the template. the problem is related to the fact that the template puts a ../ in front of all links in the html file to make them work. this works great UNLESS you have a mailto link.
the mailto link now reads
http://www.site.com/mailto:[email protected]
any ideas how to deal with this?
thanks,
d.
Disclaimer: I KNOW that it's not recommended to use "mailto" links.. As a practice I do not use them for my client's sites, and opt for a contact forum instead.. I already went through the CONS of this with my client and the Flash designer.. However, the Flash designer still wanted his site credit pointing to an e-mail address.. **sigh**
So that said here's how to fix the above issue:
Comment out the following lines in your "embed_config" file as follows:.
Code:
//JTS replace hrefs to point above catalog, but not the href for the style sheet! or http links!
//$sitetemplate=preg_replace('/href="/si', 'href="../', $sitetemplate);
//$sitetemplate=preg_replace('/href="..\/..\//si', 'href="../', $sitetemplate);
//$sitetemplate=preg_replace('/href="..\/http/si', 'href="http', $sitetemplate);
I probably didn't have to comment all three lines out, but since I didn't know which specific line in this code block governs the replacement of the "mailto" links, I commented them all out, and tested my site.. So far everything is still working..
Bookmarks