Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Sun Aug 22, 2010 9:33 am

Stryde wrote:Hey guys! Who can help me program the imgmap BBC? :) You know, so that users can create an imagemap in their posts or sigs. It proved very useful to us in our previous location, but now that we're on a forum of our own... well, I don't really know how to program it myself!
What exactly is this imagemap meant to do?
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

j2m1h
Registered User
Posts: 1
Joined: Tue Aug 24, 2010 3:33 pm

Re: Custom BBCodes

Post by j2m1h » Tue Aug 24, 2010 3:40 pm

This is my first time ever building a site and I am using php for my forums.

I am having trouble with the youtube code working.

This is what I have

Code: Select all

[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
But then when I try to test it out all I am seeing is the code in my post not the video. I know it's probably something simple but I can't figure it out.
Last edited by Christian 2.0 on Tue Aug 24, 2010 6:39 pm, edited 1 time in total.
Reason: [code] tags please :)

baroquepopforum
Registered User
Posts: 2
Joined: Tue Aug 24, 2010 7:27 pm

Re: Custom BBCodes

Post by baroquepopforum » Tue Aug 24, 2010 7:55 pm

I have exactly the same problem as above :-(

(It sure would be useful to have the YouTube codes in a thread by itself)

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 » Tue Aug 24, 2010 10:15 pm

The youtube bbcode definition is correct.
If you are using that form of it (i.e. with the full URL, not just the ID), then you must post a URL that just ends in the ID. It must not have any extra information appended to the end.
e.g.
http://www.youtube.com/watch?v=_V_wR8LCdWk is good
http://www.youtube.com/watch?v=_V_wR8LCdWk&feature=fvhl is bad
(In short, there should not be ANY "&" characters in the URL, as they represent extra parameters.)
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Wed Aug 25, 2010 12:37 am

baroquepopforum wrote:(It sure would be useful to have the YouTube codes in a thread by itself)
It would be even better if there were a Custom BBCodes sub-forum with further sub-forums for various BBCode categories. You might have categories like "Text Formatting", "Audio" and "Video", with"YouTube" being a topic in the "Video" category (as would other video sites).

Of course, finding somebody to go through this topic and split the posts into categories might prove to be difficult. :D

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21736
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Custom BBCodes

Post by Mick » Wed Aug 25, 2010 6:52 am

baroquepopforum wrote:It sure would be useful to have the YouTube codes in a thread by itself
It's (Custom BBCodes) big enough to have a forum of it's own but you would still get users asking how to make a light flash when the answer is the first post in a topic.

As they say, you can lead a horse to water . . .
"The more connected we get the more alone we become" - Kyle Broflovski

baroquepopforum
Registered User
Posts: 2
Joined: Tue Aug 24, 2010 7:27 pm

Re: Custom BBCodes

Post by baroquepopforum » Wed Aug 25, 2010 10:36 am

OK, now I'm awake I've got it. Code mixed up between full URL parsing and video ID.

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

bbcode wiki

Post by domenica » Wed Aug 25, 2010 11:14 am

hey
is it possible to make the words in a color?

if i link the word whith WIKI a can not real see that it a links is

this is the code


<a href="http://nl.wikipedia.org/wiki/{TEXT}" onclick="window.open(this.href);return false;">{TEXT}</a>

User avatar
AmigoJack
Registered User
Posts: 5659
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: bbcode wiki

Post by AmigoJack » Wed Aug 25, 2010 12:21 pm

domenica wrote:is it possible to make the words in a color?
Yes. But don't use {TEXT}! Use {INTTEXT} instead:

Code: Select all

<a href="http://nl.wikipedia.org/wiki/{INTTEXT}" style="color: green;" onclick="window.open(this.href);return false;">{INTTEXT}</a>
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica » Wed Aug 25, 2010 12:23 pm

hey,
i have this to

[wiki]{TEXT}[/wiki]


de code jou give to me have any effect on this?

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica » Wed Aug 25, 2010 12:27 pm

no!
i get now

{INTTEXT} and in de color green

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica » Wed Aug 25, 2010 12:30 pm

yes!!!!!
if i not change text in intext is working!!!
tanhkyou!

User avatar
AmigoJack
Registered User
Posts: 5659
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom BBCodes

Post by AmigoJack » Wed Aug 25, 2010 12:36 pm

No! This is a security issue. Obviously you're not understanding the warning phpBB is trying to give you:
The BBCode you are trying to add seems to use a {TEXT} token inside a HTML attribute. This is a possible XSS security issue. Try using the more restrictive {SIMPLETEXT} or {INTTEXT} types instead. Only proceed if you understand the risks involved and you consider the use of {TEXT} absolutely unavoidable.
You should use the following values:
BBCode usage =

Code: Select all

[wiki]{INTTEXT}[/wiki]
HTML replacement =

Code: Select all

<a href="http://nl.wikipedia.org/wiki/{INTTEXT}" style="color: green;" onclick="window.open(this.href);return false;">{INTTEXT}</a>
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica » Wed Aug 25, 2010 12:39 pm

no, i m not in to codes
but i go try again

domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica » Wed Aug 25, 2010 12:54 pm

whit inttext is not working
Image

Image

Locked

Return to “Custom BBCode Development and Requests”