Webmastersite.net
Register Log In

Custom Template prepends all HREFs

Title Custom Template prepends all HREFs
Message Text I have installed a custom PHP script within a custom template (movies.tpl). I have set up the "Custom Template Anywhere" hack so that the new page (movies.php) will have the uniform look & function of the WSN header and footer. The problem is that this custom script echoes code back into movies.php, and WSN Links is prepending all the anchor HREFs with {DIRURL}. Here's the source of movies.php: <?php $pathtowsn = '/data/10/0/130/155/945155/user/973349/htdocs/home/directory/' $yourtemplatename = 'movies.tpl' $usewrapper = 'yes' $curr_path = getcwd(); chdir($pathtowsn); require 'start.php' if (!$template) $template = new template('custom/'. $yourtemplatename); require 'end.php' chdir($curr_path); ?> I tried setting the path variables above to absolute URLs and that did not work. I have taken the PHP from movies.tpl and executed it in its own file apart from this code above and the anchors come out fine. So it is definitely something in the hack or my setup that is affecting the HREFs. Here's the page in question: http://www.gowesleychapel.com/directory/movies.ph...
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership joshberm
Views 365 views. Averaging 0 views per day.
Similar Topics
Submission Date Sep 11, 2006 - 6:59 PM