Skip to content

Spoiler Tag for free forums, is there an upgrade??

3103 Views 11 Replies

0 Members and 1 Guest are viewing this topic.

#1
Is there a way to have a button for this in the bbc table maybe under the change color drop down??


Is there a way to modify from hover to show, to click to show??


I dont mind paying for the upgrade if thats what it takes.





Re: Spoiler Tag for free forums, is there an upgrade??
Reply #2 on:
#3

I'm sorry i dont understand the response.

how do I do that, and where do i put it??


I have done lots of searching and a lot of forums have this "mod", but i have not found a spot to upload or add a mod to my style sheet


I am very new to this, and really need a clickable spoiler for the longer lists....


Im in a book group, so for example we have an authors book checklist, which can be very very long for some authors, which makes the post very very long, and the hover thing stinks to be honest because you cant scroll without it hiding again
Re: Spoiler Tag for free forums, is there an upgrade??
Reply #4 on:
#5
ok, so how do i build it in the script?


I found this in another forum just have no idea where to put it??




.sp-wrap {

  •     border: 1px solid #ccc !important;
  •     border-radius: 6px !important;
  •     background-color: #e8e8e8 !important;
  •     margin: 0 auto 4px !important;
[/list]
}






.sp-head {

    •     cursor: pointer;
    •     color: #343434;
    •     font-size: 11px;
    •     line-height: 15px !important;
    •     margin-left: 6px !important;
    •     padding: 1px 14px 3px !important;
    •     width: 97% !important;
    •     min-height: 15px;
    [/list]








    .sp-open {

      • background: url(gif link goes here) no-repeat scroll left center transparent !important;
      • padding-left: 14px !important;
      • display: block;


      • .sp-body {
          • display: none;
          • border-radius: 0 0 6px 6px !important;
          • background: none repeat scroll 0 0 #f4f4f4 !important;
          • border-top: 1px solid #ccc !important;
          • line-height: 17px;
          • padding: 3px 3px 3px 7px !important;
          • font-size: 12px;
          • color: #343434;


          • .sp-closed {
              • background: url(gif link goes here) no-repeat scroll left center transparent !important;
              • padding-left: 14px !important;
              • display: block;
          [/list][/li][/list][/list]
          Re: Spoiler Tag for free forums, is there an upgrade??
          Reply #6 on:
          #7
          That code above won't work due to the css classes are wrong but it would go into your css file under style manager.
          Spoiler code generates
          Code: [Select]
          <fieldset class="spoiler" onmouseover="this.lastChild.style.display = 'block';" onmouseout="this.lastChild.style.display='none'"><legend><b>Spoiler</b> <small>(hover to show)</small></legend><div class="spoilerbody" style="display: none">test</div></fieldset>

          You would need to override the javascript and do onclick instead of onmouseover
          Could be done with jquery it looks like but I am not much of a javacript coder.
          Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/
           

          Related Topics