Advertise Here

Author Topic: Adding buttons  (Read 1826 times)

0 Members and 1 Guest are viewing this topic.

Offline the doc

  • SMF For Free Member
  • *
  • Posts: 75
    • View Profile

  • Total Badges: 12
    Badges: (View All)
    Level 3 Second year Anniversary Search Windows User Topic Starter
Adding buttons
« on: April 16, 2011, 03:45:07 pm »
Is it possible to add a button in the quick reply post (alongside bold, italics, underscore etc)?

I run a site about a TV show and spoilers are a big part of the site, and while we currently use the [ spoiler ] [ /spoiler] code mod that SMF reccomends, many members find them difficult to use or remember. It would be easier to have a button they can just click and then add the text inside. Is there a mod for that?

Alternatively, everything between the 'strikethrough' button and the 'prefortmatted text' button is useless to my forum, so if there was a way I could possibly modify one of those to use for the spoiler tags, I would be happy to do that instead.

Are any of these things possible? I've tried looking through here for something that might help, but I couldn't find anything that might help.

Thanks in advance :)

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #1 on: April 16, 2011, 06:05:15 pm »
I do not think this is possible. I've also looked for this for you but saw nothing. The best thing i could suggest for you is make a topic and sticky it about how to do that code. Then make a tab at the top saying spoiled code. If you want that you could look at http://www.smfsupport.com/support/guides-and-tutorials/(guide)-custom-tabs/

Offline the doc

  • SMF For Free Member
  • *
  • Posts: 75
    • View Profile

  • Total Badges: 12
    Badges: (View All)
    Level 3 Second year Anniversary Search Windows User Topic Starter
Re: Adding buttons
« Reply #2 on: April 16, 2011, 06:25:12 pm »
I've got a tutorial set up already, but people still don't get it. The tab thing isnt really what I need either, but I really appreciate that you looked, thank you :)

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #3 on: April 16, 2011, 06:25:53 pm »
k, ill keep looking for the thing you need.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Adding buttons
« Reply #4 on: April 16, 2011, 06:28:34 pm »
Purchase the Custom Smileys upgrade and make an image that says "Spoiler" and make the code for it "[spoiler][/spoiler]"
<--- Donate to SMF For Free! :D

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #5 on: April 16, 2011, 06:30:02 pm »
I Thought the smile upgrade was just for new smiles like the ones we have For example these  :)  ;)  :D  ;D  >:(  :(  :o  8)  ???  ::)  :P  :-X  :-\  :-*  :'(  :angel: And all of them.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Adding buttons
« Reply #6 on: April 16, 2011, 06:31:14 pm »
No. Those are the smileys you see here at support. Custom Smileys allows you to use your OWN smileys.

Ok. New idea. Which smiley set do you use on your forum?
<--- Donate to SMF For Free! :D

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #7 on: April 16, 2011, 06:32:09 pm »
idk because when i post i never use smiles i just do this (: i dont use the smiles at the top of response place.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Adding buttons
« Reply #8 on: April 16, 2011, 06:33:22 pm »
Wasn't asking you shady ;)

I think I have a solution for doc
<--- Donate to SMF For Free! :D

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #9 on: April 16, 2011, 06:34:37 pm »
oh my bad thought you were asking me lmao :/

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Adding buttons
« Reply #10 on: April 16, 2011, 06:54:53 pm »
Ok. I've got the solution.

It requires replacing one of the smileys.

FIRST:
Admin CP > Smileys and Message Icons > Edit Smileys

SECOND:
Chose the smiley you want to replace,
and click Modify

THIRD
In the box that says "Code:",
replace the contents with [spoiler][/spoiler]
then click Save Changes

FOURTH
Right click the Smiley image and select "Copy Image Location"

FIFTH
Put that link in the code below

Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "SMILEY LINK HERE" , "http://queerdelys.filmaster.com/static/img/spoiler.png" ]

var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>

SIXTH
Make sure that the Spoiler Tag code is in the Footers (Admin CP > Headers/Footers)

SEVENTH
Add the code above to your footers
then click Save Headers/Footers

LASTLY
Go to a board and test it out.
<--- Donate to SMF For Free! :D

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: Adding buttons
« Reply #11 on: April 16, 2011, 06:57:13 pm »
Just a question. Would you need a upgrade to edit the smilies?

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Adding buttons
« Reply #12 on: April 16, 2011, 06:58:17 pm »
No.
<--- Donate to SMF For Free! :D

Offline the doc

  • SMF For Free Member
  • *
  • Posts: 75
    • View Profile

  • Total Badges: 12
    Badges: (View All)
    Level 3 Second year Anniversary Search Windows User Topic Starter
Re: Adding buttons
« Reply #13 on: April 17, 2011, 10:44:50 am »
That's brilliant, thank you very much :)

 

Related Topics

  Subject / Started by Replies Last post
11 Replies
4343 Views
Last post June 12, 2006, 01:06:24 pm
by DC
4 Replies
2009 Views
Last post May 27, 2007, 08:38:29 pm
by KMRock
5 Replies
1435 Views
Last post August 13, 2007, 03:06:30 pm
by Steven
Buttons

Started by MONF Graphics

0 Replies
1045 Views
Last post August 25, 2007, 07:14:54 am
by MONF
4 Replies
1050 Views
Last post January 03, 2011, 11:28:12 pm
by FrostyBoy07