vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Reply Box (https://vborg.vbsupport.ru/showthread.php?t=34597)

Skyrender 03-17-2003 07:23 PM

Aurore, yes you can use the quote
Just put [*Quote]whateveryouwant[/quote*]
I'll try and and make this easier give me you s/n to msn or aim and i'll help you.

Achaeon ask Firefly he could help you or maybe i'll try.

Skyrender 03-17-2003 07:30 PM

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.

laycomp 03-18-2003 01:44 AM

Quote:

02-14-02 at 10:53 AM squawell said this in Post #127
Chen~did u ever think add the attach file option to ur quick reply

box if u can do that it will be great!!:D:D:D:D


Yes, this is a must hack for us sites that use a lot of attachments, it would really enhance the reply box.

Is there a possibility of doing this??

Thanks :)

kr?mel 03-18-2003 02:57 PM

great hack :D

Skyrender 03-18-2003 06:59 PM

Quote:

Today at 03:44 AM laycomp said this in Post #883



Yes, this is a must hack for us sites that use a lot of attachments, it would really enhance the reply box.

Is there a possibility of doing this??

Thanks :)

I'll try and do this.

laycomp 03-18-2003 09:10 PM

Quote:

Today at 08:59 PM Skyrender said this in Post #885


I'll try and do this.

Wow Skyrender, that would be awesome! :banana:

I'm surprised no one has yet done it.

Thank you. Look forward to news and any assistance I can provide you. (i am not a programmer though)

Perhaps it could work as an addon for all the many that already have the Quick Reply hack installed? Just a suggestion :)

Boofo 03-18-2003 09:40 PM

Come on, guys, the answer has been in the thread for a while now. The search box at the bottom really works. ;)

Just add this where you want it in the replybox:

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" valign="top"><normalfont><b>Attach file:</b></normalfont><br>
    <
smallfont>Maximum size$maxattachsize bytes</smallfont></td>
    <
td bgcolor="{secondaltcolor}" valign="top"><smallfont><input type="hidden" name="MAX_FILE_SIZE" value="$maxattachsize_temp">
    <
input type="file" class="bginput" name="attachment"><br>
    
Valid file extensions$attachextensions</smallfont></td>
</
tr


Boofo 03-18-2003 09:43 PM

There's also a hack that allows you to turn attachments on or off for the quick replybox on a per forum basis. But I'll let you find it [high]using the search box[/high] at the bottom of this page. ;)

catocom2 03-19-2003 02:36 AM

I got this installed on 2.3.0 with the
smilies box, and attachments addins.

Works great. :)

I just have to add the custom smilies option,
and it's jammin'.

Thanks for the great hack.
LOL I've read through all 60 pages here. :D

Randomlove 03-19-2003 12:54 PM

Installed on 2.3.0.RC3, works fine so far. Some people complained about "No thread specified" error (just like post#871 up there). But not sure if this was because of the hack.

laycomp 03-19-2003 01:33 PM

Quote:

Yesterday at 11:40 PM Boofo said this in Post #887
Come on, guys, the answer has been in the thread for a while now. The search box at the bottom really works. ;)

Just add this where you want it in the replybox:

PHP Code:

<tr>
    <
td bgcolor="#1C5780" valign="top"><normalfont><b>Attach file:</b></normalfont><br>
    <
smallfont>Maximum size$maxattachsize bytes</smallfont></td>
    <
td bgcolor="#1C5780" valign="top"><smallfont><input type="hidden" name="MAX_FILE_SIZE" value="$maxattachsize_temp">
    <
input type="file" class="bginput" name="attachment"><br>
    
Valid file extensions$attachextensions</smallfont></td>
</
tr


Hey, wow :banana: thanks!
What template is this added to please?

Boofo 03-19-2003 03:46 PM

showthread_replybox

laycomp 03-20-2003 03:10 AM

Quote:

Yesterday at 05:46 PM Boofo said this in Post #892
showthread_replybox

Thanks Boofo, the file attachment hack worked fine.

For other's info. I am using v2.3.

Thanks for your help :)

Boofo 03-20-2003 03:18 AM

No problem. Enjoy! ;)

time4akshun 03-24-2003 03:15 PM

Chen,

I am sure you already know this. But this is THE most important hack even for Vbulletin!!!! I am sure VBulletin is kicking themselves for not thinking of it first!!!

Adds dramatic traffic and ease of posting to the boards.

Thanks! Just installed on www.classicarcadeclub.com

Gil

Snapperhaed 03-24-2003 08:35 PM

After reading ALL 60 pages, <YAWN> I still cant find the answer im looking for ... Some say it works on 2.3.0 some say 2.3.3 ...

I am running v2.3 #3 and it is NOT working.

Installed the code, exactly as stated in the 1ST thread of this god forsakenly long thread. The original hack. No add ons, no modifications, just straight up, give me a box.

Thru the hoops and the hurdles, I get NO error messages, yet I also get NO quick reply box. Not on top, on bottom, not in the middle, no where.

Any help/assistance in this matter would be appreciated!!

Edit: After pulling hair out, I found the problem. Seems the ftp server wasnt overwriting the old file. Check that! Also, in the template 'showthread' the orginal hack gives old code (obvious for an older version)...

Look for THIS in v2.3 #3

<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td><smallfont>$pagenav&nbsp;</smallfont></td>
<td align="right"><smallfont>
<img src="{imagesfolder}/prev.gif" alt="" border="0">
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
&nbsp;
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
<img src="{imagesfolder}/next.gif" alt="" border="0">
</smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->
$replybox

^^^ Add the reply box as stated above.

Thanks for the great hack. Im going to pluck my eyes out and soak them now. Ay carumba!

7harmonicz 03-24-2003 10:43 PM

Im running 2.3.0 as well and cant get it to work can, I get some help? I will pay someone to put it in for me, cuz, Ive tried a number of times and it isnt workin for me. Maybe, im just doin somethin wrong. Please contact me on AIM -mm3898 if anyone is interested in making some extra cash. Thanks,

its420 03-28-2003 09:35 PM

My box appears at the top of the page rather than the bottom. Any ideas?

CK2003 03-29-2003 12:51 AM

now this is what i have been looking for for a long long time:)

Shr3d 03-29-2003 06:06 AM

Thank you!
Really needed this one :)

350Chevy 03-29-2003 09:24 PM

This works fine with 2.3.0 RC3 (There's no such thing as 2.3.3).. ;)

I have all my old hacks installed(40+!!) and everything works fine with the upgrade to 2.3.0 RC3...

waddy 04-01-2003 10:01 AM

Works nicely with VB 2.30 final !!! :D

Robink 04-02-2003 10:41 AM

Quote:

03-16-03 at 08:40 PM Skyrender said this in Post #878
Gimppy I'll help IM me at Meww2894. Robink, add this code to where you want your smilies link.
Note take out the *'s

<*a href="javascript:opensmiliewindow(240,280,'')">Get More</a*>


Nope... I think I'll still have to do some php editing...

nagasadow 04-04-2003 05:51 AM

Thanks Firefly, this hack is a great work.

I appreciate very much your work ;) (I'm a newbie)

DarktidesNET 04-05-2003 12:04 AM

3. In the "showthread" template add $replybox right after the following:

What template ?

DarktidesNET 04-05-2003 12:08 AM

Never mind... first day using vB just forgot about the admin panel...

--- edit

Wow, easy as pie! I've spent the last 2 hrs in the source code trying to figure out how to work this ... lol, so used to Invision boards crap..

Darnell 0216 04-05-2003 04:46 PM

Quote:

04-02-03 at 07:41 AM Robink said this in Post #903
Nope... I think I'll still have to do some php editing...
The actual link code is
PHP Code:

<a href="misc.php?s=$session[sessionhash]&action=showsmilies">[Smilies]</a

Note that they aren't clickable using this method.

ruhl 04-06-2003 06:55 PM

I am trying to get it to work. I have 2.30 final and it aint working :(

I edited the showthread and all. then I amde the new template the last part i really aint to sure about where it says

3. In the "showthread" template add $replybox right after the following:
// ##################################################
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav&nbsp;</smallfont></td>
<td align="right"><smallfont>
<img src="https://vborg.vbsupport.ru/images/prev.gif" alt="" border="0">
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
&nbsp;
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
<img src="https://vborg.vbsupport.ru/images/next.gif" alt="" border="0">
</smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->

OrcSlayer 04-06-2003 08:48 PM

Help! When I installed it on 2.29 the box shows up at the top of the thread page, how do I put it at the bottom?

Super Shadow 04-06-2003 10:59 PM

OrcSlayer, you gotta find the NEXT <!-- first unread post ---> thing. You gotta put the $replybox after the fourth one.

My question: I have installed it properly, I think, and I click "Submit Reply" and it says "No thread specified." What can I do to fix this.

OrcSlayer 04-06-2003 11:13 PM

In what? Template? php file?

Super Shadow 04-06-2003 11:23 PM

In the template you have to add $replybox in

It's the third instruction.

ruhl 04-07-2003 12:45 AM

reply box in the template or the php file? I cant find it in the code you put in the template i dont see it anywhere.

Darnell 0216 04-07-2003 03:14 AM

You're not supposed to add it to the 'showthread_replybox' template. You're supposed to add it to the 'showthread' template beneath the specified line.

Greivog 04-07-2003 02:15 PM

My Quick reply box appears at the Top and also at the bottom of the threads.

How do i make it so it just appears at the bottom?

Cheers

Paul

pdatoon 04-08-2003 09:35 PM

Hi!

I would like to know if this is possible to integrate into the printthread mode ?

Any ideas?

noyen 04-08-2003 09:44 PM

i've run into a strange problem... since adding the replybox, i am unable to go to any thread that continues past 1 page to the more than one page. clicking on the 2 page, or next page button reloads the first page....? my showthread replybox template:

Code:

<script language="javascript">
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
        if (theform.message.value=="") {
                alert("Please complete the message field.");
                return false; }
        if (postmaxchars != 0) {
                if (theform.message.value.length > $postmaxchars) {
                        alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
                        return false; }
                else { return true; }
        } else { return true; }
}
function checklength(theform) {
        if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; }
        else { message = ""; }
        alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="email" value="">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="rating" value="0">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Quick Reply</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="#FFFFFF" valign="top" align="left" nowrap><normalfont>$clickysmilies<normalfont></td>
        <td bgcolor="#FFFFFF"> 
                <table cellpadding="0" cellspacing="0" border="0">
                <tr valign="top">
                        <td><textarea name="message" rows="10" cols="100%" wrap="virtual" tabindex="1"></textarea><br>
                        <smallfont><script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
                </tr></table>
        </td>
</tr>
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td align="center"><normalfont>
        <input type="submit" class="bginput" name="submit" value="Submit Quick Reply" accesskey="s" tabindex="2">
        <input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3">
        </normalfont></td>
</tr>
</table>

</form>


Darnell 0216 04-09-2003 02:49 AM

Quote:

Yesterday at 11:15 AM Greivog said this in Post #915
My Quick reply box appears at the Top and also at the bottom of the threads.

How do i make it so it just appears at the bottom?

Cheers

Paul

Are you sure you didn't add the $replybox variable more than once to the 'showthread' template?

Darnell 0216 04-09-2003 02:58 AM

Quote:

Today at 06:44 PM noyen said this in Post #917
i've run into a strange problem... since adding the replybox, i am unable to go to any thread that continues past 1 page to the more than one page. clicking on the 2 page, or next page button reloads the first page....?
Are you sure you made the correct alterations to 'showthread.php'? The last line of that involves the page navigation.
PHP Code:

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  
$pagenumber=1


Oblivion Knight 04-09-2003 12:03 PM

Quote:

03-16-03 at 04:10 PM Skyrender said this in Post #878
Gimppy I'll help IM me at Meww2894. Robink, add this code to where you want your smilies link.
Note take out the *'s

<*a href="javascript:opensmiliewindow(240,280,'')">Get More</a*>

Thanks Chad..
I've been trying to do this for a while now..

:speechless: The only way I could do it before was my linking to misc.php?action=getsmilies


All times are GMT. The time now is 11:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02166 seconds
  • Memory Usage 1,928KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete