TinyPortal

Development => Resources => Modules => Topic started by: itweb on February 25, 2007, 03:34:37 AM

Title: Download Manager - upload button in place of text
Post by: itweb on February 25, 2007, 03:34:37 AM
"Upload" is barely visible in Amber theme. I made a button but can't find the code (and file, the closest i got was TPdlmanager.template.php) to be edited.

Any help?
Title: Re: Download Manager - upload button in place of text
Post by: IchBin on February 25, 2007, 04:09:06 AM
You should be able to change those properties in the CSS file under input, button.
Title: Re: Download Manager - upload button in place of text
Post by: itweb on February 25, 2007, 07:56:45 AM
Just to be clear, I am talking about this:

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi19.tinypic.com%2F48pqn8x.jpg&hash=a54ab2c099ca75f1219605041a86efbd703f3fa8)

I made upload button in same style as download. I managed to find where download button file reference is but can't figure out where "upload" text is and how to replace it with button.

How would You achieve that in CSS file?
Title: Re: Download Manager - upload button in place of text
Post by: G6Cad on February 25, 2007, 01:03:50 PM
Forum/Themes/Default/TPdlmanager.template.php is where the upload is defined.
You have to change the "upload" to fetch an image instead of the text.
Title: Re: Download Manager - upload button in place of text
Post by: bloc on February 25, 2007, 10:33:49 PM
Find this code bit in TPdlmanager.php:
'.$txt['tp-dlupload'].'
and replace with a <img> tag.

Actually..having a image there is rather nice, I think I will add that to the code.
Title: Re: Download Manager - upload button in place of text
Post by: itweb on February 26, 2007, 10:34:00 PM
Thanks guys.

It was Forum/Themes/Default/TPdlmanager.template.php as G6 said...

... and string: '.$txt['tp-dlupload'].' as Bloc said :D

BTW, there are more (if not all, IMHO) clickable texts that would look so much better as buttons.
Title: Re: Download Manager - upload button in place of text
Post by: bloc on February 27, 2007, 08:42:27 AM
It is..but then other langauges would have to come up with buttons in that language. "download" and "upload" are failry well-known though.
Title: Re: Download Manager - upload button in place of text
Post by: G6Cad on February 27, 2007, 08:44:36 AM
Personally i like the textlinks better then imagelinks  :)
Title: Re: Download Manager - upload button in place of text
Post by: bloc on February 27, 2007, 08:51:46 AM
Yes..not to mention that any theme can simply replace those with images too. ;)