![]() |
BB Code - StrikeThrough
Haha, I hope this isn't done already :P.
But I was just wondering how I could add a strikethrough bb code? I'm making a list of things I need to add to the site, and wouldn't mind a strikethrough when I'm done adding something... Anyway to do this? Thanks!. |
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! |
Omg why didn't I think of that.. Now that I see it, it makes total sense.. haha im so stupid :P
Thanks bro, I'll go put it in now lol. |
Quote:
|
You can also use <s>{param}</s>.
|
Quote:
|
It works for me:
http://www4.pcdc.net/~sammage/urealms/strike.html Check the source and see for yourself. |
Quote:
HTML Code:
<span style="text-decoration: line-through;">{param}</span> |
/me agrees with msimplay
CSS is a much cleaner way to do it. |
HOw do you do it via CSS?
|
<strike><span style="text-decoration: line-through;">{param}</span></strike>
|
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.
|
1 Attachment(s)
and here is the button (transparent)
|
Thanks guys! You're making me look too damn good to my members! :) A two minute job.
|
I totally agree, this was great.
Thanks for the help. |
Nice thank you...
|
Nice, thanks!
|
So you can make BB code just by replacing HTML?
So easy... |
You do realize that we already have a strike in vBulletin. All you have to do is add an image and link it to the code.
Code:
[s] testing [/ s] make sure the / s is like this /s |
Quote:
|
Quote:
|
Firstly, Sorry for bumping an old thread...
Quote:
Quote:
I would like to know this too, If someone would be kind enough as to have the patience t explain. Many Thanks. |
Use this:
Code:
Title: Strikethrough |
TigerC10 - That has worked perfectly. Thank You. :D
|
Quote:
|
Both <s> and <strike> are depreciated. Use CSS. Not sure if its mentioned in this thread.
|
Quote:
|
Quote:
|
Quote:
Code:
<span style="text-decoration:underline;">{param}</span> |
Quote:
|
Thanks for the excellent tutorial.
|
how to do this in vb 4.x?
|
So, what's different in vBulletin 4 from vBulletin 3.8?
If you can edit BB code, just either add the relevant stuff to the CSS, or put the replacement as something akin to <strike>{param}</strike> |
how do I add the image?
|
Quote:
images/editor/strike.gif Just find an appropriate 20x20 pixel gif file to use, or make one yourself... upload it to your images/editor directory. |
we've added the bbcode and it words fine. the trouble is adding the button. we've tried different kinds of button images (png and gif) but it still wouldn't display it in the editor or in the bbcode editor. instead the text "add [s] bbcode" appears in the editor. any help?
|
1 Attachment(s)
The attached screenshot and strike through gif show exactly how my BB Code is set up. Put the strike.gif in /images/misc/
Copy it exactly and there is no reason why it shouldn't work for you too. Beware of using capital letters !!! As a rule always use lower case letters for paths etc. It took me a while to realise that Strike.gif and strike.gif are not the same and will give exactly the error you are having. Hope that helps. |
he-he, the mistake was we missed one letter in the file name for the button. Once we realised that, everything worked. But thanks, anyway:)
|
Lovely, jubbley...just what I was looking for :)
|
Is there any way to move the icon from the end of the line to the front? I looked at the templates but it just served to confuse me further.
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|