Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 18, 2013, 04:06:55 pm

Login with username, password and session length
Members
Total Members: 10756
Latest: paul25
Stats
Total Posts: 32348
Total Topics: 5473
Online Today: 56
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 36
Total: 36
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Change BIN and Bid to buttons?  (Read 472 times)
BSD2000
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« on: June 13, 2012, 06:07:15 pm »

What would I need to change to change the words 'Buy It Now' and 'Bid' to buttons or icons - instead of displaying the words, display a .png or .gif icon?

I would also like to change the font size (maybe the color too) of the bid price, shipping price and buy in now price - is this possible?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #1 on: June 13, 2012, 06:18:28 pm »

Code:
What would I need to change to change the words 'Buy It Now' and 'Bid' to buttons or icons - instead of displaying the words, display a .png or .gif icon?
That would require a couple edits to the template.php You would need to provide the graphics for those buttons


Code:
I would also like to change the font size (maybe the color too) of the bid price, shipping price and buy in now price - is this possible?
An easy way to do that would be look for the text in
themes/default/languages/Classifieds.english.php

Then just find the text entry for example
$txt['class_example'] = 'my text here'';
And change it to
$txt['class_example'] = '<font color="#FF0000">my text here</font>'';

That would change it to red in the above example and you can use any html tags in the language strings file.

After you make a change to the language strings in SMF 2.0 you have to go to file maintenance clear cache
Logged
BSD2000
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« Reply #2 on: June 13, 2012, 06:36:12 pm »

Code:
What would I need to change to change the words 'Buy It Now' and 'Bid' to buttons or icons - instead of displaying the words, display a .png or .gif icon?
That would require a couple edits to the template.php You would need to provide the graphics for those buttons

Which lines would I have to change if I am using the graphics bid.gif and buynow.gif?

Code:
I would also like to change the font size (maybe the color too) of the bid price, shipping price and buy in now price - is this possible?
An easy way to do that would be look for the text in
themes/default/languages/Classifieds.english.php

Then just find the text entry for example
$txt['class_example'] = 'my text here'';
And change it to
$txt['class_example'] = '<font color="#FF0000">my text here</font>'';

That would change it to red in the above example and you can use any html tags in the language strings file.

After you make a change to the language strings in SMF 2.0 you have to go to file maintenance clear cache


That was easy enough.  Cool

Thanks for the help!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #3 on: June 13, 2012, 06:41:55 pm »

Around lines 1689 to 1736

Find code like two spots
Code:
<input type="button"
Change to
Code:
<input type="image" src="http://www.yoursite.com/image.png" 
Logged
BSD2000
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« Reply #4 on: June 13, 2012, 10:29:03 pm »

That was just what I was looking for!  Grin

Thanks again!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]

[May 07, 2013, 02:37:14 pm]

[May 06, 2013, 10:29:56 pm]

[May 04, 2013, 03:22:01 pm]

[May 04, 2013, 01:08:57 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.179 seconds with 21 queries.