PDA

View Full Version : How to replace words "First, last, next..." with images it the links navigation?


WTM
06-13-2006, 06:16 PM
I want to use images instead of words in the link navigation.
I found the code in util.php file but having problem to point it to the right image.
This is what I want menu to look like:

http://webtemplatemax.com/images/navigation.gif

What code shoud I use to replace: $out .= '<strong>';
$out .= "<a href=\"{$url1}\">« {$gDirLang['previous']}</a> : ";
$out .= "<a href=\"{$url2}\">{$gDirLang['first']}</a> : ";
$out .= '</strong>';
with something like this:

$out .= "<a href=\"{$url2}\"><img src=\"{$img}first.gif\" alt="" /></a> : ";

How to make sure that part in red is pointing to the right image in the right template folder???

Sergey Ten
06-13-2006, 06:28 PM
Hello WTM,

Please try to make so:


$out .= "<a href=\"{$url2}\"><img src=\"templates/{$gDirConfig['tmpl']}/img/first.gif\" alt="" /></a> : ";


And you need upload images in the directory /templates/your_template/img

WTM
06-13-2006, 06:58 PM
Didn't work...

Other thoughts???

If I look on source code template folder name is missing:<a href="top-links2.html"><img src="templates//img/next.gif" alt="" /></a>

Sergey Ten
06-13-2006, 07:01 PM
WTM,

Please email your FTP credentials.

sten@esyndicat.com

Sergey Ten
06-13-2006, 07:30 PM
Ok WTM,

I found the solve.

*** Open your util.php and find function "navigation" ***
*** After this code ***


global $gDirLang;


*** Add this code ***


global $gDirConfig;


*** Save change ***