Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
  #92  
Old 02-04-2002, 01:58 PM
Nupraptor's Avatar
Nupraptor Nupraptor is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
How about throwing a switch in the User CP so the user can toggle it on/off?
I'd really like this, if it isn't too much trouble (and if someone didn't already post how to do this - I just skimmed the thread). The quick reply box is very handy (I'm using it now, in fact ), but it looks a bit cluttersome.
Reply With Quote
  #93  
Old 02-04-2002, 03:01 PM
Craig Antill Craig Antill is offline
 
Join Date: Nov 2001
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is really going down well with our users... excellent stuff - thanks again!

They are all asking for one thing though... is this possible ? Sorry to keep on

Quote:
Any way that I can allow users to subscribe to the topic with the quick reply ? Ideally by way of a hidden field which simply subscribes the user if they have set their options to subscribe by default...?
Reply With Quote
  #94  
Old 02-04-2002, 09:34 PM
SgtSling SgtSling is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway that we can make this work with the "post comprised in time" hack?
That is my only complaint is that it posts times that are screwey.
Thanks
Reply With Quote
  #95  
Old 02-05-2002, 04:04 AM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You the man!

Works perfect on 2.2.2 with vbportal3.0pr7

A switch for users to turn on or off in the user cp would really compliment it though, as maybe some users don't want it.
Reply With Quote
  #96  
Old 02-05-2002, 07:04 AM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just reviewed this thread and this looks very interesting. Besides, I would like to test it for a time only for Moderators and Admins.

May I change the code like this :

Code:
if (($bbuserinfo['usergroupid']=="5") or ($bbuserinfo['usergroupid']=="6")) { 
  
  /*if (!$getperms['canviewothers'] and $thread
  ['postuserid']!=$bbuserinfo['userid']) {
  show_nopermission();
}

  if (($bbuserinfo['userid']!=$thread['postuserid']) and 
  (!$getperms['canviewothers'] or !$getperms
   ['canreplyothers'])) {
	$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
	$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
	$replybox='';
} else {*/
	
                $textareacols = gettextareawidth();
	eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}
And will this work only for mod's and admins ???
(I'm tryin' very hard with php but I'm not so experienced with coding for the vb )
Reply With Quote
  #97  
Old 02-05-2002, 07:09 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amasov - Yes that's fine, but if I were you I'd add an else part that sets $replybox to an empty string (like the original string). Otherwise your users can do some pretty nasty stuff!
Reply With Quote
  #98  
Old 02-05-2002, 07:15 AM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm...ah... you mean like this :

Code:
$textareacols = gettextareawidth();
	eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");

} else {
   $replybox=''
}
right ?
Reply With Quote
  #99  
Old 02-05-2002, 07:19 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With a ; at the end, but yeah.
Reply With Quote
  #100  
Old 02-05-2002, 07:22 AM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Many thanks for your help.
Reply With Quote
  #101  
Old 02-05-2002, 05:29 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.
In string
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)"> java bug. How about fix this?
Reply With Quote
  #102  
Old 02-05-2002, 09:54 PM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@inetd
I'm sorry, but what kind of scriptlanguage is "Java" ?? ( )

No, seriously, just a few hours ago a moderator told me that she has the same problem. I'm not very common with Java therefore I'm also looking forward to an answer for your question.

@FireFly:
Damned, how did you insert your personal text in "Who's online?" ???????

Reply With Quote
  #103  
Old 02-05-2002, 10:38 PM
Nam's Avatar
Nam Nam is offline
 
Join Date: Oct 2001
Location: NY
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderful hack, I believe this actually save some bandwidth? or not .
Reply With Quote
  #104  
Old 02-06-2002, 04:17 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am loving this one FireFly !!!

Thank You !!!
Reply With Quote
  #105  
Old 02-06-2002, 06:37 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nam, maybe but I'm not sure. Probably though, since you don't load newreply.php every time you want to post...
Reply With Quote
  #106  
Old 02-06-2002, 02:27 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly, one of my users has notified me that when she uses the quick reply box to post that in her control panel it doesn't show that thread as one she has replied to. Can this be fixed?

Any help on this would be great.

Thanks. :up:
Reply With Quote
Reply


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 03:00 PM.


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.09586 seconds
  • Memory Usage 2,363KB
  • Queries Executed 30 (?)
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
  • (2)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
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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