coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: maime on April 10, 2004, 08:00:19 PM

Title: [Solved]: images links instead of text links possible?
Post by: maime on April 10, 2004, 08:00:19 PM
:) 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
Title: [Solved]: images links instead of text links possible?
Post by: Casper on April 10, 2004, 08:23:14 PM
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.
Title: [Solved]: images links instead of text links possible?
Post by: maime on April 10, 2004, 10:28:42 PM
:D great i didnot thought is was that simple :o

thanks for your quick reply

maime
Title: [Solved]: images links instead of text links possible?
Post by: maime on April 11, 2004, 12:07:39 AM
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:
Title: problemsolved
Post by: maime on April 11, 2004, 12:31:49 AM
: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
Title: [Solved]: images links instead of text links possible?
Post by: Casper on April 11, 2004, 10:58:24 AM
:oops:   trust me to put it the wrong way around.  :oops:
Title: [Solved]: images links instead of text links possible?
Post by: maime on April 11, 2004, 10:36:34 PM
: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