Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 196
Total: 196

Author Topic: Change BIN and Bid to buttons?  (Read 3744 times)

0 Members and 1 Guest are viewing this topic.

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
Change BIN and Bid to buttons?
« 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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Change BIN and Bid to buttons?
« Reply #1 on: June 13, 2012, 06:18:28 pm »
Code: [Select]
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: [Select]
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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
Re: Change BIN and Bid to buttons?
« Reply #2 on: June 13, 2012, 06:36:12 pm »
Code: [Select]
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: [Select]
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.  8)

Thanks for the help!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Change BIN and Bid to buttons?
« Reply #3 on: June 13, 2012, 06:41:55 pm »
Around lines 1689 to 1736

Find code like two spots
Code: [Select]
<input type="button"
Change to
Code: [Select]
<input type="image" src="http://www.yoursite.com/image.png" 
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
Re: Change BIN and Bid to buttons?
« Reply #4 on: June 13, 2012, 10:29:03 pm »
That was just what I was looking for!  ;D

Thanks again!

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5597 Views
Last post September 02, 2006, 02:32:42 am
by Little15
Buttons ???

Started by Danny Bugs

1 Replies
5475 Views
Last post April 25, 2007, 07:00:49 am
by SMFHacks
Buttons ??

Started by Danny Support

1 Replies
3380 Views
Last post April 25, 2007, 07:01:22 am
by SMFHacks
Buttons

Started by byron111 Support

2 Replies
3567 Views
Last post November 18, 2011, 02:40:49 am
by byron111
2 Replies
3436 Views
Last post February 10, 2014, 03:23:43 pm
by Cmely

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal