[3.0.3] 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: stormblast - http://www.musiker-board.de/vb Installation Instructions: # Open the Admin Control Panel > Styles & Templates > Style Manager > New Posting Template Group > newthread template, and add at the top of it: 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&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 No files for download. Screenshots
|
Similar Mods
Add a "Has this already been asked?" Button | vBulletin 3.5 Template Modifications |