Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 23rd October 2011, 17:00
kira kira is offline
Senior Member
 
Join Date: Jul 2011
France
Posts: 69
Question BBcode
Hello, I added the bbcode "blink" in "functions_quick_editor.php" and not work!!!

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
function ts_show_bbcode_links ($TSformname 'quickreply'$TStextareaname 'message')
  {
    global 
$BASEURL;
    global 
$pic_base_url;
    global 
$lang;
    
$_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(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' $pic_base_url 'codebuttons/bbcode_blink.gif" border="0" alt="' $lang->quick_editor['blink'] . '" title="' $lang->quick_editor['blink'] . '" /></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_ '
    <input type="button" class="button" style="font-weight:bold" value="B" onClick="insert(\'[b]\', \'[/b]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="font-style:italic" value="I" onClick="insert(\'[i]\', \'[/i]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="text-decoration:underline" value="U" onClick="insert(\'[u]\', \'[/u]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="font-weight:bold" value="Blink" onClick="insert(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />  
    '
;
    return 
$_links_;
  }

  function 
ts_load_colors_shoutbox ($TSformname 'shoutbox'$TStextareaname 'shoutbox'$colors = array ('black' => '#000000''blue' => '#1818A0''green' => '#00FF00''orange' => '#FF8040''pink' => '#FF00FF''red' => '#FF0000''yellow' => '#FFFF00'))
  {
    global 
$lang;
    global 
$BASEURL;
    global 
$pic_base_url;
    
$showcolors '
    <div style="display: none; margin-right: 13px; margin-bottom: 3px;" id="show_TScolors">
        <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
                <td class="none" align="right">'
;
    foreach (
$colors as $colorname => $colorcode)
    {
      
$showcolors .= '' '<img src="' $BASEURL '/' $pic_base_url 'codebuttons/' $colorname '.gif" class="Shighlightit" onClick="insert(\'[color=' $colorcode ']\', \'[/color]\', \'' $TSformname '\', \'' $TStextareaname '\')" />';
    }

    
$showcolors .= '
                </td>
            </tr>
        </table>
    </div>'
;
    return 
$showcolors;
  }

  if (!
defined ('IN_SCRIPT_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
define ('Q_EDITOR''v0.6 by xam');
?>
Reply With Quote
The Following User Says Thank You to kira For This Useful Post:
peiratikos (11th November 2011)
  #2  
Old 29th December 2011, 01:49
xDev xDev is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 158
Thumbs up
Quote:
Originally Posted by kira View Post
Hello, I added the bbcode "blink" in "functions_quick_editor.php" and not work!!!

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
function ts_show_bbcode_links ($TSformname 'quickreply'$TStextareaname 'message')
  {
    global 
$BASEURL;
    global 
$pic_base_url;
    global 
$lang;
    
$_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(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' $pic_base_url 'codebuttons/bbcode_blink.gif" border="0" alt="' $lang->quick_editor['blink'] . '" title="' $lang->quick_editor['blink'] . '" /></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_ '
    <input type="button" class="button" style="font-weight:bold" value="B" onClick="insert(\'[b]\', \'[/b]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="font-style:italic" value="I" onClick="insert(\'[i]\', \'[/i]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="text-decoration:underline" value="U" onClick="insert(\'[u]\', \'[/u]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <input type="button" class="button" style="font-weight:bold" value="Blink" onClick="insert(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />  
    '
;
    return 
$_links_;
  }

  function 
ts_load_colors_shoutbox ($TSformname 'shoutbox'$TStextareaname 'shoutbox'$colors = array ('black' => '#000000''blue' => '#1818A0''green' => '#00FF00''orange' => '#FF8040''pink' => '#FF00FF''red' => '#FF0000''yellow' => '#FFFF00'))
  {
    global 
$lang;
    global 
$BASEURL;
    global 
$pic_base_url;
    
$showcolors '
    <div style="display: none; margin-right: 13px; margin-bottom: 3px;" id="show_TScolors">
        <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
                <td class="none" align="right">'
;
    foreach (
$colors as $colorname => $colorcode)
    {
      
$showcolors .= '' '<img src="' $BASEURL '/' $pic_base_url 'codebuttons/' $colorname '.gif" class="Shighlightit" onClick="insert(\'[color=' $colorcode ']\', \'[/color]\', \'' $TSformname '\', \'' $TStextareaname '\')" />';
    }

    
$showcolors .= '
                </td>
            </tr>
        </table>
    </div>'
;
    return 
$showcolors;
  }

  if (!
defined ('IN_SCRIPT_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
define ('Q_EDITOR''v0.6 by xam');
?>
here you go

PHP Code:
  function ts_show_bbcode_links ($TSformname 'quickreply'$TStextareaname 'message')
  {
    global 
$BASEURL;
    global 
$pic_base_url;
    global 
$lang;
    
$_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(\'[swf]\', \'[/swf]\', \'' 
$TSformname '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' $pic_base_url 'codebuttons/bbcode_flash.gif" border="0" alt="' $lang->quick_editor['swf'] . '" title="' $lang->quick_editor['swf'] . '" /></a>

<a href="javascript:insert(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' $pic_base_url 'codebuttons/bbcode_blink.gif" border="0" alt="' $lang->quick_editor['blink'] . '" title="' $lang->quick_editor['blink'] . '" /></a>
         
 <a href="javascript:insert(\'[size=xx-large]\', \'[/size]\', \'' 
$TSformname '\', \'' $TStextareaname '\');"><img src="' $BASEURL '/' $pic_base_url 'codebuttons/xgros.png" border="0" alt="' $lang->quick_editor['size'] . '" title="' $lang->quick_editor['size'] . '" /></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(\'<<<@!2!@>>>\', \'' 
$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/bbcode_bold.gif" alt="Insert bold text" title="Insert bold text" onClick="insert(\'[b]\', \'[/b]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <img src="pic/codebuttons/bbcode_italic.gif" alt="Insert italic text" title="Insert italic text" onClick="insert(\'[i]\', \'[/i]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <img src="pic/codebuttons/bbcode_underline.gif" alt="Insert underline text" title="Insert underline text" onClick="insert(\'[u]\', \'[/u]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        <img src="pic/codebuttons/bbcode_left.gif" alt="gauche" title="gauche" onClick="insert(\'[align=left]\', \'[/align]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        <img src="pic/codebuttons/bbcode_list.gif" alt="centrer" title="centrer" onClick="insert(\'[center]\', \'[/center]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        <img src="pic/codebuttons/bbcode_right.gif" alt="right" title="right" onClick="insert(\'[align=right]\', \'[/align]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        <img src="pic/codebuttons/bbcode_justify.gif" alt="justify" title="justify" onClick="insert(\'[align=justify]\', \'[/align]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        <img src="pic/codebuttons/bbcode_quote.gif" alt="quote" title="quote" onClick="insert(\'<<<@!3!@>>>\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        
        
<img src="pic/codebuttons/bbcode_blink.gif" alt="blink" title="blink" onClick="insert(\'[blink]\', \'[/blink]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
 <img src="pic/codebuttons/bbcode_u.gif" alt="youtube" title="youtube" onClick="insert(\'[youtube]\', \'[/youtube]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
     <img src="pic/codebuttons/bbcode_url.gif" alt="image" title="image" onClick="insert(\'[img]\', \'[/img]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
    <img src="pic/codebuttons/gros.png" alt="size" title="taille" onClick="insert(\'[size=x-large]\', \'[/size]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
     <img src="pic/codebuttons/xgros.png" alt="size" title="taille" onClick="insert(\'[size=xx-large]\', \'[/size]\', \'' 
$TSformname '\', \'' $TStextareaname '\');" />
        
        

    '
;
    return 
$_links_;
  }

  function 
ts_load_colors_shoutbox ($TSformname 'shoutbox'$TStextareaname 'shoutbox'$colors = array ('black' => '#000000''blue' => '#1818A0''green' => '#00FF00''orange' => '#FF8040''pink' => '#FF00FF''red' => '#FF0000''yellow' => '#FFFF00'))
  {
    global 
$lang;
    global 
$BASEURL;
    global 
$pic_base_url;
    
$showcolors '
    <div style="display: none; margin-right: 13px; margin-bottom: 3px;" id="show_TScolors">
        <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
                <td class="none" align="right">'
;
    foreach (
$colors as $colorname => $colorcode)
    {
      
$showcolors .= '' '<img src="' $BASEURL '/' $pic_base_url 'codebuttons/' $colorname '.gif" class="Shighlightit" onClick="insert(\'[color=' $colorcode ']\', \'[/color]\', \'' $TSformname '\', \'' $TStextareaname '\')" />';
    }

    
$showcolors .= '
                </td>
            </tr>
        </table>
    </div>'
;
    return 
$showcolors;
  }

  if (!
defined ('IN_SCRIPT_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
define ('Q_EDITOR''v0.6 by xam');
?> 
Reply With Quote
  #3  
Old 13th January 2012, 22:41
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Talking
no url button despite function is there???

to complete lil more:

search
Code:
    <a href="javascript:insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');"><img src="' . $BASEURL . '/' . $pic_base_url . 'codebuttons/underline.gif" border="0" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
after add
Code:
    <img src="pic/codebuttons/Url.png" alt="Insert URL text" title="Insert URL" onClick="insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" />
button use this f.e.
Click the image to open in full size.

Bump:
Quote:
Originally Posted by eckeO5 View Post
no url button despite function is there???

to complete lil more:

search
Code:
    <a href="javascript:insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');"><img src="' . $BASEURL . '/' . $pic_base_url . 'codebuttons/underline.gif" border="0" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
after add
Code:
    <img src="pic/codebuttons/Url.png" alt="Insert URL text" title="Insert URL" onClick="insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" />
button use this f.e.
Click the image to open in full size.
sry lil correction:

search:
PHP Code:
<img src="pic/codebuttons/underline.gif" alt="Insert underline text" title="Insert underline text" onClick="insert(\'[u]\', \'[/u]\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" /> 
after this add:
PHP Code:
<img src="pic/codebuttons/Url.png" alt="Insert URL text" title="Insert URL" onClick="insert(\'[url=]\', \'[/url]\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" /> 
Bump:
Quote:
Originally Posted by eckeO5 View Post
no url button despite function is there???

to complete lil more:

search
Code:
    <a href="javascript:insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');"><img src="' . $BASEURL . '/' . $pic_base_url . 'codebuttons/underline.gif" border="0" alt="' . $lang->quick_editor['underline'] . '" title="' . $lang->quick_editor['underline'] . '" /></a>
after add
Code:
    <img src="pic/codebuttons/Url.png" alt="Insert URL text" title="Insert URL" onClick="insert(\'\', \'\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" />
button use this f.e.
Click the image to open in full size.
sry lil correction:

search:
PHP Code:
<img src="pic/codebuttons/underline.gif" alt="Insert underline text" title="Insert underline text" onClick="insert(\'[u]\', \'[/u]\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" /> 
after this add:
PHP Code:
<img src="pic/codebuttons/Url.png" alt="Insert URL text" title="Insert URL" onClick="insert(\'[url=]\', \'[/url]\', \'' . $TSformname . '\', \'' . $TStextareaname . '\');" /> 
Bump: well sry, don´t know what has happened when i try to fix my post for url button…these bump thing.

however…read just only once
Reply With Quote
The Following 2 Users Say Thank You to eckeO5 For This Useful Post:
Marco (17th July 2012), xDev (15th January 2012)
Reply

Tags
bbcode


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 16:56. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.