Page 23 of 267

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 2:42 pm
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, ........

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 2:57 pm
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?

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 3:26 pm
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.

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 5:14 pm
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.

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 6:16 pm
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?

Re: Custom BBCodes

Posted: Tue Dec 18, 2007 7:42 pm
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?

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 12:50 am
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...

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 7:18 am
by shadow07
I have a question, Would the youtube thing cause any bandwidth issues? like will it eat bandwidth or none at all??

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 9:17 am
by renet
it won*t eat any bandwidth, except the bandwidth of youtube.com

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 11:13 am
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?

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 12:22 pm
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]

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 1:02 pm
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 &?

Re: Custom BBCodes

Posted: Wed Dec 19, 2007 3:06 pm
by renet
[whatever]http://www.thedailyshow.com/video/index ... SIMPLETEXT}[/whatever] might work. but i haven*t tried it out.

Re: Custom BBCodes

Posted: Thu Dec 20, 2007 5:39 am
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

Re: Custom BBCodes

Posted: Thu Dec 20, 2007 2:13 pm
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>