phpBBhosts Support Center

Get support for your phpbbhosts.co.uk forum here!
It is currently 17 Jan 2018, 14:18

All times are UTC [ DST ]


Forum rules


Please read the following rules
Support forum rules
Your forum rules



Post new topic Reply to topic  [ 73 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: Custom BBcodes
PostPosted: 16 Jan 2008, 03:14 
Offline
Old admin/owner
Old admin/owner
User avatar

Joined: 25 Oct 2007, 23:34
Posts: 1467
Location: Cornwall UK
Gender: Male
Here is a nice list for you guys i have not tested them all so if you find one does not work please let me know. ;)

To set these up go to:
Admin panel >> posting >> bbcodes >> add new bbcode

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>





YOUTUBE

BBCode usage:
Code:
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]



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


NOTE: You need to click/watch the video you want on youtube then use the address in the address bar.
Code:
eg. [youtube]http://www.youtube.com/watch?v=-tbJ6zRGDB4[/youtube]





CENTER

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



HTML replacement:
Code:
<div style="text-align: center;">{TEXT}</div>





LEFT ALIGN TEXT

BBCode usage:
Code:
[left]{TEXT}[/left]



HTML replacement:
Code:
<div style="text-align: left;">{TEXT}</div>




RIGHT ALIGN TEXT

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



HTML replacement:
Code:
<div style="text-align: right;">{TEXT}</div>




COLORED BACKGROUND

BBCode usage:
Code:
[background={COLOR}]{TEXT}[/background]



HTML replacement:
Code:
<span style="background-color: {COLOR};">{TEXT}</span>





FONTS

BBCode usage:
Code:
[font={TEXT1}]{TEXT2}[/font]



HTML replacement:
Code:
<span style="font-family: {TEXT1};">{TEXT2}</span>





STRIKE THROUGH TEXT

BBCode usage:
Code:
[s]{TEXT}[/s]



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






BLINKING TEXT*
*Note: will not work in Microsoft Internet Explorer and certain other browsers.

BBCode usage:
Code:
[blink]{TEXT}[/blink]



HTML replacement:
Code:
<span style="text-decoration: blink;">{TEXT}</span>





SPOILER

BBCode usage:
Code:
[spoiler]{TEXT}[/spoiler]



HTML replacement:
Code:
<dl class="codebox" style="cursor: pointer;" onclick="this.getElementsByTagName('div')[0].style.display=((this.getElementsByTagName('div')[0].style.display=='none')?'':'none');">
        <dt>Spoiler</dt>
        <dd>
        <div style="display:none;">{TEXT}</div>
        </dd>
        </dl>




WINDOWS MEDIA PLAYER

BBCode usage:
Code:
[Embed]{TEXT}[/Embed]



HTML replacement:
Code:
<div align="center"><embed src="{TEXT}" width="320" height="240" autostart="0" showcontrols="1" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"> </embed></div>




MARQUEE

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


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




STAGE 6 (DivX Video)

BBcode usage:
Code:
[Stage6]{TEXT}[/Stage6]


HTML replacement:
Code:
<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="480" width="640" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/{TEXT}/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/{TEXT}/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" /></object>



Spiked Video

BBCode replacement

Code:
[spiked]{TEXT1} {TEXT2}[/spiked]


html replacement

Code:
<table width="400" border="0" cellpadding="0" cellspacing="0"><tr><td width="5" rowspan="3" valign="top"><img src="http://static.spikedhumor.com/images/vcleft.gif" width="5" height="300"></td><td width="390" height="5" valign="top"><img src="http://static.spikedhumor.com/images/vctop.gif" width="390" height="5"></td><td width="5" rowspan="3" valign="top"><img src="http://static.spikedhumor.com/images/vcright.gif" width="5" height="300"></td></tr><tr><td height="273" valign="top"><embed src="http://www.spikedhumor.com/player/vcplayer.swf?file=http://www.spikedhumor.com/videocodes/{TEXT1}/data.xml&auto_play=false" quality="high" scale="noscale" bgcolor="#000000" width="100%" height="100%" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></td></tr><tr><td height="22" valign="top"><a href="http://www.spikedhumor.com/articles/{TEXT2}" target="_new"><img src="http://static.spikedhumor.com/images/vcbot.gif" width="390" height="22" border="0"></a></td></tr></table>



Help Line
Code:
[spiked]122761 122761/World-at-War-Morning-Part-1-of-3.html?rh=95334[/spiked]


Xat Shoutbox

BBCode Usage:
Code:
[Shoutbox]{URL}[/Shoutbox]


HTML Replacement:
Code:
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="530" height="395" name="chat" FlashVars="id=15012288" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="{URL}">Go Large!</a></small><br>

<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/Jmx*PTEyMDIxMTIwMDUxNzEmcHQ9MTIwMjExMzIzOTkyMSZwPTUzMTUxJmQ9Jm49.jpg" />


Horizontal Rule

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


HTML Replacement:
Code:
<hr/>


Example Post:
Code:
HR RULE [hr][/hr]HR RULE

(You do not need any text between the BBCode tags)


MOD Action
BBcode
Code:
[ModAction1={TEXT2}]{TEXT}[/ModAction1]


Html replacement
Code:
<!-- {TEXT} -->
<div style="background-color: #ECD5D8; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #BC2A4D; padding: 4px;">
         <div class="inner"><span class="corners-top"><span></span></span>
            <strong><center><font size="5" face="Vivaldi">Content Moderated:<br>(pending approval)</font></center></strong><br />
            <div align="right"><b>Moderator:</b>{TEXT2}</div>
         <span class="corners-bottom"><span></span></span></div>
      </div>


What it does
Code:
It makes it so mods can censor posts


How to use it
Code:
[ModAction1=KRB]the content to be censored[/ModAction1]


Locked

BBcode
Code:
[locked={TEXT}]{TEXT2}[/locked]


Html replacement
Code:
<div style="background-color: #ECD5D8; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #BC2A4D; padding: 4px;">
         <div class="inner"><span class="corners-top"><span></span></span>
            <strong>This topic is locked by a moderator. Reason:</strong><br />{TEXT2}
            <div align="right">{TEXT}</div>
         <span class="corners-bottom"><span></span></span></div>
      </div>


What it does
Code:
Mods can post locked messages


How to use it
Code:
[locked=KRB]Locked please dont spam[/locked]


Edit

BBcode
Code:
[Edit]{TEXT}[/Edit]


Html replacement
Code:
<div style="background-color: #B5C7CE; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;"><strong>Edit: </strong>{TEXT}</div>


What it does
Code:
Makes it so people can post edit messages


How to use it
Code:
[Edit]i forgot a space[/Edit]


Last edited by KRB on 06 May 2009, 19:02, edited 8 times in total.
added bbcodes


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 16 Jan 2008, 03:40 
Offline
Retired Staff
Retired Staff

Joined: 14 Jan 2008, 00:42
Posts: 266
Location: United Kingdom, England
My forum: http://wc3forums.phpbbhosts.co.uk
All BBCodes tested and all work.

If you have trouble implementing them in posts, discuss it in the relevant section.

If you have any more BBCodes, please list them here and they will be added, thanks.

_________________
Retired Staff. Will pop in occasionally to offer any support that I can and say Hi.

Create your free forum at http://www.phpbbhosts.co.uk


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 04 Feb 2008, 09:21 
Offline
Co-Admin
Co-Admin

Joined: 21 Dec 2007, 05:03
Posts: 1442
Location: Canada
Account status: Co-Admin
My forum: http://krb.phpbbhosts.co.uk
Gender: Male
ok been working 2 hours straight cant get this to work

Code:
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="530" height="395" name="chat" FlashVars="id=15012288" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="http://xat.com/web_gear/chat/go_large.php?id=15012288">Go Large!</a></small><br>

<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/Jmx*PTEyMDIxMTIwMDUxNzEmcHQ9MTIwMjExMzIzOTkyMSZwPTUzMTUxJmQ9Jm49.jpg" />


Thanks in advance


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 04 Feb 2008, 12:14 
Offline
Old admin/owner
Old admin/owner
User avatar

Joined: 25 Oct 2007, 23:34
Posts: 1467
Location: Cornwall UK
Gender: Male
There will be a shout box mod added soon. ;)


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 05 Feb 2008, 02:04 
Offline
Co-Admin
Co-Admin

Joined: 21 Dec 2007, 05:03
Posts: 1442
Location: Canada
Account status: Co-Admin
My forum: http://krb.phpbbhosts.co.uk
Gender: Male
Ok Gav

sounds good


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 05 Feb 2008, 02:45 
Offline
Retired Staff
Retired Staff

Joined: 14 Jan 2008, 00:42
Posts: 266
Location: United Kingdom, England
My forum: http://wc3forums.phpbbhosts.co.uk
KRB, it is possible, but before I attempt having a go at converting it to BBCode, what are the sections in the URL that would change, in other words, if I was to get a shoutbox at that site, what would be different about the URL?

Is it this URL? http://xat.com/web_gear/chat/go_large.php?id=15012288
Or are there others too...

EDIT: Please disregard what was mentioned above, I took the liberty of trying it out anyway.

Here is your (working and tested) BBCode:

BBCode Usage:
Code:
[Shoutbox]{URL}[/Shoutbox]


HTML Replacement:
Code:
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="530" height="395" name="chat" FlashVars="id=15012288" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br><small><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="{URL}">Go Large!</a></small><br>

<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/CIMP/Jmx*PTEyMDIxMTIwMDUxNzEmcHQ9MTIwMjExMzIzOTkyMSZwPTUzMTUxJmQ9Jm49.jpg" />


How to implement in a post (in your case KRB):
Code:
[shoutbox]http://xat.com/web_gear/chat/go_large.php?id=15012288[/shoutbox]

Note: for others to add the chat box you have to change the url inside the
Code:
[shoutbox] [/shoutbox]
code above

NOTE
Ensure Flash is enabled on your forum. To enable it, go to:
Administration Control Panel > General > Post Settings > Allow use of [FLASH] BBCode tag in posts.

Hope this helps KRB.

_________________
Retired Staff. Will pop in occasionally to offer any support that I can and say Hi.

Create your free forum at http://www.phpbbhosts.co.uk


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 05 Feb 2008, 02:54 
Offline
Co-Admin
Co-Admin

Joined: 21 Dec 2007, 05:03
Posts: 1442
Location: Canada
Account status: Co-Admin
My forum: http://krb.phpbbhosts.co.uk
Gender: Male
Yeah thats the url

the html basicly restricts its size and embeds it, im kind of new at changing html to BBcode


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 05 Feb 2008, 02:59 
Offline
Retired Staff
Retired Staff

Joined: 14 Jan 2008, 00:42
Posts: 266
Location: United Kingdom, England
My forum: http://wc3forums.phpbbhosts.co.uk
I edited my previous post, incase you didn't notice...

_________________
Retired Staff. Will pop in occasionally to offer any support that I can and say Hi.

Create your free forum at http://www.phpbbhosts.co.uk


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 05 Feb 2008, 03:23 
Offline
Co-Admin
Co-Admin

Joined: 21 Dec 2007, 05:03
Posts: 1442
Location: Canada
Account status: Co-Admin
My forum: http://krb.phpbbhosts.co.uk
Gender: Male
Just saw

Thanks Avalon


Top
 Profile E-mail  
 
 Post subject: Re: Custom BBcodes
PostPosted: 10 Feb 2008, 23:46 
Offline
Co-Admin
Co-Admin

Joined: 21 Dec 2007, 05:03
Posts: 1442
Location: Canada
Account status: Co-Admin
My forum: http://krb.phpbbhosts.co.uk
Gender: Male
ok im trying to add horizontal rule tag

only problem im having is the html <hr /> and bbcode [hr] tags i could find for it are sinle tags and the custom bbcode wants double tages :?


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 73 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Color scheme by ColorizeIt!


Gratis forum Free forum hosting| gratis phpbb3 forum | phpbb3 styles