For Example Where you have:
Code:
$sortbyviewslink="<a href=\"search.php?query=".urlencode($query)."&getdaily=$getdaily&forumchoice=$forumchoice&searchin=$searchin&searchdateline=$searchdateline&searchdate=$searchdate&booleanand=$booleanand&getdaily=$getdaily&searchuser=".urlencode($searchuser)."&exactname=$exactname&action=simplesearch&sortbyviews=yes&sortbyforum=no&pagenum=$pagenum"."\">Total Views</a>";
$sortbydatelink="<a href=\"search.php?query=".urlencode($query)."&getdaily=$getdaily&forumchoice=$forumchoice&searchin=$searchin&searchdateline=$searchdateline&searchdate=$searchdate&booleanand=$booleanand&getdaily=$getdaily&searchuser=".urlencode($searchuser)."&exactname=$exactname&action=simplesearch&sortbyviews=no&sortbyforum=no&pagenum=$pagenum"."\">Newest Message<br>in Thread</a>";
$sortbyforumlink="<a href=\"search.php?query=".urlencode($query)."&getdaily=$getdaily&forumchoice=$forumchoice&searchin=$searchin&searchdateline=$searchdateline&searchdate=$searchdate&booleanand=$booleanand&getdaily=$getdaily&searchuser=".urlencode($searchuser)."&exactname=$exactname&action=simplesearch&sortbyviews=no&sortbyforum=yes&pagenum=$pagenum"."\">Forum (Message Board)</a>";
You need to put:
Code:
eval("\$sortbydatelink.= \"".gettemplate("sortbydatelink")."\";");
eval("\$sortbyviewslink.= \"".gettemplate("sortbyviewslink")."\";");
eval("\$sortbyforumlink.= \"".gettemplate("sortbyforumlink")."\";");
These templates will have access to all variables in the code before they are called so you would put this in the "sortbyviewslink" template
Code:
<a href=\"search.php?query=".urlencode($query)."&getdaily=$getdaily&forumchoice=$forumchoice&searchin=$searchin&searchdateline=$searchdateline&searchdate=$searchdate&booleanand=$booleanand&getdaily=$getdaily&searchuser=".urlencode($searchuser)."&exactname=$exactname&action=simplesearch&sortbyviews=yes&sortbyforum=no&pagenum=$pagenum"."\">Total Views</a>
Follow this example for the other templates
[Edited by rangersfan on 07-26-2000 at 12:58 AM]