Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.

Re: Custom BBCodes

Postby Janeytxk » Wed Sep 30, 2009 2:56 am

I have a shout box that is currently displayed on our html website and was wondering if it is possible to embed it in our phpBB3 using a custom BBCode?

The code is
Code: Select all
<!-- BEGIN MYSHOUTBOX.COM CODE -->
<iframe src="http://123abc.myshoutbox.com/" width="300" height="500" frameborder="0" allowTransparency="true"></iframe>
<!-- END MYSHOUTBOX.COM CODE-->

If it is possible can someone explain how to do it.
Thank you.
Janeytxk
Registered User
 
Posts: 14
Joined: Sun Nov 30, 2008 5:51 pm

Re: Custom BBCodes

Postby Janeytxk » Wed Sep 30, 2009 7:34 pm

Bump

Further to my previous post, I have since found instructions on another site:
http://www.110mb.com/forum/guide-add-sh ... 862.0.html

Will this method work, using the suggested BBcode in the forum description?
Does it pose any security issues to our phpBB3? (other than any potential risks in the actual content from the external site).

Thank you.
Janeytxk
Registered User
 
Posts: 14
Joined: Sun Nov 30, 2008 5:51 pm

Re: Custom BBCodes

Postby www.ToRmEnTeD.tv » Thu Oct 01, 2009 9:14 pm

Hippie459MN wrote:
www.ToRmEnTeD.tv wrote:lol wow guys...will someone please just tell me why you cant or wont make a BBcode for my site ?
Maybe a link to a site that can explain what i need to do so i can just figure it out myself ?


I went to your site and while it looks ok none of your videos have an option for an embed code and without it you cant really make a bbcode for it. Not that I know of anyways.

Also, By the looks of some of your other posts and this one, Your not going to get much help with an attitude like that. When in doubt, make it yourself. We are not here to do everything for you just cause you need it. There is plenty of how to on making bbcodes out there. :) Just my .02 cents.




Ummm i am not really asking for someone to build me a BBcode. I am asking the should be experienced people here what the hell is wrong with my code so I can make me a BBcode for my site. And i have been waiting so do act like i am inpatient. I cant get a working BBcode until u figure out whats wrong with my embed code. You people should be able to look at my code and say hey...This code looks funny, Its missing this or that. I dont see why people like you need to act all smart when really you just cant offer any help at all. Sometimes its best to just keep your opinon to yourself if its not a damn bit of good to anyone.
Thanks
www.ToRmEnTeD.tv
Registered User
 
Posts: 83
Joined: Tue Sep 08, 2009 3:45 am
Location: Ohio , USA

Re: Custom BBCodes

Postby Brf » Thu Oct 01, 2009 9:17 pm

This is a support forum for phpBB. We are not here to debug your embed code, which has nothing to do with the forum software.
User avatar
Brf
Support Team Member
Support Team Member
 
Posts: 46842
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Custom BBCodes

Postby karzulovic » Fri Oct 02, 2009 4:55 am

www.ToRmEnTeD.tv wrote:lol wow guys...will someone please just tell me why you cant or wont make a BBcode for my site ?
Maybe a link to a site that can explain what i need to do so i can just figure it out myself ?


dude, dont want to sound like an as*+&%#ld but took me like 3 minutes to search for the bbcode at the Flowplayer website ;)

http://www.phpbb3bbcodes.com/viewtopic.php?f=52&t=2513
User avatar
karzulovic
Registered User
 
Posts: 14
Joined: Thu Jul 02, 2009 8:34 pm

Re: Custom BBCodes

Postby ponyda16 » Sat Oct 03, 2009 2:12 pm

hi
Can you help making custom BBcode for NicoNiocoVideo? (http://www.nicovideo.jp/)

I found it from internet but it s not shown as a player.

[NicoVideo]http://www.nicovideo.jp/watch/{TEXT}[/NicoVideo]

<iframe width="500" height="176" src="http://ext.nicovideo.jp/thumb/{TEXT}"
scrolling="no" style="border:solid 1px #CCC;" frameborder="0">
<a href="http://www.nicovideo.jp/watch/{TEXT}"></a></iframe>
ponyda16
Registered User
 
Posts: 1
Joined: Sat Oct 03, 2009 2:08 pm

Re: Custom BBCodes

Postby karzulovic » Sat Oct 03, 2009 6:16 pm

Not working one, sorry :cry:

but this one its good

BBCode usage:
Code: Select all
[nicovideo]http://{TEXT0}.nicovideo.jp/watch/{TEXT1}m{TEXT2}[/nicovideo]


HTML Replacement:
Code: Select all
<script type="text/javascript" src="http://ext.nicovideo.jp/thumb_watch/{TEXT1}m{TEXT2}"></script>
Last edited by karzulovic on Thu Nov 26, 2009 6:33 pm, edited 1 time in total.
User avatar
karzulovic
Registered User
 
Posts: 14
Joined: Thu Jul 02, 2009 8:34 pm

Re: Custom BBCodes

Postby leviatan21 » Sat Oct 03, 2009 6:27 pm

karzulovic wrote:try this one

Code: Select all
[NicoVideo]http://www.nicovideo.jp/watch/{TEXT}[/NicoVideo]


Code: Select all
<embed width="500" height="176" src="http://www.nicovideo.jp/watch/{TEXT}"
scrolling="no" style="border:solid 1px #CCC;" frameborder="0">
<a href="http://www.nicovideo.jp/watch/{TEXT}"></a></embed>

Sorry but the embed tag is malformed :
Code: Select all
scrolling="no" style="border:solid 1px #CCC;" frameborder="0">
is not valid for a embed tag
And the anchor also must go outside the embed tag
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
leviatan21
Registered User
 
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Custom BBCodes

Postby philliez » Wed Oct 07, 2009 5:27 pm

I've created one for Soundcloud player embedding, and I'd like to share it 8-)

I know that soundcloud is becoming increasingly popular these days, so if you run a music forum you might get some use out of this.

In the "BBCode usage" box input:

Code: Select all
[soundcloud]{URL}[/soundcloud]


In the "HTML Replacement" box input:

Code: Select all
<object height="81" width="420"> <param name="movie" value="http://player.soundcloud.com/player.swf?url={URL}"></param>
<param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={URL}" type="application/x-shockwave-flash" width="420"></embed></object>


Just use the url directly to the page of the song you want to embed.

example: http://northamericandnb.com/viewtopic.p ... =358#p1661

:D
Last edited by will_hough on Wed Oct 07, 2009 5:54 pm, edited 1 time in total.
Reason: Changed quote tags to code tags
philliez
Registered User
 
Posts: 1
Joined: Wed Oct 07, 2009 5:19 pm

Re: Custom BBCodes

Postby murdmon » Thu Oct 08, 2009 4:17 am

Is there a way to put all the above embeded code into a php like file. and when someone post a link it will automatically show the video in the post????

That would make life wonderful!!

Boxden.com uses this method but its vbull.
murdmon
Registered User
 
Posts: 189
Joined: Thu Sep 24, 2009 7:56 am

Re: Custom BBCodes

Postby daxguy_016 » Fri Oct 09, 2009 6:03 pm

can anyone help me by telling me how can i embed videos from facebook on a user posts?
daxguy_016
Registered User
 
Posts: 98
Joined: Tue May 20, 2008 6:56 pm

Re: Custom BBCodes

Postby MORINGA » Fri Oct 09, 2009 11:30 pm

Is there still no way to change bbcode buttons' order? :?:

EDIT: All right...I did it "my way", more or less:
1) Access your phpBB3 Database. Reorganize your custom bbcodes in database table ($table_prefix . bbcodes, aka BBCODES_TABLE, default phpbb_bbcodes), using bbcode_id values from 13 on (I don't know why, nor do I care; better not mess it with lower values);
2) Find, in "includes/functions_display.$phpEx" (default "includes/functions_display.php"), a string:
Code: Select all
ORDER BY bbcode_tag';

Change it to
Code: Select all
ORDER BY bbcode_id';

and save file.

ta-da! :D Immediate result! Note that now you can reorganize bbcode buttons using your bbcode_id values, in the bbcode table. New custom bbcodes will appear last, but that can always be changed.

There's something similar in the acp_bbcodes.$phpEx, but since it's something related only to the ACP on this subject, I think it doesn't really matter.
As always, do it at your own risk; if your board suddenly disappears, the world comes to an end, or anything else wrong happens, that's not my fault and you made something wrong.

I hope this post will help someone else, someday.
Apache 2.2.8(win32)/PHP 5.2.5/MySQL 5.0.51a-community
...and I hate XAMPP, easyPHP and all other "packages"
MORINGA
Registered User
 
Posts: 4
Joined: Tue Jul 28, 2009 1:52 pm

Re: Custom BBCodes

Postby Aseenus » Sat Oct 10, 2009 7:21 am

could someone please get me the BBCodes for videos on http://www.aiontube.com
Aseenus
Registered User
 
Posts: 114
Joined: Mon Sep 14, 2009 3:02 pm

Re: Custom BBCodes

Postby CJ Finnegan » Wed Oct 14, 2009 3:25 pm

I've tried adding this to my bbcodes and all I got was "Your BBCode is constructed in an invalid form."

Christian Ankerstjerne wrote:To the moderators: I'm not sure where to post this - if this is wrong, feel free to move it to a more appropriate section.

I know that there's a custom BBCode table tutorial out there, but I thought I'd share my take on it anyway.

Custom BBCode
BBCode usage lines
Code: Select all
[table]{TEXT}[/table]
[trow]{TEXT}[/trow]
[theader]{TEXT}[/theader]
[tmultiheader={NUMBER}]{TEXT}[/tmultiheader]
[tcell]{TEXT}[/tcell]
[tmulticell={NUMBER}]{TEXT}[/tmulticell]

HTML replacement lines
Code: Select all
<table class="customtable">{TEXT}</table>
<tr>{TEXT}</tr>
<th>{TEXT}</th>
<th colspan="{NUMBER}">{TEXT}</th>
<td>{TEXT}</td>
<td colspan="{NUMBER}">{TEXT}</td>

Suggested help lines (optional)
Code: Select all
Creates a table
Table row (only for use inside a [table])
Table header (only for use inside a [trow])
Table header, spanning over multiple columns (only for use inside a [trow])
Table cell (only for use inside a [trow])
Table cell, spanning over multiple columns (only for use inside a [trow])

CSS for style sheet (optional)
Code: Select all
table.customtable {
  border-collapse: collapse;
}

table.customtable td, table.customtable th {
  border: 1px solid #000000;
}

table.customtable td[colspan], table.customtable th[colspan] {
  text-align: center;
}


Sample usage
BBCode
Code: Select all
[table]
  [trow]
    [tmultiheader=4]Table example[/tmultiheader]
  [/trow]
  [trow]
    [theader]Table header 1[/theader]
    [tcell]Table cell 1[/tcell]
    [tcell]Table cell 2[/tcell]
    [tcell]Table cell 3[/tcell]
  [/trow]
  [trow]
    [theader]Table header 2[/theader]
    [tmulticell=2]Table cell 4[/tmulticell]
    [tcell]Table cell 5[/tcell]
  [/trow]
[/table]

Visual rendering
Code: Select all
+------------------------------------------------------------+
|                       Table example                        |
+---------------+--------------+--------------+--------------+
|Table header 1 | Table cell 1 | Table cell 2 | Table cell 3 |
+---------------+--------------+--------------+--------------+
|Table header 2 |         Table cell 4        | Table cell 5 |
+---------------+-----------------------------+--------------+


Notes
You might want to style the tables further, above I have only included the style for centering cells spanning more than one cell width (this won't work with IE6, though, but you can add an additional class and CSS declaration to take care of that), as well as added a border (I made it black in the example, change to suit your forum's style).

I didn't include the THEAD and TBODY elements, since few users would know how to use them properly anyway. I didn't use TR, TH and TD for the BBCode, as I figure the names I've used would be easier to understand for the users who is not familiar with HTML. Also, this allows for easier coding of cells spanning more than one cell width (the other solution I've seen made the COLSPAN-declaration mandatory for all cells, resulting in a lot of verbose output (i.e. TD COLSPAN="1").

Feel free to use this BBCode on your forum.
User avatar
CJ Finnegan
Registered User
 
Posts: 29
Joined: Wed May 28, 2008 4:19 pm

Re: Custom BBCodes

Postby mandy02 » Fri Oct 16, 2009 7:46 pm

I wish I knew more about BBCode to figure this out myself...but I don't. So here goes.

I need a BBCode that will allow a user to add share their facebook album in a post. The URL for the facebook album looks like this:

http://www.facebook.com/album.php?aid=5&id=5&l=5ae1 (I took the liberty of editing aid= #'s to be an album that doesn't exist. Let me know if this matters and I will supply a valid one.)

--------------------------------------------------------------------------------------------------------------------
I was also wondering if there is some bbcode that will allow a URL to be opened in a seperate window. I don't want to make any URL posted open in a new window, but I would like some BBCode that a user can use for this purpose.

TIA
mandy02
Registered User
 
Posts: 123
Joined: Wed Mar 11, 2009 3:54 am

PreviousNext

Return to Custom BBCode Development and Requests

Who is online

Users browsing this forum: No registered users and 3 guests