Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Locked
bpx
Registered User
Posts: 40
Joined: Wed Jan 02, 2008 11:53 am

Re: Custom BBCodes

Post by bpx »

Myspace vids work fine for me. I used the code posted by demon327
http://www.phpbb.com/community/viewtopi ... v#p3363614
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: Custom BBCodes

Post by ThunderCrew »

I seen someone asking for strikethrough super and sub scripting bbcode. I read the custom bbcode article posted in the first post in this thread and found these in it.

for strikethrough
bbcode usage

Code: Select all

[s]{TEXT}[/s]
html replacement

Code: Select all

<span style="text-decoration: line-through;">{TEXT}</span>
helpline

Code: Select all

[s]strikethrough text[/s]
for subscript
bbcode usage

Code: Select all

[sub]{TEXT}[/sub]
html replacement

Code: Select all

<span style="vertical-align: sub;">{TEXT}</span>
helpline

Code: Select all

H[sub]2[/sub]O
for superscript
bbcode usage

Code: Select all

[super]{TEXT}[/super]
html replacement

Code: Select all

<span style="vertical-align: super;">{TEXT}</span>
helpline

Code: Select all

x[super]3[/super]
I know this site is huge and possibly confusing for newer users of forums and seemingly unresponsive
to users at times due to people getting tired of responding over and over to the same questions asked etc
so I reiterate ( spellcheck :? ) to certain people try reading every post in a thread of related topic for items
or browsing through articles written by staff long time trusted users mod team etc to find your solutions
for yourselves when it seems people are not "helping" you :idea:

Here is the link to the article on custom bbcode creating and some example codes.
http://www.phpbb.com/kb/article/adding- ... in-phpbb3/
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it
Paph
Registered User
Posts: 362
Joined: Tue Dec 25, 2007 7:58 am
Location: Georgia - USA
Contact:

Re: Custom BBCodes

Post by Paph »

I'd like to chime in here and add that using the 'Search' feature of this forum (or any forum for that matter) can be a great help.
Of course choosing the right search terms (keyword(s)) and selecting the right forum are the key to finding the answers.
I've found that in 99% of the times I've used it, if you can't find the answer then it's probably because the answer hasn't been found/posted yet, or you're not using the right keywords. ;)
Hawk
zeno
Registered User
Posts: 36
Joined: Fri Aug 10, 2007 2:22 pm

Re: Custom BBCodes

Post by zeno »

zeno wrote:
Kamali wrote:
Brian_RTL wrote:Does anyone else need a non-breaking space (&nbsp;)? That's the only other BBCode I've added.
Me, please. How I would add BB code to enable use of &nbsp; ? The code works on IPB and UBB forums, but it doesn't work in PHPBB3. (Nor does the other version of it, &#160;)
I'd like to know how to do this as well - I'd like to add en and em dashes, which are standard HTML codes: &#8211; and &#8212;.
This works:

en dash:
BBCode usage

Code: Select all

[--][/--]
or

Code: Select all

[endash][/endash]
HTML replacement

Code: Select all

&#8211;
Help line

Code: Select all

en dash

em dash:
BBCode usage

Code: Select all

[---][/---]
or

Code: Select all

[emdash][/emdash]
HTML replacement

Code: Select all

&#8212;
Help line

Code: Select all

em dash
The only minor issue is that the cursor is left in the middle of the tags, rather than at the end where you would want to be to continue entering text, but otherwise it works OK. This could be used for any other similar HTML character (including non-breaking space, &nbsp;) .

If you want to know more about the differences between hyphens, en dashes and em dashes and how to use them correctly, see this page.

Can anyone improve on this method?
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: Custom BBCodes

Post by ThunderCrew »

If anyone is wanting to use more then one space etc as in nbsp; couldnt they just use the [pre] and [/pre ] ?

As in
[pre]blah blah add some spaces here     for whatever reason needed    like this    then [/pre] ?
I'd think that should work, havent tested it though yet.
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it
User avatar
crackerboy
Registered User
Posts: 255
Joined: Sun Jul 15, 2007 5:49 pm

Re: Custom BBCodes

Post by crackerboy »

No one knows how to add Pornotubes?
Paph
Registered User
Posts: 362
Joined: Tue Dec 25, 2007 7:58 am
Location: Georgia - USA
Contact:

Re: Custom BBCodes

Post by Paph »

crackerboy wrote:No one knows how to add Pornotubes?
Yep! Someone did post an answer to your question.
Hawk
User avatar
crackerboy
Registered User
Posts: 255
Joined: Sun Jul 15, 2007 5:49 pm

Re: Custom BBCodes

Post by crackerboy »

Paph wrote:
crackerboy wrote:No one knows how to add Pornotubes?
Yep! Someone did post an answer to your question.
Yes i see but i must get it in with teaspoon as i cant figure out how to do it
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: Custom BBCodes

Post by ThunderCrew »

crackerboy wrote:
Paph wrote:
crackerboy wrote:No one knows how to add Pornotubes?
Yep! Someone did post an answer to your question.
Yes i see but i must get it in with teaspoon as i cant figure out how to do it
I replied how to do it before but again Ill reply as I try my best to help even though im no pro.
Simply use the [flash ] and [/flash ] tags in the phpbb3 post editor then simply add the pornotube url like so

Code: Select all

[flash width=400 height=400]http://pornotube.com/player/v.swf?v=bT0xNTM0MTgzJmFtcDtsb2NhbD1mYWxzZSZhbXA7dT00Mw==[/flash]
Same exact way to do youtube ;)
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it
User avatar
crackerboy
Registered User
Posts: 255
Joined: Sun Jul 15, 2007 5:49 pm

Re: Custom BBCodes

Post by crackerboy »

The BBCode tag name that you selected already exists. so where can i edit the flash BBCode?
ytsejam
Registered User
Posts: 133
Joined: Sat Jan 13, 2007 9:18 pm
Location: Israel
Contact:

Re: Custom BBCodes

Post by ytsejam »

Question about youtube videos...
How can I extend the BBCode so that it would accept URLs that have a www and URLs that DON'T have http://www...?
visionquest99
Registered User
Posts: 441
Joined: Wed Sep 29, 2004 3:20 am
Location: Toronto

Re: Custom BBCodes

Post by visionquest99 »

crackerboy wrote:
Paph wrote:
crackerboy wrote:No one knows how to add Pornotubes?
Yep! Someone did post an answer to your question.
Yes i see but i must get it in with teaspoon as i cant figure out how to do it
Kinky
Kamali
Registered User
Posts: 3
Joined: Sun Jan 06, 2008 3:53 pm

Re: Custom BBCodes

Post by Kamali »

zeno wrote:
Kamali wrote:
Brian_RTL wrote:Does anyone else need a non-breaking space (&nbsp;)? That's the only other BBCode I've added.
Me, please. How I would add BB code to enable use of &nbsp; ?
This works: <snip> This could be used for any other similar HTML character (including non-breaking space, &nbsp;) .
Thanks Zeno, it DOES work for &nbsp; :mrgreen:


Someone asked why not use the PRE tags - it is because it does not wrap, so could cause people to have to scroll left and right to read posts. &nbsp; does wrap, as long as you put spaces between each repeat of it, :)
User avatar
ThunderCrew
Registered User
Posts: 1438
Joined: Sat Jun 30, 2007 6:26 pm
Location: Ill, Usa
Contact:

Re: Custom BBCodes

Post by ThunderCrew »

crackerboy wrote:The BBCode tag name that you selected already exists. so where can i edit the flash BBCode?
:?: Why would you edit on perfection :?:

Theres NO need at all to add in youtube , pornotube, google video, etc etc etc when the flash WILL play
perfectly using the PRE installed [flash ] bbcode button by snipping the http:://address of video to the end

Like copying this from thier site wich they give you

Code: Select all

<embed src="http://pornotube.com/player/v.swf?v=bT0xNTM0MjAyJmFtcDtsb2NhbD1mYWxzZSZhbXA7dT00NA==" loop="false" quality="high" width="480" height="400" name="pornoPlayer" allowfullscreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
And like you have to EVEN with a custom bbcode snag out the url and embed into the [flash ]
Like so

Code: Select all

[flash width=400 height=400]http://pornotube.com/player/v.swf?v=bT0xNTM0MjAyJmFtcDtsb2NhbD1mYWxzZSZhbXA7dT00NA==[/flash]
Im still confused as to why everyone wants to add customised bbcode when preinstalled code works 100% fine
But if you want to edit the flash bbcode try looking in the bbcode.php etc :)

Thanx for the tip on nbsp and wrap ;) didnt test yet but there are also ways to force breaks and avoid
a side scroll ;)
Ugg im a t0tal newb again ...... 2 years off cant remember jack ... time to get to it
acharabia
Registered User
Posts: 139
Joined: Fri Sep 27, 2002 4:41 pm
Location: SEOUL/KOREA
Contact:

Re: Custom BBCodes

Post by acharabia »

Demo Menu for goto-anchor BBcode(고투-앵커설정보기)
this is item number 1 in my list.(여기를 누르면 1번 항목으로 이동)
this is item number 2 in my list.(여기를 누르면 2번 항목으로 이동)
this is item number 3 in my list.(여기를 누르면 3번 항목으로 이동)
-------------------------------------
item 1 Title.
some more text about item 1.

part_01
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
^back to top.(if click here, you can go to top of part_01)

-------------------------------------
item 2 Title.
some more text about item 2.

part_02
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
^back to top.(if click here, you can go to top of part_02)


-------------------------------------
item 2 Title.
some more text about item 3.
part_03
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
가나다라마바사아자차카타파하
^back to top.(if click here, you can go to top of part_03)

Code: Select all

[anchor]mymenutop[/anchor] <==이 표시를 준곳은 안보이지만 링크를 누르면 이쪽으로 이동
[goto=mymenutop]^back to top.[/goto] <==이걸 누르면 위에 안보이는 미리 입력된 곳으로 이동
That's very useful BBcode that I found~ :mrgreen:
Thank you very much and you can also try like me~ :D
This work show how fonction anchor BBcode. I'd like
this "goto-anchor" BBcode very much but there's some pitty... :cry:
This BBcode is good only show on "preview" no "submit" page.
(Now I know this BBcode no fonction at phpbb3, but work very smooth at phpbb2.)
And others... when we input this code on ACP, no more adding
possible insert at ACP for BBcode. Nobody same as me?
This mean... This "goto-anchor" BBcode having some problem to phpbb3
How many BBcode will be able to add on ACP in phpbb3? Endless?!?!
Who is the biggest BBcode user on this forum?

e.g.
  • Test Section
    • Test Sub-Section
      • Test Section
        • Test Sub-Section

Code: Select all

[list][*]Test Section
[list][*]Test Sub-Section
[list][*]Test Section
[list][*]Test Sub-Section[/list][/list][/list][/list]
Anybody here can make more veriety style above index?
You can see... white-round dot and black-square dot above...
What's mean color and style(=round, square) then I don't know
how vertical setting on phpbb3 with this list BBcode technique.
Anybody show many list code setting sample to me here. PLZ. :)
And you can make like below by yourself~ This calling BBcode ART~ :mrgreen:
  • Test Section
    • Test Sub-Section
      • Test Section
        • Test Sub-Section
          1. Test Sub-Section
          2. Test Sub-Section
          3. Test Sub-Section
          4. Test Sub-Section
          5. Test Sub-Section
            가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하가나다라마바사아자차카타파하
          6. Test Sub-Section
          7. Test Sub-Section
          8. Test Sub-Section
          9. Test Sub-Section
      • Test Sub-Section
        • Test Sub-Section
        • Test Sub-Section
      • Test Sub-Section
      • Test Sub-Section
Last edited by acharabia on Tue Jan 15, 2008 7:31 am, edited 7 times in total.
Image
Locked

Return to “Custom BBCode Development and Requests”