Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: Custom BBCodes

Post by ameisez »

it didn' work :(
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
teman
Registered User
Posts: 145
Joined: Fri Mar 21, 2008 5:50 pm

Re: Custom BBCodes

Post by teman »

some blind fool wrote:
Brf wrote:Yes. It might do that if he put http//: in both places.... In the HTML replacement and in the posting-text.
I am not sure how make_clickeable will react to either, since it tends to put in http:// where it thinks it needs it.
but not remove the http:// if there's an instance where it shouldn't be there, as appears to be the case here.

in trying to look at this a few different ways to see what might not be working to cause this and what might solve it, i found that sample text doesn't work. i'm assuming the url token works the same as the bbcode, which may explain why the http:// was added to the html replacement. if that's the case, would adding the http:// to the bbcode instead of removing it from the html replacement work? or is there something else going on here?

Code: Select all

[link]http://{URL}[/link]

Code: Select all

<A HREF="http://{URL}"><img src="http://i.i.com.com/cnwk.1d/Ads/common/CatSpot/icon_download.gif"> <b>DOWNLOAD HERE</b></A>
thanks you guys...i tested it.but,it's not working :cry:
i still have to use http:// or www. :cry:
never pleased become the leader!!!
ask me for any symbian issues at
http://gsmvolt.com and see our rank here
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: Custom BBCodes

Post by ameisez »

Is there a bbcode (url type) that will be able to log the username of those who click just below the signature part of the post?
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
erradil
Registered User
Posts: 4
Joined: Thu Jul 17, 2008 12:05 am

Re: Custom BBCodes

Post by erradil »

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

Yet another Youtube BBCode

Post by nicholas.alipaz »

I have seen tons of threads and code for posting youtube videos via bbcode. None of the ones I have ever seen seemed satisfactory.

I wrote one of my own, the bbcode is as simple as it can get and the code will accept any form of youtube url accept the actual embed code.

here it is:

For the BBCode the user may do any of the following and the video will be embedded properly:

Code: Select all

[youtube]http://xxx.youtube.com/watch?v=xxxxxxxxxx[/youtube]

Code: Select all

[youtube]http://xxx.youtube.com/v/xxxxxxxxxx[/youtube]

Code: Select all

[youtube]xxxxxxxxxx[/youtube]
Where: xxx stands for the subdomain (www, or alternate) and xxxxxxxxxx is the id of the video.

Her is what you put in your ACP:

BBCode usage

Code: Select all

[youtube]{TEXT}[/youtube]
HTML replacement

Code: Select all

<script type="text/javascript">
function ytubeGo() {
var ytubeVal = "{TEXT}";
  if(ytubeVal.match("watch")) { //http://www.youtube.com/watch?v=xxxxxxxxxx
    var ytubeId = ytubeVal.indexOf("v=");
    ytubeId = ytubeId+2;
    ytubeId = ytubeVal.slice(ytubeId);
    var doMain = ytubeVal.indexOf("watch");
    doMain = ytubeVal.slice(0,doMain);
    document.write("<object width=\"425\" height=\"344\"><param name=\"movie\" value=\""+doMain+"v/"+ytubeId+"&hl=en&fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\""+doMain+"v/"+ytubeId+"&hl=en&fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>");
  }
  else if (ytubeVal.match("v/")) { //http://www.youtube.com/v/xxxxxxxxxx
    var ytubeId = ytubeVal.indexOf("v/");
    ytubeId = ytubeId+2;
    ytubeId = ytubeVal.slice(ytubeId);
    var doMain = ytubeVal.indexOf("v/");
    doMain = ytubeVal.slice(0,doMain);
    document.write("<object width=\"425\" height=\"344\"><param name=\"movie\" value=\""+doMain+"v/"+ytubeId+"&hl=en&fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\""+doMain+"v/"+ytubeId+"&hl=en&fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>");
  }
  else { //just the id xxxxxxxxx
    ytubeId = ytubeVal;
    document.write("<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+ytubeId+"&hl=en&fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+ytubeId+"&hl=en&fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed></object>");
  }
}
ytubeGo();
</script>
Help line
Place the video's url between the tags, doesn't really matter which format, we'll take care of the rest
I hope someone can get some use out of that.
King of Creú
Registered User
Posts: 1
Joined: Sat Nov 15, 2008 12:26 am

Post by King of Creú »

Thanks for the BBCode :D
A like the post ;)
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: Custom BBCodes

Post by ameisez »

ameisez wrote:Is there a bbcode (url type) that will be able to log the username of those who click just below the signature part of the post?
bump
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
rebelli0n
Registered User
Posts: 1
Joined: Fri Mar 24, 2006 4:06 am

Re: Custom BBCodes

Post by rebelli0n »

i've added a bbcode to embed a goear player and play music in a post. it works just fine but it doesn't autoplay (as it does on goear's site). i looked at it and tried to add autoplay=true in different places but it doesn't seem to work. can i get it to autoplay?

heres what i have for html replacement:
<object width="353" height="129"><embed src="http://www.goear.com/files/external.swf?file={TEXT}" type="application/x-shockwave-flash" wmode="transparent" quality="high" width="353" height="129"></embed></object>
thanks for your help.
User avatar
busterkat
Registered User
Posts: 55
Joined: Wed May 14, 2008 11:30 pm
Contact:

Re: Flash bbcode

Post by busterkat »

busterkat wrote:Hi Marshalrusty,

Can you tell me how when using the flash bbcode, how to get the skin to display? or some kind of controls?

Code: Select all

[center][flash=500,350]http://pcvstdog.com/images/vid/lily_getwell.swf[/flash][/center]
http://pcvstdog.com/viewtopic.php?f=46& ... a3b80#p142

Thank you.
Anyone?
ulong
Registered User
Posts: 59
Joined: Fri Nov 14, 2008 12:22 pm

Re: Custom BBCodes

Post by ulong »

Is it possible to replace [you] with /you ?
I mean without closing tag/bbcode, just only openning tag [you]
User avatar
wordeebird
Registered User
Posts: 141
Joined: Fri Dec 10, 2004 7:46 pm
Location: earth, most times
Contact:

Code for embedding an mp4 video I host myself

Post by wordeebird »

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~
User avatar
OniTenshu
Registered User
Posts: 22
Joined: Thu Oct 23, 2008 7:27 pm
Location: Beverly
Contact:

Re: Code for embedding an mp4 video I host myself

Post by OniTenshu »

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~
an mp4 video is the exact opposite of a flash file; it has great quality thanks to the H264 Codec and it even sucks up most of your CPU when you want to play it. whereas flash has horrible quality on average and uses a flash/shockwave Codec and uses almost none of your CPU. like i said exact opposites.

i can't help you on the code but at least i answered the; "is an mp4 *not* flash?" question 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 »

Well thanks for that - obviously it's not an area of my expertise ;)
shrek2
Registered User
Posts: 1
Joined: Mon Nov 17, 2008 7:43 pm

Re: Custom BBCodes

Post by shrek2 »

how do i make custom bb codes for this embed code?

Code: Select all

<embed src="http://static.ning.com/bjpenn/widgets/video/flvplayer/flvplayer.swf?v=3.8.5%3A10867" FlashVars="config_url=http%3A%2F%2Fwww.bjpenn.com%2Fvideo%2Fvideo%2FshowPlayerConfig%3Fid%3D2022293%253AVideo%253A450200%26x%3DDxJohbquJ18fQYpi3M3JWbC3B85P3YXw&video_smoothing=on&autoplay=off&layout=external_site" width="448" height="326" scale="noscale" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> <br /><small><a href="http://www.bjpenn.com/video/video">Find more videos like this on <em>BJPENN.COM</em></a></small><br />
faqbch99
Registered User
Posts: 48
Joined: Mon Nov 03, 2008 9:52 pm

Re: Custom BBCodes

Post by faqbch99 »

I am trying to create a simple clickable image..


Defined in ACP as:
[imglink={text1}]{text2}[/imglink]

<a href="{text1}"><img src="{text2}" border="0" /></a>


I enter this in a post and the post displays the text below, not the image or link.


[imglink=http://www.renegadereefers.org]http://www.renegadereefers.org/images/s ... gblack.gif[/imglink]


Please help..
Locked

Return to “Custom BBCode Development and Requests”