Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Locked
rpgaming
Registered User
Posts: 18
Joined: Tue Jul 29, 2008 3:53 am

Re: Custom BBCodes

Post by rpgaming »

TanSi wrote:BBCode translate

For multilingual forums and citation

ar - Arabic; bg - Bulgarian; cs - Czech ; da - Danish; de - German; el - Greek; en - English; es - Spanish; fi - Finnish; fr - French; hi - Hindi; hr - Croatian; it - Italian; ja - Japanese; ko - Korean; nl - Dutch; no - Norwegian; pl - Polish; pt - Portuguese; ro - Romanian; ru - Russian; sv - Swedish; zh-cn - Simplified Chinese; zh-tw - Traditional Chinese;

BBCode usage:

Code: Select all

[translate={TEXT2}]{TEXT}[/translate]
HTML replacement:

Code: Select all

<script type="text/javascript">
var x = "{TEXT2}";
switch (x) {case "ar":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=ar&langpair=auto|ar&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "bg":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=bg&langpair=auto|bg&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "cs":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=cs&langpair=auto|cs&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "da":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=da&langpair=auto|da&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "de":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=de&langpair=auto|de&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "el":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=el&langpair=auto|el&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "en":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=en&langpair=auto|en&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "es":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=es&langpair=auto|es&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "fi":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=fi&langpair=auto|fi&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "fr":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=fr&langpair=auto|fr&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "hi":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=hi&langpair=auto|hi&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "hr":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=hr&langpair=auto|hr&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>");
break
case "it":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=it&langpair=auto|it&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "ja":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=ja&langpair=auto|ja&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "ko":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=ko&langpair=auto|ko&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "nl":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=nl&langpair=auto|nl&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "no":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=no&langpair=auto|no&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "pl":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=pl&langpair=auto|pl&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "pt":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=pt&langpair=auto|pt&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "ro":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=ro&langpair=auto|ro&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "ru":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=ru&langpair=auto|ru&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "sv":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=sv&langpair=auto|sv&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "zh-cn":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=zh-cn&langpair=auto|zh-cn&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
case "zh-tw":
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=zh-tw&langpair=auto|zh-tw&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
break
default:
document.write("<a href='http://translate.google.com/translate_t?text=" + "{TEXT1}" + "&hl=en&langpair=auto|en&tbb=1&ie=utf-8' target=_blank>{TEXT1}</a>"); 
}
</script>
Recommended help line text:

Code: Select all

[translate=language, for example, ru or en]your text to translate[/translate]
Any waytomake this where it posted the translated text onto the forum, instead of a url link?

usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: Custom BBCodes

Post by usenet2you »

Here is my NFO BBCode. Usefull for usenet forums.

Examples:

Code: Select all

[nfo]{TEXT}[/nfo]
HTML replacement

Code: Select all

<table width="500" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
     <td><span class="genmed"><b>NFO:</b></span></td>
   </tr>
   <tr>
     <td class="nfo"><pre>{TEXT}</pre></td>
   </tr>
</table>
Help Line

Code: Select all

[nfo] NFO here [/nfo]
Enjoy! :D

User avatar
Canis-Lupus
Registered User
Posts: 91
Joined: Wed May 21, 2008 4:49 pm

Re: Custom BBCodes

Post by Canis-Lupus »

TanSi wrote:BBCode Table (Max 10 columns)

BBCode usage:

Code: Select all

[tab={NUMBER}]{TEXT1};{TEXT2};{TEXT3};{TEXT4};{TEXT5};{TEXT6};{TEXT7};{TEXT8};{TEXT9};{TEXT10}[/tab]
HTML Replacement:

Code: Select all

<script type="text/javascript">
var col1 = "{TEXT1}"; 
var col2 = "{TEXT2}"; 
var col3 = "{TEXT3}"; 
var col4 = "{TEXT4}"; 
var col5 = "{TEXT5}"; 
var col6 = "{TEXT6}"; 
var col7 = "{TEXT7}"; 
var col8 = "{TEXT8}"; 
var col9 = "{TEXT9}"; 
var col10 = "{TEXT10}"; 
var j = {NUMBER};
var wid = 100/j;
document.write("<table width=\"100%\" border=\"0\" cellpadding=\"2\" align=\"center\"><tr align=\"center\">");
    if (j == 1)
	{
	document.write("<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td>");
	document.write("</tr>");
	}
    if (j == 2)
	{
	document.write("<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td>");
	document.write("</tr>");
	}
	if (j == 3)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td>");
	document.write("</tr>");				
	}
	if (j == 4)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td>");
	document.write("</tr>");				
	}
	if (j == 5)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td>");
	document.write("</tr>");				
	}
	if (j == 6)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td>");
	document.write("</tr>");				
	}
	if (j == 7)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td>");
	document.write("</tr>");				
	}
	if (j == 8)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td>");
	document.write("</tr>");				
	}
	if (j == 9)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col9 + "</td>");
	document.write("</tr>");				
	}
	if (j > 9)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col9 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col10 + "</td>");
	document.write("</tr>");				
	}
document.write("</table>"); 
</script>
Help:

Code: Select all

[tab=columns]Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null[/tab]
Attention!!! Only 9 characters - ";"
scr_table.jpg
Thanks for this code. I made an edit to the background colour to make the text stand out more and it looks fine our forum.

The only other problem I have with it, is finding the write box amid these ;;;;;;;;;. It becomes difficult to find the right one for the right box. I've set up a table for bookings of a conference room. I would like to make edits of the table easier by having in the edit box something like this [Mon];[Tues];[Wed];[Thurs]; etc.

The text in brackets should not show on the table when submitted or previewed, being in there only as an easy find guide to the correct placement of text. If someone wants to place in a booking for Tuesday then they simply highlight Tues and remove the brackets or something, or place the name of the booking next to [Tues] eg. [Mon];[Tues]Smith;[Wed];[Thurs] or [Mon];Smith;[Wed];[Thurs].

Perhaps this can be done without editing the code itself. If so, can someone advise me of the method.

User avatar
|SOA|Thomas
Registered User
Posts: 12
Joined: Fri May 09, 2008 10:36 pm
Location: United Kingdom
Contact:

Re: Custom BBCodes

Post by |SOA|Thomas »

Is there a chance of knowing how to insert a .wmv video located on my website?

I can use it nuke php, but not PHP3, the code is: [video]{VIDEO URL}[/video], Idea's??

also the mod for embedding youtube video's with the BBC code, like I require EXACT DETAILS on what i need to do.

Many thanks.

shtuwang
Registered User
Posts: 10
Joined: Mon Jul 28, 2008 5:24 am

Re: Custom BBCodes

Post by shtuwang »


User avatar
|SOA|Thomas
Registered User
Posts: 12
Joined: Fri May 09, 2008 10:36 pm
Location: United Kingdom
Contact:

Re: Custom BBCodes

Post by |SOA|Thomas »

I was reffering to a Video located on our site, as in a Windows Media Video (WMV) not youtube!

Although it dont work either.

bucsrno1
Registered User
Posts: 37
Joined: Fri Jul 25, 2008 11:47 am
Location: Miami, Florida U.S.A
Contact:

Re: Custom BBCodes

Post by bucsrno1 »

I just wanted to say Thanks to "Chromeman" for the Utube BBCodes.
They work like a charm. WOOT!
Image

chriswmjacobs
Registered User
Posts: 1
Joined: Thu Jul 31, 2008 1:01 am

Re: Custom BBCodes Ustream

Post by chriswmjacobs »

Here is the code for Ustream.

BBCode usage

Code: Select all

[ustream]{NUMBER}[/ustream]
HTML replacement

Code: Select all

<embed flashvars="autoplay=false&brand=embed" width="400" height="320" allowfullscreen="true" allowscriptaccess="always" src="http://www.ustream.tv/flash/live/{NUMBER}" type="application/x-shockwave-flash" />
Help line

Code: Select all

Just add the Streaming Number replacing {NUMBER}

User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Re: Custom BBCodes

Post by beggers »

TanSi wrote:BBCode Table (Max 10 columns)

BBCode usage:

Code: Select all

[tab={NUMBER}]{TEXT1};{TEXT2};{TEXT3};{TEXT4};{TEXT5};{TEXT6};{TEXT7};{TEXT8};{TEXT9};{TEXT10}[/tab]
HTML Replacement:

Code: Select all

<script type="text/javascript">
var col1 = "{TEXT1}"; 
var col2 = "{TEXT2}"; 
var col3 = "{TEXT3}"; 
var col4 = "{TEXT4}"; 
var col5 = "{TEXT5}"; 
var col6 = "{TEXT6}"; 
var col7 = "{TEXT7}"; 
var col8 = "{TEXT8}"; 
var col9 = "{TEXT9}"; 
var col10 = "{TEXT10}"; 
var j = {NUMBER};
var wid = 100/j;
document.write("<table width=\"100%\" border=\"0\" cellpadding=\"2\" align=\"center\"><tr align=\"center\">");
    if (j == 1)
	{
	document.write("<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td>");
	document.write("</tr>");
	}
    if (j == 2)
	{
	document.write("<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td>");
	document.write("</tr>");
	}
	if (j == 3)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td>");
	document.write("</tr>");				
	}
	if (j == 4)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td>");
	document.write("</tr>");				
	}
	if (j == 5)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td>");
	document.write("</tr>");				
	}
	if (j == 6)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td>");
	document.write("</tr>");				
	}
	if (j == 7)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td>");
	document.write("</tr>");				
	}
	if (j == 8)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td>");
	document.write("</tr>");				
	}
	if (j == 9)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col9 + "</td>");
	document.write("</tr>");				
	}
	if (j > 9)
	{
	document.write(	"<td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col1 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col2 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col3 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col4 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col5 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col6 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col7 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col8 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col9 + "</td><td width=\"" + wid + "%\" bgcolor=\"#FFFFFF\">" + col10 + "</td>");
	document.write("</tr>");				
	}
document.write("</table>"); 
</script>
Help:

Code: Select all

[tab=columns]Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null;Text or Null[/tab]
Tansi, this a very useful code but a couple of issues. Is there any way to change the code so that it allows BBcodes to be used? Also, it chokes on some common punctuation so it's use is somewhat limited. I hope you have some ideas about this. Thanks.

iainp
Registered User
Posts: 21
Joined: Fri May 19, 2006 6:10 pm

Re: Custom BBCodes

Post by iainp »

slightly off topic really: but related to BBCodes

when I try to do the BBcode changes in ACP......... when I hit submit I see a "re-directing" text and nothing is added to the bbcodes. Now this Redirect is because I have it on index.html in lowriderforums.com [my board is at lowriderforums.com/forum].
The same thing happens when i try to alter coding in templates thro my ACP [except i dont see the "re-direct" txt. just nothing happens]

I guess I have an address wrong from my install but where would it be?

Thanks.

Angry_Sun
Registered User
Posts: 430
Joined: Fri Aug 01, 2008 2:17 am
Location: Dry Dry Desert
Contact:

Spoiler BB Code [Not the one in the sticky]

Post by Angry_Sun »

I once had a really cool spoiler BB code on IPBfree.

It went like this.

Code: Select all

[spoiler]Text to be not spoiled here]/spoiler]
And it would appear as a button on the screen and when you clicked it, the spoiler would show, and you could click it again to hide it.

Is there anything like this on PHP? Cause I know it's possible.

User avatar
derkubi
Registered User
Posts: 79
Joined: Fri Feb 15, 2008 10:47 am
Contact:

Re: Spoiler BB Code [Not the one in the sticky]

Post by derkubi »

Angry_Sun wrote:And it would appear as a button on the screen and when you clicked it, the spoiler would show, and you could click it again to hide it.
Sounds like a normal spoiler , example :

Code: Select all

[spoiler]{TEXT}[/spoiler]

Code: Select all

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Inhalt</b> <input type="button" value="SHOW" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'HIDE"; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'SHOW'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>
I am german , so sorry for my bad english !

Angry_Sun
Registered User
Posts: 430
Joined: Fri Aug 01, 2008 2:17 am
Location: Dry Dry Desert
Contact:

Re: Custom BBCodes

Post by Angry_Sun »

thanks, but when I click "Show" it does nothing.

User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Re: Custom BBCodes

Post by beggers »

Angry_Sun wrote:thanks, but when I click "Show" it does nothing.
Doesn't work for me, either. Something's wrong with the code, I think.

Ace1121
Registered User
Posts: 6
Joined: Fri Apr 25, 2008 3:46 pm

Re: Custom BBCodes

Post by Ace1121 »

Hi folks. I apologise if this has been answered already. I have used the search function and gone through the first 10 pages of this thread but can't find an answer.

I am trying to make a simple link BBcode but it uses a non http protocol. The link I want to achieve is tmtp://#join=servername. This link will take the user to a particular game server (if the user has the game installed).

I have tried
Usage: [join={TEXT}]{TEXT2}[/join]
HTML: <a href="tmtp://#join={TEXT}">{TEXT2}</a>

But this won't work. Can anyone tell me what I am doing wrong?

Thank you.

Locked

Return to “Custom BBCode Development and Requests”