Reply to topic  [ 11 posts ] 
[How To] Adding Custom BBCodes in phpbb3 
Author Message
User avatar

Joined: Thu Feb 21, 2008 8:19 pm
Posts: 7
Post [How To] Adding Custom BBCodes in phpbb3
Go into Admin Control Panel, then go to the "Posting" tab and select "BBCodes". Click on "Add a new BBcode" button.

To add a new BBCode you must fill in the following:

BBCode Usage
HTML Replacement
Help Line


When you've finished, check the last box and click on "Submit" button.

Here are some useful BBCodes, you may add to your forum:

Center Alignment

BBCode Usage:
Code:
[center]{TEXT}[/center]


HTML Replacement:
Code:
<div align="center">{TEXT}</div>


Help Line:
Code:
[center]your text[/center]



Right Alignment

BBCode Usage:
Code:
[right]{TEXT}[/right]


HTML Replacement:
Code:
<div align="right">{TEXT}</div>


Help Line:
Code:
[right]Your Text[/right]



Horizontal Line

BBCode Usage:
Code:
[hr][/hr]


HTML Replacement:
Code:
<hr></hr>


Help Line:
Code:
Inserts a horizontal line between your text.



Subscript

BBCode Usage:
Code:
[sub]{TEXT}[/sub]


HTML Replacement:
Code:
<sub>{TEXT}</sub>


Help Line:
Code:
[sub]Your Text[/sub]


Example Usage:
Code:
H[sub]2[/sub]0



Superscript

BBCode Usage:
Code:
[sup]{TEXT}[/sup]


HTML Replacement:
Code:
<sup>{TEXT}</sup>


Help Line:
Code:
[sup]Your Text[/sup]


Example Usage:
Code:
x[sup]2[/sup]



Google Video

BBCode Usage:
Code:
[googlevideo]{NUMBER}[/googlevideo]


HTML Replacement
Code:
<object type="application/x-shockwave-flash" data="http://video.google.com/googleplayer.swf?docId=-{NUMBER}" width="400" height="326">
    <param name="movie" value="http://video.google.com/googleplayer.swf?docId=-{NUMBER}" />
    <param name="allowScriptAcess" value="sameDomain" />
    <param name="quality" value="best" />
    <param name="bgcolor" value="#FFFFFF" />
    <param name="scale" value="noScale" />
    <param name="salign" value="TL" />
    <param name="FlashVars" value="playerMode=embedded" />
    </object>


Help Line:
Code:
Enter the video ID number -- the video ID is a 18 digit number is after docid=- in the URL


Example Usage:
Code:
[googlevideo]Your Video ID Number[/googlevideo]


Youtube

BBCode Usage:
Code:
[youtube]{TEXT}[/youtube]


HTML Replacement:
Code:
    <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{TEXT}" width="425" height="350">
    <param name="movie" value="http://www.youtube.com/v/{TEXT}" />
    <param name="wmode" value="transparent" />
    </object>
am name="movie" value="http://www.youtube.com/v/{TEXT}" />
<param name="wmode" value="transparent" />
</object>


Help Line
Code:
Enter the video ID string -- the video ID string is the part after v= in the URL


Example Usage
Code:
[youtube]YouTube video ID string here[/youtube]


:) :) :) :)


Last edited by Greek Harry Potter Planet on Thu Sep 25, 2008 7:59 pm, edited 2 times in total.



Mon Sep 22, 2008 2:57 pm
Profile

Joined: Tue Feb 27, 2007 9:55 pm
Posts: 80
Post Re: [How To] Adding Custom BBCodes in phpbb3
WOW!
Lets give it a try!
Thank you for sharing this.


Mon Sep 22, 2008 6:58 pm
Profile
Support Team
Support Team
User avatar

Joined: Sat Feb 17, 2007 3:55 am
Posts: 613
Location: London
Post Re: [How To] Adding Custom BBCodes in phpbb3
Hi and thanks for this...

But the youtube codes are not working for me? I did as you said but when i try and use it i get this text.

Code:
am name="movie" value="http://www.youtube.com/v/http://www.youtube.com/watch?v=XobGHdRHYxg" />


Youtube Video Link : http://www.youtube.com/watch?v=XobGHdRHYxg

Same with Google Videos

Code:
[googlevideo]http://video.google.com/videosearch?q=Goals&emb=0&aq=f#[/googlevideo]

_________________
In Getforum We Trust"


Thu Sep 25, 2008 3:47 pm
Profile WWW
User avatar

Joined: Thu Feb 21, 2008 8:19 pm
Posts: 7
Post Re: [How To] Adding Custom BBCodes in phpbb3
I fixed the codes.

:D :D :D


Thu Sep 25, 2008 7:43 pm
Profile
User avatar

Joined: Tue Jan 15, 2008 11:31 pm
Posts: 130
Location: Estonia
Post Re: [How To] Adding Custom BBCodes in phpbb3
Youtube fixed code:
Code:
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{TEXT}" width="425" height="350">
    <param name="movie" value="http://www.youtube.com/v/{TEXT}" />
    <param name="wmode" value="transparent" />
    </object>
<param name="wmode" value="transparent" />
</object

_________________
My URL: http://vista.getforum.org


Sat Jun 13, 2009 4:29 pm
Profile WWW
User avatar

Joined: Tue Jan 15, 2008 11:31 pm
Posts: 130
Location: Estonia
Post Re: [How To] Adding Custom BBCodes in phpbb3
Youtube (code with whole youtube link)
This bbcode snippet here will allow your users to paste the whole youtube link.
BBCode Usage:
Code:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]


HTML Replacement:
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

;)

_________________
My URL: http://vista.getforum.org


Sat Jun 13, 2009 4:41 pm
Profile WWW
Support Team
Support Team
User avatar

Joined: Fri Dec 28, 2007 3:56 am
Posts: 1200
Post Re: [How To] Adding Custom BBCodes in phpbb3
Vista thank you for taking the time to update this code for other members... ;)

_________________
Thank's For Trusting GetForum.org


Sat Jun 13, 2009 8:49 pm
Profile WWW
User avatar

Joined: Tue Jan 15, 2008 11:31 pm
Posts: 130
Location: Estonia
Post Re: [How To] Adding Custom BBCodes in phpbb3
Link opens new window
This bbcode snippet here will allow your users to open link in new window.
I think it absolutely requirement thing, i thought this one from the other code and it even works 8-)
BBCode usage:
Code:
[Url2]{URL}[/Url2]

HTML Replacement:
Code:
<a href="{URL}" onclick="window.open(this.href);return false;" class="postlink">{URL}</a>


I cant get this movement done: how-make-links-open-new-windows-phpbb3-t3009.html
Becouse is not allowed to do - i was getting error, i dont understand why.

_________________
My URL: http://vista.getforum.org


Sun Jun 14, 2009 2:33 pm
Profile WWW
User avatar

Joined: Thu Apr 23, 2009 8:45 am
Posts: 79
Post Re: [How To] Adding Custom BBCodes in phpbb3
It works?

_________________
Fi sabili Haq...Fastabiqul Khairat


Tue Jun 16, 2009 4:12 am
Profile
User avatar

Joined: Tue Jan 15, 2008 11:31 pm
Posts: 130
Location: Estonia
Post Re: [How To] Adding Custom BBCodes in phpbb3
Why want you try? :roll:
Its work good in my forum. ;)

_________________
My URL: http://vista.getforum.org


Tue Jun 16, 2009 4:51 pm
Profile WWW
User avatar

Joined: Thu Apr 23, 2009 8:45 am
Posts: 79
Post Re: [How To] Adding Custom BBCodes in phpbb3
Yes, it works (you tube video] thanx bro ;)

_________________
Fi sabili Haq...Fastabiqul Khairat


Wed Jun 17, 2009 9:17 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.

phpBB SEO