Custom BBCode - How does it work ?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
User avatar
Dr.Death
Registered User
Posts: 25
Joined: Thu Feb 24, 2005 10:33 am
Location: Germany
Contact:

Custom BBCode - How does it work ?

Post by Dr.Death »

How does the actual CVS Custom BBCode work ?

I test it with this settings:

BBCode Usage:

[custom]{TEXT}[/custom]

HTML replacement:

<a href="http://www.my-domain.com/test.php?cmd={TEXT}">{TEXT}</a>

The new BBCode Button "custom" is shown on the posting page, but is not beeing parsed in the posting.

Or did i something missunderstand, how it works ?
Doc.

Image

code reader
Registered User
Posts: 653
Joined: Wed Sep 21, 2005 3:01 pm

Re: Custom BBCode - How does it work ?

Post by code reader »

currently the custom bbcode feature is broken, so the simple answer to the question "how does it work?" is: "right now, it doesnt".

User avatar
Dr.Death
Registered User
Posts: 25
Joined: Thu Feb 24, 2005 10:33 am
Location: Germany
Contact:

Re: Custom BBCode - How does it work ?

Post by Dr.Death »

btw, it works now :-)
Doc.

Image

JRSweets
Registered User
Posts: 14
Joined: Tue Oct 12, 2004 4:48 pm
Contact:

Re: Custom BBCode - How does it work ?

Post by JRSweets »

I just wish when you add a button to the posting window it would capitalize the first letter of the button like the built-in BBcodes do. :?

User avatar
NNO-Stephen
Registered User
Posts: 398
Joined: Fri May 23, 2003 12:47 am
Location: Tulsa, Oklahoma
Contact:

Re: Custom BBCode - How does it work ?

Post by NNO-Stephen »

I'm definitely gonna want to see a how-to on custom BBCode. definitely some ones I'd love to have :D
Image

User avatar
pentapenguin
Registered User
Posts: 618
Joined: Sun Jul 18, 2004 6:07 pm
Location: GA, USA
Contact:

Re: Custom BBCode - How does it work ?

Post by pentapenguin »

NNO-Stephen wrote: I'm definitely gonna want to see a how-to on custom BBCode. definitely some ones I'd love to have :D
It's really easy to use. If you want to center text, you can use this:

Code: Select all

[center]{TEXT}[/center]
and this replacement

Code: Select all

<div align="center">{TEXT}</div>
All you need to do is to match up the tokens -- thse stuff between the { and }
phpBB.com Support Team Member and Incident Investigation Team Member
My phpBB MODs || Professional phpBB Customization, Transfers, and Conversions

User avatar
NNO-Stephen
Registered User
Posts: 398
Joined: Fri May 23, 2003 12:47 am
Location: Tulsa, Oklahoma
Contact:

Re: Custom BBCode - How does it work ?

Post by NNO-Stephen »

ok, tha's what I figured.

so what languages and technologies can we use? is it restricted to HTML or can we use other, more....exotic, things?

also can we use something like this for custom profile fields too? the enter the text but it puts it in a thing and can display something in the profile?

and can we make these custom fields viewable under the persons avatar on the topic pages?

I doubt it, but I'm curious nonetheless.
Image

User avatar
Cheater512
Registered User
Posts: 245
Joined: Thu Mar 23, 2006 1:29 am
Location: Brisbane, Australia
Contact:

Re: Custom BBCode - How does it work ?

Post by Cheater512 »

It should just replace the variable. I havent checked the code yet.
Javascript should be fine.

who_cares
Registered User
Posts: 218
Joined: Mon Feb 07, 2005 1:20 pm
Contact:

Re: Custom BBCode - How does it work ?

Post by who_cares »

It would be cool if you could set permissions on who gets to use the custom codes

Post Reply