View Full Version : Swapping text for images
Ewan
2nd of July 2004 (Fri), 08:26
Pekka,
I remember you mentioned somewhere in a thread that any of the text elements in the list.php and photo.php pages could be replaced with images. How is this done?
I was thinking in particular of the 'previous' and 'next' links on the photo page which I'd like to replace with buttons.
Thanks.
Ewan
8th of July 2004 (Thu), 10:02
I've worked out how to put the pictures in but how do I remove the space between the images? I want the previous/next buttons to be joined.
To see how it is now, click here: http://www.oaktreephoto.co.uk/gallery/photo.php?photo=267
Ewan
15th of July 2004 (Thu), 09:28
just bumpin' it up :)
wkitty42
22nd of July 2004 (Thu), 12:36
I've worked out how to put the pictures in but how do I remove the space between the images? I want the previous/next buttons to be joined.
according to the html source on that page, there's four no-breaking spaces between the buttons... seems that you could remove them??
Ewan
23rd of July 2004 (Fri), 01:55
Thanks, but where are these in photo.php?
wkitty42
31st of July 2004 (Sat), 15:24
Thanks, but where are these in photo.php?
they are not... they are (apparently) in pagetemplates/photo :shock:
it took me quite a while to find them... probably because i wasn't truely following the code but i did find them 8)
mind sharing what you did to get the images in there? one would hope that there's an easier way other than hacking the code... otherwise, upgrades are going to be a royal PITA :?
Pekka
1st of August 2004 (Sun), 05:36
The code for using images instead of ANY translated text (with style/language-specific images) is nearly finished - I'm now shooting Lieksa Brass festival and will continue working on release version after thursday.
The system is already there in RC4, but it does not handle styles/languages.
Ewan
11th of August 2004 (Wed), 03:38
thanks for the replies.
I've deleted those spaces - looks a lot better now!
To put the images in I edited ../languages/eng/photo.php and replaced the text with a link to the image, eg:
$translated["next"]["image"] = "http://www.oaktreephoto.co.uk/images/buttons/next.jpg";
You also need to add the ["image"] bit as shown in the example.
wkitty42
12th of August 2004 (Thu), 09:02
I've deleted those spaces - looks a lot better now!
excellent!
To put the images in I edited ../languages/eng/photo.php and replaced the text with a link to the image, eg:
$translated["next"]["image"] = "http://www.oaktreephoto.co.uk/images/buttons/next.jpg";
You also need to add the ["image"] bit as shown in the example.
ahhhh... is the "http://your.site" portion absolutely needed? seems that that adds "bloat" (granted, not much) to the code and would only be needed if the desired images are on another server...
neil_r
12th of August 2004 (Thu), 10:07
I've deleted those spaces - looks a lot better now!
where exactly do you you delete the spaces.
cheers
N
Ewan
12th of August 2004 (Thu), 10:21
In pagetemplates/photo/default.php. I commented out line 75 as shown:
print $prevlink_html;
//print "    ";
print $nextlink_html;
neil_r
12th of August 2004 (Thu), 11:13
Many thanks
N
vBulletin® v3.6.12, Copyright ©2000-2010, Jelsoft Enterprises Ltd.