Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
some blind fool
Registered User
Posts: 409
Joined: Sat Aug 19, 2006 5:28 pm

Re: Custom BBCodes

Post by some blind fool »

ANgelArvil wrote:ANCHOR

Code: Select all

[anchor]{IDENTIFIER}[/anchor]

Code: Select all

<a id="{IDENTIFIER}"></a>
the reason that the word(s) you are using disappear when you use this code is that the html is not designed to show the identifier. try changing your html replacement code to -

Code: Select all

<a id="{IDENTIFIER}">{IDENTIFIER}</a>
or, without making changes, when using the anchor code, enter your post text around it as if it is not even there.

Code: Select all

this is a post with [anchor]iwanttolinkbacktoherelater[/anchor]an anchor in it.
hope this helps. :)
please do not PM me to ask for help. thanks.
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Custom BBCodes

Post by Richazey »

Is there a bb code so you can post html?
User avatar
ChrisRLG
Former Team Member
Posts: 3420
Joined: Wed Nov 24, 2004 3:18 pm
Location: Essex, UK
Contact:

Re: Custom BBCodes

Post by ChrisRLG »

parkstee wrote:Is there a bb code so you can post html?
If thier was it would probably be removed from display on this forum as it would be a security risk.
phpBB: The All Important Rules - Bertie Bear 3.0 - No support via PM system - use the forums please.
phpBB v2: Retirement (1/1/2009) : phpBB v3: Read Me Topic - Custom BBCodes - Support Template
Matthew 7:7"Ask and it will be given to you; seek and you will find; knock and a door will be opened to you."
My Links: MS MVP (Consumer Security) - Malware Removal:University - Own Forum: Custom BBCode testing
JMartins81
Registered User
Posts: 35
Joined: Sat Oct 25, 2008 9:40 pm

Re: Custom BBCodes

Post by JMartins81 »

The suggested code for embedding Google Video doesn't work.

I'm using the following (identical to what's in the opening post).

Code: Select all

[googlevid]http://video.google.com/videoplay?docid=-{NUMBER}[/googlevid]

Code: Select all

<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={NUMBER}&hl=en" flashvars=""></embed>
I then make the following post:

Code: Select all

[googlevid]http://video.google.com/googleplayer.swf?docid=-7787399591926700697&hl=en&fs=true[/googlevid]
Only the text appears -- no video. :(
artiprinted
Registered User
Posts: 52
Joined: Wed Aug 09, 2006 1:11 pm

Re: Custom BBCodes - Template Button

Post by artiprinted »

Now this is a weird request. but. I want one of the bb code buttons to insert bb code for me already formated. Basiclly a template button so that we do not have to type the same stuff in all the time and have some consistancy in our posts.

I want the bb code button to insert this text every time the button is clicked:

Code: Select all

[b]SUMMARY[/b] 

[b]MORE INFORMATION[/b] 

[b]SYMPTOMS[/b] 

[b]PROBLEM[/b] 

[b]HOW TO IDENTIFY[/b] 

[b]VERIFICATION[/b] 

[b]CAUSE[/b] 

[b]RESOLUTION[/b] 

[b]STATUS[/b] 

[b]KEYWORDS[/b]
Or, is there a better way to do this?

Thanks,
Arti
MagmaDemon
Registered User
Posts: 42
Joined: Mon Dec 01, 2008 10:25 pm
Contact:

Re: Custom BBCodes

Post by MagmaDemon »

i need help, i was wondering what code do i put if i want to put a video up from gametrailers.com?
artiprinted
Registered User
Posts: 52
Joined: Wed Aug 09, 2006 1:11 pm

Re: Custom BBCodes

Post by artiprinted »

MagmaDemon wrote:i need help, i was wondering what code do i put if i want to put a video up from gametrailers.com?
There is a bunch if you use the search at the top of the post for gametrailers or here is one i found, http://www.phpbb.com/community/viewtopi ... s#p6529505
perlmonger
Registered User
Posts: 1
Joined: Thu Jan 01, 2009 1:02 am

Re: Custom BBCodes

Post by perlmonger »

The solutions above didn't take into account that with the nature of the forum it's kind of difficult to explain to people how to modify their URL to make it work (if the resource URL does not start with www) so I made this mode that allows them to paste the full Youtube URI whether or not it's http://www, http://ca, http://uk, etc, etc.

BBCode Useage

Code: Select all

[youtube]{URL}/watch?v={SIMPLETEXT}[/youtube]

HTML Replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="{URL}/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="{URL}/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

Help Line:

Code: Select all

Copy and paste the video URL, do NOT copy and paste the EMBED code
Luchtzak
Registered User
Posts: 267
Joined: Sat Jul 20, 2002 7:13 pm
Contact:

Re: Custom BBCodes

Post by Luchtzak »

How can I make a bbcode to embed this video into my phpbb 3.0 board ?

Code: Select all

<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.airvids.net/player/player.swf"><param name="movie" value="http://www.airvids.net/player/player.swf"><param name="flashvars" value="&file=http://aircraftvids.co.cc/12303036051460000416.flv&height=350&image=http://www.airvids.net/thumb/200.jpg&width=425&location=http://www.airvids.net/player/player.swf&logo=http://www.airvids.net/templates/images/watermark.gif&link=http://www.AirVids.net&linktarget=_blank"/></object>
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 »

First, identify which part of that specifies the file to display:
<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.airvids.net/player/player.swf"><param name="movie" value="http://www.airvids.net/player/player.swf"><param name="flashvars" value="&file=http://aircraftvids.co.cc/12303036051460000416.flv&height=350&image=http://www.airvids.net/thumb/200.jpg&wi ... /></object>
Then, copy the same technique as used for the first YOUTUBE code in the first post in this topic.
i.e. add a new BBCODE

Code: Select all

[AIRVID]http://aircraftvids.co.cc/{SIMPLETEXT}[/AIRVID]
(Leave the domain name out if you want videos from other domains to be allowed also.)

and make the HTML replacement:

Code: Select all

<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.airvids.net/player/player.swf"><param name="movie" value="http://www.airvids.net/player/player.swf"><param name="flashvars" value="&file=[color=#FF0000]http://aircraftvids.co.cc/{SIMPLETEXT}[/color]&height=350&image=http://www.airvids.net/thumb/200.jpg&width=425&location=http://www.airvids.net/player/player.swf&logo=http://www.airvids.net/templates/images/watermark.gif&link=http://www.AirVids.net&linktarget=_blank"/></object>
again, removing the domain name if you want that to be specifiable by the users.
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
ThePhantom2
Registered User
Posts: 72
Joined: Tue Feb 05, 2008 11:26 am
Location: NSW, Australia
Contact:

Re: Custom BBCodes

Post by ThePhantom2 »

ThePhantom2 wrote:I am just setting up my own video site for my members and was wondering if anyone could help with the BBcode so that we can embed videos into posts http://www.bigcatchvideos.com/

Thanks :)
I have tried using these instructions
perlmonger wrote:The solutions above didn't take into account that with the nature of the forum it's kind of difficult to explain to people how to modify their URL to make it work (if the resource URL does not start with www) so I made this mode that allows them to paste the full Youtube URI whether or not it's http://www, http://ca, http://uk, etc, etc.

BBCode Useage

Code: Select all

[youtube]{URL}/watch?v={SIMPLETEXT}[/youtube]

HTML Replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="{URL}/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="{URL}/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

Help Line:

Code: Select all

Copy and paste the video URL, do NOT copy and paste the EMBED code
unfortunately it just doesn't seem that easy, this is the code to embed one of the videos from my video site, the embed code is using the original filename and not the url of the video.

Code: Select all

<embed src="http://www.bigcatchvideos.com/includes/player/Main.swf" type="application/x-shockwave-flash" width="454" height="396" flashvars="conf=http://www.bigcatchvideos.com/data/youtubeboxingdayjew.xml&guide=http://www.bigcatchvideos.com/data/youtubeboxingdayjewguide.xml&banner=http://www.bigcatchvideos.com/data/youtubeboxingdayjewbanner.xml&commercial=http://www.bigcatchvideos.com/data/youtubeboxingdayjewcommercial.xml&quality=high">
any help appreciated. Thanks
User avatar
derkubi
Registered User
Posts: 79
Joined: Fri Feb 15, 2008 10:47 am
Contact:

Re: Custom BBCodes

Post by derkubi »

Phew , hundred of posts

cant find bbcode text left or right picture
I am german , so sorry for my bad english !
momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Custom BBCodes

Post by momentum »

derkubi wrote:Phew , hundred of posts

cant find bbcode text left or right picture
First post. Align (left, center, right) works with pictures as well as text.

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)
Francisco.phpBB
Registered User
Posts: 241
Joined: Fri Dec 03, 2004 2:21 pm
Location: ßrazil (UTC -3)

Can I use {URL} into JavaScrip?

Post by Francisco.phpBB »

What means, this Custom BBCodes rule?

Code: Select all

{URL} A valid URL using any protocol (http, ftp, etc… cannot be used for javascript exploits). If none is given, "http://" is prefixed to the string.
Can I use {URL} into JavaScrip?
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Can I use {URL} into JavaScrip?

Post by ric323 »

Francisco.phpBB wrote:What means, this Custom BBCodes rule?

Code: Select all

{URL} A valid URL using any protocol (http, ftp, etc… cannot be used for javascript exploits). If none is given, "http://" is prefixed to the string.
Can I use {URL} into JavaScrip?
No. The comment is saying that only a genuine URL will be accepted. It specifically stops any javascript from running, as people can use that to try to break into your board.
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
Locked

Return to “Custom BBCode Development and Requests”