Back to vBulletin 3.5 Template Modifications

Add a "Has this already been asked?" Button
Mod Version: 1.00, by reteep

This modification is in the archives.
vB Version: 3.5.0 Rating: (2 votes - 5.00 average) Installs: 35
Released: 10 Oct 2005 Last Update: 11 Oct 2005 Downloads: 15
Not Supported Template Edits  

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>
# now find this code inside newthread:

Code:
 <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
 <td>&nbsp;&nbsp;</td>
# and replace with:

Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td>&nbsp;<input type="button" class="button" value="Has this already been asked?" onClick="checktitle(vbform);"></td>
# Save the newthread template and you're done!

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

vblts.ru supports vBulletin®, 2022-2024