The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Here's an easy one, it barely took 4 minutes to do. :china:
This hack will add a quick replying box at the bottom of all threads, only if the user has permission to reply, so when you need to reply to something real quickly you don't need to click the Post Reply button and wait for the page to load. Instructions are in the attached .txt file, and if you want a demo... just look below. NOTE: For the vB 2.3.2 version please see this post. Extras:
Show Your Support
|
Comments |
#1322
|
|||
|
|||
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... |
#1323
|
|||
|
|||
installed this one:
https://vborg.vbsupport.ru/showpost....postcount=1180 works fine, but its on top of the page instead of the bottom in showthread.php |
#1324
|
|||
|
|||
never mind, its all fine...
except i want the fields to be checkboxes, not hidden fields...how can i do that? where is everyone?? |
#1325
|
|||
|
|||
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.
|
#1326
|
|||
|
|||
Here is my showthread_replybox template...everything works, except the signature, url parsing and email notification options..
Code:
<script language="javascript"> <!-- var postmaxchars = $postmaxchars; function validate(theform) { if (theform.message.value=="") { alert("Please complete the message field."); return false; } if (postmaxchars != 0) { if (theform.message.value.length > $postmaxchars) { alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long."); return false; } else { return true; } } else { return true; } } function checklength(theform) { if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; } else { message = ""; } alert("Your message is "+theform.message.value.length+" characters long."+message); } //--> </script> <form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)"> <table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td> <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%"> <tr> <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post Reply</b></normalfont></td> </tr> <tr> <td bgcolor="{secondaltcolor}"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr valign="top"> <td> <textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="1"></textarea> <br><smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont> </td> <td><smallfont><input type="hidden" name="s" value="$session[sessionhash]"> <input type="hidden" name="action" value="postreply"> <input type="hidden" name="threadid" value="$threadid"> <input type="hidden" name="title" value=""> <input type="hidden" name="iconid" value="0"> <input type="checkbox" name="parseurl" value="yes"> Parse URLs?<br> <input type="checkbox" name="email" value=""> Email Notification?<br> <input type="hidden" name="disablesmilies" value=""> <input type="hidden" name="closethread" value=""> <input type="hidden" name="hiddenreply" value=""> <input type="checkbox" name="signature" value="yes"> Signature?<br> <input type="hidden" name="rating" value="0"></smallfont></td> </tr> </table> </td> </tr> </table> </td></tr></table> <br> <table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center"> <tr> <td align="center"><normalfont> <input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="2"> <input type="reset" class="bginput" name="reset" value="Reset Form" accesskey="r" tabindex="3"> </normalfont></td> </tr> </table> </form> |
#1327
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showpost....postcount=1180 |
#1328
|
|||
|
|||
Quote:
thats the one thats not working |
#1329
|
|||
|
|||
where is everyone!?
|
#1330
|
|||
|
|||
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. |
#1331
|
|||
|
|||
I cant find this bit in my showthread.php. I can find the first line of it but not the rest, its different. It says to find this
Code:
// ################################################## if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) { show_nopermission(); } if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") { $pagenumber=1; } Code:
if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) { show_nopermission(); } $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext); $imgcodeon=iif($forum[allowimages],$ontext,$offtext); $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext); $smilieson=iif($forum[allowsmilies],$ontext,$offtext); $post=$DB_site->query_first(" SELECT post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')." attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter ".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")." FROM post ".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')." LEFT JOIN user ON user.userid=post.userid LEFT JOIN userfield ON userfield.userid=user.userid ".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=user.userid","")." LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid WHERE post.postid = '$postid' "); if (!$getperms['cangetattachment']) { $viewattachedimages=0; } 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()); } I use 2.3.4 despite what it says to the left. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|