BBCode

Started by Sajuuk September 3rd, 2009 12:23 PM
  • 729 views
  • 9 replies

Sajuuk

http://forum.hpcommunity.co.uk

Seen November 30th, 2010
Posted November 30th, 2010
524 posts
14.1 Years
On my phpBB3 forum, I want to have a code that allows people to indent text from the left. But it isn't working correctly.

Could someone please post up the code for tab indents?
My forums:
http://millioncms.com <- An "under-development" CMS
http://forum.hpcommunity.co.uk <- A growing Harry Potter Forum.

Ooka

Cosmic

Age 30
Challenging The E4
Seen September 15th, 2022
Posted January 18th, 2020
2,621 posts
15.8 Years
Well, I have no experience with phpBB, so can you post what you're currently using? I'll try and fix it for you from there.

Camisado

a therapeutic chain of events

Age 34
Female
Dorset, England
Seen March 17th, 2018
Posted January 23rd, 2013
1,032 posts
15.3 Years
Shouldn't the {TEXT} be before the </span>, not before the x; ?
CamisadoThe BBS Host & Admin ✖ @The_BBS is on Twitter! ✖

✖ Hosted in the UK by EvohostingNetwork home pageExtended personal profileTumblr

Citrinin

Nephrotoxic.

Age 26
Male
New Zealand
Seen August 2nd, 2010
Posted July 19th, 2010
2,778 posts
13.9 Years
Change the HTML replacement to <span style="margin-left: {TEXT}px;"></span> (you forgot the "p".) Assuming phpBB converts as easily as you make it appear (I have no experience with it), then it should work.

(Of course, you should note, there is potential for abuse with people stretching the page - with say [tab]999999[/tab].)
~

Citrinin

Nephrotoxic.

Age 26
Male
New Zealand
Seen August 2nd, 2010
Posted July 19th, 2010
2,778 posts
13.9 Years
Hmm, I tested the BBCode as I told you on this demo of the latest version of phpBB, and it worked perfectly. Are you using the latest version, or do you perhaps have some extension that might be conflicting with the way BBCode is processed?
~

Sajuuk

http://forum.hpcommunity.co.uk

Seen November 30th, 2010
Posted November 30th, 2010
524 posts
14.1 Years
Hmm, I tested the BBCode as I told you on this demo of the latest version of phpBB, and it worked perfectly. Are you using the latest version, or do you perhaps have some extension that might be conflicting with the way BBCode is processed?
I'm using phpBB 3.0.4. And I have no MODS at all, since I've got no file server access to install them
My forums:
http://millioncms.com <- An "under-development" CMS
http://forum.hpcommunity.co.uk <- A growing Harry Potter Forum.

Citrinin

Nephrotoxic.

Age 26
Male
New Zealand
Seen August 2nd, 2010
Posted July 19th, 2010
2,778 posts
13.9 Years
Hmm, the demo I tested it on was 3.0.5. Admittedly, I'm not familiar with phpBB or its development, but it was possible that the latest update fixed a bug that might be causing this.

The only other reason why I think it could be working for me and failing for you is that you're operating a browser that can't properly process the CSS (I've tested this in IE, FF, and Opera - all worked.)

Or, you could try changing the {TEXT} in both the BBCode and replacement code to {IDENTIFIER}.

Although, all three reasons are longshots. :/ Sorry I couldn't be of more help - if I think of anything else, I'll repost. Your best bet now is to play around with the code. In other words, until help arrives, throw as much spaghetti at the wall as you can and hope some of it sticks. ;C

EDIT: In the alternative, you might want to try [INDENT]{TEXT}[/INDENT] to be replaced with <p style="text-indent:50px">{TEXT}</p> (Not exactly the [tab] you wanted, but the end result is the same.) "50px" can be changed for anything you want.

Or, if you want users to be able to set their own indent level, try[indent={IDENTIFIER}]{TEXT}[/indent]to be replaced with <p style="text-indent:{IDENTIFIER}px">{TEXT}</p>
~