Back to vBulletin 3.0 Template Modifications

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

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 0
Released: 08 Nov 2004 Last Update: Never Downloads:
Not Supported  

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>
# 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><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

No files for download.

Screenshots

 

Similar Mods

Add a "Has this already been asked?" Button vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024