4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: fah on July 21, 2008, 10:48:48 AM

Title: How to change buttons to text links?
Post by: fah on July 21, 2008, 10:48:48 AM
There are 4 buttons under image: Lightbox, eCard, Download and Download. How to change them to normal text links? I use 4images 1.7.6.
Title: Re: How to change buttons to text links?
Post by: KurtW on July 21, 2008, 04:41:29 PM
Hi,

you can find the codes from the buttons in:
includes/functions.php

codes after the function:
Code: [Select]
function show_image($image_row, $mode = "", $show_link = 1, $detailed_view = 0) {


Kurt
Title: Re: How to change buttons to text links?
Post by: hotvins on September 17, 2009, 06:32:42 PM
I also want links instead of buttons.

Apologies for bumping a year old thread.

But can someone elaborate what exactly is to be changed / replaced in functions.php file ?
Title: Re: How to change buttons to text links?
Post by: V@no on September 18, 2009, 04:22:02 AM
There are quiet a few changes required.

Search in includes/functions.php for:
Code: ("part of a PHP line") [Select]
_button =In each line you shall find a HTML code for images <img src=...> replace it with text.
Title: Re: How to change buttons to text links?
Post by: hotvins on September 18, 2009, 05:48:18 AM
Thanks a lot V@no.

I was successful in changing them to text but they are appearing in vertical order instead of horizontal order.

I want them just like in one line as buttons were earlier.

I am attaching my includes/functions.php and details.html files and below is the link to my trial site's trial image display page.

http://gallery.5gigs.net/details.php?image_id=29

Title: Re: How to change buttons to text links?
Post by: V@no on September 18, 2009, 07:21:38 AM
It's because you are using <p></p> which is "paragraph" use <span></span> instead (or don't use any of this)
Title: Re: How to change buttons to text links?
Post by: hotvins on September 18, 2009, 08:58:06 AM
It's because you are using <p></p> which is "paragraph" use <span></span> instead (or don't use any of this)

Thanks a lot !! You Rock as ever !!  8)

Its working perfectly now.

Cheers !!

How do I mark this as solved ?