Announcement

Collapse
No announcement yet.

Strikethrough BBCODE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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.

      https://developer.mozilla.org/en-US/...HTML/Element/s
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.

      Comment


      • #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:	58
Size:	51.2 KB
ID:	4417079

        Attached Files
        Last edited by panzerscope; Tue 18th Jun '19, 12:05pm.

        Comment


        • #5
          Like this (see attachment).

          Demo: https://www.talknewsuk.com/forum/mis...kethrough-test
          Attached Files
          MARK.B | vBULLETIN SUPPORT

          TalkNewsUK - My vBulletin 5.5.6 Demo
          AdminAmmo - My Cloud Demo

          Comment


          • #6
            That is perfect ! Thanks for your help

            Comment

            Related Topics

            Collapse

            Working...
            X