Thread: Quick Reply Box
View Single Post
  #883  
Old 03-17-2003, 07:30 PM
Skyrender's Avatar
Skyrender Skyrender is offline
 
Join Date: Jul 2002
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok here is the code Aurore. Just add this to showthread_quickreply

PHP Code:
<script language="Javascript" src="vbcode.js"></script>
<
script language="Javascript" src="vbcode_language.js"></script>
<
style>
#codebuttons input { font-family: verdana, arial, helvetica; font-size: 11px; }
#codebuttons select { font-family: verdana, arial, helvetica; font-size: 11px; }
.smilieTable border-width2pxborder-styleoutset; }
</
style>

<
tr id="codebuttons">
    <
td bgcolor="#E8ECF0" valign="top"><font face="tahoma" size="1"><b>vB Code</b></font>
    <
font face="tahoma" size="1">
    [<
a href="misc.php?action=bbcode#buttons" target="_blank">help</a>]<br>
    <
input type="radio" name="mode" value="0" title="Normal Mode: (alt+n)" accesskey="n"
    
onclick="setmode(this.value)" onmouseover="stat('norm')" checkedNormal Mode
    
<br>
    <
input type="radio" name="mode" value="1" title="Enhanced Mode: (alt+e)" accesskey="e"
    
onclick="setmode(this.value)" onmouseover="stat('enha')" Enhanced Mode
    
</font></td>
    
    <
td bgcolor="#E8ECF0">

    <
table cellpadding="0" cellspacing="0" border="0">
    <
tr>
        <
td nowrap><font face="tahoma" size="1">
        <
input type="button" class="bginput" value=" B " onclick="vbcode(this.form,'B','')" onmouseover="stat('b')" title="BOLD (alt+b)" accesskey="b" 
        
><input type="button" class="bginput" value=" I " onclick="vbcode(this.form,'I','')" onmouseover="stat('i')" title="ITALIC (alt+i)" accesskey="i" 
        
><input type="button" class="bginput" value=" U " onclick="vbcode(this.form,'U','')" onmouseover="stat('u')" title="UNDERLINE (alt+u)" accesskey="u" >
        &
nbsp;

        <
select id="sizeselect" 
        
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'SIZE')" onmouseover="stat('size')">
        <
option value="0">SIZE</option><option value="1">small</option>
<
option value="3">large</option>
<
option value="4">huge</option></select

        
><select id="fontselect" 
        
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'FONT')" onmouseover="stat('font')">
        <
option value="0">FONT</option><option value="arial">Arial</option>
<
option value="times new roman">Times</option>
<
option value="courier new">Courier</option>
<
option value="century gothic">Century</option></select

        
><select id="colorselect" 
        
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'COLOR')" onmouseover="stat('color')">
        <
option value="0">COLOR</option><!-- you should edit this list to remove the colors you don't want -->
<option value="skyblue" style="color:skyblue">sky blue</option>
<option value="royalblue" style="color:royalblue">royal blue</option>
<option value="blue" style="color:blue">blue</option>
<option value="darkblue" style="color:darkblue">dark-blue</option>
<option value="orange" style="color:orange">orange</option>
<option value="orangered" style="color:orangered">orange-red</option>
<option value="crimson" style="color:crimson">crimson</option>
<option value="red" style="color:red">red</option>
<option value="firebrick" style="color:firebrick">firebrick</option>
<option value="darkred" style="color:darkred">dark red</option>
<option value="green" style="color:green">green</option>
<option value="limegreen" style="color:limegreen">limegreen</option>
<option value="seagreen" style="color:seagreen">sea-green</option>
<option value="deeppink" style="color:deeppink">deeppink</option>
<option value="tomato" style="color:tomato">tomato</option>
<option value="coral" style="color:coral">coral</option>
<option value="purple" style="color:purple">purple</option>
<option value="indigo" style="color:indigo">indigo</option>
<option value="burlywood" style="color:burlywood">burlywood</option>
<option value="sandybrown" style="color:sandybrown">sandy brown</option>
<option value="sienna" style="color:sienna">sienna</option>
<option value="chocolate" style="color:chocolate">chocolate</option>
<option value="teal" style="color:teal">teal</option>
<option value="silver" style="color:silver">silver</option></select>
        <br>
        
        <input type="button" class="bginput" value="http://" title="Insert Hyperlink" onclick="namedlink(this.form,'
URL')" onmouseover="stat('url')"
        ><input type="button" class="bginput" value=" @ " title="Insert Email Address" onclick="namedlink(this.form,'
EMAIL')" onmouseover="stat('email')"
        ><input type="button" class="bginput" value="IMG" title="Insert Image" onclick="vbcode(this.form,'
IMG','http://')" onmouseover="stat('img')">
        
&nbsp;
        <
input type="button" class="bginput" value=" # " title="CODE" onclick="vbcode(this.form,'CODE','')" onmouseover="stat('code')"
        
><input type="button" class="bginput" value="PHP" title="PHP CODE" onclick="vbcode(this.form,'PHP','')" onmouseover="stat('php')"
        
><input type="button" class="bginput" value="List" title="Ordered List" accesskey="l" onclick="dolist(this.form)" onmouseover="stat('list')"
        
><input type="button" class="bginput" value="Quote" title="Insert Quote" onclick="vbcode(this.form,'QUOTE','')" onmouseover="stat('quote')"><br>
        
        <
input type="text" class="bginput" name="status" style="font-size:7pt" size="50" value="Use these controls to insert vBcode">

        </
font></td>
        <
td>&nbsp;</td>
        <
td><font face="tahoma" size="1">
        <
input type="button" class="bginput" value=" x " accesskey="c" title="Close Current Tag (alt+c)" style="color:red; font-weight:bold" onclick="closetag(this.form)" onmouseover="stat('closecurrent')">
        
Close Current Tag<br>
        <
input type="button" class="bginput" value=" x " accesskey="x" title="Close All Open Tags (alt+x)" style="color:red; font-weight:bold" onclick="closeall(this.form)" onmouseover="stat('closeall')">
        
Close All Tags
        
</font></td>
    </
tr>
    </
table>
    
    </
td>
</
tr
That adds all the buttons as in the normal replybox.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01382 seconds
  • Memory Usage 1,876KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete