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 |
#722
|
||||
|
||||
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!
|
#723
|
||||
|
||||
Post the javascript you are using...
It should look like : 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> |
#724
|
||||
|
||||
Here 'tis:
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> |
#725
|
||||
|
||||
Hmmm...Looks exactly the same as the stuff I posted...
Just try using what I posted instead - See if there is any difference Satan |
#726
|
|||
|
|||
this hack is great!
it must be inserted in vB3 |
#727
|
||||
|
||||
|
#728
|
||||
|
||||
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="javascriptpensmiliewindow(240,280,'$sessio n[sessionhash]')">Smilies</a>]</smallfont> |
#729
|
||||
|
||||
Try :
Code:
<a href="http://$bburl/misc.php?s=&action=showsmilies" target="_blank">Smilies</a> |
#730
|
||||
|
||||
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 ^_^; |
#731
|
||||
|
||||
I see...
Is the Javascript needed to generate the popup actually in the showthread template? Satan |
#732
|
||||
|
||||
[<a href="javascriptpensmiliewindow(240,280,'$sessio n[sessionhash]')">Smilies</a>]</smallfont>
I cot this from the vbcode_smilies_getmore template For some reason it says "error on page" |
#733
|
||||
|
||||
Thats because I believe the Javascript for the Smilies open box thingy is in the newthread/newreply template
Satan |
#734
|
||||
|
||||
hmm.
The newpost and newreply templates have only the javascripts for the spellscheck and max message leght. |
#735
|
|||
|
|||
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 then i added options to my templates Code:
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> Code:
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> Code:
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> Code:
<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> then i edited the member.php file and added Code:
// 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 Code:
if ($bbuserinfo[nosessionhash]) { $nosessionhashchecked="checked"; $nosessionhashnotchecked=""; } else { $nosessionhashchecked=""; $nosessionhashnotchecked="checked"; } then i added Code:
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")."\";"); Code:
eval("dooutput(\"".gettemplate("modifyoptions")."\");"); Code:
$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); Code:
$nosessionhash=iif($nosessionhash=="yes",1,0); Code:
$DB_site->query("UPDATE user SET ".$updatestyles."adminemail='$adminemail', showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser', maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."', timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification', startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm', emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',nosessionhash='$nosessionhash' Code:
$DB_site->query("UPDATE user SET ".$updatestyles."adminemail='$adminemail', showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser', maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."', timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification', startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm', emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',nosessionhash='$nosessionhash',showquickreply='$showquickreply',qrurl='$qrurl',qremail='$qremail',dissmilie='$dissmilie',qrsig='$qrsig' then in the quick reply template i got Code:
<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> what i mean is showed here... |
#736
|
||||
|
||||
Hello I saw this at aboard for their quick reply box, can you please tell me how to make it like that?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|