Author Topic: How to change buttons to text links?  (Read 9959 times)

0 Members and 1 Guest are viewing this topic.

Offline fah

  • Newbie
  • *
  • Posts: 20
    • View Profile
How to change buttons to text links?
« 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.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How to change buttons to text links?
« Reply #1 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

Offline hotvins

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: How to change buttons to text links?
« Reply #2 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 ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to change buttons to text links?
« Reply #3 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline hotvins

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: How to change buttons to text links?
« Reply #4 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


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to change buttons to text links?
« Reply #5 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)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline hotvins

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: How to change buttons to text links?
« Reply #6 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 ?