because that is to it ^lus complete
http://userscripts.org/scripts/show/23433
| Welcome | |
|---|---|
| Welcome to the <strong>Tribal Wars Enhancer</strong> forums!
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. <a href="/profile.php?mode=register">Join our community today</a> and help improve the tribal wars game! |
|
Moderators: enduo, Developers
I would like to know if it was possible to replace the actual BBcode icons by this script, which is more complete.Zeeman wrote:je voulais juste demander si il était possible de mettre ce script en remplacement des icones bbcodes car ce script est plus complet
merci
var xhtml = "<table class='bbcodearea'> " +
"<tr> " +
' <td><a tabindex="10" href="javascript:insertBB(\'player\','+random+');"><img src="'+ TW_Image_Base +'/face.png" alt="Insert player BB code" /></a></td>' +
' <td><a tabindex="11" href="javascript:insertBB(\'village\','+random+');"><img src="'+ TW_Image_Base +'/buildings/main.png" alt="Insert village BB code" /></a></td>' +
' <td><a tabindex="12" href="javascript:insertBB(\'tribe\','+random+');"><img src="'+ TW_Image_Base +'/command/support.png" alt="Insert tribe BB code" /></a></td>' +
' <td><a tabindex="13" href="javascript:insertBB(\'bold\','+random+');"><b>B</b></a></td>' +
' <td><a tabindex="14" href="javascript:insertBB(\'italic\','+random+');"><b><i>I</i></b></a></td>' +
' <td><a tabindex="15" href="javascript:insertBB(\'underline\','+random+');"><b><u>U</u></b></a></td>' +
' <td><a tabindex="16" href="javascript:insertBB(\'strikethrough\','+random+');"><b><s>S</s></b></a></td>' +
' <td><a tabindex="17" href="javascript:insertBB(\'quote\','+random+');"><b>[quote]</b></a></td>' +
"</tr> " +
"</table>";
switch (insertType) {
case 'player':
txtinsertBefore = "[player]";
txtinsertAfter = "[/player]";
insertButton = 'P';
break;
case 'village':
txtinsertBefore = "[village]";
txtinsertAfter = "[/village]";
insertButton = 'V';
break;
case 'tribe':
txtinsertBefore = "[ally]";
txtinsertAfter = "[/ally]";
insertButton = 'A';
break;
case 'bold':
txtinsertBefore = "[b]";
txtinsertAfter = "[/b]";
insertButton = ' ';
break;
case 'italic':
txtinsertBefore = "[i]";
txtinsertAfter = "[/i]";
insertButton = ' ';
break;
case 'underline':
txtinsertBefore = "[u]";
txtinsertAfter = "[/u]";
insertButton = ' ';
break;
case 'strikethrough':
txtinsertBefore = "[s]";
txtinsertAfter = "[/s]";
insertButton = ' ';
break;
case 'quote':
txtinsertBefore = "[quote]";
txtinsertAfter = "[/quote]";
insertButton = ' ';
break;
}
' <td><a tabindex="99" href="javascript:insertBB(\'my_defenition\','+random+');"><b>acutal link</b></a></td>' +
case 'my_defenition':
txtinsertbefore ="[tag to open your bbcode]"
txtinsertAfter =[tag that closes your bbcode]
timas wrote:on the jumping back to the start: not really :/ it's a issue phpBB also has and they have spent quite some time on fixing stuff like that
I do find it annoying, so I'll probably end up trying a few fixes
Return to Completed and closed features
Users browsing this forum: No registered users and 0 guests