1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Spoiler tags?

Discussion in 'Feedback & Suggestions' started by Guest-16, 17 Jul 2004.

  1. Guest-16

    Guest-16 Guest

    For music and film forum - something like animesuki have encorporated which make the text hidden until you click a button, or makes the colour of the text the same as the forum background. For general use by peeps in series/film threads.
     
  2. MrDT

    MrDT fapfap

    Joined:
    14 Jun 2002
    Posts:
    2,557
    Likes Received:
    0
    You could black out the hidden text, then when you mouseover have the text change colour to make it visible. Anyone who's an sa forum member would know what i mean.

    Useful for talking about 24 series 4 without rtt wanting to beat me with a stick :)
     
  3. Guest-16

    Guest-16 Guest

    we've resorted to doing grey text atm.
     
  4. MaxWiz

    MaxWiz What's a Dremel?

    Joined:
    1 Oct 2003
    Posts:
    57
    Likes Received:
    1
    Might be a problem with coloured text if people are using themes/skins with a non-standard background colour.

    Max
     
  5. Lazy

    Lazy Meow?

    Joined:
    13 Nov 2001
    Posts:
    4,481
    Likes Received:
    1

    i can read that fine :p
     
  6. Guest-16

    Guest-16 Guest

    surely it doesnt matter in browser because the forum scheme is standard.

    lazy - it makes it less obvious, not impossible so you can easily avoid it.
     
  7. Lazy

    Lazy Meow?

    Joined:
    13 Nov 2001
    Posts:
    4,481
    Likes Received:
    1
    But people can use different themes for the forums. The grey text stands out pretty well on the vb3 forum theme i'm using :/
     
  8. Ben

    Ben What's a Dremel?

    Joined:
    11 Aug 2003
    Posts:
    1,000
    Likes Received:
    0
    unless they use the Vb style
     
  9. Guest-16

    Guest-16 Guest

    I didnt realise you could select the vb style in here, i thought it was bit style only :eek:
     
  10. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
    Not sure if it works by default (it doesn't normally) but with a slight modification you could do [color={postcolor}]text[/color] and it will set the foreground text to the same as the background colour of the post, regardless of forum style. Stick a little box round it so people know where it is, and bob's your auntie's brother.
     
  11. Ben

    Ben What's a Dremel?

    Joined:
    11 Aug 2003
    Posts:
    1,000
    Likes Received:
    0
    that dose not work unless you make a verbal some were for background as you could do.

    <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_TR_COLOR1}" class="genmed">back ground</option>

    but that puts {COLOR=#******}444{/COLOR} so when you change the style it will not work as it still has the same #******

    if you know php that would help as i do not.


    edit:: gave up

    [COLOR=#b6bdc5)(/COLOR]
    #b6bdc5 is bit background
     
    Last edited: 26 Jul 2004
  12. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
    Yeah, but vBulletin uses {firstaltcolor} and {secondaltcolor} and I Think maybe {postcolor} (or similar) in their code, so you jsut have to be able to parse those in the PHP, and you're sorted. IT's very easy to do. :)
     
  13. davew

    davew What's a Dremel?

    Joined:
    13 Mar 2004
    Posts:
    227
    Likes Received:
    1
    The Gaming forum needs something done about spoilers too. A couple of times posts have come close to being spoilers about doom 3.

    No worries about anyone reading any text at all in a thread Hwulex has posted in though with that avatar :D
     
  14. mushky

    mushky gimme snails

    Joined:
    24 Mar 2003
    Posts:
    5,755
    Likes Received:
    3
    Can we have something like in this guys sig?

    On that forum, which currently runs on vBulletin 3.0.1, they have a button to insert the neccessary tags alongside the normal formatting tags.
     
  15. Hwulex

    Hwulex What's a Dremel?

    Joined:
    1 Feb 2002
    Posts:
    4,007
    Likes Received:
    1
    PHP:
    <span id="spanShowHide" style="font-family: verdana; font-size: 8pt;">Spoiler: <a href="javascript:showHideSpoiler();" id="linkShowHide">show</a></span>
    <
    div id="divSpoiler" style="border: solid 1px #CCC; padding: 4px;">
      <
    span id="spanSpoiler" style="display: none;">
        
    $post['message']
      </
    span>
    </
    div>

    <
    script type="text/javascript">
      var 
    blnShow false;
      function 
    showHideSpoiler() {
        
    //var chrDisplay = blnShow==false ? 'block' : 'none';
        
    if (blnShow==false) {
            var 
    chrDisplay 'block';
            var 
    chrLinkText 'hide';
        } else {
            var 
    chrDisplay 'none';
            var 
    chrLinkText 'show';
        } 
    // end if
        
    document.getElementById('spanSpoiler').style.display chrDisplay;
        
    document.getElementById('linkShowHide').innerHTML chrLinkText;
        
    blnShow = !blnShow;
      } 
    // end function
    </script>

    <EDiT>
    Ignore the spaces in the document.get..... line, that's vB working it's magic. :rolleyes:

    Also changed short syntax if to long one so that show/hide text can be changed as well. :)

    Example: here.
     
    Last edited: 12 Aug 2004

Share This Page