Former Member
inherit
guest@proboards.com
221930
0
Nov 29, 2024 10:06:45 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 3, 2015 23:32:42 GMT -8
Could I possibly receive some help with changing the default buttons?
Such as: New, Reply, Create Thread, Post Quick Reply, etc.
I tried a plug-in that allows me to change the text of the buttons, but it didn't work for all of them, and the text isn't the only thing I want to change. I'd like to have a custom button for each of them.
I'm hoping it can be done within the css and that they don't all use the same line, meaning changing one thing changes it for all of them.
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Oct 5, 2015 16:05:27 GMT -8
Some buttons are accessible as template variables, which might be an excellent starting point for affecting some changes. Usually you'd use the variable as-is, and place it where you want on the template, for example: $[reply_button] . But usually you have a href argument too which you can then pass to an anchor tag: <a class="reply-button CustomReplyButtom" href= $[reply_button.href]>Pretty much any text you want here!</a> And once you do that, you can do anything, such as put a background image in that anchor tag. ~In the template~ <a class="reply-button CustomReplyButtom" href=$[reply_button.href]></a> ~In the CSS~ .CustomReplyButton { background-image:url('example.png'); } Try that in a few places, and see if it's what you're after. If you want further tinkerings, I'll give you a hand tomorrow
|
|
Former Member
inherit
guest@proboards.com
221930
0
Nov 29, 2024 10:06:45 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 5, 2015 19:17:34 GMT -8
Holy crap that's amazing.
I'm gonna play around with that now. Thanks for the information!
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Oct 6, 2015 1:39:31 GMT -8
No worries! I used this on my forum to add a full reply button on the quick reply window, then styled both buttons to look the same. If you're adding images (or styling in any way at all really) you can add different styles for when the button is hovered over and when it's actually clicked. Like this for example: .CustomReplyButton:hover { background-image:url('hoverbutton.png'); } .CustomReplyButton:active { background-image:url('activebutton.png'); } Have lots of fun
|
|
Former Member
inherit
guest@proboards.com
221930
0
Nov 29, 2024 10:06:45 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 6, 2015 11:24:41 GMT -8
Ooo, I wanted the hover effect for some of them. You're one of my new favorite people.
|
|
inherit
224260
0
Nov 1, 2020 15:13:16 GMT -8
Azy
632
August 2015
azayles
|
Post by Azy on Oct 6, 2015 12:00:02 GMT -8
Oh bless ya! Thank you! That's so lovely. Really really glad I could help!
|
|