Existing Topics Check
This modification is in the archives.
This hack will allow you and your members to check for existing topics, or similar ones, of the thread you plan to create when at newthread.php. This should help to prevent double topics that often appear from newbish members who neglect to use the search feature. It uses the exact functions as the "similar threads" feature, therefore has the same accuracy. Tested to work on:
------------------------------------------------ Tweak #1 If you would like the find icon to show upon typing in the input box, and then disappear if the input box is empty upon change, please do the following: In the template newthread, find: Code:
function showFind(object) { if(object.value != '') { document.findicon.src = "$stylevar[imgdir_button]/findicon_on.gif"; document.findicon.style.cursor = "pointer"; } else { document.findicon.src = "$stylevar[imgdir_button]/findicon_off.gif"; document.findicon.style.cursor = "default"; } } Code:
function showFind() { document.findicon.src = "$stylevar[imgdir_button]/findicon_on.gif"; document.findicon.style.cursor = "pointer"; } function hideFind(object) { if(object.value == '') { document.findicon.src = "$stylevar[imgdir_button]/findicon_off.gif"; document.findicon.style.cursor = "default"; } } Code:
<td><input type="text" class="bginput" name="subject" onChange="showFind(this)" value="$subject" size="40" maxlength="85" tabindex="1" /></td> Code:
<td><input type="text" class="bginput" name="subject" onchange="hideFind(object)" onkeypress="showFind()" value="$subject" size="40" maxlength="85" tabindex="1" /></td> Attached is a screenshot. Inside the zip are English, German, and French installation instructions. Please be aware I used a software translator for the German and French docs. Enjoy. Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
Find Topic: Existing Topics Check | vBulletin 3.5 Add-ons |