![]() |
[Ajax] Check for similar thread before posting a new one
1 Attachment(s)
Hi there!
I decided to give my old Add-on a little update. :) You love the 'similar threads' function and you are sick of duplicate threads just because your users don't use the search function? Why not just combine them? This Add-on will grab the thread title the user typed in and it will load a small box (using Ajax magic ;)) with 5 similar threads just like the 'similar threads' function that you can normally find under an already posted thread. The box also tells the user to search through the similar threads first BEFORE starting a new one. Features: - indicated if you already subscribed to one or more similar threads - hover over the title and it gives a little preview of the thread's content - no edits whatsoever needed, just import the product file, enable the Add-on and it works (well, it should ;)) - you can turn it off for certain forums or - you can turn it off completely without leaving any code that messes your templates/files - it can be translated - don't like it anymore? Remove the product and you'll never see that Add-on again Known issues: - none Things to consider: It uses jQuery to get the information from ajax.php. jQuery is great and you can do many great things with it and unlike the vBulletin method it's quite easy to understand. :) Here's the version I use: http://code.google.com/p/jqueryjs/do...s&downloadBtn= Just download the file from the location and put it into the 'clientscript' folder on your server without renaming the file. jQuery 1.3 is out, read this if you would like to update: https://vborg.vbsupport.ru/showpost....1&postcount=27 Installation:
Important: It adds 2 new templates, it changes 1 template and it edits 2 files. I highly doubt that it will break you vBulletin but do a back-up and be on the safe side. Version history: 2.0 -> this release 1.0 -> outdated (made for vB 3.6.*) |
great :)
thanks |
Works very nice.
Thans. |
I am glad you like it. :)
Some users had problems with the previous version but I tested this one and it works. One thing I should mention: It uses the default vBulletin functions to find the similar threads so when you are happy with the similar thread display (the default vBulletin setting) this one will work for you. :) |
For some reason this is not working for me. :(
It shows the notice to the user when you first post a thread, but it doesn't update... Any ideas? |
Quote:
|
Wil this work on vb3.7?
|
It should. :)
|
Quote:
|
Can you send me the Url so that I can look at it? :)
|
|
Well the problem is that both try to access the contents of the input field at the same time and that doesn't work or it requires major modifications (on both add-ons) to make it work.
I didn't install the auto tagger to test it but yes, this might be a problem. Can you disable this behaviour in the auto tagger settings? If so this might a solution. :) If I recall correctly, the auto tagger works even with this feature turned to 'off'. |
Quote:
:) thx for the help auto tagger and auto checker similar post hacks r most importand hacks for my site. thx again. |
Disable "Enabled AJAX?" in the Auto Tagger settings and then it works fine.
|
Quote:
|
Can this plugin search threads with 3 key words? I've typed in 1 word containing 3 letters, but it doesn't seem to find any thread regarding it while there are tons of threads and posts.
|
you must change it in your sql config after that you can looking for words with 3 letters
|
Oops. My problem is solved. I was just stooooopid and uploaded the jQuery script into the wrong site. :o
Teach me to user AceFTP instead of Dreamweaver to upload files to my sites... It's just not my day. :o Thanks for looking into it for me! |
Quote:
|
just a Q: this runs onto ALL my board or only in that specific forum that i start a new thread? thx
anyway great job Nase, just nominated ;) |
All of your boards that the current user has access to.
Thanks for the nomination. :) |
This mod does not work! :(
1. I downloaded the XML and the jquery thing 2. I uploaded jquery to /clientscript 3. I imported the mod 4. I went to vb options, but hey, there was no 'Check for similar threads?' What to do now? |
vB Options -> Message Posting and Editing Options -> Check for similar threads? (Y/N)
|
It doesn't work in 3.8 here either. I get this message...
Quote:
...but no search is being performed.... |
Please send me a private message with all the information I need to test it myself including the password for a demo account. :)
|
Thats it! :D Thank you very much :)
*installed* |
jQuery 1.3 is out. :)
To update the product to the latest version of jQuery please follow these instructions: Edit the template called 'mrnasesimilarthreadcheck_header'. Find: Code:
<script type="text/javascript" src="clientscript/jquery-1.2.6.min.js"></script> Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> Additionally this will load the jQuery file from the Google Repository which is faster and means less traffic for your server. :) Version 2 of this Add-on still uses jQuery 1.2.6 but I am going to update this add-on soon. :) |
Quote:
When updating please think about using jquery without a link to Google. Why not include your XML and jquery into a single zip file like dozens of other vb developers do. In the zip file make an 'upload' directory and inside jquery in the clientscript directory. If needed, include the jquery license into the zip. Done. |
Quote:
|
Quote:
|
Thank you!
|
OUTSTANDING! - works like a charm on 3.7.3
Thank you for a very useful mod. Mike :) |
Quote:
In my eyes this is not recommended. I think the better solution is to include everything into a zip file, which many other developers do. |
1 Attachment(s)
Work to fine for me.
I deactivated AJAX in Automatic thread tagger. I install in translate spanish (in attach) I change in code jquery-1.2.6-min.js to jquery and use jquery.js (in attach) Sorry my bad english (i'm spanish) Trabaja perfecto. He deshabilitado AJAX en Automatic Thread Tagger. He instalado la versión traducida al español por mi (la adjunto) He cambiado el código de jquery-1.26-min.js a la versión completa de jquery.js (lo adjunto) Perdón por mi mal ingles (soy español) Salud2 and thanks. |
Quote:
The solution is to do it the same way vBulletin does their Server Optimization with the Yahoo! User Interface Library. You can chose to use the files on your server, or chose to use the ones on Yahoo's server. |
I have restrickted in the settings to search some of the forums. Yet it still shows the results from those unwanted forums. Any idea why that might be happening?
|
Quote:
Working as described with 'Enabled AJAX?' feature disabled in Auto Tagger mod. Thanks! :) |
Quote:
|
Is it possible to search only that specific forum that the user wants to post instead the whole forum?
|
Thanks so much.
I've seen this happen on a lot of sites, so this will help with mine =) |
All times are GMT. The time now is 05:04 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:
|