Strikethrough BBCODE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • panzerscope
    Senior Member
    • Feb 2019
    • 159
    • 5.3.x

    Strikethrough BBCODE

    Hey guys,

    So I am wanting to create a Strikethrough BBCODE as it does not come natively with CKE. However I have tried many various BBCODE variations to get it to function without any luck, I can only assume something has changed on VB5 from back in the day. I am trying the below in my BBCODE manager as it seemed the most popular choice when searching the net.

    Title: Strikethrough
    Tag: Strike
    Replacement: <span style="text-decoration: line-through;">{param}</span>
    Example: {strikethrough text}

    Any suggestions on how to get this working ? I am using VB5.5.2

    Cheers
    P
  • panzerscope
    Senior Member
    • Feb 2019
    • 159
    • 5.3.x

    #2
    Oh, I can see it works on this site on Example, not on mine oddly, I can only assume you are using a different replacement code. Mind sharing ?

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74166

      #3
      Instead of a span why don't you just use the <s> or <del> tag? That is what is being used on this site.

      Code:
      <s>{param}</s>
      And yes, the <s> tag is perfectly valid in HTML5. Though <del> might be more appropriate if you want to be semantic.

      The HTML element renders text with a strikethrough, or a line through it. Use the element to represent things that are no longer relevant or no longer accurate. However, is not appropriate when indicating document edits; for that, use the and elements, as appropriate.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • panzerscope
        Senior Member
        • Feb 2019
        • 159
        • 5.3.x

        #4
        Hmm, think I need some hand holding, I tried that but still no joy. Please see screenshot attached of my BBCODE Manager

        Click image for larger version

Name:	Strikthrough.jpg
Views:	587
Size:	51.2 KB
ID:	4417079

        Attached Files
        Last edited by panzerscope; Tue 18 Jun '19, 11:05am.

        Comment

        • Mark.B
          vBulletin Support
          • Feb 2004
          • 24288
          • 6.0.X

          #5
          Like this (see attachment).

          Demo: https://www.talknewsuk.com/forum/mis...kethrough-test
          Attached Files
          MARK.B
          vBulletin Support
          ------------
          My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
          My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

          Comment

          • panzerscope
            Senior Member
            • Feb 2019
            • 159
            • 5.3.x

            #6
            That is perfect ! Thanks for your help

            Comment

            Related Topics

            Collapse

            Working...