vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - [Ajax] Check for similar thread before posting a new one (https://vborg.vbsupport.ru/showthread.php?t=201651)

MrNase 01-12-2009 10:00 PM

[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:
  1. Download jQuery as described above.
  2. Import the attached file using the Product Manager. Go to your vBulletin settings and search for 'Check for similar threads?'.
  3. Enable it. :)


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.*)

vip-q.com 01-13-2009 06:03 PM

great :)

thanks

Emunator 01-13-2009 06:33 PM

Works very nice.
Thans.

MrNase 01-13-2009 06:51 PM

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. :)

Dax IX 01-13-2009 08:02 PM

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?

Emunator 01-13-2009 08:09 PM

Quote:

Originally Posted by Chani (Post 1711353)
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?

Did you upload jquery to the correct map ?

logicuk 01-13-2009 08:11 PM

Wil this work on vb3.7?

MrNase 01-13-2009 08:13 PM

It should. :)

Dax IX 01-13-2009 08:13 PM

Quote:

Originally Posted by Emunator (Post 1711362)
Did you upload jquery to the correct map ?

As far as I know it is. It's at [forumhome]/clientscript/jquery-1.2.6.min.js

MrNase 01-13-2009 08:23 PM

Can you send me the Url so that I can look at it? :)

cafenetland 01-13-2009 08:33 PM

it works but,

then auto tagger does not work.

they dont work together for me :)

MrNase 01-13-2009 08:42 PM

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'.

cafenetland 01-13-2009 09:13 PM

Quote:

Originally Posted by MrNase (Post 1711399)
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'.

now they r two good friends and working together...
:)

thx for the help

auto tagger and auto checker similar post hacks r most importand hacks for my site.

thx again.

Jaxel 01-13-2009 09:33 PM

Disable "Enabled AJAX?" in the Auto Tagger settings and then it works fine.

cafenetland 01-13-2009 09:38 PM

Quote:

Originally Posted by Jaxel (Post 1711443)
Disable "Enabled AJAX?" in the Auto Tagger settings and then it works fine.

i disabled Custom tags behaviour using AJAX and they worked fine.

Skyrider 01-13-2009 09:43 PM

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.

chooky 01-13-2009 09:47 PM

you must change it in your sql config after that you can looking for words with 3 letters

Dax IX 01-13-2009 11:05 PM

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!

Skyrider 01-14-2009 06:32 AM

Quote:

Originally Posted by chooky (Post 1711454)
you must change it in your sql config after that you can looking for words with 3 letters

Mind telling me where to edit the information?

KURTZ 01-14-2009 01:58 PM

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 ;)

MrNase 01-14-2009 02:03 PM

All of your boards that the current user has access to.

Thanks for the nomination. :)

akonze 01-15-2009 06:16 AM

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?

Dax IX 01-15-2009 06:30 AM

vB Options -> Message Posting and Editing Options -> Check for similar threads? (Y/N)

The Vegan Forum 01-15-2009 09:53 AM

It doesn't work in 3.8 here either. I get this message...

Quote:

Notice: When you enter a thread title the system will search for similar threads which have already been posted. That should help you to find answers.

...but no search is being performed....

MrNase 01-15-2009 12:35 PM

Please send me a private message with all the information I need to test it myself including the password for a demo account. :)

ReQueM 01-15-2009 01:23 PM

Thats it! :D Thank you very much :)
*installed*

MrNase 01-15-2009 01:38 PM

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>
REPLACE it with:
Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
save the template.

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. :)

akonze 01-15-2009 02:08 PM

Quote:

Originally Posted by MrNase (Post 1713381)
...from the Google Repository which is faster and means less traffic for your server.

...and means more information for Google about your site and your visitors. A great deal... for Google. :mad:

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.

Jaxel 01-15-2009 02:16 PM

Quote:

Originally Posted by akonze (Post 1713407)
...and means more information for Google about your site and your visitors. A great deal... for Google. :mad:

And a great deal for YOU... as you will provide better search for Google, which can drive more people to your site. Yes, google knows everything about everybody... and if Google raped your children, you'll still hate Microsoft. But so far, Google hasn't done anythign as clandestine as people are afraid of.

MrNase 01-15-2009 06:45 PM

Quote:

Originally Posted by akonze (Post 1713407)
...and means more information for Google about your site and your visitors. A great deal... for Google. :mad:

What are you talking about? They don't get more information about you as anyone else with an own website can get?

erel34 01-15-2009 06:56 PM

Thank you!

guvner 01-15-2009 08:20 PM

OUTSTANDING! - works like a charm on 3.7.3

Thank you for a very useful mod.
Mike :)

akonze 01-15-2009 08:46 PM

Quote:

Originally Posted by MrNase (Post 1713717)
What are you talking about? They don't get more information about you as anyone else with an own website can get?

I am talking about not to load this file from a Google server. Everytime your script is loaded, it will call the jquery lib from Google. This means Google logs everything into their server logfiles. They know how many visitors you have, where they came from, when they visit your server, which contries they came from and so on.

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.

lms 01-15-2009 08:48 PM

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.

Jaxel 01-15-2009 09:06 PM

Quote:

Originally Posted by akonze (Post 1713844)
I am talking about not to load this file from a Google server. Everytime your script is loaded, it will call the jquery lib from Google. This means Google logs everything into their server logfiles. They know how many visitors you have, where they came from, when they visit your server, which contries they came from and so on.

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.

Akonze... they also know what your users are typing in the subject line (since the subject line is relayed for the similar threads search)... But as I said, this helps YOU! It helps Google place your website in more valid topics. As I said before, Google hasn't done anything clandestine that you should be fearing them... YET.

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.

crkgb 01-16-2009 09:56 AM

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?

glennybee 01-17-2009 10:04 AM

Quote:

Originally Posted by Chani (Post 1713048)
vB Options -> Message Posting and Editing Options -> Check for similar threads? (Y/N)

Maybe this should be included in the first post.

Working as described with 'Enabled AJAX?' feature disabled in Auto Tagger mod.

Thanks! :)

MrNase 01-18-2009 03:04 PM

Quote:

Originally Posted by crkgb (Post 1714464)
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?

I guess this because of a misleading text in the AdminCP. The input field allows you to specify where you want this add-on to be shown. It DOES NOT control what forums are searched. :)

Skyline_GT 01-18-2009 10:14 PM

Is it possible to search only that specific forum that the user wants to post instead the whole forum?

iBardia 01-18-2009 10:38 PM

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
  • Page Generation 0.03369 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete