[Solved]: images links instead of text links possible? [Solved]: images links instead of text links possible?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: images links instead of text links possible?

Started by maime, April 10, 2004, 08:00:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maime

:) Hi, I wondered if there is a way to use images links instead of text links for :: My gallery :: Admin mode :: Upload picture  ect.

I tried to make sence of it in the php code but I did not figure this out yet :?
In which file do i need to look?

I did a seach under different keywords but I could not find any clue :(

thanks
maime

Casper

Yes it's possible.

if you look at the default theme, open the theme.php, and you will see the links are just standard html.  So you can change the links to images like this;
here is a standard link in default;
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>

Here it is linked to your_pic;
<a href="/themes/your_theme/images/your_image.gif" title="your_image_name">{ALB_LIST_LNK}</a>

Note you must put the images in the themes/yourtheme/images folder.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

maime

:D great i didnot thought is was that simple :o

thanks for your quick reply

maime

maime

Hi,  :D

I did the thing you suggested
QuoteBEGIN album_list -->
      <a href="/cgal/themes/default/images/menu/album_list.gif" title="album_list">{ALB_LIST_LNK}</a> <br>::
<!-- END album_list -->
but it does not show the image... in fact it says the same and you see the image if you click on
the ::Album list link

did i get it wrong somehow?

thanks Maime :roll:

maime

:D
hey that was silly of me I should had figure this out sooner

the code have to be something like this:
Quote<!-- BEGIN album_list -->
   <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"> <img src="images/menu/album_list.gif" width="71" height="22" border="0"> </a>
<!-- END album_list -->

and the images will go in your images folder
like f.i. gallery/images/somemap/album_list.gif

it is quite easy actually :P

Casper

:oops:   trust me to put it the wrong way around.  :oops:
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

maime

:D nah... never mind..
it got me the right hint to know what to do, it works now  and i am pleazed with it
thanks mate :D