PDA

View Full Version : Quick Reply Box


Pages : [1] 2 3 4 5 6

Admin
01-28-2002, 10:00 PM
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. :D

NOTE: For the vB 2.3.2 version please see this (https://vborg.vbsupport.ru/showpost.php?p=434841&postcount=1180) 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 (https://vborg.vbsupport.ru/showthread.php?postid=253950#post253950) post.

If you want to add an option for each user to turn this feature on and off, please see this (https://vborg.vbsupport.ru/showthread.php?postid=275595#post275595) post.

If you want smilies in your quick reply box please see this (https://vborg.vbsupport.ru/showpost.php?p=437740&postcount=1203) post.

Lesane
01-29-2002, 01:31 PM
cool :cool:

Its kinda similiar to this one though:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=29829&highlight=quick

Admin
01-29-2002, 01:33 PM
Sorry, I didn't know this already exists.
Still mine only shows up for users that can reply to the thread, not to all users. :)

Mark Hensler
01-29-2002, 01:40 PM
How about throwing a switch in the User CP so the user can toggle it on/off?

Steve Machol
01-29-2002, 01:52 PM
Nice job! It would be great to see this in vB 3.0. :cool:

Martyjp
01-29-2002, 01:53 PM
Seems to be a hit with my members

*clicks on install*

Jawelin
01-29-2002, 02:03 PM
Very cool, Chen!

I'm planning to install it with a small variation: as I don't like that textbox at the end of the thread, I'll put a button or a link near the existing [Post Reply], something like [Quick Reply], and will open a javascript page with the textbox as you proposed.

What do you think about ? :)

Thanks a lot for sharing your work.

P.S.: what about closed threads ? Are they managed ?
Thnx

fresh_froot
01-29-2002, 02:08 PM
Great addition :) A quick install, painless and easy.

Im posting using it right now!

Admin
01-29-2002, 02:22 PM
Thanks. :pleased:

Mark - I don't really think that's necessary.

Jawelin - That would pretty much ruin the whole idea of a quick reply box, because if you open it in a new window you have to load all the global, sessions, etc. stuff just like on the regular new reply, so I don't think it would be much faster, if at all.

Neopiper
01-29-2002, 02:33 PM
does it work on 2.2.1? i tried to install it and the box didnt show up :p

squawell
01-29-2002, 02:35 PM
FireFly did u think add some smile icons in that function~~

and nice job :up:

Steve Machol
01-29-2002, 02:37 PM
Originally posted by Neopiper
does it work on 2.2.1? Well since it's running here and this forum is running 2.2.1, the answer would be yes! ;)

Neopiper
01-29-2002, 02:43 PM
hmm yeah, the box just didnt show up :)

cihangir
01-29-2002, 02:43 PM
1. In showthread.php find this bit of code:
if (!$getperms['canviewothers'] and $thread...


this code appears at 2 places. the first one is at line ~55 and the 2. one at 230. after which one must i add the changes to it?

Lionhead
01-29-2002, 02:45 PM
Very useful hack

Thx a ton :)

Neopiper
01-29-2002, 02:50 PM
never mind, i forgot to upload showthread.php :) duh hahahahahaha

Admin
01-29-2002, 02:53 PM
cihangir - thanks, I fixed the text file in the first post.
Neopiper - that's probably why the hack didn't work for you, try again now.

Neopiper
01-29-2002, 02:56 PM
it works great, thx firefly :)

JTMON
01-29-2002, 03:11 PM
This looks great Chen! How would I add the smilie box to the left of it though as my members love their smilies:D

Timber Wolf
01-29-2002, 04:06 PM
Great will be installing this one for sure.

Admin
01-29-2002, 04:59 PM
JTMON - Add this line:
$clickysmilies = getclickysmilies();
to showthread.php right after this:
$textareacols = gettextareawidth();
then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it, but you will also need to add these two lines:
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
to the template right after the <form> tag. That should work. :)

Wow this is even handier than I thought... :D

SWFans.net
01-29-2002, 05:18 PM
Pretty cool hack but I have one question.

Is there a way to not have it show within closed threads?

Admin
01-29-2002, 05:29 PM
It won't show up in closed threads for your users, but it does show up for you because you (as an admin) can still post, even in closed threads.

SWFans.net
01-29-2002, 05:33 PM
Cool!!! I didn't test as a regular user. Thanks for clearing that up for me. :D

EDIT: Yeah, I just checked as a regular user and it does display in closed threads.

Admin
01-29-2002, 05:35 PM
Wait... I think you are right. :o Let me check it, k? :)

Dade
01-29-2002, 05:41 PM
Pretty sweet Chen

nafae
01-29-2002, 06:09 PM
yes and fun to use!

SWFans.net
01-29-2002, 06:15 PM
It does display to regular users in closed threads. =/

Need to try and make it dumb user friendly, becuase we have plenty of those @_@ dumb users.

Rose
01-29-2002, 06:19 PM
:D I love it!!! I haven't added the smilie box yet, though. I think I'll leave it as is, if they want smilies they can click 'reply'. :D Good work, Firefly!!!

Mark Hensler
01-29-2002, 06:20 PM
How about putting a preview button on the form and have it submit to the newreply.php page with the preview shown? :)

-=dm=-
01-29-2002, 06:44 PM
FireFly thanx again for cool hack:) working fine.
for the smillies

$clickysmilies


where should I add this, can u please explain?

thanx

Gutspiller
01-29-2002, 07:22 PM
FireFly a few of my users would like quote buttons on it. How exactly would I make two quote buttons under the message field? I was thinking even just two text buttons under the message field right next to the "[check message length]" button. All they need to do is one put the [ quote] tag in and the other put the [ /quote] tag in. Unless you can do something fancier, this is all I require. Can you please add this to it?

Thanks for any help you can provide. I love the hack, It would be nice to have colaspable tables that users could contract or expand that had icons and that saved their settings, but that would take more than 4 minutes. :D

Psychdrone
01-29-2002, 11:19 PM
hmmmm this is pretty neat indeed!

Yet are there any other people out there with me, that think this will increase spam, as how easy it is to reply?

thats probaly why I wouldn't install it, but none the less great hack chen!

Martin CX
01-29-2002, 11:46 PM
Very nice twist on the original hack (which really wasn't anything but a template edit), Firefly! I've installed it w/o any problems, but I've added a preview button. "Preview is good... preview is ...good". :D

epi
01-29-2002, 11:55 PM
if you want to add the smiles do what firefly said and then find
this in quick reply templete
Your Reply:</b></normalfont></td>

--------------------------------------------------------------------------------change to
Your Reply:</b></normalfont><p>$clickysmilies</td>

Twig Deez
01-30-2002, 12:18 AM
excellent. :D

Jakeman
01-30-2002, 01:19 AM
ugh! i may have to install this one. i didn't want to butcher my forums any more... :mad: ;)

fonzerelli_79
01-30-2002, 01:33 AM
this is a very quick reply

fonzerelli_79
01-30-2002, 02:02 AM
for anyone who added the smilies to the side of the replybox
i found that changing the number or rows in the textarea from 7 to 15 makes it look a lot better

also, the right is crying for the most popular vbcode options ie quote, img etc

Parker Clack
01-30-2002, 02:31 AM
Another great hack!

Parker

snyx
01-30-2002, 03:15 AM
this is awesome man, I saw the hack awhile from someone else back but it wasnt complete, or somthing.... oh well, looks great, I plan to install it asap.

larryz
01-30-2002, 08:58 AM
If you want the Quicky Reply Box to not appear when the thread is closed, you can simply wrap an if statement around it.

ORIGINAL:


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



New:


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

SWFans.net
01-30-2002, 09:46 AM
Worked great larryz. Thanks. :)

MikeWarner
01-30-2002, 09:52 AM
nice - I'll install this later! :)

TurboFC3S
01-30-2002, 12:45 PM
Great hack, and so easy! Works perfect for me ...

Admin
01-30-2002, 12:51 PM
Updated the text file with new code to hide the box from non-mods in closed threads.
Add this:
if (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else
right after this:
$replybox='';
} else

TurboFC3S
01-30-2002, 01:05 PM
In your template, you have

<input type="hidden" name="signature" value="yes">

Listed twice. I think you should have signatures tured off by default also ...

Admin
01-30-2002, 01:21 PM
Fixed... if you want to have sigs turned of just delete that hidden field.

Gutspiller
01-30-2002, 02:20 PM
Originally posted by Psychdrone
hmmmm this is pretty neat indeed!

Yet are there any other people out there with me, that think this will increase spam, as how easy it is to reply?

thats probaly why I wouldn't install it, but none the less great hack chen!

I already noticed this on my board. You may want to increase the time between posts that's allowed. I had mine to 10 seconds, but I am setting it to 15 as we speak. (sorta an active board) ;)

ladyfyre
01-30-2002, 03:08 PM
Just FYI:

This is a GREAT hack...and I am sure my members are going to love it. Only one complaint: In your instructions for the template creation, it would REALLY be great if you could set the templates to use the replacement values...the blues you used looked REALLY funky on my forums until I went in and reset them...and it would be nice to know that the table bg colors would change if/when the site templates are changed.

But again: Good job!

Admin
01-30-2002, 03:14 PM
Oops, my bad, it got replaced somehow after I updated the file - fixed now! :)

ladyfyre
01-30-2002, 03:24 PM
no problem :) Just thought I would let ya know :)

Gutspiller
01-30-2002, 03:37 PM
Originally posted by FireFly
Oops, my bad, it got replaced somehow after I updated the file - fixed now! :)

Now make me a quote button. :D

Come on, it would be nice, just the same as the VB code button does, but instead of it looking like a button, it would be good as just a text link. Then when people click it, it brings up a field thing just like the VB code button does and then you paste whoever you are quoting in there.

If you are such a great hacker you will do this little thing. ;) heheh

Kumaro
01-30-2002, 08:07 PM
excellent hack! installed it, works great!

Freddie Bingham
01-30-2002, 08:40 PM
Interesting idea. hmm vb3, ok. It won't be a user option though, only an admin option to enable/disable.

cyrus
02-01-2002, 08:37 AM
how can I make it so that alllllll active members can view it ?

cheerz chen ... lovely hack

Admin
02-01-2002, 11:43 AM
For cyrus:
Replace:
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')."\";");
}
with:
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");

cyrus
02-01-2002, 03:17 PM
thanks FF

Jawelin
02-01-2002, 04:16 PM
Originally posted by cyrus
how can I make it so that alllllll active members can view it ?

cheerz chen ... lovely hack Sorry. What do you mean with 'active' ? :noid:
I saw FF correction and seems with many many less checks before displaying the box...
:stupid:
Thnx

Gutspiller
02-01-2002, 05:19 PM
Originally posted by Gutspiller


Now make me a quote button. :D

Come on, it would be nice, just the same as the VB code button does, but instead of it looking like a button, it would be good as just a text link. Then when people click it, it brings up a field thing just like the VB code button does and then you paste whoever you are quoting in there.

If you are such a great hacker you will do this little thing. ;) heheh

Please firefly. :( Just two text buttons, it will take you like 4 minutes or less. :D

gimmie gimmie gimmie. :?:

eva2000
02-02-2002, 09:21 AM
Originally posted by FireFly
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. :D i go away for a couple of days and look what happens! Firefly yet again comes up with an awesome hack :)

r.cakir
02-02-2002, 10:10 AM
test

Erwin
02-02-2002, 10:15 AM
Love it love it love it.... :)

Craig Antill
02-02-2002, 10:30 AM
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...?

Great hack BTW! :)

life is boost
02-03-2002, 05:48 AM
I installed this on my board and i followed the insturctions exaclty but it does not work? im on version 2.2.1

Palmer ofShinra
02-03-2002, 07:44 AM
Definately going to try this out... maybe fiddle with it some too...

Jawelin
02-03-2002, 10:31 AM
Just a trick: I think the QuickReplyBox should appear only below the lastest post in thread, don't you agree ?

I mean, when there are multi-page threads, the reply box should be hidden until the last page.

What do you think about ?
Thnx

KuraFire
02-03-2002, 12:26 PM
Great hack, gonna install right away! :)

JTMON
02-03-2002, 01:08 PM
Originally posted by Jawelin
Just a trick: I think the QuickReplyBox should appear only below the lastest post in thread, don't you agree ?

I mean, when there are multi-page threads, the reply box should be hidden until the last page.

What do you think about ?
Thnx

I don't see why as you could click the reply button before the last page.

Admin
02-03-2002, 01:17 PM
Agree with JTMON. :)

Danny
02-03-2002, 04:44 PM
FireFly m8, done what you said and it doesn't seem to work did you test it first ?

using vb 2.2.2

Danny
02-03-2002, 04:52 PM
FireFly m8, done what you said and it doesn't seem to work did you test it first ?

using vb 2.2.2

Admin
02-03-2002, 05:05 PM
It worked for JTMON, right?

Danny
02-03-2002, 05:07 PM
Sorry it works fine i forgot to upload the showthread file sorry m8 :(

JTMON
02-03-2002, 05:08 PM
umm, didn't do it yet, I will try it now:D I am running 2.2.1 though

JTMON
02-03-2002, 05:26 PM
Hmm, the smilie part isn't working for some reason, where do I put those two lines of script in the showthread_replybox? Do they go after the <form blah blah blah> or after the closing </form> tag?

Danny
02-03-2002, 05:30 PM
i put mine after the <form>

JTMON
02-03-2002, 05:48 PM
Ok, somethings up here. I just replied to this thread twice using the quick reply and it's not showing in the thread at all. This time I am trying the normal reply.

Where is there a plain <form> tag? I see the <form enctype etc> and </form> tags and that's it.

Danny
02-03-2002, 07:14 PM
Here is my code JTMON hope this helps.


<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)">
<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">
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
<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}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont>$clickysmilies</td>
<td bgcolor="{secondaltcolor}">
<table cellpadding="0" cellspacing="0" border="0">
<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>
</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>

JTMON
02-03-2002, 07:21 PM
Didn't work-time to recheck showthread. Mods-again I replied using the quick reply and it did not post!

JTMON
02-03-2002, 07:25 PM
Working-It helps when you upload the new showthread to the proper directory :stupid:

Danny
02-03-2002, 07:27 PM
Line 437 to 441


if ($thread[open]) {
$replyclose="{replyimage}";
} else {
$replyclose="{closedthreadimage}";
}


Replace with ....

Line 437 to 445


if ($thread[open]) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
if (ismoderator($thread[forumid],'canopenclose')) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
} else {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
}
}

JTMON
02-03-2002, 07:30 PM
Originally posted by Danny
Line 437 to 441


if ($thread[open]) {
$replyclose="https://vborg.vbsupport.ru/images/reply.gif";
} else {
$replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
}


Replace with ....

Line 437 to 445


if ($thread[open]) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
if (ismoderator($thread[forumid],'canopenclose')) {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
} else {
eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
}
}


What's that do? BTW I used firefly's code as yours changed my color due to vb.org parsing the colors and me being too lazy to edit it.:D

Danny
02-03-2002, 07:32 PM
that goes in the showthread file m8, just posted it for reference.

Martyjp
02-04-2002, 09:21 AM
Having a few problems since I installed it

Bit of a strange one and it hasnt happened to me yet, but some users after making a quick post cant see any replies. It has happened to about 4 or 5 users, I am trying to get more information out of them at the moment, but any ideas what may be causing this?

Help if I included the image


http://f4g.net/images/f4g.jpg

JTMON
02-04-2002, 11:34 AM
Haven't seen that one yet, but I have seen where they can't see THEIR post after using the QRB (Quick Reply Box) to reply. It happened to me here about 3-4 times.

Admin
02-04-2002, 01:24 PM
JTMON, that's odd. I'm just replying using it and it's fine. I'll look into it.

JTMON
02-04-2002, 01:26 PM
From what I can tell it's intermittent at best-I am posting this using the quick reply

Admin
02-04-2002, 01:36 PM
It's actually fixed I think, the problem was with an opened <form> tag I accidentally caused somewhere. :)

JTMON
02-04-2002, 01:45 PM
Cool! Way to go!

Nupraptor
02-04-2002, 01:58 PM
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 :p), but it looks a bit cluttersome.

Craig Antill
02-04-2002, 03:01 PM
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 :D

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...?

SgtSling
02-04-2002, 09:34 PM
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

Lucky
02-05-2002, 04:04 AM
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.

Amasov
02-05-2002, 07:04 AM
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 :


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 :( )

Admin
02-05-2002, 07:09 AM
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!

Amasov
02-05-2002, 07:15 AM
hmm...ah... you mean like this :


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

} else {
$replybox=''
}


right ?

Admin
02-05-2002, 07:19 AM
With a ; at the end, but yeah.

Amasov
02-05-2002, 07:22 AM
:) :)

Many thanks for your help.

inetd
02-05-2002, 05:29 PM
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?

Amasov
02-05-2002, 09:54 PM
@inetd
I'm sorry, but what kind of scriptlanguage is "Java" ?? ( :cool: )

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?" ???????

:D :D

Nam
02-05-2002, 10:38 PM
Wonderful hack, I believe this actually save some bandwidth? or not :).

Destee
02-06-2002, 04:17 AM
I am loving this one FireFly !!!

Thank You !!!

Admin
02-06-2002, 06:37 AM
Nam, maybe but I'm not sure. Probably though, since you don't load newreply.php every time you want to post... :)

Gutspiller
02-06-2002, 02:27 PM
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:

Amasov
02-06-2002, 03:12 PM
@Inetd:

My Java problem is fixed by now. It was a carriage return inside the script between a string and it's quotes (error: missing object) maybe caused during the translation.

@Gutspiller:

Maybe the error is caused by yourself? On mine it works perfectly.

spazeman
02-06-2002, 08:02 PM
that hack rules :) well done firefly!

nafae
02-06-2002, 11:52 PM
Perhaps I missed something, but

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

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

isn't in 2.2.2, is this hack 2.2.2 ready?

FWC
02-07-2002, 12:08 AM
Originally posted by nafae
isn't in 2.2.2, is this hack 2.2.2 ready? It's there. There is an extra or $bbuserinfo['userid']==0in the first line in 2.2.2.

nafae
02-07-2002, 01:35 AM
ok, should I replace the or $bbuserinfo also I assume, with the code provided?

-thx btw

KuraFire
02-07-2002, 11:37 AM
There is still no news about making this a selectable option in the User CP ?

Admin
02-07-2002, 11:45 AM
No KuraFire, sorry I'm just not gonna bother. Sorry to sound harsh. :)
(I'm just SOOOOOOOOOOOOOOOOOOOO goddamn tired of adding options to the user cp... it's like, the worst thing you could do ever! I'm just waiting for v3 so this can be done more easily... :))

KuraFire
02-07-2002, 11:59 AM
Okay well no worries, it's only my co-admin that wants it selectable, everyone else is liking it this way (as am I, big time, it saves on bandwith a bit as well! ^_^) but I was just wondering if it was being done nonetheless, cos IF SO I would use it.

No worries, I'm glad even that you're not gonna both with it. Saves *me* the effort of hacking the pages as well! :D

Oh ps. could you please look at the link in my sig? I sent ya a PM but the PM tracking doesn't show it. Weird... :/

fury
02-08-2002, 10:23 AM
Excellent hack! For some reason, however, adding the clicky smilies to the template causes showthread.php to take a lot longer to finish loading. What I mean is, the posts load, and then the last post on that page is the last thing you see for about 20 seconds, and then finally the bottom bar with the new thread and post reply buttons, as well as everything below it shows.

I did exactly as you said, put $clickysmilies = getclickysmilies(); after the $textareacols... line and then put $clickysmilies in the template along with those two <script> tags after the <form>. After I did this, it began the symptoms as I described above.

I appreciate any help I can get on this. :)

fury
02-08-2002, 05:34 PM
Bumpaw00t.

Admin
02-08-2002, 06:03 PM
fury, you can't eat the cake and leave it whole. (or however you say it :))

The page will obviously slow down when you load 20 more images in it...

kill yourself
02-08-2002, 08:45 PM
ummmmm........
I did everything as directed.
It's not working for me


ugh...:(

Warlord
02-10-2002, 02:41 AM
Installed, and added the code Firefly posted to make it only visible to Admins when a thread is locked, works great! ;)

How would I go about adding the "Lock Topic with reply" feature to that?

Erwin
02-10-2002, 02:44 AM
It works in 2.2.2 with no problems. I installed the smilie box for a short time, but it slowed the threads down too much, so I took it out, and left a link to the post reply page.

Admin
02-10-2002, 05:16 AM
Warlord, do you have that hack installed?

Warlord
02-11-2002, 02:05 AM
Yes I do...

http://www.superherochat.com/vb/index.php

I also added the code you posted so that the quick reply box would be visible to the staff in closed threads and not visible to the members.

I was curious as to how I could add the Lock Topic while making reply hack, (that has been installed on normal replies) to the quick reply feature. I think all I have to do is find the code "$lock" or whatever it is and add it to the template, right?

Admin
02-11-2002, 09:03 AM
Add <input type="checkbox" name="closethread" value="yes"> to the box, then if you check that box the thread will be closed.
To only show this to mods requires more hacking, so take a look at the code for that hack and apply it here. :)

Soma
02-14-2002, 03:21 AM
thanx man.

Smoothie
02-14-2002, 05:37 AM
Testing to see if this works ;)

Smoothie
02-14-2002, 05:38 AM
Very nice if I must say so. :)

Smoothie
02-14-2002, 06:45 AM
Hack installed and working great. Thanks!

squawell
02-14-2002, 08:53 AM
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

ja5es
02-14-2002, 02:12 PM
I can't find this code: if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) { I'm running vB 2.2.1

Can somone help me out?

squawell
02-14-2002, 02:16 PM
Originally posted by ja5es
I can't find this code: if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) { I'm running vB 2.2.1

Can somone help me out?
i think u can find that code near line 55~~

Dade
02-15-2002, 04:21 AM
Damnit, I ****ed up on the showthread.php file when adding the smilie function and I forgot to backup the file and now I have to download the vB software, re-edit, and re-upload. AHH! I hate double work >.<

Dade
02-15-2002, 04:43 AM
Got it all fixed now. But Mr. Chen, how can I add the quick vb code to the quick reply box?

Rose
02-15-2002, 12:31 PM
Originally posted by Dade
Got it all fixed now. But Mr. Chen, how can I add the quick vb code to the quick reply box?


I'd be interested in this, as well, if available. I just searched all 9 pages of the thread and didn't see it mentioned or referenced (though I thought it was at one point).


Rose

Dade
02-15-2002, 03:45 PM
Chen baby, can you help out?

fredinsic
02-18-2002, 12:43 AM
I've just installed this hack along with welcome panel[final] .. The hack works but the reply box is at the top of the thread instead of at the bottom ??

Recluse
02-18-2002, 03:08 AM
Originally posted by fredinsic
I've just installed this hack along with welcome panel[final] .. The hack works but the reply box is at the top of the thread instead of at the bottom ??

same here :confused:

TECK
02-18-2002, 05:22 AM
Originally posted by ja5es
I can't find this code: if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) { I'm running vB 2.2.1

Can somone help me out? you are a new member here and you have 2.2.1 installed. can you explain to me how is that possible? why you dont upgrade to 2.2.2? it fixes alot of little bugs.. it doesnt make sense.
also, who designed your layout? is nice.. ;)

wolfe
02-19-2002, 10:51 PM
fredinsic & Recluse guys in the "Showthread Template" put $replybox under this



<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 -->



if you can't find it just let me know also thanx FireFly m8 works a treat and the smilies do aswell also i am testing it on VBB 2.2.0 and it also works fine on there m8.

Vivi Ornitier
02-20-2002, 03:05 AM
Will somebody help integrating this with the COmposite time hack? cause if u use the reply box and u have the time hack both enabled, it'll say like composed in 16969059595 minutes . ..lol, that's not right!

MarkB
02-20-2002, 05:37 AM
Tidy work - added to my 'zine' forums (not the others) :)

Bimma Boy
02-21-2002, 07:02 PM
Originally posted by FWC
It's there. There is an extra or $bbuserinfo['userid']==0in the first line in 2.2.2.

I notice in the replacement code provided by firefly.. it doesnt include this extra bit.. shall I just assume we are suppose to add it ourselves on or just put the code Firefly gave us and ignore this or $bbuserinfo['userid']==0)) bit of code ?

freakyshiat
02-22-2002, 04:26 AM
Is it possbile that when users hit quote, the text gets automatically put in in the quick reply box?

freakyshiat
02-22-2002, 04:47 AM
mine check message length doesnt work, any ideas?

kennethj
02-23-2002, 10:41 PM
Originally posted by Bimma Boy


I notice in the replacement code provided by firefly.. it doesnt include this extra bit.. shall I just assume we are suppose to add it ourselves on or just put the code Firefly gave us and ignore this or $bbuserinfo['userid']==0)) bit of code ?

3rd time asking

i was looking for the answer to this one too. read every page, like the hack, makes it eazy to reply - all the bells and whistles for some - some want it simple.

the differance in code found - should it be added or not???

or don't matter...

tnks
Ken

bill-t
02-24-2002, 01:55 AM
Did my post get deleted?? It showed up at least for awhile?! I installed just as directions stated... Have 2.2.2... Newly installed board... Doesn't show up... Possibly misunderstanding something taken for granted everyone knows... Haven't been able to find a newbie guide to installing hacks... Just newbie guide to learning php and stuff... Don't want to learn php today, maybe next month, but need to get baord up this month, lol... I made my changes to showthread on my computer, then uploaded to server and overwrote the one there... step 2 and 3 done from cp... correct?

neal
02-24-2002, 02:33 AM
Thanks a lot FireFly... installed this a long time ago, but I never replied here. Wonderful hack. Working demo @ http://www.teenagedweb.com

bill-t
02-24-2002, 02:56 AM
disregard my earlier post, just got it working... My first working hack - my second attempted one... Thanks FireFly, this is very useful... My board is aimed at a unsophisicated user base - they'll need it...

Admin
02-24-2002, 05:19 AM
Ken, keep the bit of code.

Anyone else noticed he's posting a lot more because of this hack? I find myself replying to threads I would never have because it's much easier now. :)

Vivi Ornitier
02-24-2002, 05:29 AM
indeed, everyone uses the quick reply now! hehe, i only wish it worked with that composite time hack, but oh well . . i guess when someone sees composed in 10699595959 minutes, they'll know that that user used the quick reply box! :D

kennethj
02-24-2002, 08:43 AM
Originally posted by FireFly
Ken, keep the bit of code.

Anyone else noticed he's posting a lot more because of this hack? I find myself replying to threads I would never have because it's much easier now. :)

thanks - GREAt hack :up: - be lookig 4 more

Whome
02-25-2002, 01:53 PM
thanx...this is something I've been looking for.... :)

Figment
02-26-2002, 06:48 AM
Great hack, well received by the users, thanks.

One question though. What effect, if any, does using Quick Reply have on email notification to members?

I have received comments that email notification does not work when a reply is posted using the quick reply box.

Admin
02-26-2002, 06:51 AM
The user is not automatically subscribed to the thread.

Figment
02-26-2002, 07:09 AM
OK, but suppose user A has subscribed (with email notification on in his CP) and user B replies. Should A get email notification

Admin
02-26-2002, 07:13 AM
He gets an e-mail.

Figment
02-26-2002, 07:41 AM
OK. So there is no reason that this should not work?

I will go and play with a thread and see if I can recreate this alleged problem. Haven't seen it myself, but then I don't subsribe to too many threads :s

Thanks for the speedy replies - appreciated. ;)

LouChipher
02-26-2002, 09:58 AM
excellent hack! installed it, works great!

LanciaStratos
02-26-2002, 10:17 PM
If I wanted to add a preview button to the reply box, would simply adding the following HTML code to the template work? :confused:

<input type="submit" class="bginput" name="preview" value="Preview Reply" accesskey="p" tabindex="4">

LanciaStratos
02-26-2002, 10:37 PM
Originally posted by LanciaStratos
If I wanted to add a preview button to the reply box, would simply adding the following HTML code to the template work? :confused:

<input type="submit" class="bginput" name="preview" value="Preview Reply" accesskey="p" tabindex="4"> Ah, I see it does! Never mind... :o

bill-t
02-27-2002, 12:12 AM
Sorry to bother, can't figure out which item in there calls the color of the background for the box... Want to change it without changing the color of the regular reply so need to change the code so it doesn't call a variable but hard code it instead... TIA

FleaBag
02-27-2002, 11:22 PM
The attatchment doesn't work. :(

mav
02-28-2002, 04:15 AM
Another great hack!

theironmic
02-28-2002, 04:23 AM
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}

"this does not show up in my showthread.php im runnin a v 2.2.2 does any have any ideas.........?

Erwin
02-28-2002, 10:03 AM
How about a quick reply box for PMs?

How good would that be! :D

FleaBag
02-28-2002, 11:23 AM
Well it didn't work last night, but it does now! ;)

Raptor
02-28-2002, 05:54 PM
Originally posted by Lesane
cool :cool:

Its kinda similiar to this one though:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=29829&highlight=quick

yeah but this new one includes signatures - the link you gave doesn't

tested both on vb 2.2.2

Lorddraco98
02-28-2002, 06:34 PM
I like this one a lot, need to install it on my board!

Xelation
02-28-2002, 11:39 PM
Originally posted by Erwin
How about a quick reply box for PMs?

How good would that be! :D

theres really no point to this.

Xelation
02-28-2002, 11:48 PM
Just installed it... I do have a question though... I may be pushing it when I say.... is ther anyway to incorperate this into it?

https://vborg.vbsupport.ru/showthread.php?postid=146629#post146629

Erwin
03-01-2002, 11:04 AM
Originally posted by Xelation


theres really no point to this.


Well, it means you don't have to click Reply Message when you read a PM, you can type a reply underneath the message and post it just like in a thread. It would save time and server stress.

E
03-03-2002, 05:34 AM
CAN SOME ONE PLEASE EXPLAIN TO ME HOW TO DO THIS? I am not computer smart at all and cannot find any type of files like explained! I really like this hack and want it on ma board but I suck at computer stuff, someone please help.

Raven
03-03-2002, 01:57 PM
This one are also good and i think all the boards around shall have this one instaled then u dont have to puss a lot of buttons
to mail some post....
an if i have to rate this one here then it is 5 stars
:p :p :p

Destee
03-03-2002, 04:06 PM
Hey FireFly,

I deleted enctype="multipart/form-data" from my templates and disabled php file uploads in php.ini as a temporary fix for the php upload vulnerability (http://www.vbulletin.com/forum/showthread.php?threadid=40721).

My regular reply option is working but am getting the following error when using the Quick Reply box:

There is no thread specified. If you followed a valid link notify your webmaster.

Anything you can share to make it work again? :)

Thanks,

Destee
v 2.2.2

Admin
03-03-2002, 04:09 PM
Remove the enctype part from showthread_quickreply as well.

Destee
03-03-2002, 04:25 PM
Thank You FireFly! I had done a search for all templates that contained that string and it didn't return the showthread_replybox, so I just figured it couldn't be that! :)

Thank You Much ... all is well again.

Destee

Admin
03-03-2002, 06:13 PM
Great. :D

LanciaStratos
03-03-2002, 10:10 PM
Excellent hack, FireFly! :D

DrkFusion
03-03-2002, 10:13 PM
Thats what I like to see, the author offering great support for his hack, along with his 45 other ones :)

hehe

E
03-04-2002, 12:35 AM
will someone please help with my question above?

Admin
03-04-2002, 11:39 AM
I don't recommend you to install hacks on your board if you don't know your way around the computer. It would be very irresponsible to mess with your forum like that. Sorry! :)

E
03-06-2002, 08:31 AM
lol...well im not him... just using hsi accout cuz wqe run the same board.. but still
im using vs 2.2.2
I Did ALL 3 Steps... And it doesnt show
also as IronMic stated.....
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
^^^These lines arent next too eachother.,.. they both exist but the bottom one is much further down the page... any help?

mojotim
03-06-2002, 10:36 AM
hmmm I replied already...and it didn't show the first time

Mr. X
03-07-2002, 04:32 AM
Just installed on 2.2.3. Excellent hack. :)

Sadie Frost
03-09-2002, 02:35 AM
Originally posted by e_dove
lol...well im not him... just using hsi accout cuz wqe run the same board.. but still
im using vs 2.2.2
I Did ALL 3 Steps... And it doesnt show
also as IronMic stated.....
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
^^^These lines arent next too eachother.,.. they both exist but the bottom one is much further down the page... any help?

The first part fo the code appears twice - the second time it is next to that second part of the code. Look for it around line 234 :)

Matt
03-09-2002, 11:53 PM
Great hack I love it :D

Massiel
03-10-2002, 12:07 AM
Firefly is your hack the one installed on these boards? I need to know :)

TutorialForums
03-10-2002, 12:59 AM
Cool im using the quick reply hehe.... Massiel yes I believe this hack is the one installed on this forum.

Anyhow.... what is the process to install this hack for 2.2.3? It doesn't seem to work (code seems different than 222).

Peace.

inetd
03-10-2002, 01:03 AM
hm... I reinstalled this hack after upgrade to vb 2.2.3 and don't have any problem......

Spoono
03-10-2002, 01:59 AM
Yeah, I am unable to find the code:

if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}

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

anywhere on showthread.php. Looked everywhere on 2.2.3

inetd
03-10-2002, 02:06 AM
showthread.php - line 234
after $getperms=getpermissions($thread['forumid'],-1,-1,$foruminfo['parentlist']);
if (!$getperms['canview']) {
show_nopermission();
}

Bugsy
03-10-2002, 03:11 AM
Cheers FireFly works a treat m8

Bugsy ;)

E
03-10-2002, 03:58 AM
One thing... It shows at top of the page... anyway too make it go at the bottom?

inetd
03-10-2002, 04:24 AM
Hi, e_dove!
You should insert $replybox right after last mention <!-- first unread and next/prev --> in showthread template.

E
03-10-2002, 08:30 AM
thx intended... i thought it didnt work for some other reason..
and too peeps who said it dont work on 2.2.3 it did for me

inetd
03-10-2002, 09:45 AM
e_dove, I face the challenge when install this hack to vb 2.2.2. I reinstalled this hack after upgrade to vb 2.2.3 and don't have any problem.
Template showthread don't change on vb2.2.3.

P.S. Sorry, but I - inetd :)

inetd
03-10-2002, 10:41 AM
Hi, FireFly. You slightly could not modify the hack? If user in the adjustments has specified automatic subscription threads in which he wrote at quick reply he too subscribed for a thread.

Spoono
03-10-2002, 12:56 PM
Can I go into the admin panel and go to edit template and showthread and then edit it from there, or do I have to do get showthread.php via FTP, because it's not there on the Admin Panel showthread

inetd
03-10-2002, 01:02 PM
you must edit showthread template in Show Thread Templates group.

Spoono
03-10-2002, 01:30 PM
Check out my showthread, I don't see that line anywhere.

inetd
03-10-2002, 02:30 PM
please search in you showthread template line <!-- first unread and next/prev -->. After last such line also it is necessary to insert a code from manual.

eva2000
03-11-2002, 12:14 AM
how would i install this as an admin/super mod/mod only visible function ?

Ghard296
03-11-2002, 01:26 AM
Nice. :)

Admin
03-11-2002, 11:24 AM
eva -- instead of this in showthread.php:
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')."\";");
}
use:
if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
$replybox='';
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}

HTP
03-11-2002, 10:39 PM
This isn't working with my fresh install of 2.2.4

Neo
03-12-2002, 02:33 PM
Yup, does nto work with 2.2.4

Admin
03-12-2002, 02:37 PM
Updated to work with 2.2.4.

Neo
03-12-2002, 03:11 PM
Many thanks. It works perfectly now :D

Radon3k
03-12-2002, 05:30 PM
Really? It worked fine with my install of 2.2.4 before Chen updated it (at least I think it was before he updated it...)

eva2000
03-12-2002, 10:34 PM
Originally posted by FireFly
eva -- instead of this in showthread.php:
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')."\";");
}
use:
if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
$replybox='';
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
} thanks.. just had to change the usergroup for mods since onmy forum mod usergroup id isn't 7

Freddie Bingham
03-12-2002, 11:01 PM
Remember that while this looks coolif (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {it isn't nearly as efficient asif ($bbuserinfo['usergroupid'] != 5 AND $bbuserinfo['usergroupid'] != 6 AND $bbuserinfo['usergroupid'] != 7) {

Freddie Bingham
03-12-2002, 11:11 PM
Also why don't you just use:if (!ismoderator($foruminfo['forumid'])) {Permissions are cached so it won't add any new queries to the code.

eva2000
03-12-2002, 11:30 PM
so the same can be said for close thread on reply hack https://vborg.vbsupport.ru/showthread.php?s=&threadid=33718 ?

josh929
03-13-2002, 02:30 AM
ok i'm lost what does that install/uninstall button at the top of the thread do?

cditty
03-13-2002, 02:37 AM
All that does is add this hack to your "Installed Hacks" section on your control panel. You still have to install the hack on your server.

Chris

Smoothie
03-13-2002, 06:29 AM
I'd like to be able to add the attach file to the QRB. Is there an easy way to do this?

Admin
03-13-2002, 11:57 AM
Originally posted by freddie
Remember that while this looks coolif (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {it isn't nearly as efficient asif ($bbuserinfo['usergroupid'] != 5 AND $bbuserinfo['usergroupid'] != 6 AND $bbuserinfo['usergroupid'] != 7) {
Why?
Not trying to be 'cool', just shortening my code.

SHalliday
03-16-2002, 02:32 AM
bvnbnbbnm

beemer
03-18-2002, 06:47 PM
Ok, I have it working for me (Administrator) but everyone else says they don't see it? I tried the fix that was posted back around page 3 and it didn't help. I seem to be the only one that can see the quick reply box? Any suggestions? I double checked the showthread file and my changes are in there and the part of the code where it checks for ismoderator, is commented out.

!!freebsddude
03-21-2002, 08:11 AM
I am so grateful/thankful for this hack, Chen. I just wish all of your instructions, including adding smiles would be in one file, to make it easier for everyone to not have to look around all over the thread to get instructions. Good work! Thanks again.
I like when little things do big things.

Originally posted by FireFly
JTMON - Add this line:
$clickysmilies = getclickysmilies();
to showthread.php right after this:
$textareacols = gettextareawidth();
then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it, but you will also need to add these two lines:
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
to the template right after the <form> tag. That should work. :)

Wow this is even handier than I thought... :D

Admin
03-21-2002, 08:21 AM
Originally posted by !!freebsddude
I am so grateful/thankful for this hack, Chen. I just wish all of your instructions, including adding smiles would be in one file, to make it easier for everyone to not have to look around all over the thread to get instructions. Good work! Thanks again.
I like when little things do big things.
The reason it's not in the installation file is that it's an extension to the hack a user requested, and not part of the hack. :)
And thank you for the kudos. :D

!!freebsddude
03-21-2002, 08:41 AM
Originally posted by FireFly
JTMON - Add this line:
$clickysmilies = getclickysmilies();
to showthread.php right after this:
$textareacols = gettextareawidth();
then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it

Sorry, for the benefit of dumb folks like us, could you tell us precisely where to put $clickysmilies in the showthread_quickreply template please. Unfortunately, I can't find any of your replies that talk about this.

Thanks in advance!

Vivi Ornitier
03-21-2002, 08:54 PM
Ok... I added the bit that made closed forums closed even with the quick reply... I got a parse error... I could not find the code that was posted in the reply... so i found one that was very similar (I couldn't see a diff) that code was

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')."\";");
}
{
I edited that with the code I was asked to edit... Could someone please help me?

The Keeper
03-23-2002, 02:12 AM
is this hack compatible with 2.2.4?

E
03-23-2002, 03:27 AM
^^yes very much so

c-pr0mpt
03-23-2002, 08:56 AM
Originally posted by nakkid in regards to smaaash.com forums
who designed your layout? is nice.. ;)

I did. :)


Also, for this hack how would I add a rating option? Thanks for any help.

c-pr0mpt
03-23-2002, 09:14 AM
err, ignore that. I got it.

DeeperImage
03-23-2002, 11:52 AM
Oh man this is schweeet.. Worked like a dream.. thanks.

Dalius
03-23-2002, 06:20 PM
Originally posted by FireFly
JTMON - Add this line:
$clickysmilies = getclickysmilies();
to showthread.php right after this:
$textareacols = gettextareawidth();
then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it, but you will also need to add these two lines:
<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
to the template right after the <form> tag. That should work. :)

Wow this is even handier than I thought... :D

Can I get a SS of what this would look like, anyone who has it?

PeterNRG
03-23-2002, 09:42 PM
It would be very cool to implement the RATING dropdownbox in this hack (next to the submit reply button), cause people will more easely & QUICKly rate a thread while they are replying. It also eliminates a page to be refreshed when you rate & quick reply at the same time.

I know the RATE THIS THREAD has been implemented on the normal POST REPLY page for the same reason, but people won't rate anymore if they use the quick reply box.

Of course the 'normal' rate dropdownbox + go button would have to disappear on pages with a quick reply field.

What do you think?

Jawelin
03-26-2002, 02:24 PM
Originally posted by Craig Antill
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...?


Where such a setting could be retrieved in showthread ?
I'm very interested in this feature... me too: automatically subscribe without checkbox if the userCP says so...
:D

DFX
03-27-2002, 06:11 AM
Hey Firefly, I installed this hack awhile ago and then all of a sudden it stops working for alot of my members and even myself. It still works, only on certain threads and only for certain users, it's all messed up. This is the email I recieved right before it went "wacky"

Database error in vBulletin 2.2.2:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
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 IN (0,45327,45328)
ORDER BY dateline

mysql error: Got error 28 from table handler

mysql error number: 1030

Any help in fixing this would be great because my members and myself love this hack.

I've already tried running the repair script from my admin directory with the default 2 options it gives you on the repair.php page also to no avail.

Admin
03-27-2002, 06:21 AM
Error 28 means "no space left on device". Nothing to do with this hack. :)

PeterNRG
03-27-2002, 04:05 PM
I guess my RATING "dropdownbox" suggestion (see earlier post) isn't that interesting? :cross-eyed:

E
03-30-2002, 12:23 AM
Hi,
Just like quick reply I take no credit for this. I just modifyied the files from this one orignally by NEO the php., templates, etc. I was asked to make this so people could put pics in the quick thread.
Thanks
Emmett Dove

E
03-30-2002, 01:14 AM
if you have this hack installed, you might want to copy and paste, cause there are a few modifications, it might be hard to do if your new at this..I dont know, just trying to help

TECK
03-30-2002, 01:23 AM
just curious... isnt easier to post in the original thread your hack mod? in this way everyone see where it comes from? if it's just a mod you made from the original hack, i think the right place should be in that thread.
i dont see the point of posting a mod, unless you want to raise the number of your hacks...???? ;)
personally, if i see someone makes a mod to one of my hacks and start a new thread about it, i'll get upset. look at firefly and his vbHacker. several people made mods to it. he delete them all. this is normal. mods belong with their original thread.

i made few mods to hacks, but i never started a new thred, just to get attention on it.. trust me, people see that you know your way with php.. just by helping them...

regards,
nakkid.

E
03-30-2002, 01:24 AM
sorry, i didnt know.. Im not a hacker type person, i just had a few friends ask me for this, so I made it and posted it here

TECK
03-30-2002, 01:25 AM
theres no prob.. :)
it's nothing wrong what you did... i simply wanted to give you my oppinion.. i might be wrong also.. cheers. ;)

E
03-30-2002, 01:30 AM
Hi.
I made this so people can add attachments on Firefly's quick reply box. I do not take credit for the quick reply box. I have taken the quick reply box txt. file and modifiyed it. It works perfect. I have fixed the templates and php files, so there is no need to worry. I have it here so you can use it. I figured it would help alot of people. Also im releasing it for Neo's new thread box if anyone would like it.
Have fun
Emmett Dove

E
03-30-2002, 07:19 AM
uppin, peeps asked me where it went

Genesis
03-30-2002, 03:44 PM
Hello.

I do not know if this has been asked allready but here goes :

I have a board where unregistered users are allowed to post. I also use the quickreply box and every post someone does using it shows up (duh) as Unregistered.

Would it be possible if a user is NOT logged in but is allowed to post that a Username/passwd box could be added ?
I know some of you would consider this a simple hack however my knowledge of php/java/whatever you use in vbulletin is limited. I'd rather not mess with it myself.

Thanks.

Genesis
03-30-2002, 05:06 PM
Patience never was a good quality of mine.

I fixed this by adding the USERNAME input box from the REGISTER page.

If you are logged in it overrides it though. Meaning if you enter TEST as username it will take your logged in name (which is good). If you are not logged in it will USE what you entered in the box.

However while that override is good i'd rather have it just DID NOT appear if the user is regged.


<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>User Name:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="username" size="25" maxlength="$maxuserlength"></normalfont></td>
</tr>



Gen

boatdesign
03-30-2002, 09:33 PM
Is there a way to only show the quick reply for users who are logged in?

I allow guests to post, but would prefer if unregistered users post with the standard full post screen:
1.) So that they can enter their name in the username field (so the post is posted from John LastName/Guest User rather than Unregistered/Guest User)
2.) To reduce spam. I really want this to be avaible for registered logged-in users to make posting for them quicker, but I don't want to make it too easy for visitors to spam my board, even though I do want to allow guest users to post (just not this easily :)

boatdesign
03-30-2002, 09:43 PM
Has anyone tried to make it so the quick reply box only appears on the last page of the thread (so people won't reply having read only the first page without reading the whole thread first?)

Visionray
03-31-2002, 05:11 AM
Great hack! Works perfectly.

Genesis
03-31-2002, 12:15 PM
Hmmm. The fix i did to allow a username box seems to have backfired. It works great for unregged users however if you are registered and you type in a username the post is MADE AS YOUR REGGED NAME BUT if you look at the thread it says Last post by "username you entered" and not the one you where logged in. It also does this on the mainpage. Firefly any help plz ?

/Gen

Jawelin
03-31-2002, 12:39 PM
How could make this hack automatically subscribe to the just replied thread if the user config has subscription enabled ?
Is the proper hidden var enough ?

Thanks

Admin
03-31-2002, 01:12 PM
Yes Jaweli and Genesis try using $logincode in the showthread_replybox template.

DFX
03-31-2002, 03:43 PM
Originally posted by FireFly
Error 28 means "no space left on device". Nothing to do with this hack. :)

Ok :)

It seems to work on most of the threads if used on "Page 1" and not on pages 2-3 etc. However on some pages it won't work on "Page 1" and they don't have multiple pages. :(

Genesis
03-31-2002, 06:04 PM
Originally posted by FireFly
Yes Jaweli and Genesis try using $logincode in the showthread_replybox template.

see,

This is why i opted for a paying solution rather than using one of those free boards on the net.
Quality support :)
I don't know if FF gets payed for what he does but he sure does it GOOD.

Thanks :)
It works perfectly now.

Keep up the good work FireFly.
Tis appreciated.

Greetz

Gen

Ignite
03-31-2002, 08:00 PM
I installed everything, but the box came at the top of the thread, not the bottom.