Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
naijaping
Registered User
Posts: 2
Joined: Thu Jan 06, 2011 9:50 pm

bump

Post by naijaping » Fri Jan 07, 2011 6:44 pm

anyone out there please help

bsacheli
Registered User
Posts: 5
Joined: Tue Jan 11, 2011 1:54 am

Re: Custom BBCodes

Post by bsacheli » Tue Jan 11, 2011 4:27 am

Can someone please post the code For http://www.godtube.com/
ive tried to edit the youtube code but all i got was "unable to determine size" or a blank topic that has area for the video but it doesnt play

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Custom BBCodes

Post by Hippie459MN » Tue Jan 11, 2011 4:59 am

For GodTube, Try this...

BBCode Usage:

Code: Select all

 [godtube]http://www.godtube.com/watch/?v={TEXT}[/godtube] 
HTML Replacement

Code: Select all

<object height="340" width="560" type="application/x-shockwave-flash" data="http://www.godtube.com/resource/mediaplayer/5.3/player.swf"><param name="movie" value="http://www.godtube.com/resource/mediaplayer/5.3/player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="opaque"><param name="flashvars" value="file=http://www.godtube.com/resource/mediaplayer/{TEXT}.file&image=http://www.godtube.com/resource/mediaplayer/{TEXT}.jpg&screencolor=000000&type=video&autostart=true&playonce=true&skin=http://www.godtube.com//resource/mediaplayer/skin/carbon/carbon.zip&logo.file=http://media.salemwebnetwork.com/godtube/theme/default/media/embed-logo.png&logo.link=http://www.godtube.com/watch/%3Fv%3D{TEXT}&logo.position=top-left&logo.hide=false&controlbar.position=over"></object>
Adjust the object Height and Width to suit your needs if you want. That size worked best on my site during testing.

Help Line:

Code: Select all

 [godtube]Video URL[/godtube] 
Hope that helps. Worked perfect on my test site. :D

bsacheli
Registered User
Posts: 5
Joined: Tue Jan 11, 2011 1:54 am

Re: Custom BBCodes

Post by bsacheli » Tue Jan 11, 2011 4:59 pm

thanks will try it

lonleyinml
Registered User
Posts: 5
Joined: Fri Oct 08, 2010 1:09 am

Re: Custom BBCodes

Post by lonleyinml » Tue Jan 11, 2011 5:45 pm

I am an admitted noob at this I have studied all the bb code refrences i can find and when i put this code in my site in a announcement or any whwew else that allows bb code it will not centerand I see the [center] tags in the text pls help

[center]text[/center]

User avatar
Dr DBW
Registered User
Posts: 194
Joined: Thu Oct 06, 2005 10:37 pm
Location: Ballarat, Victoria
Contact:

Re: Custom BBCodes

Post by Dr DBW » Tue Jan 11, 2011 10:34 pm

lonleyinml wrote:I am an admitted noob at this I have studied all the bb code refrences i can find and when i put this code in my site in a announcement or any whwew else that allows bb code it will not centerand I see the [center] tags in the text pls help

[center]text[/center]
Silly question, but did you create the custom BBCode via your admin panel to actually all this to work?

kabo0m
Registered User
Posts: 9
Joined: Sun Mar 16, 2008 2:46 am

Re: Custom BBCodes

Post by kabo0m » Wed Jan 12, 2011 1:30 am

Groundy wrote:This is handy code for opening links in a new window
BBcode

Code: Select all

[external={URL}]{TEXT}[/external]
HTML

Code: Select all

<a href="{URL}" target="_blank">{TEXT}</a>
Help line

Code: Select all

External URL links are re-directed to a new window

This an example how you use it

Code: Select all

[external=link]link title[/external]
This code is glitchy for me as in if the url I want to open in a new window has non-simple characters it simply won't work. Simple url's do. ... I have a feeling it is because of instead of using TEXT I used SIMPLETEXT (because phpBB would not let me use TEXT due to security reasons). What other term could be used instead that would allow any link to be put in? But then I realized wait that doesn't make sense neither as the url part I have kept as URL ..

So here is what I mean:

BBCode usage:

Code: Select all

[external={URL}]{SIMPLETEXT}[/external]
HTML replacement:

Code: Select all

<a href="{URL}" target="_blank">{SIMPLETEXT}</a><img src="http://i.imgur.com/lZGnK.gif">
Help line:

Code: Select all

External URL links are re-directed to a new window [External=http://url]Go to Link[/External]
Last edited by kabo0m on Wed Jan 12, 2011 1:48 am, edited 3 times in total.

bsacheli
Registered User
Posts: 5
Joined: Tue Jan 11, 2011 1:54 am

Re: Custom BBCodes

Post by bsacheli » Wed Jan 12, 2011 1:41 am

Hippie459MN wrote:For GodTube, Try this...

BBCode Usage:

Code: Select all

 [godtube]http://www.godtube.com/watch/?v={TEXT}[/godtube] 
HTML Replacement

Code: Select all

<object height="340" width="560" type="application/x-shockwave-flash" data="http://www.godtube.com/resource/mediaplayer/5.3/player.swf"><param name="movie" value="http://www.godtube.com/resource/mediaplayer/5.3/player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="opaque"><param name="flashvars" value="file=http://www.godtube.com/resource/mediaplayer/{TEXT}.file&image=http://www.godtube.com/resource/mediaplayer/{TEXT}.jpg&screencolor=000000&type=video&autostart=true&playonce=true&skin=http://www.godtube.com//resource/mediaplayer/skin/carbon/carbon.zip&logo.file=http://media.salemwebnetwork.com/godtube/theme/default/media/embed-logo.png&logo.link=http://www.godtube.com/watch/%3Fv%3D{TEXT}&logo.position=top-left&logo.hide=false&controlbar.position=over"></object>
Adjust the object Height and Width to suit your needs if you want. That size worked best on my site during testing.

Help Line:

Code: Select all

 [godtube]Video URL[/godtube] 
Hope that helps. Worked perfect on my test site. :D
Works great Thanks again :D

kabo0m
Registered User
Posts: 9
Joined: Sun Mar 16, 2008 2:46 am

Re: Custom BBCodes

Post by kabo0m » Wed Jan 12, 2011 2:12 am

clothes_w wrote:Can anybody tell me how to make this Image Resize BBcode? Thanks!

http://www.youtube.com/watch?v=-VDiFcQyzfM
Not sure how he did it but I was thinking that should not be too hard and I didn't see anyone answer you and I was wondering myself. So I made my first attempt at this (as I am new to phpBB except for helping another admin run his site because of a spam problem) and I tested it and it works for me:

BBCode usage:

Code: Select all

[imgw={NUMBER}]{URL}[/imgw]
HTML replacement:

Code: Select all

<img width="{NUMBER}" src="{URL}">
Help line:

Code: Select all

Image Width: [imgw=460]http://i.imgur.com/eALWN.gif[/imgw]
Please feel free to improve on this as this was my first attempt and I don't know how to make the button say something better other than imgw= without effecting the code.

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Custom BBCodes

Post by Hippie459MN » Wed Jan 12, 2011 2:20 am

kabo0m wrote:
clothes_w wrote:Can anybody tell me how to make this Image Resize BBcode? Thanks!

http://www.youtube.com/watch?v=-VDiFcQyzfM
Not sure how he did it but I was thinking that should not be too hard and I didn't see anyone answer you and I was wondering myself. So I made my first attempt at this (as I am new to phpBB except for helping another admin run his site because of a spam problem) and I tested it and it works for me:

BBCode usage:

Code: Select all

[imgw={NUMBER}]{URL}[/imgw]
HTML replacement:

Code: Select all

<img width="{NUMBER}" src="{URL}">
Help line:

Code: Select all

Image Width: [imgw=460]http://i.imgur.com/eALWN.gif[/imgw]
Please feel free to improve on this as this was my first attempt and I don't know how to make the button say something better other than imgw= without effecting the code.
I wouldnt even bother with doing it that way. There are plenty of image resize mods that will resize images automatically then you can click the images to view them full size. I use an image resizing mod on all of my forums and its alot easier. I think so anyways.

Here is an awesome one - http://www.phpbb.com/community/viewtopi ... &t=1083005

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Wed Jan 12, 2011 2:46 am

kabo0m wrote:This code is glitchy for me as in if the url I want to open in a new window has non-simple characters it simply won't work. Simple url's do. ... I have a feeling it is because of instead of using TEXT I used SIMPLETEXT (because phpBB would not let me use TEXT due to security reasons). What other term could be used instead that would allow any link to be put in? But then I realized wait that doesn't make sense neither as the url part I have kept as URL ..
First, using {TEXT} where indicated shouldn't cause a security warning. I just tried it on my board and didn't get one.

Second, have you tried one of the "glitchy" URLs with the standard phpBB URL tag? Does it correctly go to the URL entered? Regardless, you might want to post one of the URLs here so we can see it. That's what the problem seems to be, not the BBCode itself.

Another thing to try is putting both the EXTERNAL and URL BBCodes in a post with the same URL, doing a Preview, and then viewing the source in your browser. See if the HTML still shows both URLs correctly.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

kabo0m
Registered User
Posts: 9
Joined: Sun Mar 16, 2008 2:46 am

Re: Custom BBCodes

Post by kabo0m » Thu Jan 13, 2011 5:42 pm

Pony99CA wrote:
kabo0m wrote:This code is glitchy for me as in if the url I want to open in a new window has non-simple characters it simply won't work. Simple url's do. ... I have a feeling it is because of instead of using TEXT I used SIMPLETEXT (because phpBB would not let me use TEXT due to security reasons). What other term could be used instead that would allow any link to be put in? But then I realized wait that doesn't make sense neither as the url part I have kept as URL ..
First, using {TEXT} where indicated shouldn't cause a security warning. I just tried it on my board and didn't get one.

Second, have you tried one of the "glitchy" URLs with the standard phpBB URL tag? Does it correctly go to the URL entered? Regardless, you might want to post one of the URLs here so we can see it. That's what the problem seems to be, not the BBCode itself.

Another thing to try is putting both the EXTERNAL and URL BBCodes in a post with the same URL, doing a Preview, and then viewing the source in your browser. See if the HTML still shows both URLs correctly.

Steve

I did both the EXTERNAL and URL BBCodes in a post with the same URL but I didn't think of viewing the source. That is a good idea. I had just taken out the code and gave up on it. Will have to put it back in to get a copy of the output I get. But what was happening is the bbc would just show up as if it wasn't a code at all but just text and the link between it. It wasn't clickable at all. Doing it normal was fine.

Okay I checked and I did leave it in since it is a test forum.

This time when I did a test it actually blanked out my post .. so I made the first link normal and the 2 others external ..

Here is an image to show you what I see:

http://i.imgur.com/j6iim.jpg

Oh .. is it because the text I am putting where it says simpletext has other characters in it? Is that why it isn't working?

I had small links working yesterday but today even a test link to google isn't working and I don't know why. Looking at the source revealed nothing ..

Okay I think I am onto something there .. what should I use instead of simpletext? Identifier??

http://i.imgur.com/SeSev.jpg

nigel barnard
Registered User
Posts: 4
Joined: Thu Jan 13, 2011 8:04 pm

Re: Custom BBCodes

Post by nigel barnard » Thu Jan 13, 2011 9:54 pm

would really find table code handy for my forum :)
if possible.

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Fri Jan 14, 2011 2:30 am

kabo0m wrote:Oh .. is it because the text I am putting where it says simpletext has other characters in it? Is that why it isn't working?

I had small links working yesterday but today even a test link to google isn't working and I don't know why. Looking at the source revealed nothing ..

Okay I think I am onto something there .. what should I use instead of simpletext? Identifier??
{TEXT}

That will NOT cause the security problem. (The security concern is if {TEXT} is inside an HTML tag, like in an attribute, not between starting and ending tags.)

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Custom BBCodes

Post by Pony99CA » Fri Jan 14, 2011 2:33 am

nigel barnard wrote:would really find table code handy for my forum :)
if possible.
It's definitely possible -- see my table tags.

I'd be shocked if some haven't been posted in this topic already.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Locked

Return to “Custom BBCode Development and Requests”