Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
TMF.FERREIRA
Registered User
Posts: 3
Joined: Fri Jul 16, 2010 3:18 pm

Re: Custom BBCodes

Post by TMF.FERREIRA »

hi to all!
i have two questions:

there is any bb code to make my links open in a new window or tab?

and


How can i prevent my visitors from seeing the links in the posts?
do i need a code to that, some kind hide mod ??

thanks

User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: Custom BBCodes

Post by dellsystem »

TMF.FERREIRA wrote:there is any bb code to make my links open in a new window or tab?
Knowledge Base - Links Opening New Windows
TMF.FERREIRA wrote: How can i prevent my visitors from seeing the links in the posts?
do i need a code to that, some kind hide mod ??
thanks
You'll need a MOD. Try searching the MOD database. Some possibilities: http://www.phpbb.com/community/viewtopi ... &t=2096070
http://www.phpbb.com/community/viewtopi ... &t=1501835
Former moderator and website team member | My MODs, and more (GitHub)

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21877
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket.

Re: Custom BBCodes

Post by Mick »

TMF.FERREIRA wrote:there is any bb code to make my links open in a new window or tab?
I think this is already in this topic somewhere or other but try this:

URL linking to a new window:

BBCode:

Code: Select all

[external={URL}]{TEXT}[/external]  
HTML replacement:

Code: Select all

<a href="{URL}" target="_blank">{TEXT}</a>  
Help line:

Code: Select all

External URL links are re-directed to a new window
Example:

Code: Select all

[external=http://some_url.com]Link description[/external]
"The more connected we get the more alone we become" - Kyle Broflovski

radkilla
Registered User
Posts: 5
Joined: Fri Jul 16, 2010 4:25 pm

Re: Custom BBCodes

Post by radkilla »

if you need iframe this is the code

[Removed code (please see post below for an explanation - Marshalrusty)]

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10359
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Custom BBCodes

Post by Noxwizard »

You need to be very careful with BBCodes that use iframes. I've seen several posted in the last three pages that just pass in the URL. You'd be better off restricting the URL. If you just use {URL} as an iframe source, anyone can link to any page. A malicious user could toss it in their signature with a virus loaded site and just go make a couple of posts.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

LeeV18
Registered User
Posts: 63
Joined: Fri Apr 09, 2010 3:43 pm

Re: Custom BBCodes

Post by LeeV18 »

Hi, I got a question related to Custom BBcode. I was able to make a custom bbcode for Youtube, thanks to tutorials on this site. I was wondering if there's anyway to turn a bbcode button into an icon. I'll let the image below explain:
Image

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 »

LeeV18 wrote:Hi, I got a question related to Custom BBcode. I was able to make a custom bbcode for Youtube, thanks to tutorials on this site. I was wondering if there's anyway to turn a bbcode button into an icon. I'll let the image below explain:
Image
Not using the custom bbcode feature, no.
It would be possible for someone to create a MOD to do that, but it's a lot more work than just defining a custom bbcode.
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

Spectral
Registered User
Posts: 28
Joined: Wed Jul 07, 2010 12:33 pm

Re: Custom BBCodes

Post by Spectral »

Pony99CA wrote: Maybe nobody answered because you rolled your eyes at them. :roll:
Heya Steve, sorry i didnt mean anything bad with that smile i was just innocent with using it tho im sorry if anyone offended.
I did test the code and just found the video plays too quick any way to sort that ?
Thanks
-
looks like was just video problem that works thanks :)

Spectral
Registered User
Posts: 28
Joined: Wed Jul 07, 2010 12:33 pm

Re: Custom BBCodes

Post by Spectral »

r00t wrote:Mp4 & Flv Player BBCode:

BBCode usage:

Code: Select all

[mp4flv]{URL}[/mp4flv]
HTML replacement:

Code: Select all

    <script type='text/javascript' src='http://phpbbsvn.googlecode.com/svn/dosya/swfobject.js'></script>
        <object type="application/x-shockwave-flash" data="http://phpbbsvn.googlecode.com/svn/dosya/mp4player.swf" id="player2" height="480" width="640">
        <param name="movie" value="http://phpbbsvn.googlecode.com/svn/dosya/mp4player.swf">
        <param name="FlashVars" value="&file={URL}">
        <param name="quality" value="best">
        <param name="menu" value="false">
        <param name="allowfullscreen" value="true">
        <param name="wmode" value="transparent">
        </object>
Help line:

Code: Select all

[mp4flv]mp4 or flv video url[/mp4flv]
That didnt work for me anyone got it working ? or are there any working one for mp4 files pls ?

User avatar
Nekhrun
Registered User
Posts: 3
Joined: Wed Jul 14, 2010 8:57 pm

Re: Custom BBCodes

Post by Nekhrun »

leviatan21 wrote: Try this ( I don't test it )...
It works great! Thank you so much, you've made about a hundred teachers very happy! :D

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Custom BBCodes

Post by leviatan21 »

Spectral wrote:That didnt work for me anyone got it working ? or are there any working one for mp4 files pls ?
Try this HTML Replacement

Code: Select all

<object type="application/x-shockwave-flash" data="http://phpbbsvn.googlecode.com/svn/dosya/mp4player.swf" height="480" width="640"><param name="movie" value="http://phpbbsvn.googlecode.com/svn/dosya/mp4player.swf" /><param name="FlashVars" value="file={URL}" /><param name="quality" value="best" /><param name="menu" value="false" /><param name="allowfullscreen" value="true" /><param name="wmode" value="transparent" /></object>
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

Spectral
Registered User
Posts: 28
Joined: Wed Jul 07, 2010 12:33 pm

Re: Custom BBCodes

Post by Spectral »

just a black screen again :(

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Custom BBCodes

Post by leviatan21 »

Spectral wrote:just a black screen again :(
Strange I test it on FF and IE with .mp3 .mov .flv .swf files, all OK
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

Spectral
Registered User
Posts: 28
Joined: Wed Jul 07, 2010 12:33 pm

Re: Custom BBCodes

Post by Spectral »

leviatan21 wrote: Strange I test it on FF and IE with .mp3 .mov .flv .swf files, all OK
did u try mp4 coz thats what im needing

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Custom BBCodes

Post by leviatan21 »

Spectral wrote:
leviatan21 wrote: Strange I test it on FF and IE with .mp3 .mov .flv .swf files, all OK
did u try mp4 coz thats what im needing
Yes, It works too...
Just a tip : If you change a bbcode you need to edit an existing post, made a change and submit to update it to the new bbcode format, before refresh the page ;)

This is the file I'm using :

Code: Select all

MP4 Samples (iphone profile)

File name: hd1080-faf.sample.mp4
Video: MPEG4 Video (H264) 480x320 (12:5) 23.98fps [Video]
Audio: AAC 44100Hz stereo 1411Kbps [Audio]
Download link: http://www.mediafire.com/file/wzftdvgnnzx
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

Locked

Return to “Custom BBCode Development and Requests”