PDA

View Full Version : Quick Reply Box


Pages : 1 2 3 4 5 [6]

klaattu
11-03-2003, 07:15 PM
can anybody help?

Sometimes when I have problems with some hack i recheck everuthing lin eby line, chances are you made a mistake somewhere.

Sometimes you edit the admin.php and the file refers to the admin folder etc, check everything, also check the$ insertion point and the spaces.

100% of the time in my experience is due to a mistake you made in the isntalation/*instrucctions

NarutoX
11-04-2003, 08:50 PM
i cant get it working tried both chris's and yours chen.. nothing will apear in the threads :/

NarutoX
11-05-2003, 11:57 AM
Sometimes when I have problems with some hack i recheck everuthing lin eby line, chances are you made a mistake somewhere.

Sometimes you edit the admin.php and the file refers to the admin folder etc, check everything, also check the$ insertion point and the spaces.

100% of the time in my experience is due to a mistake you made in the isntalation/*instrucctions

NarutoX
11-05-2003, 11:58 AM
Sometimes when I have problems with some hack i recheck everuthing lin eby line, chances are you made a mistake somewhere.

Sometimes you edit the admin.php and the file refers to the admin folder etc, check everything, also check the$ insertion point and the spaces.

100% of the time in my experience is due to a mistake you made in the isntalation/*instrucctions

I dont know alotta people gettin errors latley..

Gary King
11-05-2003, 06:36 PM
Double post :p

NarutoX
11-06-2003, 12:20 AM
nm i figured it out :D

X-Sector
11-06-2003, 03:58 PM
Sometimes when I have problems with some hack i recheck everuthing lin eby line, chances are you made a mistake somewhere.

Sometimes you edit the admin.php and the file refers to the admin folder etc, check everything, also check the$ insertion point and the spaces.

100% of the time in my experience is due to a mistake you made in the isntalation/*instrucctions

Oh right, I'm ++++ed off man, Chen.. why did't you put the step of what klaattu said or something in your instructions..

Srry guys, Im ++++ed off cuz my quick box reply didn't work and l don't know what ru talking about, klaattu cuz lm suck at PHP coding :(

HP409ss
11-08-2003, 05:22 AM
My users love it!!! Great Hack!!!

walkingthepath
11-08-2003, 12:57 PM
I need help too :)

sunrunner_pei
11-12-2003, 06:10 PM
I added this hack today, and it is working very well for me. Thanks!

One problem though... Most of the time (But not all) we are getting javascript errors in Internet Explorer.


A Runtime error has occurred.
Do you wish to debug?
Line: 390
Error: Unterminated string constant


I'm running vBulletin 2.2.9

Here is my showthread_replybox template:

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


Can anyone help? I'm no expert by any stretch of the imagination.

One last note: Even though the errors are appearing, the reply box still functions properly.

Josh Combs
11-12-2003, 07:36 PM
if you want Shawn I can come and look at it. Just get ahold of me on AIM Josh Combs thanks

ENZcom
11-14-2003, 12:54 AM
I can't get it to work on 2.3.3

Gary King
11-14-2003, 01:43 AM
I can't get it to work on 2.3.3
What's the problem you're having..?

sunrunner_pei
11-14-2003, 10:49 AM
if you want Shawn I can come and look at it. Just get ahold of me on AIM Josh Combs thanks

Thanks for the offer Josh! I got it working though. I got an older install .txt file from a firend, uninstalled the hack, and re-installed wit from his instructions, and it's now working perfectly. :)

Anyways, thanks again for the offer!

freehtml
11-15-2003, 12:08 PM
i think in 2.3.3 some code had been changed

Dean C
11-15-2003, 01:17 PM
i think in 2.3.3 some code had been changed
I doubt it - as the bugs fixes are minor. Download the version for 2.3.2 - that's where the changes were made :)

X-Sector
11-15-2003, 08:10 PM
-_-...

please people, can somebody help me

k?re
11-19-2003, 11:21 PM
i see that the version 2.3.3 is change . anyone can help how to install this on 2.3.3

xxxsaint
11-20-2003, 02:41 PM
hey ,if I wanted to put an image in the background of the quick reply message field , where would I put that in the template ?

Dukaver
11-20-2003, 10:21 PM
I noticed a number of people asking about the showthread.php and how the line of code you have you replace is in it twice. Replace the second one with the full code.

Great hack, worked flawlessly. Thanks....Clicks Install.

memdy
11-26-2003, 03:37 AM
Okay after hours of rubbing my face on the cheese grader, i need some help. I installed the quick reply hack and been working fine, then I just moved to a new server and now I'm getting this error message when using the quick reply box.

"No thread specified. If you followed a valid link, please notify the webmaster "

Replys using the normal reply to button works fine, just the quick reply. Anyone have any ideas what to investigate. I can't seem to figure it out. I've tried reboot to clear any wacked out session variable on the server, cleared browser cache and cookies, ......help, anyone seen this before. Searches don't return much on the keywords to be of any use.

X-Sector
11-26-2003, 10:32 PM
hey ,if I wanted to put an image in the background of the quick reply message field , where would I put that in the template ?

Go to Admin CP => Templates => Quickreply(Or whatever the quickreply hack is)

if you want an image, you can trick the system like this:

#6666FF" background="myimages/myimage.gif
Note the careful arrangement of quotes.

Find

<td bgcolor="{firstaltcolor}">

would be replaced by

<td bgcolor="#6666FF" background="myimages/myimage.gif">

Hope that helps ;)

Gary King
11-26-2003, 10:52 PM
Go to Admin CP => Templates => Quickreply(Or whatever the quickreply hack is)

if you want an image, you can trick the system like this:

#6666FF" background="myimages/myimage.gif
Note the careful arrangement of quotes.

Find

<td bgcolor="{firstaltcolor}">

would be replaced by

<td bgcolor="#6666FF" background="myimages/myimage.gif">

Hope that helps ;)
Actually, that won't work for what he wants to do :)

You'd have to use some CSS, like <textarea style="background-image: url(/images/foo.gif)"></textarea>

VirtualHogwarts
11-29-2003, 04:09 PM
/me click's install!

Thanks worked perfect!

GMfullsize
11-29-2003, 06:10 PM
For some reason it is not working for me, most likely I did something wrong but have no idea what is going on. Also I have 2.3.3, does that make a difference? I used 2.3.3

Also what is the install button do? Please help

Gary King
11-29-2003, 07:27 PM
For some reason it is not working for me, most likely I did something wrong but have no idea what is going on. Also I have 2.3.3, does that make a difference? I used 2.3.3

Also what is the install button do? Please help
The install button shows that you've installed the hack, without actually installing it for you.

GMfullsize
11-30-2003, 07:32 AM
The install button shows that you've installed the hack, without actually installing it for you.
Bummer lol. I still havent got it to work yet. If anyone can help me out that would be great. I am on AOL Instant Messenger a lot and my screen name is Silveradon20z If you can help me out please IM me. Thanks

Gio Takahashi
12-01-2003, 02:30 AM
I will IM you soon.

As for the install button, it only adds a record to your User CP that you installed this hack, so you can use your CP to check back to hack threads for updates.

I have been hearing of a compatibility issue with 2.3.2. and Chen's quick reply box. I believe there is a new alternative Quick Reply that involves no Hacking. Try Mist's Hackless Quick Reply Box (https://vborg.vbsupport.ru/showthread.php?t=56834)

https://vborg.vbsupport.ru/showthread.php?t=56834

midnightz
12-03-2003, 02:07 PM
Everybody is right, this hack doesn't work in 2.3.3 even with the changes in the update.

xHollywoodx
12-03-2003, 11:56 PM
does this not work with 2.3.3, cause i cant get it to work, it wont show up????

Gary King
12-04-2003, 01:43 AM
does this not work with 2.3.3, cause i cant get it to work, it wont show up????
It doesn't work with 2.3.3

Bulleh
12-06-2003, 10:21 AM
gr8 hack, got it installed and working, but just a question
when thy reply VIA Quick reply, there signature does show up, have i installed it wrong, or?

SVTBlackLight01
12-06-2003, 11:36 AM
You can add the option to the quick reply template, but with the original hack, the user will have to have signature included by default selected in their control panel.

Bulleh
12-07-2003, 06:04 AM
how..can i add the option...?

SVTBlackLight01
12-07-2003, 07:09 AM
Add this


<input type="checkbox" name="signature" value="yes"
checked="$signaturechecked"><b>Attach Signature</b>


to the showthread_replybox template where you want the check box to appear. This will have it checked by default.

Or if you want it to attach the signature automatically for all users and not have it optional with the check box, just add


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


to the list of hidden inputs at the beginning of the form.

Bulleh
12-07-2003, 02:47 PM
i did the second one, but signature still doesnt show up on the threads using quick reply? sorry im a bit stupid :(

Gary King
12-07-2003, 04:00 PM
i did the second one, but signature still doesnt show up on the threads using quick reply? sorry im a bit stupid :(
That's strange, it should work. Where did you put the code?

DaTeX
12-07-2003, 07:22 PM
Everybody is right, this hack doesn't work in 2.3.3 even with the changes in the update.
Search in showthread.php for
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}

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

if ($bbuserinfo[cookieuser]) {
set_bbarraycookie('threadview', $threadid, time());
}
replace it with
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 ($noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

if ($bbuserinfo[cookieuser]) {
set_bbarraycookie('threadview', $threadid, time());
}


Than add the template und make the showthread template edit and it works.. ;)

SEShady
12-08-2003, 08:39 AM
GG DaTex.

works in 2.3.3 now!

Thanks,
SE|Shady

Silverstangs
12-10-2003, 05:52 AM
edit: got it to work with 2.3.2


Thank you!!!!!!!!!!!!!!!!!!!!
I been beating myself up for 9 days trying to get it to work!!!!!

2.3.3 works with your change!

M@rkus
12-11-2003, 01:35 PM
Hello there.

Very nice hack. My userer appreciate that very much. Thnx for that. But now my question. I didn`t finde any posting in this thread about how to put the option to "Quote a message" in that box. Same as on this board.

Any help!?

Zachery
12-11-2003, 01:46 PM
this board is not vb2 and in vb3 there is a whole quick reply system built in

M@rkus
12-11-2003, 01:58 PM
yes, but there should be a possibility to built that in, or not`?

Zachery
12-11-2003, 02:13 PM
i belive somthing liek what was done was done as an addon, search though the forums

SVTBlackLight01
12-11-2003, 09:39 PM
I believe this is it.

https://vborg.vbsupport.ru/showthread.php?t=54939

spiritmage
12-22-2003, 04:59 PM
Okay, I put this on my boards (which is version 2.3.2) and it appeared on top of the thread instead of at the bottom... I'm a newbie at this so I'm not sure what I did wrong, can someone help me?

]|fre$h-LoRd|[
12-22-2003, 10:12 PM
Ähm, i have a little problem. The replay box is on the top of the site, but i will find it better, if the box would be on the bottom. Can you give me a tip how i can change this!?

Gary King
12-23-2003, 02:30 AM
If I remember the instructions correctly, find the second instance of the code you are supposed to find in the showthread template, and then put the $ variable there instead of the first instance.

spiritmage
12-23-2003, 03:06 AM
My first sucessful hack! Hehehe, thank you Gary W! It's now on the bottom :nod:.

]|fre$h-LoRd|[
12-23-2003, 04:44 AM
Uh, I am an german and I try to follow you, but i think I did something wrong. Can you show me, what you mean!?

DaTeX
12-23-2003, 07:05 AM
]|fre$h-LoRd|[
Du musst im showthread template nach
<!-- first unread and next/prev -->
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td><smallfont>$pagenav&nbsp;</smallfont></td>
<td align="right"><smallfont>
<img src="https://vborg.vbsupport.ru/images/prev.gif" alt="" border="0">
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextoldest">Last Thread</a>
&nbsp;
<a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=nextnewest">Next Thread</a>
<img src="https://vborg.vbsupport.ru/images/next.gif" alt="" border="0">
</smallfont></td>
</tr>
</table>
<!-- first unread and next/prev -->
suchen. Des ganze gibts aber 2 mal. Einmal weit oben und einmal weiter unten. Nachdem unteren musst du suchen und danach die variable $replybox einsetzen.
Danach ist die quick reply unter den post und nicht dar?ber.

Die anweisungen in der txt sind etwas falsch gemacht weil dort wird nur auf die erste instanz hingewiesen ;)

]|fre$h-LoRd|[
12-23-2003, 10:08 AM
Thank you very much, now it is right.

jaliam
12-24-2003, 12:45 AM
How do I put a title in my Quick Reply hack? Right now I can only post a message but I would really love to have a title block above the message table. Your prompt response would be greatly appreciated. Thanks!

LukeC
12-25-2003, 12:35 PM
Jaliam, I would imagine just a little html in your showthread template would do the trick up above your quick reply variable.

jaliam
12-25-2003, 10:21 PM
Jaliam, I would imagine just a little html in your showthread template would do the trick up above your quick reply variable.
Thanks very much, LukeC! I should have realized that. I was too tired installing other hacks when I posted that. I appreciate your response though. :tired:

hichew
12-31-2003, 06:51 AM
I'm looking quick reply for vB 2.3.3 , how come when I download the file from chen it said for 2.3.2 ?

DaTeX
12-31-2003, 10:27 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=450945&postcount=1288" target="_blank">https://vborg.vbsupport.ru/showp...postcount=1288</a>
That works with 2.3.3

hichew
01-01-2004, 04:37 PM
still can't use that one.. i think that because vB updated the software.
is there any other site than vbulletin.org
I found out it's really hard to find vB hacks in here.

Gary King
01-01-2004, 05:02 PM
still can't use that one.. i think that because vB updated the software.
is there any other site than vbulletin.org
I found out it's really hard to find vB hacks in here.
Are you mad? :eek: Unless you are not a legal owner of a vBulletin license, this is the largest database of vBulletin hacks.. ever! :D

MindTrix
01-01-2004, 05:52 PM
Hacks for vB2 are officially released here, and is the place for them on the internet.

As for vB3, you will not find any vB3 hacks here UNTIL the release of RC1 because that is classed as the first stable release. It was the wish of the vbulletin.com staff that vb.org did not allow vB3 hacks until RC1 so thats why you will not find them here.

Note if you would like hacks for any other the vB3's that have been released so far, then check out www.vbulletin.nl (http://www.vbulletin.nl)

Just remember vB3 hacks ARE released here when RC1 is out

The End :p

enginethatcan't
01-02-2004, 03:08 PM
I have a problem...it says to find 3. In the "showthread" template add $replybox right after the following:
with XXX

but I don't have the code it says to look for.. this is what I have in my showthread tamplate:

{htmldoctype}
<html>
<head><title>$bbtitle - $thread[title]</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")


}
// -->
</script>
</head>
<body>
$header

<!-- breadcrumb, nav links -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$navbar</td>
$ratingdisplay
</tr>
</table>
<!-- /breadcrumb, nav links -->

<a name="posttop"></a>

<!-- End content area table (CREATED IN HEADER!!) -->
</td>
</tr>
</table>

<!-- spacer -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- /spacer -->

$poll

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

<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}" width="175" nowrap><smallfont color="{tableheadtextcolor}" class="thtcolor"><b>Author</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="100%">
<!-- Thread nav and post images -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><smallfont color="{tableheadtextcolor}" class="thtcolor"><b>Thread</b></smallfont></td>
<td><a href="newthread.php?s=$session[sessionhash]&amp;action=newthread&amp;forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a></td>
<td><normalfont>&nbsp;&nbsp;</normalfont></td>
<td><a href="newreply.php?s=$session[sessionhash]&amp;action=newreply&amp;threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td>
</tr>
</table>
<!-- /Thread nav and post images -->
</td>
</tr>
</table>
</td></tr></table>

<!-- /spacer -->
</td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /spacer -->

$postbits

<!-- spacer -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- spacer -->

<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}" width="100%">
<!-- time zone and post buttons -->
<table border="0" cellspacing="0" cellpadding="0" bgcolor="{tableheadbgcolor}">
<tr>
<td width="100%"><smallfont color="{tableheadtextcolor}"><b>$timezone</b></smallfont></td>
<td><a href="newthread.php?s=$session[sessionhash]&amp;action=newthread&amp;forumid=$forum[forumid]"><img src="{newthreadimage}" border="0" alt="Post New Thread"></a></td>
<td><normalfont>&nbsp;&nbsp;</normalfont></td>
<td><a href="newreply.php?s=$session[sessionhash]&amp;action=newreply&amp;threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a></td>
</tr>
</table>
<!-- /time zone and post buttons -->
</td>
</tr>
</table>
</td></tr></table>

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

<!-- /spacer -->
</td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
<!-- /spacer -->

<!-- restart content table from header -->
<table cellpadding="10" cellspacing="0" border="0" width="{tablewidth}" bgcolor="{pagebgcolor}" align="center">
<tr>
<td>

<!-- thread options links -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{firstaltcolor}" align="center"><smallfont>
<img src="{imagesfolder}/printer.gif" alt="" border="0" align="absmiddle">
<a href="printthread.php?s=$session[sessionhash]&amp;threadid=$threadid">Show Printable Version</a> |
<img src="{imagesfolder}/sendtofriend.gif" alt="" border="0" align="absmiddle">
<a href="sendtofriend.php?s=$session[sessionhash]&amp;threadid=$threadid">Email this Page</a> |
<img src="{imagesfolder}/subscribe.gif" alt="" border="0" align="absmiddle">
<a href="member2.php?s=$session[sessionhash]&amp;action=addsubscription&amp;threadid=$threadid">Subscribe to this Thread</a>
</smallfont></td>
</tr>
</table>
</td></tr></table>
<!-- /thread options links -->

<br>

<!-- forum jump and rate thread -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td>$forumjump</td>
<td align="right">$threadrateselect</td>
</tr>
</table>
<!-- /Rate this thread -->

<br>

<!-- forum rules and admin links -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="bottom">
<td><smallfont><b>Forum Rules:</b>$forumrules</smallfont></td>
<td align="right">
$adminoptions
</td>
</tr>
</table>
<!-- /forum rules and admin links -->

$footer

</body>
</html>

what do I do???

MindTrix
01-02-2004, 04:07 PM
It tells you to find this code

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

and i can clearly see it in the template you just showed us ;)

Look again mate ;)

Infopro
01-03-2004, 10:26 AM
LOL..

Upgrade to VB3

MindTrix
01-03-2004, 11:27 AM
No need to free post mate ;)
And not everyone wants to upgrade to vB3 yet.

KAC
01-03-2004, 03:53 PM
Ok heres my question. I tried to install this on version 2.3.2. I did not install the VB. I was just asked to install the hack. When in the FTP I see a showthread.php file and a showthread.php3 file. Is this normal as I have never worked with this version. Also in the showthread template it calls out to this php3 file but yet in the txt doc for this version it says nothing about it. Any help would be greatly appreciated.

Keith
01-08-2004, 04:50 AM
From Post 273 found here (https://vborg.vbsupport.ru/showpost.php?p=237370&postcount=273)


Good addition, only one thing.
You should really replace this:
if (trim($bbuserinfo[signature])!= "") $signaturechecked="checked";
if ($bbuserinfo[emailnotification]!=0) $emailchecked="checked";
With this:
if (trim($bbuserinfo[signature]) != '') {
$signaturechecked = 'checked';
} else {
$signaturechecked = '';
}

if ($bbuserinfo['emailnotification'])
$emailchecked = 'checked';
} else {
$emailchecked = '';
}
So people can't add stuff to the $emailchecked variable through the URL (this is why 2.2.5 was released). :)

Generates a parse error. Looks like it's missing a { after emailnotification. Made this change to get it working.
if ($bbuserinfo['emailnotification']) {

Great hack Chen, one of my favorites.

jaliam
01-09-2004, 06:15 AM
I followed all the steps in adding smilies but nothing showed up. Can anyone help me with this problem? Thanks, guys!

tHe Rk
01-14-2004, 02:34 PM
Terrific, Super easy to install hack, even for us vB and html n00b's:D

tHe Rk
01-14-2004, 02:37 PM
I followed all the steps in adding smilies but nothing showed up. Can anyone help me with this problem? Thanks, guys!

Did you put:

$clickysmilies = getclickysmilies();

in twice on showthread.php?

" $textareacols = gettextareawidth(); "shows up twice in the script (for newer vB versions anyway). You have to add "$clickysmilies = getclickysmilies(); " after both of the times its in the script. Hope that helps, it worked for me on 2.3.4

jaliam
01-15-2004, 03:55 AM
It's working now. Thanks, Rk!

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

very weird, im kinda confused since it worked for everyone else...

bigdaddy04
01-17-2004, 04:49 PM
installed this one:
https://vborg.vbsupport.ru/showpost.php?p=434841&postcount=1180

works fine, but its on top of the page instead of the bottom :( in showthread.php

bigdaddy04
01-17-2004, 05:15 PM
never mind, its all fine...

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

where is everyone??

Elyk X
01-17-2004, 05:46 PM
Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.

bigdaddy04
01-17-2004, 06:02 PM
Here is my showthread_replybox template...everything works, except the signature, url parsing and email notification options..


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

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
<td>
<textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea>
<br><smallfont><a href="javascript:checklength(document.vbform);">[check
message length]</a></smallfont>
</td>
<td><smallfont><input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="checkbox" name="parseurl" value="yes">
Parse URLs?<br>
<input type="checkbox" name="email" value="">
Email Notification?<br>
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="checkbox" name="signature" value="yes">
Signature?<br>
<input type="hidden" name="rating" value="0"></smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>

<br>

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

</form>

bigdaddy04
01-17-2004, 06:03 PM
Its not working at all for me..... im on 2.3.4 and its not working.... Ive done everything 3 times now and still nothing.
use this one :)
https://vborg.vbsupport.ru/showpost.php?p=434841&postcount=1180

Elyk X
01-17-2004, 06:38 PM
use this one :)
https://vborg.vbsupport.ru/showpost.php?p=434841&postcount=1180
I did do that one =\

thats the one thats not working

bigdaddy04
01-17-2004, 06:56 PM
where is everyone!?

Elyk X
01-17-2004, 08:10 PM
to busy working on vb3, but the only reason i installed vb2 again was cause it has hacks that vb3 doesnt have yet. like..the rpg hacks.

I had a quick reply working on my old 2.2.8 version....but for some reason this ones just being stupid.

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

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

Instead I have

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

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

$post=$DB_site->query_first("
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,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;
}
and I also have this in the same code

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

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

if ($bbuserinfo[cookieuser]) {
set_bbarraycookie('threadview', $threadid, time());
}


Can someone tell me what to do I really want this its like a necessity.

I use 2.3.4 despite what it says to the left.

Elyk X
01-18-2004, 01:27 AM
oh yeah...its a good thing the support over here is so good *rolls eyes*

Elyk X
01-18-2004, 08:46 PM
Ok..nvm, i put in an old one for 2.2.6 that works....but its kinda funny that it works...and this one doenst.

kurv
01-20-2004, 08:53 PM
I can not get this working either... any help would be appreciated :) I am running 2.3.4

I have checked and rechecked my settings and the install...

Deska
01-21-2004, 02:07 AM
This hack work with v2.3.4!

MeTaL_oRgY
01-21-2004, 02:20 AM
Ok, tried bigdaddy`s hack first and it didn?t work..... the box don?t appear....

can?t get the box to appear... I?m on 2.3.4, here are my files:

showthread.php
<?php

error_reporting(7);

$action = $HTTP_GET_VARS['action'];
$goto = $HTTP_GET_VARS['goto'];

if ( isset($goto) and ($goto=='lastpost' or $goto=='newpost')) {
$noheader=1;
}

// ################################################## ##########################
// ############################# SHOW POST ####################################
// ################################################## ##########################

if ($action=="showpost") {

$templatesused = 'postbit_search,postbit_buddy,postbit_useremail,ic q,aim,yahoo,postbit_homepage,postbit_profile,postb it_ip_show,postbit_ip_hidden,postbit,postbit_sendp m,postbit_avatar,postbit_offline,postbit_online,po stbit_editedby,postbit_signature,postbit_attachmen t,postbit_attachmentimage,showpost';
include('./global.php');

if (isset($postid) and $postid!=0 and $postid!="") {
$postid = verifyid("post",$postid);

$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid='$postid'");
$threadid=$getthread[threadid];
}

$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);

if (!$thread['visible']) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
exit;
}

$forum=getforuminfo($thread['forumid']);

$getperms=getpermissions($thread['forumid'],-1,-1,$forum['parentlist']);
if (!$getperms['canview']) {
show_nopermission();
}
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;
}

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

$post=$DB_site->query_first("
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,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;
}

// ################################################## ############################
// ############################# SHOW THREAD ####################################
// ################################################## ############################

$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_pollresults_cantvo te,showthread_firstunread,showthread_nextnewestthr ead,showthread_nextoldestthread,forumrules,showthr ead';
require('./global.php');

// words to highlight from the search engine
$replacewords = array();
if (!empty($highlight)) {
$highlight = preg_quote(strtolower($highlight), '#');
if ($allowwildcards) {
$highlight = str_replace('\*', '[^\s]*', $highlight);
}
$highlight = str_replace('\<', '<', $highlight);
$highlight = str_replace('\>', '>', $highlight);
$highlightwords = explode(' ', $highlight);
while (list($key,$val) = each($highlightwords)) {
if ($val=='or' OR $val=='and' OR $val=='not') {
continue;
}
$replacewords["$key"] = htmlspecialchars($val);
}
}

// oldest first or newest first
if ($postorder==0) {
$postorder="";
} else {
$postorder="DESC";
}

// goto last post
if ($goto=="lastpost") {
if (isset($threadid) and $threadid!=0) {
$threadid = verifyid("thread",$threadid);

if ($getlastpost=$DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]" . iif(!empty($highlight), "&highlight=$highlight", "") . "#post$getlastpost[postid]");
exit;
}
}
if (isset($forumid) and $forumid!=0) {
$foruminfo=verifyid("forum",$forumid,1,1);
$forumid=$foruminfo['forumid'];

$forumslist = "";
$getchildforums=$DB_site->query("SELECT forumid,parentlist FROM forum WHERE INSTR(CONCAT(',',parentlist,','),',$forumid,')>0");
while ($getchildforum=$DB_site->fetch_array($getchildforums)) {
if ($getchildforum[forumid]==$forumid) {
$parentlist=$getchildforum[parentlist];
}
$forumslist.=",$getchildforum[forumid]";
}

$thread=$DB_site->query_first("SELECT threadid FROM thread WHERE forumid IN (0$forumslist) AND visible=1 AND (sticky=1 OR sticky=0) AND lastpost>='".($foruminfo[lastpost]-30)."' AND open<>10 ORDER BY lastpost DESC LIMIT 1");

if ($getlastpost=$DB_site->query_first("SELECT postid FROM post WHERE threadid='$thread[threadid]' AND visible=1 ORDER BY postid DESC LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]" . iif(!empty($highlight), "&highlight=$highlight", "") . "#post$getlastpost[postid]");
exit;
}
}
}

// goto newest post
if ($goto=="newpost") {
$threadid = verifyid("thread",$threadid);

if (($tview = get_bbarraycookie('threadview', $threadid)) > $bbuserinfo['lastvisit']) {
$bbuserinfo['lastvisit'] = $tview;
}

if ($posts=$DB_site->query_first("SELECT postid,dateline FROM post WHERE post.threadid=$threadid AND post.visible=1 AND post.dateline>'$bbuserinfo[lastvisit]' ORDER BY dateline LIMIT 1")) {
header("Location: showthread.php?s=$session[sessionhash]&postid=$posts[postid]" . iif(!empty($highlight), "&highlight=$highlight", "") . "#post$posts[postid]");
exit;
} else {
header("Location: showthread.php?s=$session[sessionhash]&threadid=$threadid&goto=lastpost" . iif(!empty($highlight), "&highlight=$highlight", ""));
exit;
}
}

if ($goto=="nextnewest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextnewest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost>'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost LIMIT 1")) {
$threadid=$getnextnewest[threadid];
unset ($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextnewest")."\");");
}
}

if ($goto=="nextoldest") {
$thread = verifyid("thread",$threadid,1,1);
if ($getnextoldest=$DB_site->query_first("SELECT threadid
FROM thread
WHERE forumid='$thread[forumid]'
AND lastpost<'$thread[lastpost]'
AND visible=1
AND open<>10
ORDER BY lastpost DESC LIMIT 1")) {
$threadid=$getnextoldest[threadid];
unset($thread);
} else {
eval("standarderror(\"".gettemplate("error_nonextoldest")."\");");
}
}

$umaxposts = explode(',', $usermaxposts . ",$maxposts");
$newmaxposts = max($umaxposts);

if (isset($postid) and $postid!=0 and $postid!="") {
$postid = verifyid("post",$postid);

$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid='$postid'");
$threadid=$getthread[threadid];

if (!$postorder) {
$getpagenum=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE threadid='$threadid' AND postid<='$postid'");
} else {
$getpagenum=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE threadid='$threadid' AND postid>='$postid'");
}
if ($bbuserinfo['maxposts']!=-1 and $bbuserinfo['maxposts']!=0 and $bbuserinfo['maxposts'] <= $newmaxposts) {
sanitize_pageresults($getpagenum[posts], $pagenumber, $perpage, $newmaxposts, $bbuserinfo['maxposts']);
} else {
sanitize_pageresults($getpagenum[posts], $pagenumber, $perpage, $newmaxposts, $maxposts);
}
$pagenumber = ceil($getpagenum['posts']/$perpage);
}

$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);

if ($wordwrap!=0) {
$thread['title']=dowordwrap($thread['title']);
}

if (!$thread['visible']) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
exit;
}

if ($thread['open'] == 10) {
// send them to their correct thread
header("Location: showthread.php?s=$session[sessionhash]&threadid=$thread[pollid]");
exit;
}

$forum=getforuminfo($thread['forumid']);

$getperms=getpermissions($thread['forumid'],-1,-1,$forum['parentlist']);
if (!$getperms['canview']) {
show_nopermission();
}
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}

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

if ($bbuserinfo[cookieuser]) {
set_bbarraycookie('threadview', $threadid, time());
}

// display ratings if enabled
$ratingdisplay = '';
if ($forum['allowratings']==1) {
if ($thread['votenum'] > 0) {
$thread['voteavg'] = sprintf('%.2f', ($thread['votetotal'] / $thread['votenum']));
$thread['rating'] = intval(round($thread['voteavg']));
}
if ($thread['votenum']>=$showvotes) {
eval("\$ratingdisplay = \"".gettemplate('showthread_ratingdisplay')."\";");
}
}

// draw nav bar
$navbar=makenavbar($threadid,"thread",0);

$curforumid = $thread['forumid'];

makeforumjump();

if ($thread[pollid]) {
$pollid=$thread[pollid];
$pollinfo=$DB_site->query_first("SELECT * FROM poll WHERE pollid='$pollid'");

$pollinfo[question]=bbcodeparse($pollinfo[question],$forum[forumid],1);

$splitoptions=explode("|||", $pollinfo[options]);
$splitvotes=explode("|||",$pollinfo[votes]);

$showresults = 0;
$uservoted = 0;
$cantvote = 0;

if (!$pollinfo['active'] OR !$thread['open'] or ($pollinfo['dateline'] + ($pollinfo['timeout'] * 86400) < time() AND $pollinfo['timeout'] != 0)){
//thread/poll is closed, ie show results no matter what
$showresults = 1;
} else if (!$getperms['canvote']) {
$cantvote = true;
} else {
//get userid, check if user already voted
if (get_bbarraycookie('pollvoted', $pollid) or ($bbuserinfo['userid'] and $uservote=$DB_site->query_first("SELECT pollvoteid FROM pollvote WHERE userid='$bbuserinfo[userid]' AND pollid=$pollid"))) {
$uservoted = 1;
}
}

$counter=0;
while ($counter++ < $pollinfo[numberoptions]) {
$pollinfo[numbervotes] += $splitvotes[$counter-1];
}

$counter=0;
$pollbits="";
$option = array();

while ($counter++<$pollinfo[numberoptions]) {
$option[question] = bbcodeparse($splitoptions[$counter-1],$forum[forumid],1);
$option[votes] = $splitvotes[$counter-1]; //get the vote count for the option
$option[number] = $counter; //number of the option

//Now we check if the user has voted or not
if ($showresults OR $uservoted OR $cantvote) { // user did vote or poll is closed

if ($option[votes] == 0){
$option[percent] = 0;
} else{
$option[percent] = number_format($option[votes]/$pollinfo[numbervotes]*100,2);
}

$option[graphicnumber]=$option[number]%6 + 1;
$option[barnumber] = round($option[percent])*2;
if ($showresults) {
eval("\$pollstatus = \"".gettemplate("showthread_pollresults_closed")."\";");
} elseif ($cantvote) {
eval("\$pollstatus = \"".gettemplate("showthread_pollresults_cantvote")."\";");
} elseif ($uservoted) {
eval("\$pollstatus = \"".gettemplate("showthread_pollresults_voted")."\";");
} else {
$pollstatus = ''; // just in case
}
eval("\$pollbits .= \"".gettemplate("pollresult")."\";");
} else {
if ($pollinfo['multiple']) {
eval("\$pollbits .= \"".gettemplate("polloption_multiple")."\";");
} else {
eval("\$pollbits .= \"".gettemplate("polloption")."\";");
}
}
}

if ($pollinfo['multiple']) {
$pollinfo['numbervotes'] = $pollinfo['voters'];
}

if ($showresults OR $uservoted OR $cantvote) {
eval("\$poll = \"".gettemplate("showthread_pollresults")."\";");
} else {
eval("\$poll = \"".gettemplate("showthread_polloptions")."\";");
}
} else {
$poll="";
}

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

$counter=0;

// can do it this way or use a strstr() for each post but I feel this will be quicker overall
unset($ignore);
$ignorelist = explode(' ', $bbuserinfo['ignorelist']);
while ( list($key, $val)=each($ignorelist) ) {
$ignore[$val] = 1;
}

$postscount=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE post.threadid='$threadid' AND post.visible=1");
$totalposts=$postscount[posts];

if ($bbuserinfo['maxposts']!=-1 and $bbuserinfo['maxposts']!=0 and $bbuserinfo['maxposts'] <= $newmaxposts) {
sanitize_pageresults($totalposts, $pagenumber, $perpage, $newmaxposts, $bbuserinfo['maxposts']);
} else {
sanitize_pageresults($totalposts, $pagenumber, $perpage, $newmaxposts, $maxposts);
}

$limitlower=($pagenumber-1)*$perpage+1;
$limitupper=($pagenumber)*$perpage;

$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");

if ($limitupper>$totalposts) {
$limitupper=$totalposts;
if ($limitlower>$totalposts) {
$limitlower=$totalposts-$perpage;
}
}
if ($limitlower<=0) {
$limitlower=1;
}
$postids="post.postid IN (0";
while ($post=$DB_site->fetch_array($getpostids)) {
$postids.=",".$post['postid'];
}

$postids.=")";


$posts=$DB_site->query("
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 $postids
ORDER BY dateline $postorder
");


if (!$getperms['cangetattachment']) {
$viewattachedimages=0;
}

$postbits = '';
$counter=0;
$postdone = array();
$sigcache = array();
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}
$postbits .= getpostbit($post);
}

$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;perpage=$perpage".iif(isset($highlight), "&amp;highlight=$highlight", ""));

$DB_site->free_result($posts);
unset($post);
unset($sigcache); //don't need the signature cache anymore

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

if ($thread[lastpost]>$bbuserinfo[lastvisit]) {
// do blue arrow link

if ($firstnew) {
$newpostlink="#newpost";
} else {
$newpostlink="showthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;goto=newpost";
}

eval("\$firstunread = \"".gettemplate("showthread_firstunread")."\";");

} else {
$firstunread="";
}
if ($forum[allowratings]) {
eval("\$threadrateselect = \"".gettemplate("showthread_threadrate")."\";");
} else {
$threadrateselect = "&nbsp;";
}

if (ismoderator($thread['forumid']) or $getperms['canopenclose'] or $getperms['candeletethread'] or $getperms['canmove']) {
eval("\$adminoptions = \"".gettemplate("showthread_adminoptions")."\";");
} else {
$adminoptions = "&nbsp;";
}
getforumrules($forum,$getperms);

updateuserforum($thread['forumid']);

eval("dooutput(\"".gettemplate("showthread")."\");");

?>

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

I?ve tried on the showthread template to move the $replybox after </table> and before <!--first unread and next/prev> tags... but stilll it don?t show up... What am I doing wrong??? :ermm:

sticky
01-21-2004, 04:01 AM
I can't get this to work on 2.3.4 either :( My members are pissed there is no quick reply and I can't seem to find one that works on this version.

MeTaL_oRgY
01-21-2004, 04:15 AM
lol, I have no members so I can wait lol.... I have to install all the hacks and then design them... so I have around a month and a half :)... hope someone creates a quick reply hack soon XD

Prince
01-21-2004, 02:27 PM
not sure what you all are talking about...I have this installed and working perfectly on vB 2.3.4

:confused:

Marcellus
01-22-2004, 12:18 AM
If it's not working for you in 2.3.4, it is very likely you missed one important thing in the instuctions when editing the showthread.php file. There are TWO instances of the code you are supposed to replace. I overlooked this one minor detail at first and the box didn't show up. As soon as I replaced both instances, everything worked fine.

Elyk X
01-22-2004, 12:46 AM
tell me where it says to change it twice in the install file and ill kiss your butt. All it says is to find that code. It never mentions it beign there again.

MeTaL_oRgY
01-22-2004, 12:50 AM
lol... I don´t know what I do wrong the first time... I didn´t found two instances... I don´t know.. the only thing I know is that now I can use Quick Reply... THNX!!!

Fargo
01-22-2004, 11:37 AM
3rd hack, 1st headache & 1st post! After reading 90 pages (twice!!) I finally got it working.

How I did it? By using someone elses posted showthread.php :(

Personal opinion:
Every forum should have a quick reply box - they rock, theyre a time saver if you post a lot & they save some bandwidth, however I think the instructions need to be looked over again - or at least supply a version that deals with the code of the newer versions.

Either way, great hack and I thank you and the others here who submitted their additional features for this hack. Well done.

johnkruk
01-22-2004, 12:59 PM
I just installed this hack and only added it once in showthread.php. Its my own fault. It reads right in the text file

1. In showthread.php find this bit of code both times!:

Working like a charm now!

Kerr
01-22-2004, 03:40 PM
Can someone help me. My users are griping that my quick reply box is above all the posts. It is above them not like this box which is below, and they want it changed. I am not stupid but not good yet...so can someone please tell me how to get the damn thing below my posts and not the first box you see on the thread?

BTW the instructions are right...there are two instances of that code in showthread.php and it says both times....just like johnkruk said.

I just need to know how to change its location. Oh my version is 2.3.4. Waiting for a very stable 3 to come out.

I FIXED IT. sorry

Marcellus
01-22-2004, 07:00 PM
tell me where it says to change it twice in the install file and ill kiss your butt. All it says is to find that code. It never mentions it beign there again.

Start kissing. If you read the previous posts and are in fact using the 2.3.2 version like you are supposed to, the then instuctions specificaly state to replace BOTH instances. Direct copy/past from the file:

// ##################################################
// ################ Quick Reply Box #################
// ########### Hack version 1.0 (01.29.02) ##########
// ############## for vBulletin v2.3.2 ##############
// ##################################################
// ########### by Chen 'FireFly' Avinadav ###########
// ########## (chen.avinadav@vbulletin.com) #########
// ########## Updated by Chris #########
// ########## www.runaked.com #########
// ##################################################

1. In showthread.php find this bit of code both times!:
// ##################################################
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}
// ##################################################
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')."\";");
}

borg69
01-23-2004, 10:29 PM
Can someone help me. My users are griping that my quick reply box is above all the posts. It is above them not like this box which is below, and they want it changed. I am not stupid but not good yet...so can someone please tell me how to get the damn thing below my posts and not the first box you see on the thread?

BTW the instructions are right...there are two instances of that code in showthread.php and it says both times....just like johnkruk said.

I just need to know how to change its location. Oh my version is 2.3.4. Waiting for a very stable 3 to come out.

I FIXED IT. sorry

Can you tell me how you fixed it mate?

Mine is still stuck at the top!! :ermm:

Cheers

Prince
01-23-2004, 10:46 PM
Can you tell me how you fixed it mate?

Mine is still stuck at the top!! :ermm:

Cheers


go into your showthread template and find where you put $replybox

and move it down below this code:

</tr>
</table>
<!-- first unread and next/prev -->


that is what controls where the reply box shows in the thread.

armani1072
01-24-2004, 06:34 AM
any reason why i cannot get it to work for vb 2.3.4???? please help.

MeTaL_oRgY
01-24-2004, 11:17 AM
lol, I don´t know dude.... you should search for that line two times..... or so... dunno...

Prince
01-24-2004, 03:43 PM
any reason why i cannot get it to work for vb 2.3.4???? please help.

ummm...because you can't follow directions?

borg69
01-25-2004, 10:24 PM
onece i moved the $replybox down to the next part it worked fine!!

Cheers prince!!

This was one of the easiest to install by far.

Chris|vB
01-28-2004, 01:20 AM
Nice work.

Riot-Boards
02-01-2004, 07:32 PM
Hey, I was wondering why its not working on vB version 2.3.4. I attempted to look through all 91 pages, but after 10... I just strayed... Im sorry if you have to repeat urself again, but I really need some help. If you can tell me why it wont should up for version 2.3.4, that would really help me out, a lot!

Thanks!

Prince
02-01-2004, 11:36 PM
Hey, I was wondering why its not working on vB version 2.3.4. I attempted to look through all 91 pages, but after 10... I just strayed... Im sorry if you have to repeat urself again, but I really need some help. If you can tell me why it wont should up for version 2.3.4, that would really help me out, a lot!

Thanks!

you obviously did not read this thread very well because as I have already said IT WORKS IN 2.3.4!

jaliam
02-02-2004, 03:36 AM
Hey, I was wondering why its not working on vB version 2.3.4. I attempted to look through all 91 pages, but after 10... I just strayed... Im sorry if you have to repeat urself again, but I really need some help. If you can tell me why it wont should up for version 2.3.4, that would really help me out, a lot!

Thanks!
Here you go, Riot-Boards! This is the possible fix to your problem with the Quick Reply Box.

https://vborg.vbsupport.ru/showpost.php?p=466739&postcount=1345

markblair
02-02-2004, 04:19 AM
When I clicked on the .txt file in the first post by Chen, it opens up blank. Does anyone have a copy of this hack or know why it is empty? I'm going to try again but so far, I can't get it... :(

markblair
02-02-2004, 04:31 AM
Oh' Lord, please disregard the above post. I figured out how to right-click and "save as" to get the file. Probably something quirky with my browser or something that was mentioned back on page 2...

MrSleepy
02-06-2004, 01:07 PM
nice one!

frizor
02-10-2004, 05:14 PM
i have version 2.3.3 and the quick reply hack doesn't work. it just doesn't show up.....any help?

Emmy2
02-13-2004, 08:51 PM
I have installed this hack on my vB2.3.4 board and it works beautifully.

I would like to make one small tweak to it but am having problems. I would like for the title of the post to be automatically filled in as "Re: whatever the original thread title is" whenever someone uses the box.

I managed to do this with the REGULAR reply box by inserting

name="title" value="Re: $threadinfo[title]"

into the input field for the reply box. This doesn't seem to work with the quick reply as just Re: [blank] appears when I post.

Any ideas what I would put in there instead? (the title field can be hidden or displayed so the user can change it...either way would be fine)

Emmy2
02-14-2004, 11:47 AM
Ah Mark, thank you, thank you! That's exactly what I was after....I tried it out and it does exactly the right thing!

Thanks again!

egyptsons
02-15-2004, 02:37 PM
thanks
;)

markblair
02-24-2004, 04:31 AM
Hmm, for some reason the Quick Reply box is not showing on my forum anymore. I had to move servers and switched from a server running Ensim to one with CPanel. I haven't changed the DNS yet so the new server is still only accessible via IP. But, when logged in through there, the Quick Reply box does not show up. All the correct settings are in place and I've double and triple checked. It works on the old server at this time and nothing changed when I imported the DB over to the new server.

Anyone know why this would happen. I'm running 2.3.4 on both at the moment.

Thanks,

Mark Blair
userintervention | free computer support resource!

markblair
02-24-2004, 04:38 AM
Disregard. Everything appeared to be fine with the showthreads.php template but for some reason it wasn't uploaded again. I know I did this once but second times a charm I suppose. :)

r00t3d
02-24-2004, 10:31 AM
its ok works great tnx.

rubyguy
02-28-2004, 10:11 PM
ok guys, hello...i have a slight problem on 2.3.4 I can't figure out what is going wrong when i upload showthread.php

When I go to click on a thead a reply box will just show up, not the thread itself, where did i go wrong?

regards,

RG

m_heb
03-01-2004, 12:29 AM
i've been using this hack for a good while before, but after i've recently re-installed VB from a restored database with version 2.2.6, when i try to edit showthread.php, i don't find any of the text i'm supposed to replace in it.

i'll attach it for everyone to see. never had this problem the two times i've installed it.

glo
03-04-2004, 12:58 AM
installed on test board using vb2.3.0

Thanks Chen

Brad
03-04-2004, 03:18 AM
i've been using this hack for a good while before, but after i've recently re-installed VB from a restored database with version 2.2.6, when i try to edit showthread.php, i don't find any of the text i'm supposed to replace in it.

i'll attach it for everyone to see. never had this problem the two times i've installed it.
You are not allowed to post any full vBulletin files at this site, please post any errors you have and code snippets and someone will assit you.

I no longer run version 2 and have not for at least a year now, if that wernt the case I would answer your question myself.

m_heb
03-05-2004, 03:07 PM
oh, sorry then. didn't know, won't happen again.

still stuck though.

AlexisPPP
03-20-2004, 05:50 PM
just testing to see how this works

AlexisPPP
03-20-2004, 08:51 PM
interesting

Boss-Hog
03-22-2004, 01:17 AM
Sorry if this has been posted already but I don't have the patience to read through 35 pages. I am running version 2.3.4 and have implemented this hack, along with the smilie addon. The feature works fine but when members use the quick reply box, it does not increment their post count by one. I have double checked to make sure I have the code exactly as it should be, and it appears that I do. How can I make the user's post count add one when he or she uses the quick reply box, much like the reply button will (and still successfully does) do? Thanks!

mikester
04-07-2004, 12:56 PM
Did you put:

$clickysmilies = getclickysmilies();

in twice on showthread.php?

" $textareacols = gettextareawidth(); "shows up twice in the script (for newer vB versions anyway). You have to add "$clickysmilies = getclickysmilies(); " after both of the times its in the script. Hope that helps, it worked for me on 2.3.4

OK, been trying to get this going on the board I help admin and with no luck. I have tried the smilies hack posted here, but without success. I am under the impression I am running 2.3.4 from this line at the top of the cp:

Control Panel (Version 2.3.4)

But when I looked for $textareacols in showthread.php, I only found it once:

amd:/home/mlc/portal/smilies # cat showthread.php | grep textareacols
$textareacols = gettextareawidth();
amd:/home/mlc/portal/smilies #

This board was upgraded from an older version of vB, so maybe it is in limbo and neither hack will work?

I got the quick reply box going using the hack for 2.3.2, and that went smoothly. When I make the change to showthread.php outlined in the smilies hack I just get a blank page when I try to view threads. Any ideas?.

Thanks in advance,

Mike

Rickk
04-08-2004, 09:52 PM
I might be posting this again, but I browsed like every other page searching quickly for it (out of 91 pages, thats a lot of looking!) But I couldn't find it...

Anyway...
Is there a way to add the posticons to the QuickReply? Perhaps in a little scrollable frame (I wish)? Maybe a drop down menu? :)

Thanks in advance!!

(Edit, was this really my first post? Wow. I've been here forever but never posted...)

PDIDDY
04-19-2004, 12:02 AM
hOW DO i MAKE THIS QUICK REPLY BOX APPEAR AT THE BOTTOM OF EACH THREAD AND NOT ON TOP?

Zachery
04-19-2004, 12:27 AM
USE VB3!

lol, the template edits have changed, there should be a post detaling this somewhere.

John Diver
04-26-2004, 01:58 PM
Could someone please tell me what I have to do so the smilie box is optional, or so you can expand it just when needed using javascript?
I done a search in the topic but cant find the answer and went through a load of pages, but theres far too many to go through.

Hope someone can help :)

Thanks
John

ry@n
05-06-2004, 02:26 AM
guess no one has asked about this in 2.3.5 have they?

can't seem to get it to work.

Randomlove
05-06-2004, 10:59 AM
it does work with me on 2.3.5

Randomlove
05-06-2004, 11:04 AM
Sorry if this has been posted already but I don't have the patience to read through 35 pages. I am running version 2.3.4 and have implemented this hack, along with the smilie addon. The feature works fine but when members use the quick reply box, it does not increment their post count by one. I have double checked to make sure I have the code exactly as it should be, and it appears that I do. How can I make the user's post count add one when he or she uses the quick reply box, much like the reply button will (and still successfully does) do? Thanks!

Running 2.3.5 the replies count does increase. Check your setup again.

The Kiss
05-07-2004, 09:24 AM
Hi,

I have a 2.3.5 and try to add this hack... but the problem IS I must read more than 90 pages in this thread to see the solution! :( :(

Can someone give me the procedure step by step for 2.3.5 version?

Many thanks to all people who can help me :)

Theory
05-18-2004, 06:09 AM
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;
}

That code dosen't exsist in showthread.php ...

Randomlove
05-22-2004, 10:36 AM
The steps are exactly the same as 2.2.x.

Soundr
06-07-2004, 05:37 PM
It dosn't work for 2.3.5 for me either :(

StacMaster-S
06-13-2004, 02:57 AM
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;
}

That code dosen't exsist in showthread.php ...


I have the same problem... the second section of code that needs to be replaced doesn't exist in 2.3.5's showthread.php file. I'm hoping to find an official answer before I try messing around with it. >__<

wanga
07-04-2004, 07:58 PM
I have 2.3.5 all you have to do is use the 2.3.2 method. that is linked in the first post. good luck.

StacMaster-S
07-05-2004, 01:22 AM
It's strange, I got it working and all... but as I recall the first section of code that had to be replaced appeared twice in the latest version. I must've just replaced the first version and it worked...

kermit_criminal
07-15-2004, 03:35 AM
does this work for version 3.0.3?

Sabrina
07-19-2004, 01:32 AM
im getting "Parse error: parse error in /home/puregraf/public_html/forum/upload/showthread.php on line 531"

help!

Edison Chen
07-19-2004, 04:56 AM
Check your showthread.php correctly. There are two exact lines that you have to change. For easier hacking, just click Edit at the top of your IE or whatever browser you use and then click on Find. Insert the quote and then it will direct you to the line. After that, click on find again, and it will bring you to the exact code but on another line.

Change that as well, and it should work.

Dead End Society
07-27-2004, 08:09 PM
*clicks install*

Love it.

Zachery
07-27-2004, 10:00 PM
*clicks install*

Love it.
You know you dont have vB2...

Evil Chris
08-06-2004, 02:20 PM
So many mods to this since it was first posted. Is the original hack complete/updated with any or all changes?

P.S. Running 2.2.9 here.

Thanks in advance.

TeenageWorld
08-06-2004, 09:06 PM
Easy install, thanks works great, this is a must for vB2, so great they made it for vB3 default hehe.

- Teenage World

/me clicks install

G3MM4
09-22-2004, 04:50 PM
Since when have they made it default for vB3? I don't see it anywhere in the Options in ACP.

Asterik
09-23-2004, 01:36 AM
Its been default since like Gamma

G3MM4
09-23-2004, 04:17 AM
OK, well I can't find it in the ACP in 3.0.3, so where is it?

Dean C
09-23-2004, 09:50 AM
OK, well I can't find it in the ACP in 3.0.3, so where is it?

vBulletin Options

G3MM4
09-23-2004, 10:10 AM
Thanks, I must have missed it first time around. Got it turned on now.

Elemental
10-05-2004, 03:14 PM
The steps are exactly the same as 2.2.x.

No, this doesn't appear to work with 2.3.5 at all. The second line of the first chunk of code to replace, doesn't seem to exist at all in showthread.php. As nobody appears to have answered the queries on the previous page, can somebody please point me in the right direction?

WitchyT
10-07-2004, 07:18 PM
No, this doesn't appear to work with 2.3.5 at all. The second line of the first chunk of code to replace, doesn't seem to exist at all in showthread.php. As nobody appears to have answered the queries on the previous page, can somebody please point me in the right direction?

Try this (taken from here (https://vborg.vbsupport.ru/showthread.php?t=40380&highlight=close+switch)):


1. Find in showthread.php:

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

2. Insert this after in the following line:

if (ismoderator($thread['forumid'],'canopenclose')) {
if ($thread['open']) {
$closeopenstatus='Close';
} else {
$closeopenstatus='Open';
}
eval("\$closeopenthread = \"".gettemplate("newthread_closeopen")."\";");
} else {
$closeopenthread='';
}

// FireFly's hack
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 {
if ($bbuserinfo['emailnotification']) {
$emailchecked = 'yes';
} else {
$emailchecked = '';
}
$textareacols=gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
} // End

ezsouljahs
10-28-2004, 04:53 AM
is there one available for 3.0.3 :ninja:

Zachery
10-28-2004, 07:18 PM
Try the one that is part of the default package ;)

ezsouljahs
10-28-2004, 07:36 PM
oops sorry :)....

pitt2424
01-01-2005, 02:30 PM
i have vbulletin version 2.2.8, will this hack work for that?

Gio~Logist
01-01-2005, 02:33 PM
should

pitt2424
01-01-2005, 02:37 PM
should okay thanx!

KiraAso
01-22-2005, 11:38 PM
Is there a way to include a Sticky Thread and Close Thread option to the Quick Reply box for admins and mods?

pixelghetto
07-08-2005, 01:31 PM
I'm using 2.3.6 and after going through 99 odd pages, I can't get this to work. Even though the hack is for 2.3.x the line of code you have to find and replace, doesn't actually seem to exsist. I found the code you are supposed to find and replace, followed all the steps....and it doesn't show up.

Does anyone have a solution that works in 2.3.6?

gurudd
07-20-2005, 01:47 AM
Um.....

Khashyar
08-13-2005, 10:08 AM
Great Hack, Chen...

It runs great so far on my VB 2.3.4 forum.

I am running VB 2.3.4 on one of my VB websites (didn't want to upgrade to VB3 because of many hacks)....

I was wondering if anyone found out how to add bold, italics, and underlined features to the Quick Reply Box?

That would really help make it even more appealing for users....

Thanks,

Khashyar

MRGTB
08-26-2005, 09:00 PM
I've noticed a problem, if a member replies to a thread using the quick "reply box". Email are not sent out from the board to other members subscribed to the thread in notifying them of a reply. Like it would if he used to main reply box.

If there a fix for this?

CFF RA's
09-25-2005, 07:32 PM
I've done all this, followed the directions. i'm running version 2.3.7, please advise!

Zachery
09-25-2005, 07:49 PM
I've noticed a problem, if a member replies to a thread using the quick "reply box". Email are not sent out from the board to other members subscribed to the thread in notifying them of a reply. Like it would if he used to main reply box.

If there a fix for this?

Chances are no, god knows how old this hack is now.. it can also be done with a template edit..

CFF RA's
09-25-2005, 07:55 PM
Okay, how hard is it to reply to both problems in one reply, then just his?!?

Zachery
09-25-2005, 10:13 PM
Okay, how hard is it to reply to both problems in one reply, then just his?!?
The fix is to upgrade to vBulletin 3.0.9 as it has this feature by default :p

CFF RA's
09-26-2005, 02:05 AM
Okay then, would someone care to tell me if this hack is for version 3.0.9, why the bloody hell would it be posted in the version 2.3.x area. Anyhow, I have followed the instructions according to text file to the letter. This is extremely important, please respond as soon as possible.

Thanks

Zachery
09-26-2005, 02:29 AM
vBulletin has included this feature by default in vBulletin 3.x and yes, this is a 2.x.x hack, however it hasn't been updated in ages.

Your best bet is to use 3.0 or 3.5..

CFF RA's
09-26-2005, 02:34 AM
Okay, version 3 is not an option. I've used this hack on version 2.3.x in the past, pleaseadvise/