BPsite Forums
April 27, 2024, 03:08:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: BPSITE FOREVER!
 
   Home   Help Search Members Login Register  
Pages: [1]
  Print  
Author Topic: Strikethrough  (Read 6696 times)
Arkanor
Hero Member
*****
Offline Offline

Posts: 801



View Profile WWW
« on: July 01, 2004, 05:14:58 PM »

SS, there's a strikethrough tag here that I can't find on most other forums.  It's Text here.  It's an interesting tag, and I like the effects, but I can't figure out how to get it on another forum [where I am the root admin].  If you don't mind, what exactly is the code for that?
« Last Edit: July 01, 2004, 06:00:14 PM by RipperRoo » Logged

Being a good example is hard.  I’m trying to serve as a horrible warning instead.
FragMaster1972
Hero Member
*****
Offline Offline

Posts: 2265



View Profile WWW
« Reply #1 on: July 01, 2004, 05:31:59 PM »

Code:
[s]like this.[/s]

 Smiley[/s]
« Last Edit: July 01, 2004, 06:00:27 PM by RipperRoo » Logged

1 posts to [span style=\'font-size:30pt;line-height:100%\'][/s]BURSEG!!![/u][/size][/span][/b]
"If you ever find yourself on the side of the Majority, it's time to pause and reflect." -Mark Twain[/color]

SS
Administrator
Hero Member
*****
Offline Offline

Posts: 10393



View Profile WWW
« Reply #2 on: July 01, 2004, 05:50:26 PM »

Frag, I think what he wants is the code to make it work, because strikethrough is something I added to the forum (which is why it aint on the toolbar).

Arkanor: I just found the bit where it does bold/etc, and added an extra line to do strikeout. Smiley
« Last Edit: July 01, 2004, 05:59:33 PM by RipperRoo » Logged

Peter 'SpectralShadows' Boughton,
Seeker of Perfection, BPsite Sitelord.

Till shade is gone, till water is gone, into the Shadow with teeth bared, screaming
defiance with the last breath, to spit in the Sightblinder's eye on the Last Day.
FragMaster1972
Hero Member
*****
Offline Offline

Posts: 2265



View Profile WWW
« Reply #3 on: July 01, 2004, 05:51:33 PM »

I wondered about that about 5 seconds after I hit the post button. This is why I should be sleeping right now.  Wink
« Last Edit: July 01, 2004, 06:11:19 PM by FragMaster1972 » Logged

1 posts to [span style=\'font-size:30pt;line-height:100%\'][/s]BURSEG!!![/u][/size][/span][/b]
"If you ever find yourself on the side of the Majority, it's time to pause and reflect." -Mark Twain[/color]

RipperRoo
Moderator
Hero Member
*****
Offline Offline

Posts: 4397


View Profile
« Reply #4 on: July 01, 2004, 06:00:58 PM »

I sorted the thread out, its all strikeouts for you now. Tongue
Logged

"How could you be intimidated by a woman who had told you in dead seriousness that there were one hundred and seven different kisses, and ninety-three ways to touch a man's face with your hand?" --Min--
"Ohh my feet are getting hotter than a flame grilled otte
mole
Mods
Hero Member
*****
Offline Offline

Posts: 10763



View Profile WWW
« Reply #5 on: July 01, 2004, 06:03:21 PM »

LOL doppy ...
Logged

Quote
Yiff Hunter says:
and the last question do u get a sudden eye twicth and shudder wen i say :

CLEAN?
RipperRoo says:
yes
Yiff Hunter says:
rite ive declared u imorally peasant like
Arkanor
Hero Member
*****
Offline Offline

Posts: 801



View Profile WWW
« Reply #6 on: July 01, 2004, 06:13:51 PM »

Gee, thanks Ripper

Alright, thanks SS.  That would probably be under board styles or somewhere in there.
« Last Edit: July 01, 2004, 06:17:05 PM by Arkanor » Logged

Being a good example is hard.  I’m trying to serve as a horrible warning instead.
SS
Administrator
Hero Member
*****
Offline Offline

Posts: 10393



View Profile WWW
« Reply #7 on: July 01, 2004, 06:56:49 PM »

It's in the actual source code - you need to edit one of the PHP files.

The problem is finding which of the files.

Aha, here it is.
/sources/lib/post_parser.php

Around line 220:
Code:
  	$txt = preg_replace( "#[b](.+?)[/b]#is", "<b></b>", $txt );
   $txt = preg_replace( "#[i](.+?)[/i]#is", "<i></i>", $txt );
   $txt = preg_replace( "#[u](.+?)[/u]#is", "<u></u>", $txt );
   $txt = preg_replace( "#[s](.+?)[/s]#is", "<s></s>", $txt );

Then also at approximately line 450:
Code:
  	$txt = preg_replace( "#<i>(.+?)</i>#is"  , "[i][/i]"  , $txt );
   $txt = preg_replace( "#<b>(.+?)</b>#is"  , "[b][/b]"  , $txt );
   $txt = preg_replace( "#<s>(.+?)</s>#is"  , "[s][/s]"  , $txt );
   $txt = preg_replace( "#<u>(.+?)</u>#is"  , "[u][/u]"  , $txt );

You just need to add the two lines with <s> line in.


There's probably a way to add a button for it too, but I couldn't be bothered looking for that.
Logged

Peter 'SpectralShadows' Boughton,
Seeker of Perfection, BPsite Sitelord.

Till shade is gone, till water is gone, into the Shadow with teeth bared, screaming
defiance with the last breath, to spit in the Sightblinder's eye on the Last Day.
Arkanor
Hero Member
*****
Offline Offline

Posts: 801



View Profile WWW
« Reply #8 on: July 01, 2004, 07:09:48 PM »

That's great.  Thanks for the code, and I'll let you know if it works in a second.
Logged

Being a good example is hard.  I’m trying to serve as a horrible warning instead.
SS
Administrator
Hero Member
*****
Offline Offline

Posts: 10393



View Profile WWW
« Reply #9 on: July 01, 2004, 07:13:50 PM »

Ok. Make sure you back up the existing file just incase you break things though. Wink
Logged

Peter 'SpectralShadows' Boughton,
Seeker of Perfection, BPsite Sitelord.

Till shade is gone, till water is gone, into the Shadow with teeth bared, screaming
defiance with the last breath, to spit in the Sightblinder's eye on the Last Day.
Arkanor
Hero Member
*****
Offline Offline

Posts: 801



View Profile WWW
« Reply #10 on: July 01, 2004, 07:17:10 PM »

Crap.  Invision (what I'm using for my board) won't let you modify the source code.  In fact, I don't even think they give you the source code.  Oh well.  
Logged

Being a good example is hard.  I’m trying to serve as a horrible warning instead.
SS
Administrator
Hero Member
*****
Offline Offline

Posts: 10393



View Profile WWW
« Reply #11 on: July 01, 2004, 07:20:31 PM »

Ah, you're using the free hosted version aren't you?

Yeah, there's not much you can do there. I suppose you could petition them to add strikeout abilities, pointing out that it's jsut a two line edit, but I dunno if they'd listen or not.
Logged

Peter 'SpectralShadows' Boughton,
Seeker of Perfection, BPsite Sitelord.

Till shade is gone, till water is gone, into the Shadow with teeth bared, screaming
defiance with the last breath, to spit in the Sightblinder's eye on the Last Day.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!