Custom BBCodes [Deprecated]

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

Re: Custom BBCodes

Post by ric323 »

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 »

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 PlanetStyles.net 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 »

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: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Custom BBCodes

Post by ric323 »

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 »

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: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Custom BBCodes

Post by Mick »

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©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
baroquepopforum
Registered User
Posts: 2
Joined: Tue Aug 24, 2010 7:27 pm

Re: Custom BBCodes

Post by baroquepopforum »

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 »

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: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: bbcode wiki

Post by AmigoJack »

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 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." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica »

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 »

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 »

yes!!!!!
if i not change text in intext is working!!!
tanhkyou!
User avatar
AmigoJack
Registered User
Posts: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Custom BBCodes

Post by AmigoJack »

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 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." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
domenica
Registered User
Posts: 9
Joined: Sat Aug 21, 2010 10:48 pm

Re: Custom BBCodes

Post by domenica »

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 »

whit inttext is not working
Image

Image
Locked

Return to “Custom BBCode Development and Requests”