![]() |
Add a "Has this already been asked?" Button
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 - sunlab / Musiker-Board 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"> Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> Enjoy :cool: |
i ve installed this mod...the only problem is that the box "have this being asked before?" is not aligned correctly with the "Title" box.It appears slightly below the "Title" box...I think u are missing an align= command.I didnt tested it myself tho,i m not an expert in coding. :rolleyes:
please note that the part of the code: <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> <td> </td> Cannot be found through the "Search in Template" in template editor.(admin cp) I ve use firefox ctrl+f to find the lines.It found only <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> so there are some spaces missing betwen this and <td> </td> . mod works perfectly tho!!! Thanx! *installed* |
Hey there, thanks for your input.
For me it's perfectly aligned or are you talking about the slight 1px at the top? It looks better that way imo (like on the screenshot) but that's just about my taste ;) |
Great idea, thanks!
|
below in the photo attached you can see what i mean...
|
Quote:
Just delete this found in Code:
<td> <input type="button" class="button" value="Has this already been asked?" onClick="checktitle(vbform);"></td> Author: The first point of your instruction is wrong.. the code must be added after: Code:
</head> Code:
<body$onload> |
problem solved,now it's aligned perfectly!!
thank you very much... |
Thanks for the input! Changed the instructions. As for the -> on my forum it works :o
|
Stupid me :(
I had a typo in my post.. It must go directly ABOVE </head> :D |
Does the Search function work for everyone? I typed in, verbatim, the title of a previous post. The search function said that nothing was found with those words in the title. Am I missing something?
Steve A. Site Admin, I.T. Help Community |
Quote:
Quote:
|
Please attach a text file with the instructions too. Thanks. :)
|
Quote:
|
When I click on it nothing happens....?
|
installed. thanks.
|
Quote:
|
works great for me thanks!
|
Old but great.
:) |
Great idea
|
Just FYI: Tested on vB 3.6, running fine!
|
great mod!
|
Great hack, thank you :)
|
Great edit! I've changed my button to read "Search for similar topics?". Thanks!
|
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|