Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Details »»

Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 01-28-2002 Last Update: Never Installs: 1206
 
No support by the author.

Here's an easy one, it barely took 4 minutes to do. :china:
This hack will add a quick replying box at the bottom of all threads, only if the user has permission to reply, so when you need to reply to something real quickly you don't need to click the Post Reply button and wait for the page to load.

Instructions are in the attached .txt file, and if you want a demo... just look below.

NOTE: For the vB 2.3.2 version please see this post.

Extras:
  • If you want users who have the Use Email Notification option ON, to automatically subscribe to threads they reply to with this hack, see this post.
  • If you want to add an option for each user to turn this feature on and off, please see this post.
  • If you want smilies in your quick reply box please see this post.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1322  
Old 01-17-2004, 04:38 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something is up here, I'm trying to install this on vB 2.3.3 and its just not working,
the showthread_replybox template is created, the $replybox in the showthread template is there, and i did infact upload the new showthread.php..

very weird, im kinda confused since it worked for everyone else...
Reply With Quote
  #1323  
Old 01-17-2004, 04:49 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed this one:
https://vborg.vbsupport.ru/showpost....postcount=1180

works fine, but its on top of the page instead of the bottom in showthread.php
Reply With Quote
  #1324  
Old 01-17-2004, 05:15 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind, its all fine...

except i want the fields to be checkboxes, not hidden fields...how can i do that?

where is everyone??
Reply With Quote
  #1325  
Old 01-17-2004, 05:46 PM
Elyk X Elyk X is offline
 
Join Date: Feb 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.
Reply With Quote
  #1326  
Old 01-17-2004, 06:02 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my showthread_replybox template...everything works, except the signature, url parsing and email notification options..

Code:
<script language="javascript">
<!--
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)">

<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 Reply</b></normalfont></td>
</tr>
<tr>
	<td bgcolor="{secondaltcolor}">
		      <table cellpadding="0" cellspacing="0" border="0" align="center">
                <tr valign="top"> 
                  <td>
                    <textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea>
                    <br><smallfont><a href="javascript:checklength(document.vbform);">[check 
                    message length]</a></smallfont>                    
                  </td>
                  <td><smallfont><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="checkbox" name="parseurl" value="yes">
                    Parse URLs?<br>
                    <input type="checkbox" name="email" value="">
                    Email Notification?<br>
                    <input type="hidden" name="disablesmilies" value="">
                    <input type="hidden" name="closethread" value="">
                    <input type="hidden" name="hiddenreply" value="">
                    <input type="checkbox" name="signature" value="yes">
                    Signature?<br>
                    <input type="hidden" name="rating" value="0"></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 Reply" accesskey="s" tabindex="2">
	<input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3">
	</normalfont></td>
</tr>
</table>

</form>
Reply With Quote
  #1327  
Old 01-17-2004, 06:03 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elyk X
Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.
use this one
https://vborg.vbsupport.ru/showpost....postcount=1180
Reply With Quote
  #1328  
Old 01-17-2004, 06:38 PM
Elyk X Elyk X is offline
 
Join Date: Feb 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigdaddy04
I did do that one =\

thats the one thats not working
Reply With Quote
  #1329  
Old 01-17-2004, 06:56 PM
bigdaddy04 bigdaddy04 is offline
 
Join Date: Jan 2004
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where is everyone!?
Reply With Quote
  #1330  
Old 01-17-2004, 08:10 PM
Elyk X Elyk X is offline
 
Join Date: Feb 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to busy working on vb3, but the only reason i installed vb2 again was cause it has hacks that vb3 doesnt have yet. like..the rpg hacks.

I had a quick reply working on my old 2.2.8 version....but for some reason this ones just being stupid.
Reply With Quote
  #1331  
Old 01-17-2004, 10:25 PM
Solid-Snake Solid-Snake is offline
 
Join Date: Oct 2003
Location: Ohio
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant find this bit in my showthread.php. I can find the first line of it but not the rest, its different. It says to find this
Code:
// ##################################################
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
  show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}
Instead I have
Code:
	if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
	  show_nopermission();
	}

	$bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
	$imgcodeon=iif($forum[allowimages],$ontext,$offtext);
	$htmlcodeon=iif($forum[allowhtml],$ontext,$offtext);
	$smilieson=iif($forum[allowsmilies],$ontext,$offtext);

	$post=$DB_site->query_first("
	SELECT
	post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
	attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
	".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
	FROM post
	".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
	LEFT JOIN user ON user.userid=post.userid
	LEFT JOIN userfield ON userfield.userid=user.userid
	".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
	                       LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
	LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
	WHERE post.postid = '$postid'
	");

	if (!$getperms['cangetattachment']) {
		$viewattachedimages=0;
	}
and I also have this in the same code
Code:
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
  show_nopermission();
}

if ($noshutdownfunc) {
  $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
  $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

if ($bbuserinfo[cookieuser]) {
  set_bbarraycookie('threadview', $threadid, time());
}
Can someone tell me what to do I really want this its like a necessity.

I use 2.3.4 despite what it says to the left.
Reply With Quote
Reply

Thread Tools

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. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08628 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete