How to replace words "First, last, next..." with images it the links navigation? - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 06-13-2006   #1
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default How to replace words "First, last, next..." with images it the links navigation?

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:



What code shoud I use to replace:
Code:
	$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???
WTM is offline   Reply With Quote
Old 06-13-2006   #2
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Hello WTM,

Please try to make so:

Code:
$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
Sergey Ten is offline   Reply With Quote
Old 06-13-2006   #3
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

Didn't work...

Other thoughts???

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

Last edited by WTM; 06-13-2006 at 07:01 PM.
WTM is offline   Reply With Quote
Old 06-13-2006   #4
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

WTM,

Please email your FTP credentials.

sten@esyndicat.com
Sergey Ten is offline   Reply With Quote
Old 06-13-2006   #5
Sergey Ten
eSyndiCat Lead Developer
 
Sergey Ten's Avatar
 
Join Date: Apr 2006
Location: Kyrgyzstan, Bishkek
Posts: 6,596
Sergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the roughSergey Ten is a jewel in the rough
Default

Ok WTM,

I found the solve.

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

Code:
global $gDirLang;
*** Add this code ***

Code:
global $gDirConfig;
*** Save change ***
Sergey Ten is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:32 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us