
Originally Posted by
Bruceper
Change it to
<label for="url">Url</label>
<span class="text"><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span>
This will use the name of the URL as the text displayed instead of the URL
I suppose Vitis doesn't want to modify all the URL links, but just to replace the URLs of the affiliated sites by a "normal" URL instead of it's affiliate ID.
So, only a developer could do that. If you have many affiliated links, you could create a second field (urla, with the same format as the existing url field) in the database, and use the same "process" as the meta tags in the header : if there is only one URL in the first field, you display this URL. If there are two URLs (one in the field url, and another in the field urla), you display the second one, and redirect the visitor to the first one. With a "if" and a "else", it could be easy for an expert 
In the templates, we find :
PHP Code:
<%if $header%>
<%$header%>
<%else%>
<%include file="header.html"
title=" $page_title"
meta_keywords="$meta_keywords"
meta_description="$meta_description"
%>
<%/if%>
But you have to "prepare" the apparition of <%$header%>, it's not magic but only developers can do that.
For example, we can read in lib/category.class.php the following lines :
PHP Code:
// method to get html header of category
// -------------------------------------
function GetHeader($cat) {
global $dbConn, $cat;
$header = $dbConn->Lookup("header", $this->table_name, "category_id = '$cat'");
if ($header) {
$tpl = new Template;
$tpl->assign('cat', $cat);
$header = $tpl->fetch('var:' . $header);
}
return $header;
}
You could be inspired by these lines to create a function making the substitution of <%$url%> by <%$urla%>.
Anybody knows how to make such a trick ?