Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

told you guys it was possible. :lol:
Crispy
Registered User
Posts: 30
Joined: Sat Aug 09, 2008 12:18 pm

Re: Custom BBCodes

Post by Crispy »

I made a custom BBCode to share with you all.
a last.fm widget :)

BBCode:

Code: Select all

[lastfm]{IDENTIFIER}[/lastfm]
HTML replacement:

Code: Select all

<style type="text/css">table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_black.png) no-repeat 0 0 !important;}table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 tr.lfmEmbed object {float:left;}table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetchart_bec03b7a40ed68f929adae359de0f518 tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -159px 0 !important;}</style>
<table class="lfmWidgetchart_bec03b7a40ed68f929adae359de0f518" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="{IDENTIFIER}: Recently Listened Tracks" href="http://www.last.fm/user/{IDENTIFIER}" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_black.png) no-repeat 0 -20px;text-decoration:none;border:0;"></a></td></tr><tr class="lfmEmbed"><td><object type="application/x-shockwave-flash" data="http://cdn.last.fm/widgets/chart/friends_6.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="lfmEmbed_159743419" width="184" height="199"> <param name="movie" value="http://cdn.last.fm/widgets/chart/friends_6.swf" /> <param name="flashvars" value="type=recenttracks&user={IDENTIFIER}&theme=black&lang=en&widget_id=chart_bec03b7a40ed68f929adae359de0f518" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <param name="quality" value="high" /> <param name="bgcolor" value="000000" /> <param name="wmode" value="transparent" /> <param name="menu" value="true" /> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/black.png) repeat-x 0 0;text-align:right;"><table cellspacing="0" cellpadding="0" border="0" style="width:184px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?colour=black&chartType=recenttracks&user={IDENTIFIER}&chartFriends=1&from=code&widget=chart" title="Get your own widget" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/user/{IDENTIFIER}" title="View {IDENTIFIER}'s profile" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px -20px;text-decoration:none;border:0;"></a></td><td class="lfmPopup"style="width:25px;"><a href="http://www.last.fm/widgets/popup/?colour=black&chartType=recenttracks&user={IDENTIFIER}&chartFriends=1&from=code&widget=chart&resize=1" title="Load this chart in a pop up" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>
Help line:

Code: Select all

Display a widget of your Last.fm profile info. [lastfm]USERNAME[/lastfm]
Screen:
lastscreen.jpg
lastscreen.jpg (181.48 KiB) Viewed 2180 times
Tested, and works well :)
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Re: Custom BBCodes

Post by wordeebird »

Still interested in some code to embed mp4 video that I am hosting myself... anyone have any ideas? :D
nicholas.alipaz
Registered User
Posts: 91
Joined: Fri Jun 15, 2007 12:43 pm
Location: Los Angeles, CA

Re: Code for embedding an mp4 video I host myself

Post by nicholas.alipaz »

wordeebird wrote:I would like to create a custom BBcode to embed an mp4 video that I'm hosting off of my own server.

I tried this in the appropriate boxes in the ACP and it didn't work:

Code: Select all

[mp4]{TEXT}[/mp4]

and 

<embed src="{TEXT}" width="460" height="395" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
It showed in the post the approximate size it should have showed, but the body of the post was just blank. I don't mean to be an idiot, but is an mp4 *not* flash? If not, what should I have in the code instead of:

Code: Select all

pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
Thanks in advance~
to add the mp4, it is my understanding that you have to include some sort of player for it, such as apple's quicktime:

Code: Select all

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="160" height="144" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sample.mov">
<param name="autoplay" value="true">
<param name="controller" VALUE="false">
<embed src="sample.mov" width="160" height="144" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
where sample.mov would get replaced by your video url. Most likely a relative path if it is on your server "path/to/my/video.mp4"

Hope that works for you.
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Re: Custom BBCodes

Post by wordeebird »

Thank you, nicholas.alipaz! :D

Instead of: value="sample.mov" I put: "value="{TEXT}" -and- embed src="{TEXT}"... (I did that b/c I will be hosting more than one mp4 on my server that I would like to post in my Library, and the actual filetype is .mp4.)

But it came up as nothing (it didn't even show the dimensions as blank space w/in my post)...

I also tried to put in the path (the file folder where it is located) and then just type out the filename of the specific mp4 within my post inside the [mp4] [/mp4] tags like so:

Code: Select all

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="160" height="144" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="http://www.nwolibrary.com/files/{TEXT}">
<param name="autoplay" value="true">
<param name="controller" VALUE="false">
<embed src="http://www.nwolibrary.com/files/{TEXT}" width="160" height="144" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
So both ways aren't working... :|

Any other suggestions??
nicholas.alipaz
Registered User
Posts: 91
Joined: Fri Jun 15, 2007 12:43 pm
Location: Los Angeles, CA

Re: Custom BBCodes

Post by nicholas.alipaz »

if you browse to the file, are you getting a forbidden?

If so then your .htaccess file is blocking the embedding of it most likely. look at the .htaccess in the files directory, if it has deny from all, it is probably blocking it.

I was able to add this bbcode to my site:

Code: Select all

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="480"HEIGHT="286" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="{TEXT}">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<EMBED SRC="{TEXT}" WIDTH="480" HEIGHT="286" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
http://pbdemo.alipaz.net/viewtopic.php?f=2&t=4&p=5#p5

Let me know if it works for you.

I would certainly think about converting the videos, simply due to the fact that not everyone has quicktime, nor does everyone want it. I won't install it. If a site requires it, I just go somewhere else. Why? 'cause they could've used flash or something more "universal".

To tell you the truth, I am not sure if what I posted on my site is working, 'cause I don't have quicktime... ;)
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Re: Custom BBCodes

Post by wordeebird »

I tried yours and it's not showing up (and I DO have Quicktime installed)... we'll have to solicit another idea I guess... although it seems like your code would work, I don't know why it's not??

Also, I have that video in the same folder as all of my other files that are there for people to download, and nothing is blocking the download of the other files... hmmm....
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Re: Custom BBCodes

Post by wordeebird »

I wanted to be clear that my mp4 is CHMOD 755~ so everyone should be able to see and execute it...
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

i'm having the same exact problem right now with my videos. but it's with any video type and not just mp4 videos. if i can get my upload limit on my forums up then i can upload with no problems.
:| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :| ___Don't_Read_Unless_Interested_____ :| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :|
:| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :| +++Don't_Read_Unless_Interested+++++ :| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :|
:| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :| ****Don't_Read_Unless_Interested******* :| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :|
:| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :| ~~~Don't_Read_Unless_Interested~~~~~ :| :shock: :arrow: :?: :? :roll: 8-) :idea: :lol: :|
and for those curious what i meant it means that videos uploaded through the forums work but if they're uploaded through anything else they don't work and become corrupted.
User avatar
Pandamonia
Registered User
Posts: 5
Joined: Mon Nov 24, 2008 9:15 pm
Location: Earth
Contact:

Re: Custom BBCodes

Post by Pandamonia »

BBCode Usage:

Code: Select all

[cmt]{TEXT][/cmt]
HTML Replacement:

Code: Select all

<!--{TEXT}-->
For example, you wouldn't be able to see this:
[cmt]This is a comment[/cmt]
helpflash
Registered User
Posts: 4
Joined: Tue Nov 25, 2008 12:42 am

Help! Struggling with flash signatures in a forum

Post by helpflash »

Hi!

I'm trying to create the following BBCode with a friend of mine:

http://www.dcarrsmith.com/sigs/s ... teste.html

It simulates the F1 FOM TV Captions showing the driver bios. As you can see, it works perfectly in a html page.

However, we've been struggling heaps to get it to work with a bbcode. Basically, it was supposed to work in that way:

Code: Select all

[sigpic]10[/sigpic] 
(With the number "10" being the driver number. Then the .swf file would read a .xml file (both are on the same place) containing the data for the driver number 10. The number is passed through a "flashvars" parameter so that the .swf knows where he should look for the driver data in the .xml file.

However, our html code for that isnt working. Could someone check and tell me whats wrong? please? :cry:

The BBCode:

Code: Select all

[sigpic]{number}[/sigpic]
The HTML Code replacement:

Code: Select all

<object width="281" height="115"><param name="movie" value="http://www.dcarrsmith.com/sigpics/FOMCAP.swf" flashvars="driverno={NUMBER}"></param><param name="wmode" value="transparent"></param><embed src="http://www.dcarrsmith.com/sigpics/FOMCAP.swf" type="application/x-shockwave-flash" flashvars="driverno={NUMBER}" wmode="transparent" width="281" height="115"></embed></object>
EDIT: We've tried using the [flash] bbcode, however for some reason even though our admin has set it to ON, its still shown in both posting and signature editing boxes as OFF.

the attempt:

Code: Select all

[flash=281,115]http://www.dcarrsmith.com/sigpics/FOMCAP.swf?driverno=10&wmode=transparent[/flash]


Cheers,
Bruno.
User avatar
Dimitrios
Registered User
Posts: 11
Joined: Tue May 06, 2008 2:35 pm

Re: Custom BBCodes

Post by Dimitrios »

Hello. Can someone please modify the code below for playing wma files instead of mp3?

Thank you in advance


BBCode usage

Code: Select all

[Mp3]{URL}[/Mp3]
HTML replacement

Code: Select all

<p style="color: rgb(0, 0, 0); font-family: Arial,sans-serif; font-size: 11px; font-weight: normal; text-align: left; text-decoration: none;">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="dewplayer" align="left" height="30" width="300"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://forum.frequencebonheur.fr//dewplayer.swf?son={URL}&autostart=0&bgcolor=FFFFFF"><param name="quality" value="high"><param name="bgcolor" value="FFFFFF"><embed src="http://forum.frequencebonheur.fr//dewplayer.swf?son={URL}&autostart=0&bgcolor=FFFFFF" quality="high" bgcolor="FFFFFF" name="dewplayer" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="left" height="30" width="300"></object><br></p>
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Re: Custom BBCodes

Post by wordeebird »

OniTenshu wrote:i'm having the same exact problem right now with my videos. but it's with any video type and not just mp4 videos. if i can get my upload limit on my forums up then i can upload with no problems.
To increase your upload limit, in the ACP click "Attachment settings" in the General Tab, then look on the right where it says "Total Attachment quota" - raise that number (it's the maximum space you allocate on your server for attachments)
Then, underneath that, you can raise the number in the "Maximum file size" field.
Viola! 8-)
and for those curious what i meant it means that videos uploaded through the forums work but if they're uploaded through anything else they don't work and become corrupted.
It sounds like you saying that if you attach the video(s), they are fine, but if you upload them and then provide a link to them, they do not work... is that right?

If so, that is what I'm having to do - I still don't have a way to embed the mp4s... :?

Do you want to embed them or simply post them as attachments?
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Custom BBCodes

Post by OniTenshu »

i'm trying to do both. but the problem is only video uploaded through the forums work but the drawback is that there seems to be no way to get the link to the video itself just a screwed up link that contains the video and only fixes itself if downloaded.

and I've done that with my forums already and I've edited both the php.ini and the .htaccess files and still it's stuck at 2MB even though i set the limit to 5GB in the php.ini file and changed the total attachment quota to it's max already but the problem is that the forums still recognize the original size limit and won't change to even a bite above 2MB.
helpflash
Registered User
Posts: 4
Joined: Tue Nov 25, 2008 12:42 am

Re: Custom BBCodes

Post by helpflash »

no help for my problem? :( please! check my previous post
Locked

Return to “Custom BBCode Development and Requests”