Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
robdocmagic
Registered User
Posts: 41
Joined: Sat Jan 14, 2006 4:07 pm

Re: Custom BBCodes

Post by robdocmagic »

ric323 wrote:Why do you have URL and URL1 in the definition? If there is more than one, you have to number them all.
Thanks.. long day... once I numbered them correctly its working like a charm.

In case anyone is interested I integrated the JW FLV Player and I can have FLV playlists and all kinds of cool stuff. Here is a shot:

Image
AgentTim
Registered User
Posts: 1
Joined: Mon Mar 16, 2009 11:40 pm

Re: Custom BBCodes

Post by AgentTim »

...
After trying several Flickr BBCs that didn't work right, or didn't link back to Flickr (as required by their TOS), I made a variation that works great for our phpBB3 forums.
Image
Section 1 (BBCode Usage):

Code: Select all

[flickr]<a href="{URL1}" title="{TEXT1}"><img src="{URL2}" width="{NUMBER1}" height="{NUMBER2}" alt="{TEXT2}" /></a>[/flickr]
Section 2 (HTML Replacement):

Code: Select all

<div align="left">
    <a href="{URL1}" target="_blank"><img src="{URL2}" border="0"></a><br />
    Image Title: <b>{TEXT1}</b><br />
    Width: {NUMBER1}px Height: {NUMBER2}px &nbsp; &nbsp;
    Required Link: <u><a href="{URL1}">Flickr Source Page</a></u> 
</div>
Section 3 (Help Line):

Code: Select all

Flickr: [flickr]<Flickr, Medium Size, Copy & Paste HTML>][/flickr]
And, of course, check the 'Display on Posting Page' box at bottom to activate it.

Usage:

Image

Note: This code is an alteration of Alex's code at http://digitalpardoe.co.uk/blog/show/115. It didn't work right for me, so I updated it.
nadalbg
Registered User
Posts: 273
Joined: Wed Jul 16, 2008 12:58 pm
Contact:

Re: Custom BBCodes

Post by nadalbg »

nadalbg wrote:Does anyone know if its possible to add rel no follow tag by BB code ?
I want to make one thread with lots of links and I want it no follow.

Regards
Anyone ?
User avatar
onehundredandtwo
Registered User
Posts: 1228
Joined: Fri Nov 14, 2008 8:07 am

Re: Custom BBCodes

Post by onehundredandtwo »

nadalbg wrote:Does anyone know if its possible to add rel no follow tag by BB code
BBCode Usage:

Code: Select all

[nofollow={URL}]{TEXT}[/nofollow]
HTML Replacement:

Code: Select all

<a href="{URL}" rel="nofollow">{TEXT}</a>
Need help preventing spam? Read Preventing spam in phpBB 3.0.6 and above
nadalbg
Registered User
Posts: 273
Joined: Wed Jul 16, 2008 12:58 pm
Contact:

Re: Custom BBCodes

Post by nadalbg »

onehundredandtwo wrote:
nadalbg wrote:Does anyone know if its possible to add rel no follow tag by BB code
BBCode Usage:

Code: Select all

[nofollow={URL}]{TEXT}[/nofollow]
HTML Replacement:

Code: Select all

<a href="{URL}" rel="nofollow">{TEXT}</a>
Thank you very much :) Works perfect.
Thomas85
Registered User
Posts: 2
Joined: Wed Mar 11, 2009 12:47 pm

Re: Custom BBCodes

Post by Thomas85 »

Sorry for reposting this, but my original post, from a few days ago, appeared in the middle of another discussion and consequently may have gone unnoticed. In any case, there haven't been any reactions.
Help please?
Thomas85 wrote:I have a question concerning BBCodes and javascript:

I want to make a BBCode involving a link which triggers a javascript function. Here's an example of the basic idea:

BBCode usage:

Code: Select all

[alert]{SIMPLETEXT}[/alert]
HTML Replacement:

Code: Select all

<A HREF="javascript:alert('Hey!')">{SIMPLETEXT}</A>
However, when trying to store this, I get a 500 Internal Server Error.
Checking the server error logs, it seems to be triggered by the HREF="javascript: part. For example, this does work:

Code: Select all

<INPUT TYPE="button" VALUE="{SIMPLETEXT}" onClick="alert('Hey!')">
But that's an ugly button, I want a link!

My question: is this error due to some kind of safety feature of phpBB (if so, why?), or has it got something to do with my provider? Could someone else try this out and see if it results in the same error?

Thanks in advance for any help
takka
Registered User
Posts: 36
Joined: Mon Oct 04, 2004 7:15 am

Re: Custom BBCodes

Post by takka »

Can we embed photosynth into our phpbb3 forums?

http://photosynth.net/

They have a plugin, and they also give out embed codes for any "video" created with it..

example:

Code: Select all

<iframe frameborder=0 src="http://photosynth.net/embed.aspx?cid=de48649b-4c25-46ec-ac87-3c5d9ac9ca8f" width="400" height="300"></iframe>
and the thing to see with this code is:

http://photosynth.net/view.aspx?cid=de4 ... 5d9ac9ca8f

(you need to have the plugin installed)

Cheers
Wh1zzy
Registered User
Posts: 1
Joined: Fri Feb 13, 2009 4:49 pm

Re: Custom BBCodes

Post by Wh1zzy »

Since i host a pokerforum, i would very much like to be able to run Pokerstars TV vids.
the embed code looks like this

Code: Select all

<script src="http://www.pokerstars.tv/movies/1QW/ept-1-monte-carlo-day-4.js?from=embed&include_link=true" type="text/javascript"></script><br />Watch <a href="http://www.pokerstars.tv/movies/1QW/ept-1-monte-carlo-day-4.html">EPT 1, Monte Carlo, Day 4</a> on PokerStars.tv
any ideas on how to bbcode that? it might be asked already, have gotten to page 35 so far lol still need to read the other 90+ pages
some blind fool
Registered User
Posts: 409
Joined: Sat Aug 19, 2006 5:28 pm

Re: Custom BBCodes

Post by some blind fool »

Wh1zzy wrote:Since i host a pokerforum, i would very much like to be able to run Pokerstars TV vids.
you should be able to do something like this.. i've checked it with the url provided in the code and it appears to work, but you may need to tweak it. the '.html' entry in the bbcode is to nullify that extension, so that you don't need another entry for the same url when it ends in '.js'.

bbcode

Code: Select all

[view]{URL}.html, {TEXT}[/view]
html replacement

Code: Select all

<script src="{URL}.js?from=embed&include_link=true" type="text/javascript"></script><br />Watch <a href="{URL}.html">{TEXT}</a> on PokerStars.tv
help line

Code: Select all

[view]http://www.pokerstars.tv/movies/1QW/ept-1-monte-carlo-day-4.html, EPT 1, Monte Carlo, Day 4[/view]
..
Thomas85 wrote:My question: is this error due to some kind of safety feature of phpBB (if so, why?), or has it got something to do with my provider? Could someone else try this out and see if it results in the same error?
i don't think it's phpbb. i copy/pasted that bbcode and had no problem submitting the code or previewing a post with it as part.
please do not PM me to ask for help. thanks.
User avatar
derkubi
Registered User
Posts: 79
Joined: Fri Feb 15, 2008 10:47 am
Contact:

Re: Custom BBCodes

Post by derkubi »

robdocmagic wrote:
ric323 wrote:Why do you have URL and URL1 in the definition? If there is more than one, you have to number them all.
Thanks.. long day... once I numbered them correctly its working like a charm.

In case anyone is interested I integrated the JW FLV Player and I can have FLV playlists and all kinds of cool stuff. Here is a shot:

Image
Cool , searching for something like that . I am using a bbcode for JW player and FLV-files :

Code: Select all

[flv]{URL}[/flv]

<object type="application/x-shockwave-flash" style="width:600px; height:495px;"  data="http://mysite.de/mediaplayer/player.swf">
<param name="movie"  value="http://mysite.de/mediaplayer/player.swf" /> <param name="allowfullscreen" value="true" />
<param name="flashVars" value="file={URL}&title=My%20Video&plugins=rateit-2" />
</object> 
Works fine but want to play a list of files and dont know how to . Any help for me ?
I am german , so sorry for my bad english !
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: Custom BBCodes

Post by ameisez »

derkubi wrote: Cool , searching for something like that . I am using a bbcode for JW player and FLV-files :

Code: Select all

[flv]{URL}[/flv]

<object type="application/x-shockwave-flash" style="width:600px; height:495px;"  data="http://mysite.de/mediaplayer/player.swf">
<param name="movie"  value="http://mysite.de/mediaplayer/player.swf" /> <param name="allowfullscreen" value="true" />
<param name="flashVars" value="file={URL}&title=My%20Video&plugins=rateit-2" />
</object> 
Works fine but want to play a list of files and dont know how to . Any help for me ?
assuming you are using JW Player... Upload the playlist containing your list of video and put the url playlist as supliment for your {URL}

example.. instead of

Code: Select all

[flv]http://www.domain.com/your_video.flv[/flv]
make it

Code: Select all

[flv]http://www.domain.com/your_playlist.xml[/flv]
Here is XSPF playlist format

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns = "http://xspf.org/ns/0/">
  <trackList>
    <track><location>http://example.com/movie_1.flv</location></track>
    <track><location>http://example.com/movie_2.flv</location></track>
    <track><location>http://example.com/movie_3.flv</location></track>
  </trackList>
</playlist>
If you want to know more about the playlist you can visit http://www.xspf.org/
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
milan64586
Registered User
Posts: 60
Joined: Fri Dec 14, 2007 6:35 pm

Re: Custom BBCodes

Post by milan64586 »

I've tried few BBcodes found in this topic, for IMEEM. None of them work. Could somebody help me? I need bbcode for videos from imeem, not songs. Could use it and for songs, but priority are videos. Tnx.
sam_sdc
Registered User
Posts: 3
Joined: Sun Mar 22, 2009 9:19 pm

Re: Custom BBCodes

Post by sam_sdc »

I'm new to all this, but would it be possible to make one that allows HTML?

Something like this:

Code: Select all

[html]{TEXT}[/html]
HTML Replacement

Code: Select all

{TEXT}
KRB99
Registered User
Posts: 392
Joined: Sun Jan 20, 2008 1:24 am
Location: Canada
Name: Kyle

Re: Custom BBCodes

Post by KRB99 »

sam_sdc wrote:I'm new to all this, but would it be possible to make one that allows HTML?

Something like this:

Code: Select all

[html]{TEXT}[/html]
HTML Replacement

Code: Select all

{TEXT}
------
It is posible but IT IS VERRY DANGEROUS THATS WHY IT WAS TAKEN OUT OF PHPBB3
If you search you should find a few eairlyer in this thread
BE WARNED HTML CAN mess up your forum and give acess to expoilts
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 »

KRB99 wrote:
sam_sdc wrote:I'm new to all this, but would it be possible to make one that allows HTML?

Something like this:

Code: Select all

[html]{TEXT}[/html]
HTML Replacement

Code: Select all

{TEXT}
------
It is posible but IT IS VERRY DANGEROUS THATS WHY IT WAS TAKEN OUT OF PHPBB3
If you search you should find a few eairlyer in this thread
BE WARNED HTML CAN mess up your forum and give acess to expoilts
At NO time will any custom BB code examples be allowed to stay on this forum, which show how to allow HTML within posts.

The security risk is so great, we not only do not wish to allow such post, we do not even wish to allow the discussion of such - they are not allowed - period.
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
Locked

Return to “Custom BBCode Development and Requests”