View Full Version : Quick Reply Box
ja5es
07-17-2002, 02:47 PM
I can't seem to get this to work with vB 2.2.6... I can't find the code to replace. Can anyone help me out?
GamerNext
07-17-2002, 10:45 PM
It's there, trust me. I am running it.
ja5es
07-18-2002, 01:02 AM
Well I modified what I think is the correct code, made the new templates, etc. and it still doesn't work... at all.
marc49
07-18-2002, 10:24 PM
my quick reply box shows up at the top and not the bottom like on here, how do I fix that? how did you fix that GamerNext??
Boofo
07-18-2002, 10:26 PM
There are 2 parts in the code the same. Put it after the second part.
Originally posted by marc49
my quick reply box shows up at the top and not the bottom like on here, how do I fix that?
marc49
07-18-2002, 10:41 PM
Originally posted by Boofo
There are 2 parts in the code the same. Put it after the second part.
ok, I am a beginner at this stuff, so please tolerate my ignorance.
but what has the two parts? is it the showthread.php?? because I went from the bottom up and then inserted it in the right area. or is it in the admin panel that I did something wrong?
Boofo
07-18-2002, 10:50 PM
You need to follow the directions and insert exactly where it tells you to in the showthread template. There are 2 instances of the code there. Put $replybox after the 2nd one.
marc49
07-18-2002, 11:03 PM
Thank you very, very much. I appreciate it a lot. I love this site!!! it's full of awesome hacks
Boofo
07-18-2002, 11:06 PM
I know what it was like when I first started here. There are a lot of great people here and most of them will be more than willing to lend a hand. Enjoy! :)
My box is not obaying the page borders, its larger than the thread area. Anyone help me with a fix for this?
2600
Never mind all sorted now and ive marked as installed! Great hack thanks!
2600
Darth Cow
07-22-2002, 07:06 PM
I've got a modification that I wrote for my forums that allows users to turn the quick reply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother :).
James Cridland
07-22-2002, 07:21 PM
I'm very interesting, and also very interested in this hack.
(Actually, I'm quite boring.)
Boofo
07-22-2002, 08:54 PM
I want to be mature about this so...gimme, gimme, gimme, pweez! :)
Originally posted by Darth Cow
I've got a modification that I wrote for my forums that allows users to turn the quick reply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother :).
Darth Cow
07-22-2002, 10:22 PM
Since I already have two requests...
First, run this database query:
ALTER TABLE user ADD showquickreply tinyint(1) DEFAULT '1' not null AFTER nosessionhash
EDIT: Corrected it to "AFTER nosessionhash" (I forgot I was basing the location after another hack I installed :p)
That will set the default to show the quick reply - changing "DEFAULT '1'" to "DEFAULT '0'" should set the default to no display.
Make a new template "modifyoptions_showquickreply" with the following contents:
<tr>
<td bgcolor="#13486D"><normalfont><b>Show Quick Reply Box?</b></normalfont><br>
<smallfont>Disabling this option will hide the quick reply boxes at the end of
each thread. You can still reply by clicking on "Post Reply".</smallfont></td>
<td bgcolor="#13486D"><normalfont>
<input type="radio" name="showquickreply" value="yes" $showquickreplychecked> yes
<input type="radio" name="showquickreply" value="no" $showquickreplynotchecked> no
</normalfont></td>
</tr>
Now, in member.php, after:
if ($bbuserinfo[nosessionhash]) {
$nosessionhashchecked="checked";
$nosessionhashnotchecked="";
} else {
$nosessionhashchecked="";
$nosessionhashnotchecked="checked";
}
Add:
// Show Quick Reply Option
if ($bbuserinfo[showquickreply]) {
$showquickreplychecked="checked";
$showquickreplynotchecked="";
} else {
$showquickreplychecked="";
$showquickreplynotchecked="checked";
}
// Show Quick Reply Option
Still in member.php, before:
eval("dooutput(\"".gettemplate("modifyoptions")."\");");
}
// ############################### start update options ###############################
Add:
// Show Quick Reply Option
eval("\$showquickreplyoption = \"".gettemplate("modifyoptions_showquickreply")."\";");
// Show Quick Reply Option
EDIT: Forgot this step at first, but here it is :). In member.php after:
In member.php, after:
$cookieuser=iif($cookieuser=="yes",1,0);
$nosessionhash=iif($nosessionhash=="yes",1,0);
Add:
// Show Quick Reply Option
$showquickreply=iif($showquickreply=="yes",1,0);
// Show Quick Reply Option
Still in member.php, find:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cook ieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergrou pid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash'
Add (continuing previous line):
,showquickreply='$showquickreply'
Finally, in showthread.php, after:
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
(Note: you'll have to install the regular quick reply hack first to find this)
Add:
} elseif ($bbuserinfo['showquickreply']==0) {
$replybox='';
EDIT: One final step I forgot:
Edit the modifyoptions template. After the following code:
<!-- *** -->
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>Thread View Options</b></normalfont></td>
</tr>
<!-- *** -->
Add:
$showquickreplyoption
There, that should do the trick :). If you have any trouble or can't get it to work, let me know.
Sweet Evil
07-23-2002, 08:38 AM
vB 2.2.6
Been trying to add the smilies to this with no luck...
I tried $vbcode_smilies as in the new reply,etc.. but it is not working. Anyone know the code?
Thanks,
Boofo
07-23-2002, 11:00 PM
To add smilies to the quick reply box:
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.
Kiraly
07-26-2002, 05:35 PM
Parse error: parse error, unexpected '}' in c:\programmi\easyphp\www\upload\showthread.php on line 94
:(
Boofo
07-26-2002, 08:03 PM
Post the lines 89 to 99 here and let us look at it.
Originally posted by Kiraly
Parse error: parse error, unexpected '}' in c:\programmi\easyphp\www\upload\showthread.php on line 94
:(
Kiraly
07-26-2002, 08:55 PM
Originally posted by Boofo
Post the lines 89 to 99 here and let us look at it.
line? how can i see this line? in the notepad?
Boofo
07-26-2002, 09:13 PM
Yes. Take the 5 lines above it to the 5 lines below the error and post all of those.
Originally posted by Kiraly
line? how can i see this line? in the notepad?
Kiraly
07-27-2002, 08:05 AM
$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,attach ment.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;
}
$postbits = getpostbit($post);
updateuserforum($thread['forumid']);
eval("dooutput(\"".gettemplate("showpost")."\");");
exit;
}
Boofo
07-27-2002, 08:20 AM
Which line is the line with the error in it (line 94, I think)?
Kiraly
07-27-2002, 08:29 AM
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
Boofo
07-27-2002, 08:35 AM
Try changing this:
eval("dooutput(\"".gettemplate("showpost")."\");");
exit;
}
to this:
eval("dooutput(\"".gettemplate("showpost")."\");");
exit;
and let me know if it works. If it doesn't, make sure you put the code back as it was and we will go from there. :)
Boofo
07-27-2002, 08:37 AM
You need to delete this message. You can't post your php files for download. :) This is according to the vBulletin licensing agreement.
Originally posted by Kiraly
this in php file
thx :)
Kiraly
07-27-2002, 09:57 AM
Originally posted by Boofo
You need to delete this message. You can't post your php files for download. :) This is according to the vBulletin licensing agreement.
sorry :cry:
Kiraly
07-27-2002, 10:07 AM
i resolve the problem but the quick reply don't appear :(
Kiraly
07-27-2002, 11:21 AM
Originally posted by Kiraly
i resolve the problem but the quick reply don't appear :(
ok Quick reply go ON ;)
Heineken77
07-27-2002, 04:09 PM
How can I set it that when you use the quick reply box, people are automatically subscribed to the thread and receive email notification when there is a reply? :)
DrkFusion
07-27-2002, 05:27 PM
Hey Heineken, now I am sure if the members turn that off in there options, there must be a reason for it, you really shouldn't go forcing that.
If they have it on, it automaticaly gets subscribed anyways.
Drk
Boofo
07-27-2002, 05:50 PM
How did you resolve it?
Originally posted by Kiraly
i resolve the problem but the quick reply don't appear :(
Heineken77
07-27-2002, 07:17 PM
Hey DrkFusion :)
Thanks for the reply, but are you sure that if we have it picked to notify by email to reply it automatically subscribes us when we reply through the quick reply box?
I have email notification enabled, however whenever I use the quick reply box, I never get subscribed :(
Thanks for the reply :)
Heineken
DrkFusion
07-27-2002, 07:21 PM
Well, I remember that FireFly said that the reply box does use the newreply.php and well it should work.
Drk
Heineken77
07-27-2002, 07:22 PM
Doh! well i'll try reinstalling it and see if that changes:)
thanks again.
Boofo
07-27-2002, 07:28 PM
Sorry, buddy, I have to call you on this one. It will not use the email check in newreply. I had to add an external one to do it for the Quick Reply box. :)
Originally posted by DrkFusion
Well, I remember that FireFly said that the reply box does use the newreply.php and well it should work.
Drk
Heineken77
07-27-2002, 07:30 PM
Hey Boofo :) Think you could explain to me how to do that? :D
DrkFusion
07-27-2002, 07:34 PM
Originally posted by Boofo
Sorry, buddy, I have to call you on this one. It will not use the email check in newreply. I had to add an external one to do it for the Quick Reply box. :)
Really...hmm, when I posted a problem, I said that people were able to post though it was closed (this was when I was new to vb) he said they shouldn't be able to because, it uses the newreply.php, later I found out, they can't post only I can cuz im admin lol
Drk
Boofo
07-27-2002, 07:45 PM
Here is a simpler way to do it than I did it. :)
1- in showthread.php (in hacks code), find:
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}
after that add:
if ($bbuserinfo[emailnotification]!=0) {$emailchecked='yes';}
2- edit template showthread_replybox, find:
<input type="hidden" name="email" value="">
Replace it AS:
<input type="hidden" name="email" value="$emailchecked">
Originally posted by Heineken77
Hey Boofo :) Think you could explain to me how to do that? :D
Boofo
07-27-2002, 07:47 PM
Yes, but they won't get a notification email about the new message to the thread if it is made with the Quick reply Box unless you add some code to it to check for email notification. :)
Originally posted by DrkFusion
Really...hmm, when I posted a problem, I said that people were able to post though it was closed (this was when I was new to vb) he said they shouldn't be able to because, it uses the newreply.php, later I found out, they can't post only I can cuz im admin lol
Drk
DrkFusion
07-27-2002, 07:57 PM
Ah I see, thanks didn't know that
Drk
Boofo
07-27-2002, 08:02 PM
No problem. I didn't know either. I found out the hard way. :)
Kiraly
07-28-2002, 08:18 AM
thx Boofo! ;)
Boofo
07-28-2002, 08:43 AM
My pleasure. Enjoy! ;)
DrkFusion
07-28-2002, 06:41 PM
How do I add a Attatchement field?
Drk
Boofo
07-28-2002, 06:49 PM
Put this:
<tr>
<td bgcolor="#4A7B9D" valign="top" nowrap><normalfont><b>Attach file:</b></normalfont><br>
<smallfont>Size Limit: $maxattachsize bytes</smallfont></td>
<td bgcolor="#4A7B9D" 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>
right after this:
<a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont>
<br>
</table>
Originally posted by DrkFusion
How do I add a Attatchement field?
Drk
DrkFusion
07-28-2002, 06:58 PM
Thanks man
Drk
Kiraly
07-28-2002, 07:52 PM
Drk have you screeshots of this hack?
nemesis01
07-28-2002, 11:11 PM
Originally posted by Allstar DC
to add the smilies do the following:
open showthread_quickreply template
find:
<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
and replace it with:
<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b><br>$clickysmilies</normalfont></td>
That should do the trick
*Remove the spaces after { and before }
Sorry to bring this up again, I installed the quick reply box easy poo and want this addon described here, I have done it exactly as it says but the smilies will not appear.
I took the 'showthread_quickreply' template for the 'showthread_replybox' template, dont think that's anything to do with it though. I know this subject is old but I need an answer for this please......ta. :ermm:
nemesis01
07-31-2002, 05:44 PM
Sorry to bring this up again but I still need help, I dont like clogging up email or PM inboxes asking for help so i'll ask again here. I have been working on this now for 2 days with another person and we still cannot get the clickable smilies to show up in the quickreply box, I really dont know what we are doing wrong.
We are using the exact same template as described in the hack txt file with the small adjustment highlighted earlier in this thread, alas it does not work.
If somebody can please help I would be grateful, would be even better help if somebody could post a modified showthread_replybox template with the changes implemented to enable the clickable smilies. If it helps we are running 2.2.6 if that makes any difference to what needs to be added to the showthread_replybox template.
Thanks. :dead:
Boofo
07-31-2002, 05:50 PM
To add smilies to the quick reply box:
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.
nemesis01
07-31-2002, 07:21 PM
Cheers Boofo, you have just saved me another load of greif.:D
Top man. :bored: :cheeky: :)
Boofo
07-31-2002, 07:37 PM
Glad I could help. Enjoy. ;)
ExAvIoUr
08-01-2002, 01:30 PM
hey can some1 help on this. i installed it almost perfect. the problem is that the reply box it at the top of the thread instead at the bottom. how can i fix that?
reply asap
Boofo
08-01-2002, 01:44 PM
Reply ASAP? What is that?
You need to put the code after the second instance in the showthread template.
Originally posted by ExAvIoUr
hey can some1 help on this. i installed it almost perfect. the problem is that the reply box it at the top of the thread instead at the bottom. how can i fix that?
reply asap
ExAvIoUr
08-01-2002, 01:51 PM
asap = as soon as possible.
thanx a lot. it worked.
Boofo
08-01-2002, 02:31 PM
I knew what it meant. I was just giving you a hard time. :)
Glad I could help. Enjoy! ;)
Originally posted by ExAvIoUr
asap = as soon as possible.
thanx a lot. it worked.
bommelchen
08-01-2002, 06:53 PM
I have install a fresh VB2.2.6 and i follow exactly the instructions for this Hack but i cant see the replybox !!!
Any Idears ????
Bommelchen
Darth Cow
08-02-2002, 12:44 AM
Originally posted by bommelchen
I have install a fresh VB2.2.6 and i follow exactly the instructions for this Hack but i cant see the replybox !!!
Any Idears ????
Bommelchen
Are you sure you saved and uploaded the files? Updated the templates? Just go over each step again and you probably forgot something basic :).
bommelchen
08-02-2002, 05:52 AM
Im realy sure that i have upload the files !! I have checked today but i see nothing !
Whats happend here ?
Bommelchen
Martin CX
08-03-2002, 07:28 PM
Are you sure you've uploaded the files as ASCII?
Learner29
08-03-2002, 07:34 PM
here is a gentleman willing to help
king sting
08-04-2002, 02:40 AM
i'm having the same problem.. i followed the direcyions and no box showed up.. ???
king sting
08-04-2002, 04:58 AM
ok i noticed the reply box showed up.. but only in one forum, and its at the top of the thread instead of at the bottom.. also what sucks is it showed up in a forum i keep locked.. does anyone know why?/
mauisun
08-04-2002, 08:32 PM
I installed this hack, works perfect, my thanks for that. problem is the quick reply box is at the top instead of at the bottom of the thread when I enter it, can someone tell me where to change the code to put it at the bottom instead of the top?
thanks
....mauisun
Boofo
08-04-2002, 08:36 PM
https://vborg.vbsupport.ru/showthread.php?postid=279629#post279629
Originally posted by mauisun
I installed this hack, works perfect, my thanks for that. problem is the quick reply box is at the top instead of at the bottom of the thread when I enter it, can someone tell me where to change the code to put it at the bottom instead of the top?
thanks
....mauisun
mauisun
08-04-2002, 08:48 PM
totally right Boofo, thanks again bro, Man i apologize for not reading the whole friggin thread before asking for help, stupid newbie dumb pet trick! I should have known better then to fall into that trap. won't happen again. I appreciate the help bro
.....mauisun
Learner29
08-05-2002, 12:43 AM
hmm. man you might be the 100th person asking THE SAME question over and
over.
Please spend two minutes looking for an answer to your question before
asking.
buurman
08-05-2002, 09:27 PM
does it also add the signature ??
The one I use now, doesnt do that...I think that suckz...
NexDog
08-06-2002, 10:31 AM
Okay, pure nightmare here. In showthread.php I have 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; }
But in mine (2.2.6), it's smaller:
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
So I replace all that with this?
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; }
Then I create a new template called showthread_replybox. Do I add the same code to this template?
Then the instructions say:
3. In the "showthread" template add $replybox right after the following: // $pagenav
Does it mean the showthread_replybox template or the major Show Thread Templates > Expand > showthread ??
Anyhow, this: $pagenav, is in neither.
WTF??
NexDog
08-06-2002, 12:44 PM
Okay, tripped slightly.
This is what I've done:
1) In showthread.php, added the necessary code.
2) Created a new template, with the name, "showthread_replybox" and added the same code in there.
3) Went to Show Thread Templates > Expand > showthread and added $replybox right after $pagenav.
4) Then I uploaded showthread.php.
The result is zilch, nada, zip. I know I've screwed up, just tell me where. :D
Boofo
08-06-2002, 12:50 PM
In the showthread template, the $replybox goes after the SECOND $pagenav. ;)
Originally posted by NexDog
Okay, tripped slightly.
This is what I've done:
1) In showthread.php, added the necessary code.
2) Created a new template, with the name, "showthread_replybox" and added the same code in there.
3) Went to Show Thread Templates > Expand > showthread and added $replybox right after $pagenav.
4) Then I uploaded showthread.php.
The result is zilch, nada, zip. I know I've screwed up, just tell me where. :D
NexDog
08-06-2002, 02:43 PM
Still doesn't work though.....:(
Boofo
08-06-2002, 02:59 PM
Ok, let's help you get this figured out. First, let's have you go through the showthread.php part and double check that you have added everything you are supposed to. Check that out and let me know what you find out. This is one of the easiest hacks to install so it must be messed up somewhere. :)
And just to be sure...make sure you add this:
$replybox
After the SECOND instance of this in the showthread template.
</tr>
</table>
<!-- first unread and next/prev -->
Originally posted by NexDog
Still doesn't work though.....:(
NexDog
08-07-2002, 02:28 AM
I PMed you my showthread template. Originally I put it here:
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td><smallfont>$pagenav $replybox
$firstunread </smallfont></td>
But after your instructions, I put it here:
</tr>
</table>
<!-- first unread and next/prev -->
$replybox
Which is right after that previous code. Still doesn't work.
LOD-squa
08-08-2002, 02:04 AM
I tryed to install it but nothing appeared can I get some help?
LOD-squa
08-08-2002, 04:27 AM
n/m I got it.
NexDog
08-08-2002, 07:28 AM
Good for you. :)
Where am I going wong??
NexDog
08-09-2002, 08:54 AM
Whimper....
I got vbhacker now. Can I use that to do this? It doesn't show up though. Would I have to reupload or something.
Firefly, where for art thou and all that malarkey. :D
Intex
08-14-2002, 01:58 PM
Great hack Firefly :cool:.
Just another thought, how do I use graphic buttons for the Reply and Reset forms? I'd like to change it for the quick reply and the usual reply.
Cheers.
NexDog
08-14-2002, 02:07 PM
I can't work out what is supposed to go in the showthread_replybox template. FireFly's txt file looks too weird. Please check out the screenshot to see what I'm seeing.
NexDog
08-14-2002, 02:09 PM
When I actually download the text file and open it in NotePad, I see this:
2. Create a new template,
with the name "showthread_replybox": //
##################################################
Post Reply
Your Reply:
[check message length]
// ################################################## 3. In the "showthread"
template add $replybox right after the following: //
################################################## $pagenav Last Thread
Next Thread
// ################################################## You're all done, now
upload showthread.php back to your server and enjoy this hack. :-) Chen
Nothing appears for me even if I put that weird text in the template. :(
Intex
08-14-2002, 02:10 PM
Looking at the screenshot you've sent in, it looks like you've cut and paste too much of the text from his readme. Check carefully that you've only selected the bits he has indicated. I've just introduced this hack and it works perfectly and the text was pretty straight forward.
It maybe as simple as you've forgotten an { or something like that, but from what I see you've copied in a large section of the text including his actual comments.
Intex
08-14-2002, 02:13 PM
I just submitted an answer just as you posted that.
Anyway, that definitely isn't right. Looks like you had a corrupted download or something. Try it again. Like I say I know it works because I only downloaded it myself 30 mins ago.
The text file should look like this at the beginning (this isn't all of it btw):
// ##################################################
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.2.2 ##############
// ##################################################
// ########### by Chen 'FireFly' Avinadav ###########
// ########## (chen.avinadav@vbulletin.com) #########
// ##################################################
1. In showthread.php find this bit of 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;
}
// ##################################################
And replace it with the following:
// ##################################################
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
NexDog
08-14-2002, 02:22 PM
In my showthread.php I have ntered this code in the right place:
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; }
The showthread template is all good. I just don't know what to put in the showthread_replybox template. Please paste FireFly's instructions for Step 2. PLEASE!!!!!!
Intex
08-14-2002, 02:26 PM
You really should sort out your problems with the file download because it certainly ok. Anyway, just to help out here is the rest of it. Apologies for unnecessariy text hogging Admins :rolleyes:.
2. Create a new template, with the name "showthread_replybox":
// ##################################################
<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">
<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></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>
// ##################################################
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 </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>
<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 -->
// ##################################################
You're all done, now upload showthread.php back to your server and enjoy this hack. :-)
Chen
NexDog
08-14-2002, 02:52 PM
Dude, you rock! That's all I needed. I've been banging my head against the wall for days.
How do I change the colors. Where are the variables and how do I find out the variable names for the forum headers etc so I can match it up?
Intex
08-14-2002, 02:55 PM
To my knowledge you don't change anything in his actual code. You do all this from your Admin CP, where you change the colours for everything else.
If you want that to appear differently, then I think you'll need to add additional code to firefly's coding.
NexDog
08-14-2002, 03:15 PM
Worked it out. The colors can be changed in this part of the showthread_replybox template:
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td>
<td bgcolor="#1C5780">
<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="java script:checklength(document.vbform);">[check message length]</a></smallfont></td>
</tr>
</table>
Jean147
08-15-2002, 03:42 PM
hmmmm....does anyone know how to add the attachement option? If it is already written here I am sorry, but I have a really bad internet connection and to search 40 sites would take years. Maybe anyone knows the page?
Boofo
08-15-2002, 06:55 PM
Here you go. :)
https://vborg.vbsupport.ru/showthread.php?postid=278206#post278206
Originally posted by Jean147
hmmmm....does anyone know how to add the attachement option? If it is already written here I am sorry, but I have a really bad internet connection and to search 40 sites would take years. Maybe anyone knows the page?
Jean147
08-15-2002, 11:53 PM
thx a lot Boofo. Really apreciated :)
Boofo
08-15-2002, 11:58 PM
No problem. If you need anything else, just hollar. :)
Originally posted by Jean147
thx a lot Boofo. Really apreciated :)
Jean147
08-16-2002, 12:17 AM
okey dokey. One Pizza please :D :p
Boofo
08-16-2002, 04:57 AM
Sorry, pepperoni was all that was left. Was it still hot when you got it? :)
Originally posted by Jean147
okey dokey. One Pizza please :D :p
mewgood
08-17-2002, 09:17 PM
how do you add smile box to the quick reply?
Boofo
08-17-2002, 11:49 PM
https://vborg.vbsupport.ru/showthread.php?postid=279326#post279326
Originally posted by mewgood
how do you add smile box to the quick reply?
curley
08-18-2002, 01:58 AM
Is there a reason why the reply box is on top of my threads?
Thanks for the help!!
Joe
Boofo
08-18-2002, 02:01 AM
Because you need to put $replybox after the SECOND instance of the code in the showythread template.
I'm enjoying this mod for my forum; specifically due to the fact that the webserver is a pile of garbage and I like anything that helps cease page loads. ;)
pHAZE_1
08-20-2002, 02:20 AM
some of the members at my board and others are having this problem. i havent had it, but one user says
"when you click enter to send the post in quick reply, 75% of the time it reloads and doesnt submit"
Stylez
08-23-2002, 01:03 AM
alright i got a problem with showthread.php in 2.2.6
first step says
1. In showthread.php find this bit of 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;
}
----------------------
my showthread shows
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
---------------------------------
but not the rest......the other part is in an entirely different place.
what should i do?
2 X Viverridae
08-23-2002, 09:51 AM
Well - it could be because of any of a number of hacks you have previously installed. To make it easier to diagnose, post ALL the code, incuding what is between the first and last part - but put it in an attachment.
With a little more info, we may be able to help you make this work.
Originally posted by Boofo
To add smilies to the quick reply box:
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.
I'm confused...this section does not even appear in showthread.php for 2.2.6
"$textareacols = gettextareawidth();"
Stylez
08-23-2002, 05:05 PM
there it is.....
I was mixing two versions of this hack unknowingly...
Boofo
08-23-2002, 05:51 PM
It is there. :) Did you find it all right?
Originally posted by dwh
I'm confused...this section does not even appear in showthread.php for 2.2.6
"$textareacols = gettextareawidth();"
Nope...not even on a fresh install...I've put it away for now to look at it again later...but I think it's in the code hack not the original showthread code, is that right?
Anyways...I originally used another version of this hack as a basis for the idea and then wrote it my own way w/o modifying showthread.php...
What line is it supposed to be on?
Boofo
08-23-2002, 06:23 PM
There's the problem. That code is in the code that you add for Firefly's Quick Reply box. That is why it is not on a fresh install of vb. You will only find it after adding the Quick Reply Box code. :)
Originally posted by dwh
Nope...not even on a fresh install...I've put it away for now to look at it again later...but I think it's in the code hack not the original showthread code, is that right?
Anyways...I originally used another version of this hack as a basis for the idea and then wrote it my own way w/o modifying showthread.php...
What line is it supposed to be on?
Originally posted by Boofo
To add smilies to the quick reply box:
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. that worked great man thx, but I use like 54 smilie display for new thread/reply, and for my quickreply box that FAR too much, is there anyway to have a smaller pick of smiles? thx boofo
Boofo
08-23-2002, 09:29 PM
I basically did the same thing with the vbcode_buttons. I made a smaller set to use in my quick reply boxes (regular and pm) but that involved hacking the vbcode_buttons code, so I'm afraid that would have to be the case for a smaller amount of smilies, too. :)
Originally posted by snyx
that worked great man thx, but I use like 54 smilie display for new thread/reply, and for my quickreply box that FAR too much, is there anyway to have a smaller pick of smiles? thx boofo
you said you have done this? or somthing along the lines, or am I reading this all wrong?
Boofo
08-23-2002, 10:17 PM
Yes, I did it with the vbcode buttons. I would have to look at the smilie code to see how to do it. It involves a lot more than just transferring code from one to the other. :)
think ya could help me out?
I would forever be in your debt :)
lol, I can help ya out with any grfx ya need
icq me or sumthin :) 71926358
Boofo
08-24-2002, 12:53 AM
Give me a couple of days to sort it out and see if it can even be done. I'm not sure what it all entails yet. :) I'll try to come up with something for you. :)
I don't use ICQ. Too many "Pretty Park Worm" viruses for me. :) I'm on Messenger.
Originally posted by snyx
think ya could help me out?
I would forever be in your debt :)
lol, I can help ya out with any grfx ya need
icq me or sumthin :) 71926358
Stylez
08-24-2002, 07:06 AM
can anyone help me? O_o
Boofo
08-24-2002, 07:20 AM
Stylez, the code you are looking for starts on line 238 of an unhacked showthread.php for 2.2.6.
cool man, thx
snyxmedia@hotmail.com ;)
meteore
08-27-2002, 02:03 PM
is there a mean to add the vbcode buttons to the quick pm reply box?
meteore
08-28-2002, 10:50 AM
no one can help me ?
Boofo
08-28-2002, 10:59 AM
Add:
$vbcode_buttons
where you want the buttons displayed.
meteore
08-28-2002, 03:56 PM
thx
Learner29
08-30-2002, 07:00 AM
I double checked that in my options, this option is set to yes
Use 'Email Notification' by default?
Using this option emails you whenever someone replies to a thread that you have participated in.
STILL, when I use the quick reply box, and then edit the post, I notice that the email notification little square at the bottom of the post is NOT checked.
Why is this ??
MarkL
08-30-2002, 08:06 PM
I did this hack and it shows up, but when I post with it, a message comes up saying, 'No thread specified. If you followed a valid link, please notify the webmaster'. Does anyone know what I could have done wrong?
Learner29
08-31-2002, 11:04 AM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hm.... this cool thing doesn?t work for me with vb 2.2.7 :\
we used it till yesterday and after the update, the quick reply box was gone
:(
any ideas? :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
did you reapply the hack or not ?
if you did not reapply the hack, then you are simply now using the normal
templates of vb2.2.7 which of course do not include the quick reply box
functionality
i have 2.2.7. I installed the hack, but it's not working, can someone help me through aim? it's Pro Punchlines
freehtml
09-01-2002, 02:15 AM
I am using 2.2.7 and is working fine...
Take a look at http://www.sgwebhostingtalk.com
Boofo
09-01-2002, 02:17 AM
I just looked there and I didn't see it. Do you have to be registered to see it? Because it's not there. ;)
Originally posted by freehtml
I am using 2.2.7 and is working fine...
Take a look at http://www.sgwebhostingtalk.com
DanIAm
09-02-2002, 01:24 AM
Weird Weird Weird...
I had this hack(quick reply box) installed on my 2.2.6 version board. I updated to 2.2.7. The hack(quick reply box) was not there. I then reinstalled the hack according to the instructions, went into a forum and the hack(quick reply box) WAS there. I made 3 test posts using the hack. I went into another forum and the hack(quick reply box) was NOT there.
I found this odd, choose then another (now third) forum, and the hack(quick reply box) still was NOT there.
I went back to the original forum in which I posted 3 times using the hack(quick reply box) and the hack(quick reply box) was NOT there too???
What's up with that?
Dan
ExAvIoUr
09-02-2002, 06:03 AM
yea thx a lot very good work.
just one problem... with vbulletin 2.2.5 i get invalid thread specified when i hit post reply.
any ideas?
FleaBag
09-02-2002, 01:31 PM
Working on 2.2.7. Thanks again! :)
Learner29
09-02-2002, 09:04 PM
Originally posted by FireFly
[b]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:
https://vborg.vbsupport.ru/showthread.php?postid=253950#post253950
THANK YOU A MILLION !!!!
this is an excellent hack and it works very fine with vb2.2.7 !
I just installed it and it works and yes it DOES subscribe users to the threads they reply to via the quick box.....
a BIIIIIIG thank you to FireFly
Webmasta XT
09-02-2002, 09:17 PM
works perfectly fine on vb 2.2.6
Learner29
09-03-2002, 11:47 PM
Originally posted by FireFly
To subscribe users to the thread if the option is on in their profile.
This is an EXCELLENT hack really.....
FleaBag
09-04-2002, 07:16 AM
True. It's probably the most simple yet productive hack I have installed.
Greystang302
09-06-2002, 02:01 AM
Working great on 2.2.6, then performed the upgrade to 2.2.7. Just had to re-apply the code to showthread.php, the templates were not changed by the upgrade. So far it's working great on 2.2.7 too! Will report any bugs found if we encounter any...
Learner29
09-06-2002, 04:49 PM
Greystang302
Working great on 2.2.6, then performed the upgrade to 2.2.7. Just had to
re-apply the code to showthread.php, the templates were not changed by the
upgrade. So far it's working great on 2.2.7 too! Will report any bugs
found if we encounter any...
I had exactly the same results. the upgrade did not change anything, and it
was as easy as reapplying the hack to showthread.php to get it back working.
I love this hack and wish to see you installed on future versions of
vbulletin.
DanIAm
09-06-2002, 07:08 PM
brain fart... excuse me!
Learner29
09-06-2002, 08:35 PM
DanIAm
NOW, after doing nothing else after the install. The darn quick reply box is
gone? No where to be seen. Where did it go?
FTP to your server, and download the showthread.php that is on the server
......
now open this file and look for the code of the hack....
do you find it there ??
otacon
09-07-2002, 02:14 AM
hay u guys prob went trought this all redy but in my forums the post reply box is at the top to is there a way i can just get it on the bottom exe
http://www.thepunkit.com/forum/showthread.php?threadid=5
2 X Viverridae
09-07-2002, 02:43 AM
@ otacon - the code snippet in the 'showthread' template...
<!-- first unread and next/prev -->
...shows up a total of 4 times - $replybox should be after the fourth instance of it - you have it placed after the second instance of it.
Easy mistake to make...:D
otacon
09-07-2002, 03:04 AM
o er er thanks
Illuvatar
09-07-2002, 05:10 PM
Hey Firefly!
/me moves his whole site to new server, installs VB 2.2.7, and installs this most excellent hack!
Many thanks!
Illu
Joe Page
09-08-2002, 01:43 PM
I'm using it on vB 2.2.7 with Quick Thread and the Store hack already installed. I get errors with this hack, it comes up with a Permissions error. I'm guessing that this hack won't work because I've got the Store hack and the Quick Thread hack installed?
How can i make it so that only admins can see the quick box when the thread is closed? Now can moderators see and post in the box too! :(
badham
09-08-2002, 03:39 PM
Ok, here is a problem for you guys/gals. I have preformed hack as detailed in the readme untill the last step. I don't have a showthread template to modify by adding $replybox to (at least not that I can find) I have no box no nothing as far as my fourm nothing has changed. I inherited this fourm from another person, and I am assuming there is something acting like a showthread template as the fourm works, but I can't find the script that I need to add to....................HELP
PS the showthread_replybox template is there and will preview
I am running version 2.2.1 if that matters
badham
09-08-2002, 07:16 PM
Firefly......somebody.........I am sure this is an easy fix for you (not for me). Do I need to make a showthread template since I dont have one, and what code needs to be in there.................
1. In showthread.php find this bit of 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;
}
// ##################################################
And replace it with the following:
// ##################################################
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;
}
I'm on 2.2.7 and those two:
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;
}
aren't together...
so where do i add:
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')."\";");
}
please help, i had the same problem in 2.2.6
Dan Flynn
09-15-2002, 01:40 AM
Is there a way were it says post reply to change the wording to for quick replys or something like that?
NexDog
09-15-2002, 02:26 AM
lol
Learner29
09-15-2002, 03:08 PM
Dan Flynn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is there a way were it says post reply to change the wording to for quick
replys or something like that?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
of course, just put the code in a html editor and change the wording...
Cold Steel
09-15-2002, 11:59 PM
I have the store hack and the pickpocket hack installed.
Users who shouldn't be able to post, still can, via this hack. Is there anyway to edit showthread.php around it?
I got it so that those "in prison" couldn't even view the thread, but all I want to do is change it so they can't see the quick reply box.
ghroob
09-16-2002, 02:02 AM
Ok!
Who use vBulletin v.2.2.7
And like to install this hack with Smiles
Download please this file
And great Thanks for Chen :eek:
I have 2.2.7 board and /me hack seems to null out the quick reply. What I mean by that is if I have /me hack installed quick reply wont show up at all. I also had this problem when I was running 2.2.6. Anyone know how to fix?
how would i creat 2checkboxes underneath the [check message length] for 1: parse urls and 2:sigs on/off? any help would be much appreciated
o and absolutly awsome hack
ciudadhu
09-18-2002, 02:56 PM
im using 2.2.7 i mdeda steps 1 &2 but in 3 i have a newbie question
In the "showthread" template add $replybox right after the following:......
what i suposed to do???
Learner29
09-18-2002, 04:52 PM
ciudadhu wrote :
im using 2.2.7 i mdeda steps 1 &2 but in 3 i have a newbie question
In the "showthread" template add $replybox right after the
following:......
what i suposed to do???
you should add the word "$replybox" right after the text that was mentioned
here above.
that is look for the text above (use control + F, or Edit, and then Find) ,
and then immediately below it add this word :
$replybox
NexDog
09-18-2002, 09:55 PM
I serarched 14 pages and gave up. Any way to subscribe people to the thread when they reply using the Quick Reply Box. My forum has actually dropped off a bit as people aren't getting email notifications when they use the Box. Any fix?
Link14716
09-18-2002, 10:05 PM
14 Pages? Man, especially when the link is sitting on the first post. Ouch! :)
https://vborg.vbsupport.ru/showthread.php?postid=253950#post253950
NexDog
09-18-2002, 11:29 PM
Errf, that was page 28, but cheers. :)
Link14716
09-19-2002, 12:03 AM
Originally posted by NexDog
Errf, that was page 28, but cheers. :)
Yea, but FireFly linked to it in big bold letters in the fist post :)
gsnetworks
09-19-2002, 09:47 PM
I can't seem to install it, as I cannot find:
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav </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>
<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 -->
in the showthread.php file... I haven't hacked vB's before, so if this is stupid that is my excuse. :)
otacon
09-19-2002, 09:59 PM
BEST HACK EVER
Originally posted by Mono
I have 2.2.7 board and /me hack seems to null out the quick reply. What I mean by that is if I have /me hack installed quick reply wont show up at all. I also had this problem when I was running 2.2.6. Anyone know how to fix?
Anyone?
Learner29
09-19-2002, 10:35 PM
gsnetworks
I can't seem to install it, as I cannot find:
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%"
align="center">
................
<!-- first unread and next/prev -->
in the showthread.php file... I haven't hacked vB's before, so if this is
stupid that is my excuse. :)
sometimes the code is a bit different but you can still recognize it ......
just look for a portion of the code....
gsnetworks
09-20-2002, 09:34 PM
Problem is I can't find anything that looks anything like it.. I use version 2.2.7
Help would be appreciated.
Roderik
09-21-2002, 08:07 PM
thx! Works great @ http://www.overclocking.be/forum/showthread.php?s=&postid=28763
bouncer18
09-23-2002, 02:32 AM
great hack!
alanvo
09-27-2002, 03:30 PM
I dont think this hack work with 2.2.8...can someone please double check...
Xenon
09-27-2002, 03:32 PM
you should take a look at this board here:
"Powered by: vBulletin version 2.2.8, copyright ©2000 - 2002, Jelsoft Enterprises Limited"
and as you can see the quick reply is working..
I can't seem to get it to work on 2.2.8, either. I did everything, exactly as instructed. No reply box shows up.
TheComputerGuy
09-28-2002, 11:26 AM
Look for "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;
}"
on the second time...
Cause I got lost as well, but then I searched for it and it was the second listing...Great hack still.
Ceros Sin Kii
09-28-2002, 02:41 PM
I recently installed it, and it works out great for the most part. One problem, however..
It appears at the top of each thread rather than the bottom. Anyway to fix this?
Tony DiMera
09-28-2002, 06:29 PM
I have done that, make sure you put $ replybox(without the space) after the 4th <!-- first unread and next/prev --> in the showthread template
I restored my original showthread.php file, removed the new template, and reverted the modified template to the original. I then reinstalled and it still doesn't work. It doesn't show up in new threads, old threads, posts of admins, posts of regular members. The box is nowhere to be found. Any ideas what I could possibly be doing wrong to cause it to simply not appear? Thanks.
alanvo
09-29-2002, 04:04 AM
so, can anybody tell me the correct info to make this hack work with 2.2.8
Chris M
09-29-2002, 11:50 AM
@alanvo - Just install the hack as told...
It works on vB 2.2.8:)
Satan
alanvo
09-29-2002, 04:58 PM
I did, it doesn't work...have you install it yet? 2.2.8 is different from 2.2.7.....
antifanatic
09-30-2002, 01:44 PM
can any 1 make this work with 2.0.0 as i need it bad! thanks!
antifanatic: You're running 2.0.0? You really should upgrade to 2.2.8 ;)
The weirdness continues. The hack is now showing up on threads in ONE forum, only. The other forums still have nothing. The weirdest part ~ I didn't make any modifications since I last installed and checked it. It just showed up out of the blue. I think my forums are possessed.
Check all of your template sets, make sure you have modified them all with the code in the instructions.
frizor
10-01-2002, 01:37 PM
for some weird reason my quick reply box got on top of the posts maybe someone can help me there. www.cubed5.com it's on any of the posts. I must not know how to read directions
antifanatic
10-01-2002, 05:03 PM
does any 1 have any help for 2.0.0 as i dont want to upgrade
NTLDR
10-01-2002, 07:03 PM
Originally posted by frizor
for some weird reason my quick reply box got on top of the posts maybe someone can help me there. www.cubed5.com it's on any of the posts. I must not know how to read directions
I expect that you haven't placed the varible in the correct place in the showthread template. Check your template edits.
Brandon Rohde
10-02-2002, 08:07 AM
I am trying to use the hack to allow people to turn quick reply on/off.
When I post this line:
ALTER TABLE user ADD showquickreply tinyint(1) DEFAULT '1' not null AFTER nosessionhash
I get this error:
bash: syntax error near unexpected token `tinyint(1'
Anyone know how to fix this or what the problem may be?
RUBiK
10-02-2002, 02:55 PM
Originally posted by Brandon Rohde
Anyone know how to fix this or what the problem may be? Yes, you're not supposed to type that at the bash (shell) prompt but rather inside of mysql (i.e. at the "mysql>" prompt obtained by typing 'mysql' with the proper parameters to access the correct vBulletin database or whatnot).
LeeCHeSSS
10-02-2002, 03:30 PM
Odd that noone suggested this b4, but in showthread.php find
$templatesused = 'showthread_ratingdisplay,postbit_search,postbit_b uddy,postbit_ignore,postbit_useremail,icq,aim,yaho o,postbit_homepage,postbit_profile,postbit_ip_show ,postbit_ip_hidden,postbit,postbit_sendpm,postbit_ avatar,postbit_offline,postbit_online,postbit_edit edby,postbit_signature,postbit_attachment,postbit_ attachmentimage,showthread_adminoptions,showthread _threadrate,showthread_pollresults_voted,showthrea d_pollresults_closed,showthread_firstunread,showth read_nextnewestthread,showthread_nextoldestthread, forumrules,showthread';and replace with: $templatesused = 'showthread_ratingdisplay,postbit_search,postbit_b uddy,postbit_ignore,postbit_useremail,icq,aim,yaho o,postbit_homepage,postbit_profile,postbit_ip_show ,postbit_ip_hidden,postbit,postbit_sendpm,postbit_ avatar,postbit_offline,postbit_online,postbit_edit edby,postbit_signature,postbit_attachment,postbit_ attachmentimage,showthread_adminoptions,showthread _threadrate,showthread_pollresults_voted,showthrea d_pollresults_closed,showthread_firstunread,showth read_nextnewestthread,showthread_nextoldestthread, forumrules,showthread,showthread_replybox';
It gets rid of 1 unnecessary query
[email protected]
vbmenu_register("postmenu_307509", true);
10-08-2002, 04:03 AM
Originally posted by frizor
for some weird reason my quick reply box got on top of the posts maybe someone can help me there. www.cubed5.com it's on any of the posts. I must not know how to read directions
@ otacon - the code snippet in the 'showthread' template...
<!-- first unread and next/prev -->
...shows up a total of 4 times - $replybox should be after the fourth instance of it - you have it placed after the second instance of it.
Easy mistake to make...
[email protected]
vbmenu_register("postmenu_307511", true);
10-08-2002, 04:04 AM
This is awesome. Installed !
Is the a way to stretch the reply box to the right some?
edwardandtubbs1
10-08-2002, 01:16 PM
very easy to install, just make sure you get the "$replybox" in the right place. Version 2.2.8
Areku
10-09-2002, 06:12 PM
Some users using the Quick Reply box complain about not getting the email notifications anymore... Is there any fix for this? thanks!
sauron2002
10-14-2002, 08:43 PM
top class stuff, me using
http://www.wolfensteinx.com/surface/forums
TimHL
10-15-2002, 02:04 AM
I have tired to install this on a 2.2.8 and it doesn't show up . I put it in the correct place but it doesn't work. FireFly any ideas?
Sia Bani
10-15-2002, 10:11 PM
I've successfully installed this on 2.2.8! It's GREAT....but....
Now I get blank pages every once in awhile when people try to link to another page, another secion on the forum, another thread, when they click reply...anything they click.
It's occasional, and I can't seem to figure otu what is causing this. Any ideas firefly??
BigCheeze
10-16-2002, 01:25 AM
<- MORON ALERT
OK guys.. I've tried.. and failed to install this hack.... I have checked what I though was all correct, and still nada. Here's the info:
System: VB 2.2.8, phpPortal 3.0 pr8.1, PHP 4.2, Red Hat 7.3. The Quick reply box shows up at the bottom, but when I put in a message and click submit reply, I get:
vBulletin Message
No thread specified. If you followed a valid link, please notify the webmaster
hhhhhh..... What did I do wrong? Thanks guys!!
xevito
10-17-2002, 07:36 PM
I cant get it to go at the bottom.
Rand M
10-18-2002, 03:01 PM
Installed in v2.2.8, all working (after putting $replybox in the right place).
Many thanks
xevito
10-18-2002, 03:04 PM
Fixed ;) I was being a numpty ;)
xevito
10-19-2002, 01:25 PM
Erm got it installed but it doesnt seem to work all the time for me - any ideas?
Dean C
10-22-2002, 03:58 PM
Whoooaaa i haven't played with this hack for a LONGGGGGG time..
Anywayz if a thread is closed the quick reply box shows up for mods, sm's and admins and not regular members...
How do i get it so if the thread is closed the quick reply box will only show up for admins :D
- miSt
xevito
10-22-2002, 06:06 PM
I have reinstalled but I tried the email thing and that screws up.
Anyone know how to make the subscribe thing work properly.
BigCheeze
10-23-2002, 09:06 PM
Originally posted by Darth Cow
Since I already have two requests...
First, run this database query:
ALTER TABLE user ADD showquickreply tinyint(1) DEFAULT '1' not null AFTER nosessionhash
There, that should do the trick :). If you have any trouble or can't get it to work, let me know.
I got this all installed (Like I said before I was being a moron). I got the attachments working, and the smilies box. However, when I try to add this feature..
If you turn it off, it won't turn it back on. It will change the vaule in the DB to 0 for off, but doesn't seem to want to change it back to 1 for on. I have to manually do that.
Any clue? Did I miss something??
Thanks!!!!!!!!!!!
X-Fan
10-26-2002, 02:34 PM
Okay, this is bizarre. After upgrading to v2.2.8, I'm now getting "Object Expected" javascript errors on the New Thread and Edit Post pages.
Any ideas how to fix that?
smess
10-27-2002, 02:44 AM
will this work on 2.2.2.?
AlexT
10-27-2002, 12:26 PM
is this available for 2.2.8 please. I notice this forum is run and 2.2.8 and has a perfect quick reply box. Am i missing something or is it available and compatible ?
All help is greatly appreciated.
Chris M
10-27-2002, 01:13 PM
@AlexT and smess - It should work for most if not all of the 2.2.x versions;)
Satan
smess
10-27-2002, 03:46 PM
My reply box showed up at the top instead of the bottom, any help would be appreciated.
spittingangels
10-27-2002, 04:25 PM
i'm currently using this hack and it works great but some of my members have requested implementation of the mood hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41883) done by VeloCD and his instructions for including his hack within this hack are incorrect. has anyone else gotten the two hacks to work together?
Chris M
10-27-2002, 04:29 PM
@smess:
When it tells you to look for the "<first/prev..." info, find the fourth occurance, and put $replybox directly underneath it:)
Satan
David_McPherson
10-27-2002, 07:44 PM
Does anyone know how one might move the quick reply box to center with the "submit reply and reset form" buttons below. Also to have the "your Reply' text box a bit bigger? so it matches the box above?
http://mcpherson-racing.com/dave/quickreply.gif
iwk_batterio
10-28-2002, 05:15 PM
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
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:
https://vborg.vbsupport.ru/showthread.php?postid=253950#post253950
If you want to add an option for each user to turn this feature on and off, please see this post:
https://vborg.vbsupport.ru/showthread.php?postid=275595#post275595
sorry, I can't speak english very well...
When I Readed point number 3 to istall hack i Understand. :confused: I need to add
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav </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>
<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 --><!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav </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>
<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 --><!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav </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>
<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 -->
or to modify it? If 2?, where I need to add $replybox ?
Erwin
10-28-2002, 05:18 PM
Add $replybox where you want the reply box to show up. So probably at the bottom.
Chris M
10-28-2002, 05:26 PM
You need to modify the template, and find the fourth occurance of:
<!-- first unread and next/prev -->
Directly below that, add :
$replybox
Satan
iwk_batterio
10-28-2002, 05:36 PM
ah , ok thx ! :classic:
FleaBag
10-28-2002, 10:12 PM
Working nicely with 2.2.8, thanks. :)
Oddish
10-28-2002, 10:12 PM
I'm getting JavaScript errors when using this hack: "Undetermined string constant."
EDIT: Forget it, an extra linebreak slipped through and messed up the "message too long"-alert string.
X-Fan
10-29-2002, 01:01 AM
I'm still getting "Object Expected" javascript errors on the New Thread and Edit Post pages after having upgraded to v2.2.8 and re-implemented this hack.
Can someone PLEASE help me to fix that, as it's driving my visitors (and myself) nuts!!!!!!
Erwin
10-29-2002, 09:10 AM
Check the javascript section of your quickreply template. It's a javascript error. Copy and paste that bit again.
X-Fan
10-29-2002, 11:24 AM
My showthread_replybox template is exactly what's in the install instructions. In fact, I've double and triple checked, and this hack is installed exactly as instructed, yet I'm still getting a javascript error!
Chris M
10-29-2002, 12:08 PM
Post the javascript you are using...
It should look like :
<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>
Satan
X-Fan
10-29-2002, 12:34 PM
Here 'tis:
<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>
Chris M
10-29-2002, 12:52 PM
Hmmm...Looks exactly the same as the stuff I posted...
Just try using what I posted instead - See if there is any difference:)
Satan
this hack is great!
it must be inserted in vB3 :cool:
Chris M
10-29-2002, 02:39 PM
http://beta.vbulletin.com/vb3/
Check there - It already is;)
Satan
Esdee
10-29-2002, 05:25 PM
I can't add a link to the "get more smiliespage"
I added this but it says error on page when I click it
[<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Smilies</a>]</smallfont>
Chris M
10-29-2002, 08:14 PM
Try :
<a href="http://$bburl/misc.php?s=&action=showsmilies" target="_blank">Smilies</a>
Satan
Esdee
10-29-2002, 09:22 PM
Thanks,
that works, but I'm actually looking for a hack that gives the same popup window as it does when clicking on "get more" in a normal reply ^_^;
Chris M
10-29-2002, 09:26 PM
I see...
Is the Javascript needed to generate the popup actually in the showthread template?
Satan
Esdee
10-30-2002, 08:20 AM
[<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Smilies</a>]</smallfont>
I cot this from the vbcode_smilies_getmore template :confused:
For some reason it says "error on page"
Chris M
10-30-2002, 09:38 AM
Thats because I believe the Javascript for the Smilies open box thingy is in the newthread/newreply template;)
Satan
Esdee
11-01-2002, 12:10 PM
hmm.
The newpost and newreply templates have only the javascripts for the spellscheck and max message leght.
wolfe
11-03-2002, 01:20 AM
i really need help on this one right i have gone 1 step further
right first off i added the tables to the 'user' table of my DataBase
as seen here
http://www.s2k2.com/db.gif
then i added options to my templates
modifyoptions_qrurl
<tr>
<td bgcolor="#1C5780"><normalfont><b>Automaticly Parse URL's In Quick Reply?</b></normalfont><br><smallfont>Using this option will make all the <b>http://</b>'s and/or <b>www</b>'s links by automaticly adding infront and at the end of it.</smallfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="qrurl" value="yes" $qrurlchecked> yes
<input type="radio" name="qrurl" value="no" $qrurlnotchecked> no
</normalfont></td>
</tr>
modifyoptions_qremail
<tr>
<td bgcolor="#13486D"><normalfont><b>Email Notification In Quick Reply?</b></normalfont><br><smallfont>This option sets it so when you reply to a post you subscribe to it. This means when people reply you get an email with the infomation about the reply in it.</smallfont></td>
<td bgcolor="#13486D"><normalfont>
<input type="radio" name="qremail" value="yes" $qremailchecked> yes
<input type="radio" name="qremail" value="no" $qremailnotchecked> no
</normalfont></td>
</tr>
modifyoptions_dissmilie
<tr>
<td bgcolor="#1C5780"><normalfont><b>Disable Smilies In Quick Reply?</b></normalfont><br><smallfont>This options disables all the smilies in the post you are posting.</smallfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="dissmilie" value="yes" $dissmiliechecked> yes
<input type="radio" name="dissmilie" value="no" $dissmilienotchecked> no
</normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D"><normalfont><b>Show Signiture In Quick Reply?</b></normalfont><br><smallfont>This options sets it so it shows your sig in the post after you reply to the post.</smallfont></td>
<td bgcolor="#13486D"><normalfont>
<input type="radio" name="qrsig" value="yes" $qrsigchecked> yes
<input type="radio" name="qrsig" value="no" $qrsignotchecked> no
</normalfont></td>
</tr>
heres a pic
http://www.s2k2.com/qrop.gif
then i edited the member.php file
and added
// Show Quick Reply Option
if ($bbuserinfo[showquickreply]) {
$showquickreplychecked="checked";
$showquickreplynotchecked="";
} else {
$showquickreplychecked="";
$showquickreplynotchecked="checked";
}
// Show Quick Reply Option
// Automaticly Parse URL In Quick Reply Option
if ($bbuserinfo[qrurl]) {
$qrurlchecked="checked";
$qrurlnotchecked="";
} else {
$qrurlchecked="";
$qrurlnotchecked="checked";
}
// Automaticly Parse URL In Quick Reply Option
// Email Notification In Quick Reply Option
if ($bbuserinfo[qremail]) {
$qremailchecked="checked";
$qremailnotchecked="";
} else {
$qremailchecked="";
$qremailnotchecked="checked";
}
// Email Notification In Quick Reply Option
// Disable Smile In Quick Reply Option
if ($bbuserinfo[dissmilie]) {
$dissmiliechecked="checked";
$dissmilienotchecked="";
} else {
$dissmiliechecked="";
$dissmilienotchecked="checked";
}
// Disable Smile In Quick Reply Option
// Show Signature In Quick Reply
if ($bbuserinfo[qrsig]) {
$qrsigchecked="checked";
$qrsignotchecked="";
} else {
$qrsigchecked="";
$qrsignotchecked="checked";
}
// Email Notification In Quick Reply Option
after
if ($bbuserinfo[nosessionhash]) {
$nosessionhashchecked="checked";
$nosessionhashnotchecked="";
} else {
$nosessionhashchecked="";
$nosessionhashnotchecked="checked";
}
then i added
eval("\$showquickreplyoption = \"".gettemplate("modifyoptions_showquickreply")."\";");
eval("\$qrurloption = \"".gettemplate("modifyoptions_qrurl")."\";");
eval("\$qremailoption = \"".gettemplate("modifyoptions_qremail")."\";");
eval("\$dissmilieoption = \"".gettemplate("modifyoptions_dissmilie")."\";");
eval("\$qrsigoption = \"".gettemplate("modifyoptions_qrsig")."\";");
before
eval("dooutput(\"".gettemplate("modifyoptions")."\");");
then i added
$showquickreply=iif($showquickreply=="yes",1,0);
$qrurl=iif($qrurl=="yes",1,0);
$qremail=iif($qremail=="yes",1,0);
$dissmilie=iif($dissmilie=="yes",1,0);
$qrsig=iif($qrsig=="yes",1,0);
after
$nosessionhash=iif($nosessionhash=="yes",1,0);
then i replaced
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cook ieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergrou pid='$bbuserinfo[usergroupid]',nosessionhash='$nosessionhash'
with
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cook ieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergrou pid='$bbuserinfo[usergroupid]',nosessionhash='$nosessionhash',showquickreply='$ showquickreply',qrurl='$qrurl',qremail='$qremail', dissmilie='$dissmilie',qrsig='$qrsig'
and i saved it
then in the quick reply template i got
<smallfont><b> <font size="4">OPTIONS:</font></b><br>
<br>
<input type="checkbox" name="qrurl" value="$qrurl" title="Automatically adds and around internet addresses.">
<smallfont><b>Automatically parse URLs:</b><br>
<input type="checkbox" name="qremail" value="$qremail" title="Emails sent to you whenever someone replies. Only registered users are eligible.">
<b>Email Notification:</b><br>
<input type="checkbox" name="dissmilie" value="$dissmilie" title="Disables smilies in this post.">
<b>Disable Smilies in This Post:</b><br>
<input type="checkbox" name="qrsig" value="$qrsig" title="Include your profile signature. Only registered users may have signatures.">
<b>Show Signature:</b>
</smallfont>
but when i set them to yes in the userCP it does not change them on the quick reply box whys this please help me out :D.
what i mean is showed here...
http://www.s2k2.com/qr.gif
Tony DiMera
11-04-2002, 10:25 PM
Hello I saw this at aboard for their quick reply box, can you please tell me how to make it like that?
yesfans
11-04-2002, 11:40 PM
Sorry folks, this may be covered in this thread, but with 700+ posts I can't read thru them all. I added this quick reply feature and now some of my members are getting run time errors and errorn in line 460 expected object. I use the reply box and I NEVER see the error, why will some mebers but I never do. Her is the code I put in my SHOWTHREAD-REPLYBOX template....<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 Your Quick Reply to This Thread in Box Below</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></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>
yesfans
11-04-2002, 11:43 PM
I do see that in my browser, down at the bottom that when the page is loading it pops up a DONE BUT WITH ERRORS mess. That is done in the status bar above my start button.
yesfans
11-04-2002, 11:46 PM
This one I dont't get, why the errors do not happen to me.
Erwin
11-05-2002, 12:10 AM
You can search this thread using the search box at the bottom right corner.
Runtime errors mean that there is a Javascript error. The javascript in the quickreply template is to do with counting the max number of characters. Make sure you copied and pasted it correctly.
yesfans
11-05-2002, 12:31 AM
I looked over my code and repasted and appears to be working now, THANKS!!!!!! This site is GREAT!
yesfans
11-05-2002, 12:31 AM
I didnt see the SEARCH THIS THREAD option, yet another I need to add to my site!
Haakon
11-05-2002, 01:53 PM
I reconsidered my post, sorry
Tony DiMera
11-06-2002, 09:38 PM
*bump*
Eileen
11-06-2002, 11:21 PM
Thanks so much for this great script. I loaded it a couple of days ago and my forum members just love it......
~Eileen
Harrison Ford Web
http://www.harrisonfordweb.com
KelteN
11-10-2002, 04:29 PM
Very nice :D
beley
11-11-2002, 03:18 AM
Very nice hack! Thanks!
someone2
11-13-2002, 09:35 AM
I have found out that the rating system (rate this thread) on most boards is not used a lot, because most people use the quickreply box to reply, and are too lazy to rate since it requires an extra click and page reload.
Can someone implement a rate dropdownbox next to the quickreply 'submit reply' button? That way, a rating takes place while quickly replying, and people will use it more often, and the rating featuring will finally find it's success :bunny: .
avengingangel
11-13-2002, 05:18 PM
I just moved my vbulletin to another server.
ALL is working fine except the Quick Reply box...
I keep getting this message when I click the submit reply button :
"No thread specified. If you followed a valid link........."
I'm running V2.2.8 and it was working fine on the other server...
Any suggestions would be appreciated.
Thanks in advance
avengingangel
11-14-2002, 01:58 AM
Figured out the problem.... The temp directory for uploads wasn't properly defined and that's what was causing the problems :)
KelteN
11-17-2002, 05:33 AM
Is there anyway to get the smilie table in the quick reply?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.