#1 2002-12-08 16:02:20

darkcarnival
Member
2002-12-04
32

adding style to a link in the script

hi,

i want to know if its possible to add a graphic to the upload a picture link? if so what would i alter? i found where it is now is it possible or will it crash.thanks in advance.


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

#2 2002-12-08 16:19:55

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: adding style to a link in the script

Offline

 

#3 2002-12-08 16:26:02

darkcarnival
Member
2002-12-04
32

Re: adding style to a link in the script

um sorry no i dont understand french.could u translate it here.thanks.


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

#4 2002-12-08 16:31:02

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: adding style to a link in the script

in diapo.php (version 1.2) line 397, replace :

Code:

$output.= "<br /><a href="".add_session_id_to_url( "./upload.php?cat=".$page['cat']."&expand=".$page['expand'] )."">".$lang['upload_picture']."</a>";

by

Code:

$output.= "<br /><img src="./template/".$user['theme']."/upload.gif" alt="" /> <a href="".add_session_id_to_url( "./upload.php?cat=".$page['cat']."&expand=".$page['expand'] )."">".$lang['upload_picture']."</a>";

then you have to place in each template directory a picture named "upload.gif"

Offline

 

#5 2002-12-08 21:03:05

darkcarnival
Member
2002-12-04
32

Re: adding style to a link in the script

ok thanks now i altered it so the photo is the link, to the upload link and it shows the ulgy border line how do i remove it? i tried a couple of ways and it wont let me do it so do u know a way. thnkas.


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

#6 2002-12-09 00:02:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: adding style to a link in the script

sorry but I don't understand what you mean. Can you explain it to me more slowly ?

Offline

 

#7 2002-12-09 21:56:41

darkcarnival
Member
2002-12-04
32

Re: adding style to a link in the script

ok,

now u know where you have a button on a link and it shows the ulgy color surroundin the button.(its called a border)now how do i get rid of it.


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

#8 2002-12-09 23:23:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: adding style to a link in the script

oh..... I understand !!! in your img html tag, add :

Code:

style="border:none;"

Offline

 

#9 2002-12-10 01:01:37

darkcarnival
Member
2002-12-04
32

Re: adding style to a link in the script

ok now ill add it to it and ill be happy :)


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact