PDA

View Full Version : Similar Topic Check


Velocd
06-13-2003, 10:00 PM
Similar Topic Check
for vBulletin 3 & vBulletin 2
by Velocd

This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.

The vBulletin 3 version has been post-poned until vB3 RC is released.

What does this hack do?

This hack adds a button next to the subject field when creating a thread, that when pressed will display a pop-up window with a listing of similar threads already existent to the topic you are creating, as a means to provide you with alternatives just incase.


Background (aka, more reading stuff)

Yet another interesting hack of mine.. though this one has a strange scenario situated around it.

I began this hack for development on vBulletin 2 as an interesting new concept I thought would stop newbish posters from creating topics that already exist (and are usually fresh).

Early today I was preparing the hack for vBulletin.org release when I checked out this site and noticed it was down. When I returned sometime later, and learned of vB3 Beta release, I was thrilled (like most of us probably were).

Knowing that vB3 has an already good "similar thread" function, I decided to port over the hack to vB3, in the process of getting used to all the new variables and what not.

........ anyway, that is exactly what I have done, but I didn't feel like ditching the original vB2 code of my hack either, so I've decided to release two versions of this hack, both with the same intent in function, but very different coding.. such as the templates, as you know vB3 is very geared around stylesheets.


Differences between versions

When you actually run the check, the main difference you will notice between the two is output in speed, since my version has a few loops which could be bogged down a bit, but since the vB3 version has all those nifty predefined functions that I used, it goes much faster. Also, there is no preview function in the vB2 version (though it is possible, but laziness struck over) :p

Note if you have vB2, you of course can't use the vB3 version, for the differences in coding. Same goes vice versa.


Screenshots?

Refer to the next couple posts. They're screens of the vB3 version.


Download the hack!

Remember to click install if you use either version of this hack, and comments/questions/suggestions are always welcomed. ;)

Velocd
06-14-2003, 05:57 AM
Screenshot when similar topics are found:

Velocd
06-14-2003, 05:59 AM
Screenshot when no topics are found:

S.Shady
06-14-2003, 06:07 AM
very cool. Will install on both test boards to tell you how it goes

Austin Dea
06-14-2003, 06:20 AM
Nice ;D

S.Shady
06-14-2003, 06:33 AM
everything is good with vb2 but i got a little html problem with it.

is there anyway to get the search buttons like the rest of the buttons as it looks on vb3

and my vb2 results page is messed up with the colors and the time isnt showing up and alll that in the right colum

Freddie Bingham
06-14-2003, 06:46 AM
Did someone miss the rule about no vB3 hacks?

S.Shady
06-14-2003, 06:49 AM
hmm i did. sorry wbout that. should i take down the fix i did ?

edit nevermind my fix was for vb2 :duh:

Velocd
06-14-2003, 06:50 AM
Shady, I've updated the zip, so clear your cache then just re-download it, and apply the changes for the similartopic templates.

If there is a rule for no vB3 hacks, then I've indeed missed it. If you wish for me to take the vB3 version down, there is no problem in it.

S.Shady
06-14-2003, 06:51 AM
Today at 03:50 AM Velocd said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=408802#post408802)
Shady, I've updated the zip, so just re-download it.



does it fix the missing time ? i got everything fixed already just need the last post info to work :)

Xenon
06-14-2003, 09:07 AM
i've deleted the vb3 relating files in the archive

@VeloCD: the rule is clearly visible at the announcement of vb3 on our homepage:
vBulletin.org decided not to allow any vB3 hacks until it's in RC state.
it's even bolded, so you can't miss it

Prankster
06-14-2003, 12:18 PM
nice work thx.

i install it next time

greets Prankster

Velocd
06-14-2003, 02:27 PM
I actually didn't read the announcement here at vBulletin.org, I just saw the headline then headed over to vB.com.
:dead:

No problemo though, when it becomes ok to release it I shall.

Bison
06-14-2003, 03:52 PM
Nice work young man! :classic:

Hobbes
06-14-2003, 06:01 PM
nice hack :D..

* Hobbes installs

DrkFusion
06-15-2003, 02:59 PM
Very useful, and unique idea, will mostlikly be one of the useful ones!

Chris M
06-15-2003, 03:09 PM
Can't wait to use it on vB3:)

Satan

Intex
06-15-2003, 03:33 PM
If your users can't be bothered to use the search facility, then this is a good idea. Funnily enough mine can't :D.

* Intex clicks install.

dano
06-15-2003, 05:09 PM
I like it a lot. Question though, it appears that it only searches the "Title" area of a post for simular threads. Anyway to get it to check the entire site? Or would that just slow the board down too much?

Velocd
06-15-2003, 07:16 PM
Did you mean to say the entire post?

If so, it would be too much of a hassel to do it that way, and I'd assume things would slow down quite a bit. I find it more accurate anyway to search only titles, since a person should always make the title of the thread specific to the topic.

S.Shady
06-15-2003, 08:51 PM
Today at 02:09 PM dano said this in Post #19 (https://vborg.vbsupport.ru/showthread.php?postid=409299#post409299)
I like it a lot. Question though, it appears that it only searches the "Title" area of a post for simular threads. Anyway to get it to check the entire site? Or would that just slow the board down too much?


:cough: thats what the search.php file is designed to do in the vb :)

partang2
06-19-2003, 01:02 PM
Hm.... what is wrong here?? It will not find anything at all even if I copy a title from a existing post at my board.... Did I do anything wrong here?? Shows up fine, but no results at all....

*EDITED*

Now it found something, but that was a thread who doesen't have anything at all to do with the one I would start....!? Any ideas?

Smoothie
06-19-2003, 04:26 PM
hmm, is a good hack, and a good idea, but the search takes too long. Anyway to speed it up some?

Velocd
06-20-2003, 03:49 AM
If you have a large forum, the search will take some time. The vB2 version of it is quite slow, being the loops that are processed. You might be better off waiting till vB3 RC is released, and I can re-open the vB3 version. (which works very fast)

As for the accuracy issue that you are experiencing partang.. I'm not sure about it. :ermm: It works fine with me.

Though, I just noticed a stupid mistake in the PHP file, and that is I have two values for my forums in this part:

$discluded = ""; //Forums that are discluded

Make sure $discluded is instead says:

$discluded = "0"; //Forums that are discluded

Unless you have already added forums there. There is no permissions check in this hack, so you have to manually add the forums you want not to be checked. I've updated the zip to remove this bug.

Ninth Dimension
06-27-2003, 11:18 AM
Very nice hack, nice and easy to install and should help stop dupe threads. I do have a problem - it looks like it's not working correctly.

I'm still in the process of developing my forum and as such it only has one thread currently, but when i use this to search for that thread (to see if it works) iit keeps telling me no threads can be found.

I've tried everything from specific words in the title - to the whole title in an bid to get it to show, but no joy. any suggestions?

Other than that, like i say, great hack

/me clicks install

David Bott
07-03-2003, 05:45 PM
WOW....This is a GREAT hack. But alas, because of our site size, not useable for it KILLED the server.

Their has to be a way to write it so it does not do such a thing. Are you not just doing a Topic Serach and showing the output? Doing a topic serach on our site does not hurt. Just wondering if anything can be done for I would LOVE this.

www.avsforum.com

Velocd
07-06-2003, 01:13 AM
Wait for vB3 to come out, then install that version, because it's insant and wont affect server performance the least. ;)

David Bott
07-06-2003, 01:21 AM
LOL...and you are guessing I will go to Vb3 when it is out. That will be some time to come I fear for even after it is out, we will still wait to see what happens with the code for fear of major issues for large sites. (Thought I hear good things.)

Still very much like this hack. VERY MUCH needed.

chrisvonc
10-31-2003, 12:54 AM
Thank you for this hack. Installed well on my test forum, going to install it now on the live one.

Can some one tell me how I decrease the width of the button?

Thank you again! I too have a lot of people who dont use Search, hopefully this will cut that down.

Chris

chrisvonc
11-21-2003, 12:20 PM
Anyone know why this may stop working (finding similar topics) all of a sudden? I installed in on my local test forum, worked great. Installed it on my secure test forum, worked great. Installed it on my production forum worked great. Last week I started to notice repeat topics being posted when I knew there was almost identical pre-existing topics. Sure enough now its stopped finding them. This was one of the last hack I had installed. The only thing I recall doing recently to my forum was changind the default settings for deleting individual posts which really was not a hack.

Do I have to reindex something everynow and then for this to stay working? Any insights would be welcome.

Thanks,

Chris

subu1
11-21-2003, 06:04 PM
nice work thx.

i install it next time

greets Prankster

genau *g*

subu1
11-24-2003, 03:52 PM
wowwww, wonderfull, i love this Hack:-)))

greetz subu1

install on 2.2.8

chrisvonc
11-29-2003, 01:19 AM
Ok... I tried reinstalling the hack and no luck getting this working again.

Since I will not be upgrading to v3 the second it comes out, is there a way to modify this to use the Similar Thread code since that works all the time for me?

Thanks!

chrisvonc
12-06-2003, 10:10 PM
Anyone? I really would like to keep this hack.