vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   BB Code - StrikeThrough (https://vborg.vbsupport.ru/showthread.php?t=77721)

cheat-master30 07-15-2007 11:55 AM

Quote:

Originally Posted by Dismounted (Post 1291719)
To correct you on that, it's not a stock BBCode, so it won't exist unless you create it. :p

Which is a pity, since both official sites have it and practically all other software has it available by default. This topic has just made me realise I didn't give away strike through BB code...

Welshy2008 03-03-2009 05:12 PM

Firstly, Sorry for bumping an old thread...


Quote:

Originally Posted by E2E (Post 622814)
Ooh, ooh, I can answer this one! =) Erm, well, I think I can at any rate: you can add strikethrough as a custom BB code via the Admin CP:

1. In your AdminCP, go to Custom BB Codes and click Add New BB Code
2. Enter the following info in the appropriate fields:
Title: Strikethrough
Tag: Strike
Replacement: <strike>{param}</strike>
Complete the rest of the fields as you like (to be honest, I believe the only field that you "must" set up as I've described is the "Replacement" one, as that's the one that tells vBulletin what html code you want to use for this bb code).

That oughta do it - good luck!

I tried that Way, but it didn't work for me. :(

Quote:

Originally Posted by bada_bing (Post 947211)
Can someone post a detailed description on how to install this and how to pull up the BB Code in a new thread? Also how do you do the CSS version.


I would like to know this too, If someone would be kind enough as to have the patience t explain.


Many Thanks.

TigerC10 03-03-2009 11:28 PM

Use this:

Code:

Title: Strikethrough
BB Code Tag Name: s
Replacement:
<span style="text-decoration: line-through;">{param}</span>
Example:
[s]this text has a strikethrough[/s]
Description:
The [s] tag allows you to create text that has a strike through on it.
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No
Button Image (Optional):
https://vborg.vbsupport.ru/

I like to change the editor template instead of adding in the optional button image, that way I can make the strikethrough button appear next to the B I and U buttons.

Welshy2008 03-07-2009 09:31 AM

TigerC10 - That has worked perfectly. Thank You. :D

Suiram 07-14-2009 03:19 PM

Quote:

Originally Posted by TigerC10 (Post 1759677)
Use this:

Code:

Title: Strikethrough
BB Code Tag Name: s
Replacement:
<span style="text-decoration: line-through;">{param}</span>
Example:
[s]this text has a strikethrough[/s]
Description:
The [s] tag allows you to create text that has a strike through on it.
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No
Button Image (Optional):
https://vborg.vbsupport.ru/

I like to change the editor template instead of adding in the optional button image, that way I can make the strikethrough button appear next to the B I and U buttons.

luvely, cheers guv'nor. :up:

1Unreal 07-15-2009 02:09 AM

Both <s> and <strike> are depreciated. Use CSS. Not sure if its mentioned in this thread.

kyrenator 08-29-2009 11:13 AM

Quote:

Originally Posted by TigerC10 (Post 1759677)
Use this:

Code:

Title: Strikethrough
BB Code Tag Name: s
Replacement:
<span style="text-decoration: line-through;">{param}</span>
Example:
[s]this text has a strikethrough[/s]
Description:
The [s] tag allows you to create text that has a strike through on it.
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No
Button Image (Optional):
https://vborg.vbsupport.ru/

I like to change the editor template instead of adding in the optional button image, that way I can make the strikethrough button appear next to the B I and U buttons.

It worked for me! thanks!

Tettinntil 01-20-2010 05:57 PM

Quote:

Originally Posted by Cossa (Post 946969)
<strike><span style="text-decoration: line-through;">{param}</span></strike>

Where do I add this?

James Birkett 01-20-2010 08:16 PM

Quote:

Originally Posted by Tettinntil (Post 1961431)
Where do I add this?

Add:

Code:

<span style="text-decoration:underline;">{param}</span>
to the replacement, replacing the previous <strike> or <s>

Tettinntil 01-21-2010 05:44 PM

Quote:

Originally Posted by James Birkett (Post 1961615)
Add:

Code:

<span style="text-decoration:underline;">{param}</span>
to the replacement, replacing the previous <strike> or <s>

Replacement? In styles? :o Sorry for a possibly stupid question..


All times are GMT. The time now is 09:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01203 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete