Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   BBcode shoutbox (http://www.bvlist.com/showthread.php?t=6954)

kira 4th September 2011 22:08

BBcode shoutbox
 
hello I would like to add bbcode plugin shoutbox? how! thank you

xDev 4th September 2011 22:16

1 Attachment(s)
Quote:

Originally Posted by kira (Post 29871)
hello I would like to add bbcode plugin shoutbox? how! thank you

add to index or to shoutbox

PHP Code:

function quickbbshout(){
echo 
"<center><table border=0 cellpadding=0 cellspacing=2 ALIGN=\"left\" width=\"25%\"><tr>";

echo 
"<td width=22><a href=\"javascript:bbshout('[b]', '[/b]')\"><img src=images/bbcode/bbcode_bold.gif border=0 alt='Bold' id=button1></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[i]', '[/i]')\"><img src=images/bbcode/bbcode_italic.gif border=0 alt='Italic'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[u]', '[/u]')\"><img src=images/bbcode/bbcode_underline.gif border=0 alt='Underline'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[url]', '[/url]')\"><img src=images/bbcode/bbcode_url.gif border=0 alt='Url'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[img]', '[/img]')\"><img src=images/bbcode/bbcode_image.gif border=0 alt='Img'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[blink]', '[/blink]')\"><img src=images/bbcode/bbcode_blink.gif border=0 alt='blink'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[center]', '[/center]')\"><img src=images/bbcode/bbcode_center.gif border=0 alt='center'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[left]', '[/left]')\"><img src=images/bbcode/bbcode_left.gif border=0 alt='left'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[right]', '[/right]')\"><img src=images/bbcode/bbcode_right.gif border=0 alt='right'></a></td>";

echo 
"<td width=22><a href=\"javascript:bbshout('[df]', '[/df]')\"><img src=images/bbcode/bbcode_defile.gif border=0 alt='defile'></a></td>"


kira 4th September 2011 22:21

PHP Code:

    $_links_ '
    <a href="javascript:insert(\'[b]\', \'[/b]\', \'' 
$TSformname .  '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' .  $pic_base_url 'codebuttons/bold.gif" border="0" alt="' .  $lang->quick_editor['bold'] . '" title="' .  $lang->quick_editor['bold'] . '" /></a>
    <a href="javascript:insert(\'[i]\', \'[/i]\', \'' 
$TSformname .  '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' .  $pic_base_url 'codebuttons/italic.gif" border="0" alt="' .  $lang->quick_editor['italic'] . '" title="' .  $lang->quick_editor['italic'] . '" /></a>
    <a href="javascript:insert(\'[u]\', \'[/u]\', \'' 
$TSformname .  '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' .  $pic_base_url 'codebuttons/underline.gif" border="0" alt="' .  $lang->quick_editor['underline'] . '" title="' .  $lang->quick_editor['underline'] . '" /></a>
    <a href="javascript:insert(\'[url]\', \'[/url]\', \'' 
.  $TSformname '\', \'' $TStextareaname '\');"><img src="' .  $BASEURL '/' $pic_base_url 'codebuttons/link.gif" border="0"  alt="' $lang->quick_editor['link'] . '" title="' .  $lang->quick_editor['link'] . '" /></a>
    <a href="javascript:insert(\'[img]\', \'[/img]\', \'' 
.  $TSformname '\', \'' $TStextareaname '\');"><img src="' .  $BASEURL '/' $pic_base_url 'codebuttons/image.gif" border="0"  alt="' $lang->quick_editor['image'] . '" title="' .  $lang->quick_editor['image'] . '" /></a>
    <a href="javascript:insert(\'[email]\', \'[/email]\', \'' 
.  $TSformname '\', \'' $TStextareaname '\');"><img src="' .  $BASEURL '/' $pic_base_url 'codebuttons/email.gif" border="0"  alt="' $lang->quick_editor['email'] . '" title="' .  $lang->quick_editor['email'] . '" /></a>
    <a href="javascript:insert(\'<<<@!1!@>>>\', \'' 
.  $TSformname '\', \'' $TStextareaname '\');"><img src="' .  $BASEURL '/' $pic_base_url 'codebuttons/quote.gif" border="0"  alt="' $lang->quick_editor['quote'] . '" title="' .  $lang->quick_editor['quote'] . '" /></a>
    <a href="javascript:insert(\'[code]\', \'[/code]\', \'' 
.  $TSformname '\', \'' $TStextareaname '\');"><img src="' .  $BASEURL '/' $pic_base_url 'codebuttons/code.gif" border="0"  alt="' $lang->quick_editor['code'] . '" title="' .  $lang->quick_editor['code'] . '" /></a>';
    return 
$_links_;
  }

  function 
ts_show_shoutbox_bbcode_links ($TSformname 'shoutbox'$TStextareaname 'shoutbox')
  {
    
$colors = array ('black' => '#000000''blue' => '#1818A0',  'green' => '#00FF00''orange' => '#FF8040''pink' =>  '#FF00FF''red' => '#FF0000''yellow' => '#FFFF00');
    
$_links_ '
    <img src="pic/codebuttons/bold.gif" alt="Gras"  onClick="insert(\'[b]\', \'[/b]\', \'' 
$TSformname '\', \'' .  $TStextareaname '\');" />
    <img src="pic/codebuttons/italic.gif" alt="Italic"  onClick="insert(\'[i]\', \'[/i]\', \'' 
$TSformname '\', \'' .  $TStextareaname '\');" />
    <img src="pic/codebuttons/underline.gif" alt="Souligne"  onClick="insert(\'[u]\', \'[/u]\', \'' 
$TSformname '\', \'' .  $TStextareaname '\');" />
    <img src="pic/codebuttons/youtube.gif" alt="youtube"  onClick="insert(\'[youtube]\', \'[/youtube]\', \'' 
$TSformname '\',  \'' $TStextareaname '\');" />
    <img src="pic/codebuttons/image.gif" alt="Image"  onClick="insert(\'[img]\', \'[/img]\', \'' 
$TSformname '\', \'' .  $TStextareaname '\');" />

    '


I'm french and sorry display bbcodes s good, but not work! TS v5.6

xDev 4th September 2011 22:30

Quote:

Originally Posted by kira (Post 29873)
I'm french and sorry display bbcodes s good, but not work! TS v5.6

edit this line on all to Image

kira 4th September 2011 22:43

PHP Code:

    <table border="0" cellpadding="1" cellspacing="0">
                        <
tr>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[b]\',\'[/b]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/bold.gif" alt="' . $lang->quick_editor['bold'] . '" title="' . $lang->quick_editor['bold'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[i]\',\'[/i]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/italic.gif" alt="' . $lang->quick_editor['italic'] . '" title="' . $lang->quick_editor['italic'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[u]\',\'[/u]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/underline.gif" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
                            </
td


xDev 4th September 2011 22:45

Quote:

Originally Posted by kira (Post 29875)
PHP Code:

    <table border="0" cellpadding="1" cellspacing="0">
                        <
tr>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[b]\',\'[/b]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/bold.gif" alt="' . $lang->quick_editor['bold'] . '" title="' . $lang->quick_editor['bold'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[i]\',\'[/i]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/italic.gif" alt="' . $lang->quick_editor['italic'] . '" title="' . $lang->quick_editor['italic'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[u]\',\'[/u]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'codebuttons/underline.gif" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
                            </
td


PHP Code:

    <table border="0" cellpadding="1" cellspacing="0">
                        <
tr>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[b]\',\'[/b]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'bbcode/bold.gif" alt="' . $lang->quick_editor['bold'] . '" title="' . $lang->quick_editor['bold'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[i]\',\'[/i]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'bbcode/italic.gif" alt="' . $lang->quick_editor['italic'] . '" title="' . $lang->quick_editor['italic'] . '" /></a>
                            </
td>
                            <
td class="none">
                                <
a href="#" onclick="TSInsert(\'[u]\',\'[/u]\',\'' . $this->FormName . '\',\'' . $this->TextAreaName . '\'); return false;" class="borderit"><img src="' . $this->ImagePath . 'bbcode/underline.gif" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
                            </
td


peiratikos 10th November 2011 21:26

thanks


All times are GMT +2. The time now is 18:37.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.