Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Locked
allanhardy
Registered User
Posts: 197
Joined: Sun Dec 15, 2002 4:20 am

Re: Custom BBCodes

Post by allanhardy »

Well php would require going through the web server (apache) - so wouldnt work if client is doing the processing

I guess with some Ajax thing, ........
User avatar
ApplePro
Registered User
Posts: 167
Joined: Wed Oct 31, 2007 1:27 pm

Re: Custom BBCodes

Post by ApplePro »

ApplePro wrote:Hello,

I have a problem with adding custom BBcode:

Bbcode:

Code: Select all

[img-right]{TEXT}[/img-right]
HTML:

Code: Select all

<a href="http://www.site.com/photo/{TEXT}-big.jpg" class="thickbox"><img src="http://www.site.com/photo/{TEXT}-sq.jpg" style="border-color: rgb(119, 119, 119);" class="imgmargin" align="right" border="1"  /></a>
PHPBB3 doesn't parse my BBcode, it displays just simple text. I wonder how can I fix it?
Can someone answer my question please? What am I doing wrong?
User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: Custom BBCodes

Post by digioz »

allanhardy wrote:never got google to work, none of the samples here, read it all

On v3.0 gold

Anyone ever get a working google, that handles the =- and just = formats?
Yeah, I think its a bug with certain Server OS / PHP Version. I never got any of them to work either with 3.0 Gold.
DigiOz Multimedia
http://www.digioz.com
renet
Registered User
Posts: 126
Joined: Tue May 04, 2004 5:02 pm
Location: Germany

Re: Custom BBCodes

Post by renet »

allanhardy wrote:Well php would require going through the web server (apache) - so wouldnt work if client is doing the processing

I guess with some Ajax thing, ........
guess i got you wrong... client isn*t doing the processing in that way... of you*re the replacement is done by the server sided application.
master-sonic
Registered User
Posts: 6
Joined: Tue Dec 18, 2007 6:11 pm

Re: Custom BBCodes

Post by master-sonic »

I'm using mimetex on my forum and I want phpBB to recognize $formula$ as if it was [latex]formula[/latex].

Is there a way to realize that in phpBB3?
Wolfboy
Registered User
Posts: 14
Joined: Thu Jan 06, 2005 1:13 pm

Re: Custom BBCodes

Post by Wolfboy »

ApplePro wrote:
ApplePro wrote:Hello,

I have a problem with adding custom BBcode:

Bbcode:

Code: Select all

[img-right]{TEXT}[/img-right]
HTML:

Code: Select all

<a href="http://www.site.com/photo/{TEXT}-big.jpg" class="thickbox"><img src="http://www.site.com/photo/{TEXT}-sq.jpg" style="border-color: rgb(119, 119, 119);" class="imgmargin" align="right" border="1"  /></a>
PHPBB3 doesn't parse my BBcode, it displays just simple text. I wonder how can I fix it?
Can someone answer my question please? What am I doing wrong?
It's difficult to tell without having a legitimate site to check it with. If you manually insert the text into the html and put it in a blank html page, it works? Have you tried removing the - from the tag in case it causes problems?
User avatar
SquiD
Registered User
Posts: 26
Joined: Tue Nov 13, 2007 11:51 pm

Re: Custom BBCodes

Post by SquiD »

Why does the youtube BBcode show what you actually wrote? Like it show

Heres the test post I made. http://xgodxextinktion.freehostia.com/p ... hp?f=2&t=2

I have a feeling it can be solved by editing the HTML replacement. But I have no idea on how to do that...
User avatar
shadow07
Registered User
Posts: 34
Joined: Fri Nov 23, 2007 12:25 am

Re: Custom BBCodes

Post by shadow07 »

I have a question, Would the youtube thing cause any bandwidth issues? like will it eat bandwidth or none at all??
renet
Registered User
Posts: 126
Joined: Tue May 04, 2004 5:02 pm
Location: Germany

Re: Custom BBCodes

Post by renet »

it won*t eat any bandwidth, except the bandwidth of youtube.com
Knutselmaaster
Registered User
Posts: 51
Joined: Tue Sep 19, 2006 6:37 pm
Location: Paris

Re: Custom BBCodes

Post by Knutselmaaster »

lonithe1 wrote:BBCode usage box

Code: Select all

[dm]http://www.dailymotion.com/swf/{SIMPLETEXT}[/dm]
HTML replacement box

Code: Select all

<div><object width="520" height="432"><param name="movie" value="http://www.dailymotion.com/swf/{SIMPLETEXT}"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{SIMPLETEXT}" type="application/x-shockwave-flash" width="520" height="432" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
For exemple, this video:

http://www.dailymotion.com/featured/vid ... t-slim_fun

You take this number embed code...
<div><object width="425" height="356"><param name="movie" value="http://www.dailymotion.com/swf/1NCqGweQLUgZooAEQ"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/1NCqGweQLUgZooAEQ" type="application/x-shockwave-flash" width="425" height="356" allowFullScreen="true" allowScriptAccess="always"></embed></object><br /><b><a href="http://www.dailymotion.com/video/x3hm7o ... m_fun">Don t slim</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/3615polyprod ... ></i></div>
In your topic, you post [dm]1NCqGweQLUgZooAEQ[/dm], and it's ok... :/
Doesn't work on version Gold?
What do I have to change to make it work, please?
renet
Registered User
Posts: 126
Joined: Tue May 04, 2004 5:02 pm
Location: Germany

Re: Custom BBCodes

Post by renet »

Code: Select all

[dm]http://www.dailymotion.com/swf/{SIMPLETEXT}[/dm]

+

<div><object width="520" height="432"><param name="movie" value="http://www.dailymotion.com/swf/{SIMPLETEXT}"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{SIMPLETEXT}" type="application/x-shockwave-flash" width="520" height="432" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
works with: [dm]http://www.dailymotion.com/swf/1NCqGweQLUgZooAEQ[/dm]

Code: Select all

[dm]{SIMPLETEXT}[/dm]

+

<div><object width="520" height="432"><param name="movie" value="http://www.dailymotion.com/swf/{SIMPLETEXT}"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{SIMPLETEXT}" type="application/x-shockwave-flash" width="520" height="432" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
works with: [dm]1NCqGweQLUgZooAEQ[/dm]
babywhiz
Registered User
Posts: 3
Joined: Wed Nov 21, 2007 12:19 am

Re: Custom BBCodes

Post by babywhiz »

Ok, so in
http://www.thedailyshow.com/video/index ... k-of-shame

the video ID is 127764&title=double-walk-of-shame

How do I get it to read the stuff after &?
renet
Registered User
Posts: 126
Joined: Tue May 04, 2004 5:02 pm
Location: Germany

Re: Custom BBCodes

Post by renet »

[whatever]http://www.thedailyshow.com/video/index ... SIMPLETEXT}[/whatever] might work. but i haven*t tried it out.
User avatar
shadow07
Registered User
Posts: 34
Joined: Fri Nov 23, 2007 12:25 am

Re: Custom BBCodes

Post by shadow07 »

Basically like this

[video]{TEXT}[/video]


<embed FlashVars='videoId={TEXT}' src='http://www.thedailyshow.com/sitewide/vi ... /swf.jhtml' quality='high' bgcolor='#cccccc' width='332' height='316' name='comedy_central_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>


Basically for text put the video id number

this should work, im nt sure hw that site works, nvr used it
User avatar
jwilmes6996
Registered User
Posts: 57
Joined: Sat Sep 24, 2005 6:54 pm
Location: Owensboro
Contact:

Re: Custom BBCodes

Post by jwilmes6996 »

All of my BBcode for embedding videos work fine in FireFox. So far I have Google, YouTube, and LiveLeak added. In Internet Explorer 7, the LiveLeak videos do not show up. Below is all I see;
Image

Below is the BBcode and HTML replacement I am using. Any ideas on what I am doing wrong??

BBCode;

Code: Select all

[LiveLeak]http://www.liveleak.com/view?i={SIMPLETEXT}[/LiveLeak]
HTML Replacement;

Code: Select all

<object width="425" height="350"><param 
<object type="application/x-shockwave-flash" width="450" height="370" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token={SIMPLETEXT}"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token={SIMPLETEXT}"><param name="wmode" value="transparent"><param name="quality" value="high"></object>
Locked

Return to “Custom BBCode Development and Requests”