Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

Steve and Amigojack,

I simply copied the code from someone on the 4th page. {text} was in all lowercase and when I changed it to all uppercase the code finally worked.

I'm not sure when it's best to use span vs. div. I'm reading up on creating styles and the instructions say to use span sparingly. My understanding isn't such that I can tell you why yet, but since it works now, I'll just leave well enough alone.

I really wish this thread were a forum itself. I am very interested in this topic, but I've got to read 209 pages in order to get up to speed with everyone. Plus, if there's an error, I've got to make it all the way through the whole 209 pages to know if it's been addressed or not.

In any event, thank you both very much for the help. That fixed my problem.
User avatar
AmigoJack
Registered User
Posts: 6120
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Custom BBCodes

Post by AmigoJack »

jameskever wrote:I'm not sure when it's best to use span vs. div
I'd always use SPANs so they don't invalidate your HTML when being nested (a DIV inside a SPAN would be a violation). Consider this:

Code: Select all

[color=#AAA][center]hey there guys[/center][/color]
You could say "hey, just put [center] outside and [color] inside, but
  1. Who knows that? And those know: who is acting accordingly?
  2. There are situations where you can't reorder your BBCodes.
I'd never define [center] as <div align="center">{TEXT}</div>, I'd always use <span style="display: block; text-align: center;">{TEXT}</span>, which has way more chances to not invalidate your HTML.

What most people don't know:
  • A <div> is nothing else than a <span style="display: block;">.
  • A <span> is nothing else than a <div style="display: inline;">.
  • A <div> is not allowed inside a <span>, but the other way around is fine.
  • Elements like b, i, u and such are like span and are also not allowing div inside.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

So where would one go to learn how to create styles from the ground up?

I know this is probably the wrong thread to ask but I'm not sure where to turn.

I want to create a style for phpBB that divides the main index into a series of coulmns. These coulmns would display one of subset of posts.

I want the ability to create a window (or column) and point it to a forum which will have from one to five topics. The window will shuffle through each of the topics when a user visits the site.

In this way, a news organization could maintain their web presence for a lot less than what they are paying now.

Is it possible to create a style that uses columns and rows as placeholders for topics within a forum?

If so, what should I learn first?
jameskever
Registered User
Posts: 37
Joined: Sun Jan 09, 2011 12:35 pm

Re: Custom BBCodes

Post by jameskever »

I'm not sure but I think phpBB3 Portal is what I'm looking for.
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas

Re: Custom BBCodes

Post by beggers »

AmigoJack wrote:
jameskever wrote:I'm not sure when it's best to use span vs. div
I'd always use SPANs so they don't invalidate your HTML when being nested (a DIV inside a SPAN would be a violation). Consider this:

Code: Select all

[color=#AAA][center]hey there guys[/center][/color]
You could say "hey, just put [center] outside and [color] inside, but
  1. Who knows that? And those know: who is acting accordingly?
  2. There are situations where you can't reorder your BBCodes.
I'd never define [center] as <div align="center">{TEXT}</div>, I'd always use <span style="display: block; text-align: center;">{TEXT}</span>, which has way more chances to not invalidate your HTML.

What most people don't know:
  • A <div> is nothing else than a <span style="display: block;">.
  • A <span> is nothing else than a <div style="display: inline;">.
  • A <div> is not allowed inside a <span>, but the other way around is fine.
  • Elements like b, i, u and such are like span and are also not allowing div inside.
Thanks for posting this information! :)
originalhandy
Registered User
Posts: 60
Joined: Tue Jul 17, 2007 4:21 pm

Re: Custom BBCodes

Post by originalhandy »

Is there any bbcode for videobash.com ?
neilbla
Registered User
Posts: 5
Joined: Tue Nov 17, 2009 2:22 am

Re: Custom BBCodes

Post by neilbla »

Thanks for all these great codes.
Christaras
Registered User
Posts: 13
Joined: Fri Jan 21, 2011 2:10 pm

Hide Tag

Post by Christaras »

How can I get a hide tag on my forum. I searched everywhere but I didn't find a HTML to add this bbcode on my forum. Can anyone help me????
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53523
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Custom BBCodes

Post by Brf »

Type hide into the little "search this topic" box at the top of this topic and click the Search button.
You will find 110 posts.
User avatar
Hippie459MN
Registered User
Posts: 966
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA

Re: Hide Tag

Post by Hippie459MN »

Christaras wrote:How can I get a hide tag on my forum. I searched everywhere but I didn't find a HTML to add this bbcode on my forum. Can anyone help me????
You didnt look hard enough then cause a page or 2 back I posted a very nice clean one that works wonderful. :)
emcha
Registered User
Posts: 165
Joined: Fri Dec 31, 2010 7:25 am

Re: Custom BBCodes

Post by emcha »

I'm still having problems with center, right, left placing an interline in between two rows of line\

IE

This is what I'm writing that
I want to see to the left

Result

This is what I'm writing that

I want to see on the left


Placing spaces until the line changes or one right after the other instead of breaking the line, has no effect.
User avatar
Jaymie1989
Registered User
Posts: 1991
Joined: Thu Aug 02, 2007 5:21 pm
Name: Jaymie

Re: Custom BBCodes

Post by Jaymie1989 »

emcha wrote:I'm still having problems with center, right, left placing an interline in between two rows of line\

IE

This is what I'm writing that
I want to see to the left

Result

This is what I'm writing that

I want to see on the left


Placing spaces until the line changes or one right after the other instead of breaking the line, has no effect.
What HTML have you got?
Dear creators of Sesame Street,
Kids are still fat. Can I come back now?
Sincerely, Cookie Monster.

View my MODs - Need phpBB help with MODs and Styles? Take a look at my phpBB3 services
KT1
Registered User
Posts: 13
Joined: Thu Jan 06, 2011 9:29 pm

Re: Custom BBCodes

Post by KT1 »

Hi

II have spent the last 2 hrs trying to add bbcode tokens to be able to add the 10 videos
can some one please help
What i am wanting to do is be able to put the url of each video in between theses tags[pokerlisting][/pokerlisting]
each video on a new thread

Could some one please add the tokens to code and tokens to html and tokens for bbcode usuage panel .

Regards

KT


Code: Select all

<object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/WhyYouShouldntSlowPlay_1Mb_002&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="http://www.pokerlistings.com/tv/watch/pl-strategy-why-you-shouldnt-slow-play-942">PL Strategy: Why You Shouldn't Slow Play!</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>

Code: Select all

    <object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/position_1Mb&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="http://www.pokerlistings.com/tv/watch/pl-strategy-position-738">PL Strategy: Position</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>

Ty

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

Re: Custom BBCodes

Post by Pony99CA »

KT1 wrote:What i am wanting to do is be able to put the url of each video in between theses tags
[pokerlisting][/pokerlisting]
each video on a new thread
Based on the code you gave us, I don't think that you can do it with just the URL of the Web page; you need the file ID of the video. Here's what I came up with:

BBCode usage

Code: Select all

[poker={URL} {IDENTIFIER}]{TEXT}[/poker]
HTML replacment

Code: Select all

<object data='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' type='application/x-shockwave-flash' width='622' height='350'><param value='false' name='menu'/><param value='transparent' name='wmode'/><param value='true' name='allowfullscreen'/><param value='server=rtmp://advdp4wvd2q7.rtmphost.com/domplayer&title=DOM Video Player&filename=mp4:/strategy/{IDENTIFIER}&autoplay=true' name='flashvars'/><param value='http://www.pokerlistings.com/swf/videoplayer/VideoPlayer.swf' name='movie'/></object><p style="font-family:Arial,Helvetica,Geneva,sans-serif;font-size:11px;color:#404040;margin:2px 0;padding:0;"><a href="{URL}">{TEXT}</a> from <a href="http://www.pokerlistings.com/">PokerListings.com</a></p>
Help line

Code: Select all

Insert poker video: [poker=main-url video-file]title[/poker]
You can see the result at my SV PPC Test Board.

NOTE: If you don't want the credit line, you can simplify the code to just [poker]{IDENTIFIER}[/poker], I suspect, but giving credit is a good thing.

NOTE: If all videos are not in the /strategy directory, you'll need to tweak this a bit.

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.
KT1
Registered User
Posts: 13
Joined: Thu Jan 06, 2011 9:29 pm

Re: Custom BBCodes

Post by KT1 »

HI

Thank you got it sorted

Return to “Custom BBCode Development and Requests”