Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on November 04, 2012, 02:07:37 PM

Title: Similar Topics
Post by: Bugo on November 04, 2012, 02:07:37 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3473)

This mod displays a list of similar topics at the bottom of current topic page and when creating new topic.

To change settings, go to Admin -> Modification Settings -> Similar Topics.

Using one icon from Soft Icons (http://www.softicons.com/free-icons) set.

This work is licensed under a CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/)

Russian support (https://dragomano.ru/mods/similar-topics)
Title: Re: Similar Topics
Post by: 4Kstore on November 04, 2012, 08:45:38 PM
This is a great idea... i check the mod in this days..
Thanks Bugo!
Title: Re: Similar Topics
Post by: mrintech on November 05, 2012, 03:05:08 AM
Thanks :)
Title: Re: Similar Topics
Post by: Dzonny on November 05, 2012, 05:13:45 AM
Looks great, using hooks, will try it :)
Title: Re: Similar Topics
Post by: Shambles on November 05, 2012, 05:15:55 AM
Yep - looks good, and definitely worth a look :)
Title: Re: Similar Topics
Post by: Gryzor on November 05, 2012, 06:34:33 AM
Working out of the box, very interesting!

One question: apart from setting the permissions in the mod's options, do we need to check anything else, permission-wise?
Title: Re: Similar Topics
Post by: Bugo on November 05, 2012, 07:49:05 AM
Yeah, there are 2 permissions for every group:
1) Viewing of similar topics list
2) Viewing of similar topics list when creating new topic
Title: Re: Similar Topics
Post by: Gryzor on November 05, 2012, 07:52:42 AM
Yeah, there are 2 permissions for every group:
1) Viewing of similar topics list
2) Viewing of similar topics list when creating new topic

Yes, I saw that :) What I meant was, that's the only two things I need to check, right? Because other mods have permissions options in the mod preferences but you also need to go to the permissions section in Admin...
Title: Re: Similar Topics
Post by: Shambles on November 05, 2012, 07:54:29 AM
Yeah, there are 2 permissions for every group:
1) Viewing of similar topics list
2) Viewing of similar topics list when creating new topic
Thanks - I wasn't aware of that. Maybe you could highlight the fact that these new permissions exist and that they aren't set by default?

Mod looks (and behaves) superbly, cheers.
Title: Re: Similar Topics
Post by: Bugo on November 05, 2012, 08:02:59 AM
These permissions also available on mod's settings page (if it's not convenient for someone to go the permission section) :)
Title: Re: Similar Topics
Post by: akbora on November 05, 2012, 08:06:39 AM
I can not find the seting area at modification center of admin's page. I installed by manuel. Now I can not see nothing any similar topic? Permission area has not similar topic setting. Is there a problem with related topics?
Title: Re: Similar Topics
Post by: Shambles on November 05, 2012, 08:09:01 AM
These permissions also available on mod's settings page ...

So they are. Sorry.

The "Ignored Boards" is actually showing stuff from my Recycle Bin, despite me ticking the box to hide that board. It won't be showing for regular members I guess, as it's in my Admin section.
Title: Re: Similar Topics
Post by: Bugo on November 05, 2012, 08:15:28 AM
I can not find the seting area at modification center of admin's page. I installed by manuel. Now I can not see nothing any similar topic? Permission area has not similar topic setting. Is there a problem with related topics?
Quote
install.php
This file should be able to execute standalone.
hooks.php
This file should be able to execute standalone.

The "Ignored Boards" is actually showing stuff from my Recycle Bin, despite me ticking the box to hide that board. It won't be showing for regular members I guess, as it's in my Admin section.
Any topics from the Recycle Bin will be visible only to those who have access to this board.
Title: Re: Similar Topics
Post by: Shambles on November 05, 2012, 08:18:09 AM
Any topics from the Recycle Bin will be visible only to those who have access to this board.

Cool, but I ticked the box telling the mod to ignore that board.

Damned ticks; they never work
Title: Re: Similar Topics
Post by: Bugo on November 05, 2012, 11:09:08 AM
Version 0.3: some fixes (install, check of ignoring boards etc.)
Title: Re: Similar Topics
Post by: 4Kstore on November 05, 2012, 11:19:45 AM
Translate spanish_latin: http://www.simplemachines.org/community/index.php?topic=252307.msg3433754#msg3433754
Title: Re: Similar Topics
Post by: vicram10 on November 05, 2012, 01:10:05 PM
great mod... interesting
Title: Re: Similar Topics
Post by: akbora on November 05, 2012, 06:42:31 PM
Now with 0.3 version perfect installing perfect working perfect setting
Words don't come easy this mod is perfect thanks....
Title: Re: Similar Topics
Post by: BaghdadGhost on November 06, 2012, 01:50:21 AM
Hi Bugo,

I installed the mod and yet the feature where to show similar topics when creating new topic is not working correct. it just shows "Loading..."

is it suppose to show similar topics while writing new topic subject?
Title: Re: Similar Topics
Post by: Bugo on November 06, 2012, 03:15:31 AM
Did you try to type any subject and then put cursor into message field?
Title: Re: Similar Topics
Post by: BaghdadGhost on November 06, 2012, 03:18:06 AM
yes I did type a subject with common words that I know for sure it should work with. then I put some content just for testing, then tried to preview the topic, still nothing loading!
Title: Re: Similar Topics
Post by: available on November 06, 2012, 03:24:29 AM
Thank for sharing  ;D
Title: Re: Similar Topics
Post by: Bugo on November 06, 2012, 06:33:59 AM
yes I did type a subject with common words that I know for sure it should work with. then I put some content just for testing, then tried to preview the topic, still nothing loading!
Probably it's a jQuery conflict, with other scripts. Can you give me a test account on your forum?
Title: Re: Similar Topics
Post by: impreza on November 08, 2012, 11:03:20 AM
Such was looking for something, I used similar themes but this is even better. thanks to the great
Title: Re: Similar Topics
Post by: OCJ on November 09, 2012, 10:15:50 AM
Nice...

Would be interesting to know how you calculate similarity.
Title: Re: Similar Topics
Post by: Bugo on November 09, 2012, 10:48:59 AM
Trade secret :)
Title: Re: Similar Topics
Post by: French on November 11, 2012, 02:45:13 AM
Thanks Bugo......Very useful modification
Dutch Translation:
Code: [Select]
<?php

$txt
['similar_topics'] = 'Vergelijkbare Topics';
$txt['simtopics_desc'] = 'Hier kunt u de instellingen wijzigen in de Vergelijkbare Topics mod.';
$txt['simtopics_settings'] = 'Vergelijkbare Topics Mod Instellingen';
$txt['simtopics_num_topics'] = 'Maximaal te tonen Topics.';
$txt['simtopics_nt_desc'] = 'Stel in op 0 om mod uit te schakelen.';
$txt['simtopics_only_cur_board'] = 'Zoeken naar Vergelijkbare Topics alleen in het huidige board';
$txt['simtopics_ocb_desc'] = 'Uitschakelen om alle Boards te door zoeken.';
$txt['simtopics_ignored_boards'] = 'Negeer deze Boards';
$txt['simtopics_when_new_topic'] = 'Lijst weergeven van vergelijkbare Topics als er nieuw topic aangemaakt wordt';
$txt['simtopics_cache_int'] = 'Cache update interval';
$txt['simtopics_ci_post'] = 'sec.';
$txt['groups_view_simtopics'] = 'Permissie om lijst vergelijkbare Topics te bekijken';
$txt['groups_auto_simtopics'] = 'Toegang tot lijst vergelijkbare Topics wanneer er een nieuw onderwerp geplaatst wordt';

$txt['simtopics_no_result'] = 'Er is geen vergelijkbaar Topic.';
$txt['simtopics_no_subject'] = 'Geef een onderwerp in a.u.b..';

$txt['permissiongroup_simtopics'] = $txt['permissiongroup_simple_simtopics'] = $txt['similar_topics'];
$txt['permissionname_view_simtopics'] = 'Weergave vergelijkbare Topics lijst';
$txt['permissionhelp_view_simtopics'] = 'Permissie gebruikers om vergelijkbare Topics te bekijken.';
$txt['permissionname_auto_simtopics'] = 'Bekijk de lijst van vergelijkbare Topics wanneer een nieuw onderwerp wordt gepost';
$txt['permissionhelp_auto_simtopics'] = 'Wanneer gebruikers een nieuw onderwerp plaatsen zien ze een lijst van vergelijkbare Topics.';
Title: Re: Similar Topics
Post by: FrizzleFried on November 11, 2012, 11:49:28 AM
Great mod!  How can I move it ABOVE the Quick Reply rather than below?

Title: Re: Similar Topics
Post by: 1Chope on November 11, 2012, 03:37:01 PM
Not working in the Babylon Theme. Any help?
Title: Re: Similar Topics
Post by: Shambles on November 11, 2012, 03:52:01 PM
Not working in the Babylon Theme. Any help?
Did you enable it and set permissions for the topics to show to the members?
Title: Re: Similar Topics
Post by: Bugo on November 11, 2012, 10:24:40 PM
Not working in the Babylon Theme. Any help?
Update your SMF 2.0 RC4 to 2.0 Gold.
Title: Re: Similar Topics
Post by: 1Chope on November 13, 2012, 12:18:56 AM
Yes @ Shambles™
Ok I will @ Bugo
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on November 13, 2012, 11:27:14 AM
Great mod. I have been searching for such mod since my childhood ;). just two questions:
1- How to force the similar topics to open in new tabs of the browsers?
2- Is there a way to force the similar topics appear without clicking outside of the subject box?
Title: Re: Similar Topics
Post by: Bugo on November 13, 2012, 07:55:47 PM
1. If your mouse has a middle button, just use it for open any links in new tabs :)
2. Open /Themes/default/scripts/simtopics.js, find:
Code: [Select]
$("input[name=\"subject\"]").live("change", function(){and replace with:
Code: [Select]
$("input[name=\"subject\"]").live("keyup", function(){Then clean a browser's cache.
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on November 14, 2012, 04:32:07 AM
1. If your mouse has a middle button, just use it for open any links in new tabs :)
2. Open /Themes/default/scripts/simtopics.js, find:
Code: [Select]
$("input[name=\"subject\"]").live("change", function(){and replace with:
Code: [Select]
$("input[name=\"subject\"]").live("keyup", function(){Then clean a browser's cache.
Thank you so much for the solution. I wish this forum had a Thank you button.
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on November 15, 2012, 03:28:25 AM
I have been testing the mod for the last two days and I've come across the following problem:
The similar topics shown at the bottom of the topics page is precise and correct, but the similar topics shown at the time of creating a new topic isn't precise. Sometimes even the results is completely irrelevant (Unfortunately, my forum is in Persian, so I can't provide you with some screen shots).
So, is there a way to apply the showing method of the similar topics of the first case to the second case, too?
Title: Re: Similar Topics
Post by: Bugo on November 15, 2012, 07:33:48 AM
I'm working on it.
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on November 17, 2012, 03:59:34 AM
I'm working on it.
Just to thank you and let you know I'm intensively awaiting your response.
Title: Re: Similar Topics
Post by: ahrasis on November 18, 2012, 08:11:48 AM
Great mod. And very neat too. Will this work inside a block too?
Title: Re: Similar Topics
Post by: AdrianM on November 20, 2012, 04:57:06 PM
Indeed very nice mod  :)

Altho i have a litle problem same as was mentioned before, when creating a new topic with some words that are common it remains stucked on "Loading"
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on November 30, 2012, 02:58:00 AM
I have been testing the mod for the last two days and I've come across the following problem:
The similar topics shown at the bottom of the topics page is precise and correct, but the similar topics shown at the time of creating a new topic isn't precise. Sometimes even the results is completely irrelevant (Unfortunately, my forum is in Persian, so I can't provide you with some screen shots).
So, is there a way to apply the showing method of the similar topics of the first case to the second case, too?
I'm still awaiting any response to this issue :D
Thanks.
Title: Re: Similar Topics
Post by: FrizzleFried on November 30, 2012, 10:42:26 AM
I am liking this mod... even though I only use half of it (the new topic part doesn't appear on my modified Curve theme)... but I would really love to move the Similar Topics block up above the Quick Reply.   Currently the only options are above the post or below the quick reply.  Is there any chance I could get some help moving this block to between the post and the quick reply?  Thank you.
Title: Re: Similar Topics
Post by: Lazarevics on December 02, 2012, 05:28:04 PM
Hey!
I really like this plugin, but since I'm using this editor (http://www.simplemachines.org/community/index.php?topic=485483.0) does not work since then. (I guess because of the conflict jquery)

Is there any way to eliminate this error?
Prints to loading, but nothing happens...
Thank you!
Title: Re: Similar Topics
Post by: Bugo on December 02, 2012, 10:50:37 PM
Ask author of SCEditor mod about this problem.
Title: Re: Similar Topics
Post by: phantomm on December 03, 2012, 02:12:29 AM
I have both mods installed (SCEditor and Similar Topics) and there is no problem with it (editor was installed first, Similar Topics was added later).
Title: Re: Similar Topics
Post by: Lazarevics on December 03, 2012, 03:52:33 PM
I finally found the problem
the faulty plugin is not working because of the "nice tooltips (http://custom.simplemachines.org/mods/index.php?mod=2115)"

Unfortunately, despite removed, I think only a complete re-install solves the problem
Title: Re: Similar Topics
Post by: FrizzleFried on December 03, 2012, 04:56:30 PM
I finally found the problem
the faulty plugin is not working because of the "nice tooltips (http://custom.simplemachines.org/mods/index.php?mod=2115)"

Unfortunately, despite removed, I think only a complete re-install solves the problem

Now that is odd as I have both Nice Tooltips and this mod installed with no issue.
Title: Re: Similar Topics
Post by: spiros on December 28, 2012, 07:48:54 AM
Great idea and congratulations for your work. My 2 cents would be to display relevant titles when user is typing in subject area (like live search) and not display them after user has clicked away from subject area. And of course, open the similar topics in new window, so that user will not have to start again a topic.

Another idea is to make both options graphically more compact so that they blend in with the site and have an option to display similar topics when typing on subject only (now as an option is the opposite, display only below post as similar topics and do not display on subject).
Title: Re: Similar Topics
Post by: teos55 on January 11, 2013, 02:21:32 PM
smf 2.0.3  default thme curve  simple portal 2.3.5  similar topics 0.4


Thanks for this nice and neat mod.

Installed without erros bur have little problem with the language file.

Copied  simtopics.english.php  to  simtopics.mylanguage-utf8.php   only changed $txt['similar_topics']  to my language

still title i the topic is in english. 

cleared cache.

negative

copied simtopics.english.php  to  simtopics.mylanguage.php

negative ...


What is next ?
Title: Re: Similar Topics
Post by: Skaty on January 11, 2013, 03:05:14 PM
I finally found the problem
the faulty plugin is not working because of the "nice tooltips (http://custom.simplemachines.org/mods/index.php?mod=2115)"

Unfortunately, despite removed, I think only a complete re-install solves the problem

Mine is working with this.
Title: Re: Similar Topics
Post by: ApplianceJunk on January 12, 2013, 11:57:01 AM
Very nice, thanks!

How could I remove the number that is displayed for the number of topics shown?

Thanks again.
Title: Re: Similar Topics
Post by: ApplianceJunk on January 12, 2013, 12:02:09 PM
Thinks i found the answer to my own question. ;)

In SimTopics.template.php

Find and remove...

Code: [Select]
(', count($context['similar_topics']), ')
or is there more to it?

thanks,
Title: Re: Similar Topics
Post by: Bugo on January 12, 2013, 12:04:46 PM
You are perfectly right.
Title: Re: Similar Topics
Post by: ApplianceJunk on January 12, 2013, 12:07:50 PM
Awesome thanks!

I tried a similar mod sometime back and I don't recall just why but it did not work like I had hoped.
I have been playing around with your mod on our site for a few hours today and it seems to work perfect.

Thank you,
Title: Re: Similar Topics
Post by: Skaty on January 12, 2013, 11:55:17 PM
Hi Bugo, i have a couple errors in log section.

simtopics.php in line: 67

Code: [Select]
Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's%' OR m.subject LIKE '%Creed%' OR m.subject LIKE '%3%' OR m.subject LIKE '%Libe' at line 11
what should i do ?
Title: Re: Similar Topics
Post by: ApplianceJunk on January 13, 2013, 06:08:32 PM
Nice...

Would be interesting to know how you calculate similarity.


Trade secret :)

It seems to work very well how ever you do it.

Title: Re: Similar Topics
Post by: Arantor on January 13, 2013, 06:09:09 PM
Um, the mod's code will explain it... anyone who cares to examine the mod would be able to figure it out.
Title: Re: Similar Topics
Post by: ApplianceJunk on January 13, 2013, 06:12:42 PM
Search the code for trade secret, lol...
Title: Re: Similar Topics
Post by: akbora on January 13, 2013, 07:54:10 PM
I can  not uninstall it. Please help me...

Code: [Select]
Can't DROP 'subject'; check that column/key exists
Dosya: /home/xxxxxxi/public_html/Packages/temp/uninstall.php
Satır: 11

DROP INDEX subject ON smf_messages

I look at the smf_messages database this info doesn't exist. What can I do? Thanks
Title: Re: Similar Topics
Post by: teos55 on January 16, 2013, 06:40:46 AM
My quesiton is still valid.

http://www.simplemachines.org/community/index.php?topic=489947.msg3469057#msg3469057

has anyone tried with a different language set in ut8 and succeeded ?
Title: Re: Similar Topics
Post by: Skaty on January 16, 2013, 07:42:40 AM
My quesiton is still valid.

http://www.simplemachines.org/community/index.php?topic=489947.msg3469057#msg3469057

has anyone tried with a different language set in ut8 and succeeded ?

i did the translate over mods file, didn't create new files, you can try.
Title: Re: Similar Topics
Post by: teos55 on January 16, 2013, 07:48:17 AM
You're right. Thnanks for sharing.

  Modifiying simtopic.english.php with the local language text works, but is that a regular behaviour ? For me, it is just a circumvention.
Title: Re: Similar Topics
Post by: Bugo on January 16, 2013, 08:11:59 AM
Can you attach your translation?
Title: Re: Similar Topics
Post by: teos55 on January 16, 2013, 08:14:54 AM
Only modified the $txt['similar_topics'] for members.

attached
Title: Re: Similar Topics
Post by: Bugo on January 16, 2013, 04:59:15 PM
I need a full translation.
Title: Re: Similar Topics
Post by: Skaty on January 16, 2013, 05:07:29 PM
Hi Bugo, i have a couple errors in log section.

simtopics.php in line: 67

Code: [Select]
Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's%' OR m.subject LIKE '%Creed%' OR m.subject LIKE '%3%' OR m.subject LIKE '%Libe' at line 11
what should i do ?

i can translate turkish :)  but how about this issue ?

__


here it is

Code: [Select]
<?php

$txt
['similar_topics'] = 'Benzer Başlıklar';
$txt['simtopics_desc'] = 'Benzer Başlıklar eklenti ayarlarını buradan değiştirebilirsiniz.';
$txt['simtopics_settings'] = 'Benzer Başlıklar Eklenti Ayarları';
$txt['simtopics_num_topics'] = 'Gösterilecek maksimum başlık sayısı';
$txt['simtopics_nt_desc'] = 'Modu devre dışı bırakmak için 0 girin';
$txt['simtopics_only_cur_board'] = 'Benzer başlıkları aynı kategori içinde ara';
$txt['simtopics_ocb_desc'] = 'Tüm kategorilerde aranması için tıkı kaldırın';
$txt['simtopics_ignored_boards'] = 'Devre dışı bırakılacak kategoriler';
$txt['simtopics_when_new_topic'] = 'Yeni başlık oluştururken benzer başlıklar görüntülensin mi ?';
$txt['simtopics_on_display'] = 'Başlık içinde benzer başlıklar görüntülensin mi?';
$txt['simtopics_cache_int'] = 'Arabellek yenileme aralığı';
$txt['simtopics_ci_post'] = 'sn.';
$txt['groups_view_simtopics'] = 'Benzer başlık listesi için izinler';
$txt['groups_auto_simtopics'] = 'Yeni başlıklarda benzer başlıklara erişim';

$txt['simtopics_no_result'] = 'Benzer başlık bulunamadı.';
$txt['simtopics_no_subject'] = 'Açıklayıcı bir başlık girin.';

$txt['permissiongroup_simtopics'] = $txt['permissiongroup_simple_simtopics'] = $txt['similar_topics'];
$txt['permissionname_view_simtopics'] = 'Benzer başlık listesini görebilir';
$txt['permissionhelp_view_simtopics'] = 'Bu izin üyelerin benzer başlık listesini görebilmelerini sağlar.';
$txt['permissionname_auto_simtopics'] = 'Yeni başlık oluştururken benzer başlıklar görüntülenir';
$txt['permissionhelp_auto_simtopics'] = 'Üyeler bir başlık oluştururken girdikleri içeriğe göre benzer başlıklar görüntülenir.';

?>
Title: Re: Similar Topics
Post by: Bugo on January 16, 2013, 05:42:08 PM
You should to explain in what cases you have this error, on what pages (with link-examples) etc.

Please, attach a file with translation, in proper charset.
Title: Re: Similar Topics
Post by: Skaty on January 16, 2013, 07:48:20 PM
i delete the error logs, when it happens again i will notice you. thanks.
Title: Re: Similar Topics
Post by: Bugo on January 17, 2013, 02:49:35 AM
teos55, you missed a f symbol in filename. It should be SimTopics.turkish-utf8.php.
Title: Re: Similar Topics
Post by: teos55 on January 17, 2013, 03:03:25 AM
Shame on me ...  I'm so sorry kept you busy for this silly thing.
Thanks
Title: Re: Similar Topics
Post by: mariajames on January 17, 2013, 10:43:39 AM
the mods accept permissions options in the mod preferences but you as well charge to go to the permissions area in Admin
Title: Re: Similar Topics
Post by: Skaty on January 21, 2013, 12:01:53 PM
it stopped working when creating new topics. no reaction whatever i write.  i didn't do any changes but stop working any idea ?

reinstall and install again but still the same.
Title: Re: Similar Topics
Post by: Shambles on January 22, 2013, 12:07:58 PM
Quote from: Skaty
Hi Bugo, i have a couple errors in log section.

simtopics.php in line: 67

Code: [Select]
Database error:
You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 's%'
OR m.subject LIKE '%Creed%' OR m.subject LIKE '%3%' OR m.subject LIKE '%Libe' at line 11

what should i do ?

I've noticed this when an apostrophe is used in the topic title - it upsets the DB query string. I can live with the errors - they don't occur that often...
Title: Re: Similar Topics
Post by: Bugo on January 22, 2013, 12:26:51 PM
Good. Open simtopics.php (in the root of your forum), find
Code: [Select]
$where .= ($k == 1 ? "" : " OR ") . "m.subject LIKE '%" . $query[$i] . "%'";and replace with:
Code: [Select]
$where .= ($k == 1 ? "" : " OR ") . "m.subject LIKE '%" . mysql_real_escape_string($query[$i]) . "%'";
Title: Re: Similar Topics
Post by: Shambles on January 22, 2013, 12:59:53 PM
^-- yes that resolves that issue. Thanks Bugo :)
Title: Re: Similar Topics
Post by: Skaty on January 22, 2013, 04:24:14 PM
Thank you Bugo.   i have no idea why stop working when create topic, this feature was so helpful /:
Title: Re: Similar Topics
Post by: Bugo on January 22, 2013, 06:41:28 PM
Meet the new version: some bug fixes, turkish translation, new option (see settings).
Title: Re: Similar Topics
Post by: BaghdadGhost on January 22, 2013, 11:31:57 PM
yes I did type a subject with common words that I know for sure it should work with. then I put some content just for testing, then tried to preview the topic, still nothing loading!
Probably it's a jQuery conflict, with other scripts. Can you give me a test account on your forum?

Hi Bugo,

I sent you a testing account on PM. I don't know if you had a chance to check my problem?

by the way, I installed the new version already and the same issue still exist!


thanks
Title: Re: Similar Topics
Post by: Bugo on January 23, 2013, 04:21:51 AM
I think it's a jQuery conflict. There's a code in your code:
Code: [Select]
<script type="text/javascript" src="http://ahalna.com/Themes/default/scripts/jquery-1.3.2.min.js"></script>Try remove it.
Title: Re: Similar Topics
Post by: Shambles on January 23, 2013, 06:07:30 AM
Meet the new version: some bug fixes, turkish translation, new option (see settings).

Thanks.

Since I installed the new version I notice my Recycle Board is being pulled into the search/display, despite the code saying this

Code: [Select]
if (!empty($modSettings['recycle_board']))
$ignore_boards[] = $modSettings['recycle_board'];

Interestingly, my Recycle Board doesn't appear in the list of boards to ignore now :(


KUTGW tho ;)
Title: Re: Similar Topics
Post by: Bugo on January 23, 2013, 07:26:38 AM
Wonderful. Use this updated file.
Title: Re: Similar Topics
Post by: Shambles on January 23, 2013, 08:29:35 AM
Wonderful. Use this updated file.

Used, with thanks :)

Recycle board no longer features in topic display.
Title: Re: Similar Topics
Post by: ApplianceJunk on January 23, 2013, 04:38:25 PM
Wonderful. Use this updated file.

Is this file now included in the lasted update of the mod?

Do I need to uninstall the old version of the mod before installing the new version?

Thanks,
Title: Re: Similar Topics
Post by: Shambles on January 23, 2013, 05:04:27 PM
Hey AJ

Looking at the last modified time of the official mod download I'd say the replacement file in reply #80 is not included.

And yes, you'll need to uninstall your existing version.
Title: Re: Similar Topics
Post by: Mick. on January 23, 2013, 05:41:17 PM
Awesome, i just chopped the template to suit my needs. ;)
Title: Re: Similar Topics
Post by: BaghdadGhost on January 23, 2013, 11:13:31 PM
I think it's a jQuery conflict. There's a code in your code:
Code: [Select]
<script type="text/javascript" src="http://ahalna.com/Themes/default/scripts/jquery-1.3.2.min.js"></script>Try remove it.

this script was related to PM Informer mod. I uninstalled it. before it just used to say loading when creating new topic, now it changed to (Type subject please.) but it still does not give any similar topics when I type subject. I tried different term in both Arabic and English language and it still does not work.

any Idea?

thank you
Title: Re: Similar Topics
Post by: Bugo on January 24, 2013, 12:37:16 AM
About the latest version of jQuery, 1.9.0: some functions are removed and don't work anymore. Try to open simtopics.js, find ".live" and replace with ".on".
Title: Re: Similar Topics
Post by: BaghdadGhost on January 24, 2013, 12:42:26 AM
About the latest version of jQuery, 1.9.0: some functions are removed and don't work anymore. Try to open simtopics.js, find ".live" and replace with ".on".

Now its working.

Thanks a lot man.

Title: Re: Similar Topics
Post by: Skaty on January 24, 2013, 07:19:00 AM
I think it's a jQuery conflict. There's a code in your code:
Code: [Select]
<script type="text/javascript" src="http://ahalna.com/Themes/default/scripts/jquery-1.3.2.min.js"></script>Try remove it.

this script was related to PM Informer mod. I uninstalled it. before it just used to say loading when creating new topic, now it changed to (Type subject please.) but it still does not give any similar topics when I type subject. I tried different term in both Arabic and English language and it still does not work.

any Idea?

thank you

Same problem. live -> on  solution didn't word for me. should i uninstall the pm informer ?
Title: Re: Similar Topics
Post by: Bugo on January 24, 2013, 09:14:55 AM
Try one trick. Open index.template.php, find
Code: [Select]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>and replace with
Code: [Select]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript">window.jQuery || document.write(unescape(\'%3Cscript src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"%3E%3C/script%3E\'))</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>
Title: Re: Similar Topics
Post by: Skaty on January 24, 2013, 09:44:53 AM
Still don't work.
Title: Re: Similar Topics
Post by: Bugo on January 24, 2013, 03:57:31 PM
Well, look for other mods that use jQuery (old versions) and fix them.
Title: Re: Similar Topics
Post by: Vahid‎‎ ‎Damanafshan on January 25, 2013, 06:01:54 AM
I have been testing the mod for the last two days and I've come across the following problem:
The similar topics shown at the bottom of the topics page is precise and correct, but the similar topics shown at the time of creating a new topic isn't precise. Sometimes even the results is completely irrelevant (Unfortunately, my forum is in Persian, so I can't provide you with some screen shots).
So, is there a way to apply the showing method of the similar topics of the first case to the second case, too?
My problem above is still open. Bugo, could you please provide me with a solution to this problem?
Title: Re: Similar Topics
Post by: maarawoe on January 28, 2013, 01:58:06 PM
My install failed on:

Database Error
ERROR: syntax error at or near "FROM"
LINE 1: SHOW INDEX FROM smf_messages WHERE key_name LIKE "subject"
^
File: /web/htdocs2/gamestickersnet/home/www/Packages/temp/install.php
Line: 11

Could anyone urgently help please? SMF 2.0.3 pgsql
Title: Re: Similar Topics
Post by: maarawoe on January 28, 2013, 02:21:50 PM
the fulltext index seems to be a problem on pgsql... :(


resolved..... this mod is not working on pgsql :(
Title: Re: Similar Topics
Post by: Arantor on January 28, 2013, 03:00:36 PM
Nope, PGSQL does not support the features. To use this mod you'll need to switch to MySQL.

The mod's author ideally should add a tagline that this requires MySQL.
Title: Re: Similar Topics
Post by: maarawoe on January 28, 2013, 03:02:09 PM
is there any easy and free way how to convert the postgresql dump to mysql?
I have been trying to find something but no luck :(
Title: Re: Similar Topics
Post by: Werldklass on January 29, 2013, 01:55:10 AM
your mod is perfect idea. Thanks.
Title: Re: Similar Topics
Post by: Skaty on January 29, 2013, 06:30:01 AM
One of my mods prevent to work this mod in creating post (jQuery).  How can i find wich is this ? Should i uninstalled and test or there is a method for this (i have a lot of custom mods so uninstalling is last option for me).
Title: Re: Similar Topics
Post by: heartbreakers on January 29, 2013, 11:01:29 AM
It suddenly stopped working for me on my Mac. Members that use Windows noticed that it stopped working too. It works on my iPhone though. I don't know why it would randomly stop.
Title: Re: Similar Topics
Post by: videoed on February 05, 2013, 04:12:59 PM
Hi,

I'm very interested in this mod and I'm currently trying it. But I'm facing some issues that I'm wondering if they could be overcome. First, I'm reaching 500,000 posts in my forum, so I'm using a Sphinx index for the searches instead of the default MySQL indexes. So my fist question, or request, is to be able to use Sphinx in order to minimize the impact of this mod in my database.

Also, I've found that most of the time old posts are shown instead of other much more recent. They are "related", yes, but I'm also wondering if you could somehow change the weight of different search criteria such as if the search words are included in the title, number of posts in a thread, date and so on.

It's an amazing mod; but I'm missing some important features in order to be able to actually use it.

Thanks so much for reading.

Bests,
Title: Re: Similar Topics
Post by: spiros on February 05, 2013, 04:26:38 PM
Yes, I am on a similar boat with a forum of over 500,000 posts and I am guessing that this mod would slowly it down big time and this is the last thing I want.

By the way, how did you install Sphinx? I am trying to find someone who could do it for me.
Title: Re: Similar Topics
Post by: videoed on February 05, 2013, 04:35:23 PM
By the way, how did you install Sphinx? I am trying to find someone who could do it for me.

Actually I'm trying to fix it... I was running Sphinx 0.9.9. A couple of days ago I installed this Similar Topic mod and tried to upgrade to Sphinx 2.0.4 and... everything broke... I've just disable Similar Topics and I'm trying to reinstall Sphinx. I'll let you know if manage to get it running back.

Bests,
Title: Re: Similar Topics
Post by: Jorge_CS_ on February 11, 2013, 11:47:38 AM
1) My forum language is spanish, so we use áéíóú etc, in topic display there is no problem, but when I start a new topic I get "null" on those topics using special chars.

Attached you can find an image.

2) Is it possible to order similar topics from date and descending?

Thank you!
Title: Re: Similar Topics
Post by: Bugo on February 12, 2013, 12:18:18 PM
@videoed, I never worked with Sphinx.
@Jorge_CS_, 1) Please post a link to your forum. 2) In the future versions, just wait.
Title: Re: Similar Topics
Post by: spiros on February 13, 2013, 07:56:03 AM
videoed, perhaps you could use Sphinx for search and MySQL index for Similar Topics. I am not the one to ask though about how this could be done.
Title: Re: Similar Topics
Post by: Mr. Pedram on February 16, 2013, 06:48:35 AM
Hi Bugo,
today this mod not working anymore.. stuck in loading...
what's the problem do you think? Probably it's a jQuery conflict, but i can't figure it out, somehow, i remove all jQuery form other MOD, but it didn't works!



no one for support!?
i even installed new version, but still not working
Title: Re: Similar Topics
Post by: Gryzor on February 21, 2013, 03:20:11 AM
New version uploaded, but no changelog?
Title: Re: Similar Topics
Post by: Bugo on February 22, 2013, 11:22:15 AM
What do you want from me? I don't read the tea-leaves. Probably it's a jQuery conflict... or probably no. Who knows? I have no access to your forum, I have no test account for testing.
Title: Re: Similar Topics
Post by: Mr. Pedram on February 22, 2013, 05:57:04 PM
What do you want from me? I don't read the tea-leaves. Probably it's a jQuery conflict... or probably no. Who knows? I have no access to your forum, I have no test account for testing.

I Have no idea why you speak like this? for what?!
you created a mod, this topic created for support this mod, and you should support your mod, isn't it? if you can't, mention it!
it's very hard to help others?!

if you can't support and speak with respect do not make a MOD!

i dunno what you need for fix this, test account, link to our froum or etc..
everyday people ask repetitious questions, no one should be angry or inattention to their questions! this forum created for support everything related to SMF, right?


ok , we didn't search?
we didn't attention to past replies? ok, make a quote! and don't speak like this with people!


i tell you:


Quote
Probably it's a jQuery conflict, but i can't figure it out, somehow, i remove all jQuery form other MOD, but it didn't works!


This is kinda disrespect!
there's no need to your coercive help anymore!
Title: Re: Similar Topics
Post by: FrizzleFried on February 22, 2013, 06:37:57 PM
What do you want from me? I don't read the tea-leaves. Probably it's a jQuery conflict... or probably no. Who knows? I have no access to your forum, I have no test account for testing.

I Have no idea why you speak like this? for what?!
you created a mod, this topic created for support this mod, and you should support your mod, isn't it? if you can't, mention it!
it's very hard to help others?!

if you can't support and speak with respect do not make a MOD!

i dunno what you need for fix this, test account, link to our froum or etc..
everyday people ask repetitious questions, no one should be angry or inattention to their questions! this forum created for support everything related to SMF, right?


ok , we didn't search?
we didn't attention to past replies? ok, make a quote! and don't speak like this with people!


i tell you:


Quote
Probably it's a jQuery conflict, but i can't figure it out, somehow, i remove all jQuery form other MOD, but it didn't works!


This is kinda disrespect!
there's no need to your coercive help anymore!

(1) Bugo isn't making any money off this mod.

(2) Bugo made this mod and contributed it voluntarily.

(3) Bugo has no obligation to help anyone.  You.  Me.  Anyone.  He has no obligation to even release mods.  He does so voluntarily out of kindness and the love for the community.

(4) It's bad attitudes like yours that drive people away from making free mods.  If you paid for it,  I would be on your side.  You didn't.  You got it free.  If it doesn't work and you find the support lacking.  DO NOT USE THE MOD.  Simple as that.
Title: Re: Similar Topics
Post by: Mr. Pedram on February 22, 2013, 06:51:04 PM
(5) if Bugo can't or dosen't want to help, shouldn't speak tough!! and don't make reply!

you right but he could say "i can't help" not speak like this!

What do you want from me? I don't read the tea-leaves.

;)

did i force him to help?
no..
Title: Re: Similar Topics
Post by: FrizzleFried on February 22, 2013, 08:10:23 PM
(5) if Bugo can't or dosen't want to help, shouldn't speak tough!! and don't make reply!

you right but he could say "i can't help" not speak like this!

What do you want from me? I don't read the tea-leaves.

;)

did i force him to help?
no..

I think there are some language issues going on here.  Bugo is Russian (IIRC)... I am not sure what your native tongue is.

Bottom line is that it's not cool to attack someone who's contributing to the community freely and without out strings.    If you paid for a service,  I could understand your anger.  You didn't.   You got something for free.  If it doesn't work for you... and when you ask for help you get little or none... your options are limited to fixing the issue yourself,  hiring someone else to fix the issues,  or remove the mod.

There is no shame in offering up some money for help with an issue you can't get resolved through the free channels.
Title: Re: Similar Topics
Post by: Bugo on February 22, 2013, 11:13:09 PM
I think there are some language issues going on here.  Bugo is Russian (IIRC)... I am not sure what your native tongue is.
+1

I challenge no money for this mod. And I can't get a word out of someone who has any problems. To make inquiries about a problem, one should write at least the following:
1) All details about problem (what, where, when etc., Error Log etc.)
2) Test account on your forum.
Title: Re: Similar Topics
Post by: Mr. Pedram on February 23, 2013, 04:16:49 AM
@FrizzleFried

For last time i say again:

I didn't make him or anybody to help me for solve this issue, never.
i just requested help like all people, without discontent (please see my prev posts!)
after many days, i asked question: no one to support?
i means all members, not only bugo.
and when he replied, i saw a tough reply! no language and money ant etc is our matter! it's was clear what he said, it dosen't matter, but don't forget, he never, and shouldn't speak to people like this, if couldn't help and dosen't want to help, okay, no problem, don't reply!

if someone didn't know whats he need to fix the problem, he shouldn't act like this, should speak with politeness, and let us know whats will need.

i've help people here sometimes, if i can. like others, shouldn't have money expectation!

he helped others befor, but the funny matter is when i request help he refused!
nevermind!

i believe, when someone create something, should handle this! THIS IN NOT FORCING HIM TO HELP!

end of the story
Title: Re: Similar Topics
Post by: FrizzleFried on February 23, 2013, 10:37:20 AM
I think i am just going to chalk this up to a language barrier...  I think Mr. Pedram is taking something Bugo said a little too literal/serious but again,  I think it's a language thing... on one or both.

Anyway,  if you want the support you're looking for Bugo,  it seems,  would still be happy to help out if you provided the two bits of info he asks for in his last response above.

Good luck.
Title: Re: Similar Topics
Post by: Skaty on March 04, 2013, 06:28:25 AM
Hi Bugo,
today this mod not working anymore.. stuck in loading...
what's the problem do you think? Probably it's a jQuery conflict, but i can't figure it out, somehow, i remove all jQuery form other MOD, but it didn't works!


Same problem here. it's just stop before months. so my solution for me is ''don't use this function''  :)
Title: Re: Similar Topics
Post by: Skaty on March 04, 2013, 11:16:36 AM
Well i maked a copy of my forum today and try to install mods step by step and find which one is broking this feature of similar topic.

tested about 90 mods and these are definetly broke this feature:

- Minimun Characters or Words Mod 1.1.2
- Automatic Index 2.4


i keep continue to trying and after 2 mods (not in the list) it stopped again and i uninstall this last 2 mods but can't make it work.  then i gave up, still can't use it :D
Title: Re: Similar Topics
Post by: davejo on March 07, 2013, 03:42:24 PM
Great mod Bugo.

I can confirm that this mod and the 'Glossary' mod have a conflict with one another. I have disabled the glossary at the moment as no one seems to use it anyway.

This is for info in case someone gets the permanent '....loading' situation and they also have the glossary installed.
Title: Re: Similar Topics
Post by: Gryzor on March 07, 2013, 03:47:02 PM
Too bad; had no idea about the Glossary mod, but it looks really useful!
Title: Re: Similar Topics
Post by: johnpaul2k2 on March 08, 2013, 01:26:29 AM
i tried this mod yesterday and it's working just fine.
but some people are complaining about the mod , not working again, glossary and stuff like that

please i will like to use this especially while writing a post. it will help me to link with other previous post of mine  :D

my question is, will it stop working oneday cos some Great person are already complaining ??
thanks
Title: Re: Similar Topics
Post by: Bugo on March 08, 2013, 03:08:45 AM
As far as I know, Glossary mod (http://custom.simplemachines.org/mods/index.php?mod=1525) compatible only with SMF 2.0 RC1. Or are you using other, more new version of that mod?
Title: Re: Similar Topics
Post by: davejo on March 08, 2013, 03:49:46 AM
As far as I know, Glossary mod (http://custom.simplemachines.org/mods/index.php?mod=1525) compatible only with SMF 2.0 RC1. Or are you using other, more new version of that mod?

Nope I'm using the original Bugo, but as it has been installed for a long time I thought it worth telling others that the two are not compatible...your mod works perfectly so there is nothing wrong with that and the glossary works OK too but the two will not work together.

Maybe that could be a project for someone to update the glossary :)
Title: Re: Similar Topics
Post by: johnpaul2k2 on March 08, 2013, 04:48:14 AM
i am using 2.0.4 and it's working fine.

do i still need the glossary stuff??
Title: Re: Similar Topics
Post by: davejo on March 08, 2013, 08:45:48 AM
i am using 2.0.4 and it's working fine.

do i still need the glossary stuff??

The 'Glossary' is an aditional mod that can be downloaded and installed via the 'Modifications' section here
Code: [Select]
http://custom.simplemachines.org/mods/index.php?mod=1525
It is not a part of any standard SMF installation and you would not want it unless you felt you had a need for it.

If you haven't installed it then you will not have any problem with the 'Similar Topics' mod.

I was only bringing it to peoples attention to avoid the possible conflict.

To help rule out some of the questions of compatability below are the mods I have on my site and the 'Similar Topics' works correctly:

1.   PM to New Members   1.2
2.   Disable 'last edit by...' for Administrators   1.8
3.   Downloads System Pro   2.1.9
4.   Hide Tag Special   3.0     
5.   Thank-o-matic   3.0     
6.   Project Snow 1.2   1.2     
7.   Aeva Media   1.4w     
8.   Mobile Device Detect   0.2.2     
9.   Childboards as Dropdown   2.0.3     
10.   Users mass actions   0.1.1     
11.   PostLimit   1.0     
12.   New Topic Button   1.0     
13.   Similar Topics   0.6     
14.   Images On Board   3.0     
15.   Membergroup Prefixes   1.1     
16.   SimplePortal   2.3.5     
17.   Ad Managment   3.0.1     
18.   Highlight Unread Topics   2.0     
19.   geoIP Location   1.1.1     
20.   Highslide 4 SMF   0.7a     
21.   SMFPacks Shoutbox   1.0.3     
22.   Hide the content of {code} tags from guests   1.1     
23.   Happy Birthday   0.2.2 
24.   SMF 2.0.3 Update   1.0     
25.   InformationBar   1.0 
26.   InLine Attachments   1.2     
27.   Holiday/Sunday Color Red   1.0.1
28.   Welcome Topic Mod   2.1     
29.   Separate the sticky topics   1.0.0 
30.   EU cookie law   0.1.2     
31.   Add Social Media Icons To Profiles   1.0.3 
32.   Quick Spoiler   0.9.2     
33.   Hide Membergroup Titles   1.0    
34.   SMF 2.0.4 Update   1.0     
35.   Users Online Today   2.0     
36.   Custom Greeting Mod   1.1.1     
37.   Advanced Topic Prefix Mod   3.0.1     
38.   SimpleColorizer   1.1     
39.   Drafts   1.1.2

There are times when I think it would be easier to keep my mouth shut
Title: Re: Similar Topics
Post by: Gryzor on March 08, 2013, 08:47:24 AM
Hahaha I'm getting older, had to copy/paste that text to read it :D

In any case, a good job you did there, dajevo!
Title: Re: Similar Topics
Post by: Bugo on March 08, 2013, 04:29:23 PM
Glossary mod uses jQuery 1.3.2. Similar Topics uses the latest version (1.9.1). Just think :)
Title: Re: Similar Topics
Post by: johnpaul2k2 on March 08, 2013, 04:47:51 PM
you are the boss!!
Glossary mod uses jQuery 1.3.2. Similar Topics uses the latest version (1.9.1). Just think :)

i once requested for mod that will help me build auto link which i havn't till today but i think this mod will save my butt because it does similar.

the sweetest thing is while typing your subject, you will be seeing similar post with exact keywords. since i have been linking my posts with other similar thousands of my previous post

thanks alot
Title: Re: Similar Topics
Post by: sanax on March 11, 2013, 05:14:17 PM
Great mod! Any way I can move the 'similar topic' results above the 'Page 1' link in the Display.template.php? I would like to have it right below the actual message.
Title: Re: Similar Topics
Post by: The QE2 Story Forum on April 14, 2013, 09:44:02 AM
Working perfectly, thanks!

I had to turn off the feature for using it during new topic creation, as it was flashing and flickering as it updated while i typed the subject, I think it looked really unprofessional.

Title: Re: Similar Topics
Post by: mehrtadbir on April 28, 2013, 03:39:01 PM
Hello

Similar Topics worked until yesterday

When we create a topic

This massage display :
in progress ...  and does not search

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs4.picofile.com%2Ffile%2F7743398488%2Fsimilar_topics.jpg&hash=3f5870b93a04684d5aed30d94455d364)

Title: Re: Similar Topics
Post by: Mr. Pedram on April 28, 2013, 04:06:07 PM
Hello

Similar Topics worked until yesterday

When we create a topic

This massage display :
in progress ...  and does not search

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs4.picofile.com%2Ffile%2F7743398488%2Fsimilar_topics.jpg&hash=3f5870b93a04684d5aed30d94455d364)



Hello,
a jquery conflict probably! read prev posts, might help you out!

"Agar post haye ghabl ro bekhoonid motevajeh mishid ke sazandeye in mod khodesh hanoz nemidone in moshkel ro chetori hal kone, in moshkel baraye man ham pish omad ke dar natije majbor shodam mod ro uninstall konam."

Title: Re: Similar Topics
Post by: mehrtadbir on April 28, 2013, 04:32:48 PM
ok  very thanks Mr. pedram

But I hope that this problem will soon be solved
Title: Re: Similar Topics
Post by: Werldklass on May 15, 2013, 01:31:25 PM
Please help me. This mod doesn't work for me.

I use SMF 2.0.4 and no mod. Install this mod on package manager.

This is my settings.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupic.me%2Fi%2Fs3%2F1ian1.png&hash=301ef8e61d94e43e0a5f289f18406ac9)


This is my topics.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupic.me%2Fi%2Fpj%2F6qcy2.png&hash=f95dbd8819678029ccf1242b2c846109)

and it's can display list of similar topics when creating new topic.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupic.me%2Fi%2Fxw%2Fp1qq3.png&hash=037e2168544244d15a49861ca170f2a5)

but can't display list of similar topics inside these topics.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupic.me%2Fi%2Fva%2Fmepn4.png&hash=89aee82da138707e2f1894149f8092f0)

Please help me what I wrong. Thank you very much.
Title: Re: Similar Topics
Post by: TheListener on May 15, 2013, 01:40:26 PM
Werldklass please use smaller images or use the attachments feature in future posts.

Quote
This mod doesn't work for me

How doesn't it work?

Any errors in your error log?
Title: Re: Similar Topics
Post by: davejo on May 15, 2013, 02:47:15 PM
Please help me. This mod doesn't work for me.

Change your settings to match mine and see if it works for you as this works for me.

Title: Re: Similar Topics
Post by: Werldklass on May 15, 2013, 02:56:50 PM
Werldklass please use smaller images or use the attachments feature in future posts.

Quote
This mod doesn't work for me

How doesn't it work?

Any errors in your error log?

Please read it again.

Alright, I will answer you.

Q: How doesn't it work?
A: it's can display list of similar topics when creating new topic but can't display list of similar topics inside these topics.

Q: Error Logs?
A: Noooo.

Thanks so much.
Title: Re: Similar Topics
Post by: Werldklass on May 15, 2013, 03:00:37 PM
Please help me. This mod doesn't work for me.

Change your settings to match mine and see if it works for you as this works for me.

Thanks davejo but it's doesn't work.
Title: Re: Similar Topics
Post by: DEEPSNUYB on May 25, 2013, 02:20:37 AM
I am using the latest version of SMF and I am getting this error

Can't find FULLTEXT index matching the column list
File: /var/www/vhosts/domain.com/httpdocs/Sources/Subs-SimTopics.php
Line: 136

Yes I did build the index

   Fulltext index
    Index: already created [remove fulltext index]
    Size: 37 KB

What am I missing here.   Thanks.
Title: Re: Similar Topics
Post by: Arantor on May 26, 2013, 03:36:15 PM
Wrong index.

This mod should set up its own fulltext index, not the same one as used for the main search facility.
Title: Re: Similar Topics
Post by: DEEPSNUYB on June 02, 2013, 04:35:20 AM
So what is the answer.  We're not as all smart as you.
Title: Re: Similar Topics
Post by: johnpaul2k2 on June 21, 2013, 03:03:13 AM
how can i get similar post working on my wap2?
Title: Re: Similar Topics
Post by: wolfetundra on August 14, 2013, 04:37:58 PM
I really like this MOD but I cannot get it to work on my custom theme (Bad Company 3). It loads just fine on Curve. I'm running 2.0.4 with the following mods;

Mod Name   Version   
1.   Similar Topics   0.6
2.   Ad Managment   3.1a
3.   Signature Option Post   1.1.1
4.   Send Pm On X Posts   1.0
5.   Send Pm When Rank Change   1.0
6.   Referrals System   3.1
7.   Reason For Delete   1.0
8.   Rank Image Drop Down   1.0
9.   Month User By Smfsimple.com   V1
10.   Posting_Announcement   2.0
11.   SA Chat   RC3 Rev63
12.   Tapatalk SMF 2.0 RC5/Final Plugin   3.7.2
13.   Treasury   2.12
14.   Post Unapproval   1.1.4
15.   Alert   v.1.0   
16.   Admin Notepad   2.0.2
17.   Bad Behavior mod   1.5.17
18.   Downloads System   2.0a   
19.   Default_Membergroup   2.0

When I load it up I see
Similar topics
Loading...

Regardless of what I put in the subject or the body, nothing loads. It works perfectly on Core or Curve.
Title: Re: Similar Topics
Post by: Bugo on August 20, 2013, 01:18:19 AM
Open /your_theme_folder/index.template.php, find and remove this line:
Code: [Select]
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery-1.4.2.min.js"></script>
Title: Re: Similar Topics
Post by: wolfetundra on August 21, 2013, 02:36:39 PM
Thank you! Wonderful!!
Title: Re: Similar Topics
Post by: ScrumpyJack on September 08, 2013, 05:21:28 AM
Open /your_theme_folder/index.template.php, find and remove this line:
Code: [Select]
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery-1.4.2.min.js"></script>

Hi Bugo,

I'm also having the 'loading' issue with the mod.

I am using the Firox multicolor theme, but can't find this line of code in my index.template.php.

Do you have any idea why it might not be working for me please?

I do have quite a lot of custom mods installed, so perhaps there are some jquery conflicts somewhere.

Thanks

:)
Title: Re: Similar Topics
Post by: Bugo on September 08, 2013, 11:27:27 PM
so perhaps there are some jquery conflicts somewhere.
Title: Re: Similar Topics
Post by: JohnJohnson on September 18, 2013, 10:43:37 AM
Hello Bugo!

Your mods are great!
But I have same problem with Similar Topics as above.
I can see similar ones when creating new topic, but nothing is seen below "quick reply" on a topic page.
My existing forum uses only 4 mods:
Similar Topics
Optimus Brave
WYSIWYGQuickReply
SimpleAds

I also thought about jquery problem, but then I installed fresh smf 2.0.5 on denwer, installer russian utf-8 language and Similar Topics.
Then I started to create topics "Test 1", "Test 2", "Test 3"...
Nothing. I can see them while creating, but nothing below "quick reply" field.

Then I created search indexes (I thought it could make problem, no indexes), but still nothing.
So, again, fresh SMF 2.0.5 with Curve, only Similar Topics installed.
Topics can be seen on creating new topic page, but not below "quick reply" page.

Will appreciate any ideas.

P.s. Tried Firefox, Chrome, IE on Win 7.
Title: Re: Similar Topics
Post by: Bugo on September 18, 2013, 11:56:57 PM
Screenshot of mod's settings, please.
Title: Re: Similar Topics
Post by: JohnJohnson on September 19, 2013, 01:52:32 AM
Here it is. Two from working forum, one from fresh test installation.
Title: Re: Similar Topics
Post by: Bugo on September 19, 2013, 04:24:54 AM
Очистите папку cache и попробуйте Интервал обновления кэша установить в 0. А затем создать еще несколько похожих тем.
А если настроить вывод списка в верхней части — работает?
Title: Re: Similar Topics
Post by: Shambles on September 19, 2013, 04:58:38 AM
Очистите папку cache и попробуйте Интервал обновления кэша установить в 0. А затем создать еще несколько похожих тем.
А если настроить вывод списка в верхней части — работает?

That's a little unfair on those of us following this topic, who don't speak the lingo  :-\
Title: Re: Similar Topics
Post by: JohnJohnson on September 19, 2013, 05:25:22 AM
It worked! Thanks Bugo!
I did it on local wamp, not on production site yet.
But it worked here, so should work there too.

Don't worry guys, I will translate. I think it can solve problems of many people here.
Quote
Clear cache and try to change cache interval to 0 (means in mod's settings). Then create some topics with similar titles again. Does it work if switch to "above topic" display?

I did not switch to "above topic", but this Bugo's instruction helped on local wamp server.
Title: Re: Similar Topics
Post by: Neo_TE on October 26, 2013, 01:14:10 AM
I opened a thread in SMF 2.x support board, http://www.simplemachines.org/community/index.php?topic=513234, for the following error and it looks like that the database version error can be ignored as posted by the SMF devs. And I think similar topic mod was throwing this error and thought of posting it here. Thanks.




Quote
So I tried to add a new membergroup and got this error.

Quote
Database Error

Duplicate entry '11-auto_simtopics' for key 'PRIMARY'
File: Sources/ManageMembergroups.php
Line: 447

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.6, while your database is at version 2.0.4. The above error might possibly go away if you execute the latest version of upgrade.php.


SMF version is 2.0.6!
Title: Re: Similar Topics
Post by: Bugo on October 27, 2013, 08:41:17 AM
Is there any indexes in your {prefix}messages table?
Title: Re: Similar Topics
Post by: Arkino on November 01, 2013, 04:34:26 PM
Hello there.

Thanks for this amazing mod but I have problems with showing similar topics on above and below topic. It does NOT show.

1. I changed "Cache update interval" to "0"
2. I went to "Empty the file cache"
3. I created 3 topics with similar titles and it did not work

And also I have done this too:

1. I have changed above to below topic and it did not work

I leave a screen shot of my set up. Please any help wpuld be great. Thanks
Title: Re: Similar Topics
Post by: Bugo on November 01, 2013, 04:50:58 PM
Any links to these topics?
Title: Re: Similar Topics
Post by: Arkino on November 01, 2013, 05:01:20 PM
Any links to these topics?

Here you are:

http://edited.com

I have changed to default theme, I was hoping that it may work on the default theme but it did not.

My mods:

1.    Additional Instant Messengers
2.    More Spiders    1.2
3.    Member Color Link
4.    reCAPTCHA for SMF
5.    Auto Merge Double Post    
6.    New Topic Button
7.    Tidy Child Boards
8.    Ad Managment
9.    Enhanced Dropdown
10.    Spoiler Tag
11.    nCode Image Resizer
12.    Users Online Today
13.    Related Topics
14.    Spiders Don't Increase Topic Views
15.    Pretty URLs
16.    cbi 1.0
17.    Similar Topics    0.6

and also i will leave my current set up.

Please, any help would be great. I want this mod to show up after "Quick Reply"
Title: Re: Similar Topics
Post by: Bugo on November 01, 2013, 11:09:09 PM
Did you try to reinstall the mod?
Also, I would be happy to receive a test account on your forum.
Title: Re: Similar Topics
Post by: Arkino on November 01, 2013, 11:11:21 PM
Did you try to reinstall the mod?
Also, I would be happy to receive a test account on your forum.


Hi, thanks for replying.

I already re-install the mod and it did not work.

Do you want me to send the information for PM (test user)? and also i can give you TeamViewer if you want.
Title: Re: Similar Topics
Post by: Realinfo on November 24, 2013, 04:07:13 AM
any way to have similar topic by Simple Portal Block like SSI method?
Title: Re: Similar Topics
Post by: phantomm on November 28, 2013, 01:13:33 PM
From some time in logs I have this errors:
Code: [Select]
http://**.info/forum/simtopics.php
Wrong value type sent to the database. Integer expected. (current_board)
File: simtopics.php
Line: 70

but on line 70 I see only this:
Code: [Select]
);SMF 2.0.6
Similar Topics 0.6
how to fix this?
Title: Re: Similar Topics
Post by: Arantor on November 28, 2013, 01:14:33 PM
What's on lines 60-70?

(The error is flagged up as the last line of a query.)
Title: Re: Similar Topics
Post by: phantomm on November 28, 2013, 01:17:43 PM
there's this database query before it:
Code: [Select]
$result = $smcFunc['db_query']('', "
SELECT DISTINCT t.id_topic, t.id_board, t.is_sticky, t.locked, t.id_member_started as id_author, t.num_replies, t.num_views, b.name as bname,
mf.icon, mf.poster_name as author, mf.subject
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}topics AS t ON t.id_topic = m.id_topic
LEFT JOIN {db_prefix}boards AS b ON b.id_board = t.id_board
LEFT JOIN {db_prefix}messages AS mf ON mf.id_msg = t.id_first_msg
WHERE m.approved = {int:is_active}" . (!empty($modSettings['simtopics_only_cur_board']) ? '
AND t.id_board = {int:current_board}' : '') . (!empty($ignore_boards) ? '
AND b.id_board NOT IN ({array_int:ignore_boards})' : '') . "
AND {query_wanna_see_board}
AND {query_see_board}
AND (" . $where . ")
LIMIT {int:limit}",
array(
'is_active' => 1,
'current_board' => $board,
'ignore_boards' => !empty($ignore_boards) ? $ignore_boards : null,
'limit' => !empty($modSettings['simtopics_num_topics']) ? $modSettings['simtopics_num_topics'] : 5
)
);

$topics = array();
while ($topic = $smcFunc['db_fetch_assoc']($result))
$topics[$topic['id_topic']] = $topic;

$smcFunc['db_free_result']($result);

$output['topics'] = count($topics) == 0 ? false : $topics;
}

echo json_encode($output);

?>
Title: Re: Similar Topics
Post by: Yoss on January 24, 2014, 12:16:44 PM
1) My forum language is spanish, so we use áéíóú etc, in topic display there is no problem, but when I start a new topic I get "null" on those topics using special chars.

Attached you can find an image.
[/quote]

i love this mod but i have same problem here  :'( Can we expect for a new release soon?

Thank you Bugo!
Title: Re: Similar Topics
Post by: Kimmie on June 15, 2014, 07:42:35 PM
Will this be updated for 2.07?
Title: Re: Similar Topics
Post by: Shambles on June 16, 2014, 05:01:47 AM
Quote
Will this be updated for 2.07?

Works fine on that version.
Title: Re: Similar Topics
Post by: Kimmie on August 20, 2014, 02:13:06 PM
I am seeing a problem. it isn't looking though the thread titles correctly. Example:

2 threads with similar titles = the 1st two words of the title are the same but the rest is different. I go into one of those threads, but it doesn't show the other one under similar topics.

It appears to be looking for the words in a random order and only looking for individual words. Having it look from left to right would be the solution. It would also be helpfu if it looks for the entire title first - possibly.


Another issue I found: When creating a new thread, I tried a word that was the first word in several topics and it didn't show any of those. It shows 5 that are unrelated.

What do I need to do to fix this? Thanks.
Title: Re: Similar Topics
Post by: Bob Perry of Web Presence Consulting on January 18, 2015, 01:54:54 AM
I want to use this for 2.1... and as an encouraging side note to the author, I'm guessing that it's only going to take just minor tweaking to be 100% with 2.1, just attempted to install on 2.1 production site and the pre-test had 0 errors! Unusual for this point in the transition process... Watching the logs for a minute reveals only one error thus far, though it is a show stopper should be easy to fix...

error= "The callable simtopics_actions could not be called."  I get this on another module too and I'll track down the author on that too later... heads up man you could be ahead of the competition a bit by fixing this asap

[edit]
Duh, just looked again, the reason there's no errors is that there is very little editing happening... open mouth insert foot yet again... never the less, only one minor little glitch is still VERY cool
Title: Re: Similar Topics
Post by: Portugal on March 17, 2016, 03:02:04 PM
That MOD works on 2.0.11?? Its reliable and dont use lots of resources of database (if dont slow down my forum)??

Thanks in advance
Title: Re: Similar Topics
Post by: MULITRI on March 01, 2017, 01:23:54 PM
I have the same problem as ScrumpyJack, it doesn't load in my themed forum, with v2.0.13 version and Anecdota Theme.

I neither can find that line of code, and after clear the cache and follow all Bugo's instructions, still doesn't appears the Similar Topics block anywhere, so after reading others with the same problem and no solution, i'm guessing is realted with the Theme we're using.

I've had the same load problem with a similar Mod, so it can assure me the issue is related with our Theme, and as i can't change theme after the long modding work unfortunately i will have to dessist to use this feature. It's a big shame because Bugo's Mod is awesome, and install perfectly, so maybe in based default themes.

Thanks anyway for your work with this great feature Bugo... Regards
Title: Re: Similar Topics
Post by: Replikacep on October 29, 2017, 02:53:57 PM
The used table type doesn't support FULLTEXT indexes
Dosya: /home/retr/public_html/Packages/temp/install.php
Satır: 20

table  species   MyISAM  supports

table  species  InnoDB   does not support

smf_messages  does not support   
smf 2.1 beta 3 

beta 3 table type  InnoDB  mod is actually incompatible   mod must be updated

Code: [Select]
if ($smcFunc['db_num_rows']($request) == 0)
$smcFunc['db_query']('', '
ALTER TABLE {db_prefix}messages
ADD FULLTEXT st_idx_subject (subject)',
array()
);
Title: Re: Similar Topics
Post by: jack208 on July 01, 2018, 05:44:30 AM
Just installed this mod on my ver 2.0.15 board, and it works fine as intended. I can see the list of similar topics under the message page. However some strange issues for Bugo's attention. The mod is actually working ok in my board; just need to workaround the issues below.

1) The permission settings within the Mod's Configure Page (ie under Admin > Configuration > Similar Topics) do not work. I can change the settings to "Allow", save the changes.. and the mod is still not switched on for the membergroup.

When I go into the Membergroup's Permission page, under the section "Similar Topics", I noticed both permission items are still set to "Disallow". If I now make the changes - in Membergroup Permission - for these two items to "Allow", ah.. the mod is now switched on for this membergroup and I can see the list of similar topics underneath the message.

so this seems to indicate updating permissions from the Mod Config Page is not working on my board. The workaround is to use the Membergroup Permission page itself to do this.

2) Now a strange issue. After making the changes via Membergroup Permission page (above) and getting the mod to work, if I look at the Mod Config Page, the permissions for the updated membergroups are strangely changed to "Disallow" (X). But the mod is working (ie showing the list of similar topics) for these membergroups. It's just the page showing "X" instead of "A".

See attached file - Config Page Perm
- I've just updated both Similar Topics permission items for these two group (Regular Members, BGC Members) via Membergroup Permission to "Allow", save the changes and in the Mod Config Page, they are marked as "X". The mod is working for these two membergroups so that tells me the permission settings are correct but somehow not displaying correctly in the Mod Config Page?
- note Guests is left as default "X"; didn't make any change to this membergroup since installing this mod

3) The last issue is regarding the list of two new permission items under Membergroup Permission page
- see attached screenshot "MemberGroup Perm"
- you can see under the section "Similar Topics", there are two permission line items but with empty description? I presume they are "Permission to view" and "Access to list on new post" but somehow my board lost the description
- they still work.. I can set them to Allow (or Disallow) and the mod works accordingly

If Bugo is still active here and wants to look closer at the issues, I can arrange test acct and access etc.
Title: Re: Similar Topics
Post by: Bugo on July 01, 2018, 12:52:03 PM
It's a very good bug, thank you :)
I have updated the mod.
Title: Re: Similar Topics
Post by: jack208 on July 01, 2018, 05:59:28 PM
Thanks Bugo. Ver 0.8.1 have fixed all the issues I mentioned above.

 8)
Title: Re: Similar Topics
Post by: mattizzy on August 28, 2018, 01:11:02 AM
Please What determines the similar topics position. I want to change the position to after the first message
Title: Re: Similar Topics
Post by: EthanR on September 04, 2018, 09:24:23 PM
Working nicely thanks  :) Is there any use in options for tweaking the matching options? For example match 1, 2 or more words in the topic?
Title: Re: Similar Topics
Post by: mattizzy on September 05, 2018, 07:41:33 PM
Nice Mod Bro, Please how can I manually change the similar topics position. I don't like where it appears both top and button. I prefer it appears after the first post.
Title: Re: Similar Topics
Post by: spiros on February 11, 2019, 04:00:09 PM
I am testing it on Sphinx on a big board (0,5 m. topics) and it seems to have trouble to get the right topic titles. I.e. i may try a topic title that exists, but it will not be displayed (unless it is getting its data from the old full text search index). Any ideas about that?
Title: Re: Similar Topics
Post by: Bugo on February 12, 2019, 12:15:42 AM
Sorry, I did not work with Sphinx and such large boards.
Title: Re: Similar Topics
Post by: njtweb on March 25, 2019, 11:00:19 AM
What are the determining factors for this mod to find "similar" topics? Does it search titles, subject matter content? I started using it and it seems it kind of randomly picks anything and not necessarily similar at all.
Title: Re: Similar Topics
Post by: Replikacep on April 13, 2019, 02:13:40 AM
I suggest you review this topic  :   https://www.simplemachines.org/community/index.php?topic=567121.msg4015806#msg4015806

Update required mode
Title: Re: Similar Topics
Post by: Bugo on April 13, 2019, 05:39:02 AM
Thank you for your report. I have updated the mod.
Title: Re: Similar Topics
Post by: maximus23 on April 15, 2019, 01:24:04 PM
Hi Bugo,

French translation for 2.1 and 2.0.

:)
Title: Re: Similar Topics
Post by: Study Force on April 15, 2019, 07:51:15 PM
I noticed you don't use an index to find the similar topics. Are you planning on adding that functionality in 2.1?
Title: Re: Similar Topics
Post by: Bugo on April 16, 2019, 03:18:54 AM
@maximus23, big thanks! I'll add your translations into next update.
@Study Force, do you mean checkTopicsOnPost() function?
Title: Re: Similar Topics
Post by: Study Force on April 16, 2019, 02:11:24 PM
What's the indexing method used to find the similar topics? Does the mod build an index?
Title: Re: Similar Topics
Post by: Hatshepsut on May 14, 2019, 07:49:37 AM
When I'm installing this mod on SMF 2.1 RC2, I get error message:

Database Error
The used table type doesn't support FULLTEXT indexes
File: /home/bulataka/public_html/test/Packages/temp/install.php
Line: 19


Details:

Forum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MySQL
MySQLi version: 5.5.62-cll
PHP: 7.2.17 (more detailed)
Server version: Apache
Title: Re: Similar Topics
Post by: vbgamer45 on May 14, 2019, 01:29:05 PM
Probably because the tables are InnoDB
Title: Re: Similar Topics
Post by: pokeronline on May 19, 2019, 02:58:26 PM
What's the indexing method used to find the similar topics? Does the mod build an index? we are web owner at poker online