Add a "Has this already been asked?" Button
This modification is in the archives.
Add a "Has this already been asked?" Button
Adds a button besides the title when creating a new thread which executes a search query of the filled in words. This helps a bit preventing new users post questions which has already been asked in the past. Author: Andreas Kraus - http://www.sunlab.de / http://www.musiker-board.de/vb Installation Instructions: # Open the Admin Control Panel > Styles & Templates > Style Manager > New Posting Template Group > newthread template, and directly above </head>: Code:
<script language="javascript"> <!-- function checktitle(theform) { if(theform.subject.value==""){ alert("Please enter a topic in the subject field."); return false; } else { window.open('search.php?do=process&titleonly=1&query='+document.vbform.subject.value+'','javascript_1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400'); } } //--> </script> Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> <td> </td> Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> <td> <input type="button" class="button" value="Has this already been asked?" onClick="checktitle(vbform);"></td> Enjoy Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
[3.0.3] Add a "Has this already been asked?" Button | vBulletin 3.0 Template Modifications |