Related Topics

Started by niko, September 14, 2005, 11:50:29 AM

Previous topic - Next topic

lazanya

as "budun" told I have just edited it and install on RC3, not it works, you can see in the picture. edited file is attached to the message.


http://uploading.com/files/6d9c57ma/Related_Topics_1.4_Beta_3.zip/

codevarun

Hi Guys
I did the same and its not working ...
Though it installed successfully but as I told you if i run that file on the server directly I got some errors
(told in above post)
There might be some issue with the installed mods
which are
1.   Related Topics   1.4 Beta 3   [ Uninstall ]
2.   Curve_centered_menu   1.1   [ Uninstall ]
3.   Limit A Guests Daily PageViews Mod   2.1   [ Uninstall ]
4.   Welcome Topic Mod   2.1   [ Uninstall ]
5.   PM Notification Bar   2.0   [ Uninstall ]
6.   Hack's Park Shoutbox   2.0.2   [ Uninstall ]
7.   RSS Feed Icon   1.1   [ Uninstall ]
8.   Referrals Mod   2.2.7.2   [ Uninstall ]
9.   Blizzard WOW Quotes   1.1   [ Uninstall ]
10.   SMF Trader System   1.4.3   [ Uninstall ]
11.   SimplePortal   2.3.2   [ Uninstall ]
12.   Topic Solved   1.1   [ Uninstall ]
13.   MetaTags Modification   1.4   [ Uninstall ]
14.   AjaxChat Integration   3.2.1 (modified for SMF 2 RC3)   [ Uninstall ]
15.   Thank-O-Matic   2.0 RC2   [ Uninstall ]
16.   SA Shop   0.4.7   [ Uninstall ]
17.   eFloating Bar for Guest & Members   0.1   [ Uninstall ]
18.   Ad Managment   2.3.6.2   [ Uninstall ]
19.   Global Headers Footers   2.0   [ Uninstall ]
20.   Google Analytics Code   1.1   [ Uninstall ]
21.   SA FBConnect   0.1 Final   [ Uninstall ]
22.   Google Search Your Site   1.0.0   [ Uninstall ]
23.   Additional Home page Title | S-Ace   3.0   [ Uninstall ]
24.   AJAX Instant Quick Reply   1.0.3   [ Uninstall ]
25.   Sitemap   2.1.2   [ Uninstall ]
26.   Copyright & Footer Links | S-Ace   3.1   [ Uninstall ]
27.   Increase Number of Visitors (cheat)   1.0   [ Uninstall ]
28.   Yet Another Global Announcements Mod   2.7.3   [ Uninstall ]
29.   SMF Bay LITE   1.0.3   [ Uninstall ]

Pls guide me as soon as possible as I badly need this
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

Khurram Abbasi

thanks bundun due to your help, i  also successfully added Related Topic Mod to my forum...... ;D ;D ;D

niko

Related Topics 1.4 RC1 released with RC3 support! No other changes were made.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

steve51184

#504
Quote from: Niko on May 29, 2010, 12:59:38 PM
Related Topics 1.4 RC1 released with RC3 support! No other changes were made.
just tested this on rc2 and i'm trying to change the 'ignore boards option' and i get this error:

'The database value you're trying to insert does not exist: value'


also i don't see this anywhere (i made 2 topics with the same names and it doesn't show the others on topic view)

codevarun

Quote from: zx71 on May 29, 2010, 01:03:23 PM
Quote from: Niko on May 29, 2010, 12:59:38 PM
Related Topics 1.4 RC1 released with RC3 support! No other changes were made.
just tested this on rc2 and i'm trying to change the 'ignore boards option' and i get this error:

'The database value you're trying to insert does not exist: value'


also i don't see this anywhere (i made 2 topics with the same names and it doesn't show the others on topic view)

I was also having the same error in all the 3 sites of mine here how I fixed it ... it was actually with the default board that smf make during the installation.. .just make other board and delete the old board and during deletion it will ask you to move the topics under board to some other board and by this you will get it fixed....

PS: Just try to activate related topics one by one to detect that board having problem with..
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

~DS~

Quote from: zx71 on May 29, 2010, 01:03:23 PM
Quote from: Niko on May 29, 2010, 12:59:38 PM
Related Topics 1.4 RC1 released with RC3 support! No other changes were made.
just tested this on rc2 and i'm trying to change the 'ignore boards option' and i get this error:

'The database value you're trying to insert does not exist: value'
Same error I had, Niko.
Here's what shows in the error logs:
The database value you're trying to insert does not exist: value
Function: updateSettings
File: /home/*****/public_html/forum.com/Sources/Subs.php
Line: 610


2: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passedFile: /home/******/public_html/forum.com/Sources/RelatedTopics.php
Line: 119


8: Undefined index: ignored_boards
File: /home/*****/public_html/forum.com/Sources/RelatedTopics.php
Line: 119



"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Divaksh

thanx a lot... it helped me a lot... I luv it.

steve51184

so any fix for this yet?

Senkusha

Hi!  Great Mod!  It's about time there was a Related Topics mod for SMF 2

I have one issue though.  is there any way to filter out the topic pointing to the same topic you're already looking at?

Thanks!
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Alpay

Turkish Translate :


// Added by Related Topics
$txt['admin_related_topic'] = 'Benzer Konular';
$txt['admin_related_topics_information'] = 'Bilgiler';
$txt['admin_related_topics_settings'] = 'Ayarlar';
$txt['admin_related_topics_methods'] = 'Metodlar';

$txt['related_topics_admin_title'] = 'Benzer Konular';
$txt['related_topics_admin_desc'] = '';

$txt['related_latest_news'] = 'Son Yenilikler';
$txt['related_news_unable_to_connect'] = 'Bağlanamama hatası <a href="http://www.smfarcade.info">SMFArcade.info</a> ';
$txt['related_version_info'] = 'Versiyon Bilgisi';
$txt['related_installed_version'] = 'Kurulu Versiyon';
$txt['related_latest_version'] = 'En Son Versiyon';

$txt['related_topics_ignored_boards'] = 'Gözardı edilecek Bölümler';

$txt['related_topics_methods_title'] = 'Metodlar';
$txt['related_topics_methods'] = 'Lütfen Benzer Konu için Kullanacagınız Metodu seciniz <div class="smalltext">Yeniden yapılandırma için Index gereklidir.</div>';

$txt['related_topics_index'] = 'Index';
$txt['related_topics_rebuild'] = 'Yeniden Indexi yapılandır';
$txt['related_topics_rebuild_desc'] = 'Benzer konular için ön bellek hazırlar bu değişim';

$txt['relatedFulltext'] = 'Tam Metin';

$txt['related_topics_settings_title'] = 'Benzer Konular';
$txt['relatedTopicsEnabled'] = 'Benzer Konuları Aktif et';
$txt['relatedTopicsCount'] = 'Kaç adet benzer konu başlığı gözüksün ?';

$txt['no_methods_selected'] = 'Hangi yöntemi kullanacagınızı seçmediniz';

$txt['related_topics'] = 'Benzer Konular';
// END Added by Related Topics

PurpleCrow

I've installed this but its not showing at all (I've enabled it and checked the boxes for the forums), I'm using SMF 2.0 RC3 with a custom theme.

Here's a link to a random thread: http://thewitchespath.com/index.php?topic=298.msg1823#new

Edit: Just checked and it doesnt work on any theme, I did use the rebuild index thing but it made no difference
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

SallyM

Quote from: PurpleCrow on June 15, 2010, 01:47:23 PM
I've installed this but its not showing at all (I've enabled it and checked the boxes for the forums), I'm using SMF 2.0 RC3 with a custom theme.

Here's a link to a random thread: http://thewitchespath.com/index.php?topic=298.msg1823#new

Edit: Just checked and it doesnt work on any theme, I did use the rebuild index thing but it made no difference

I'm having the same problem. Did you manage to fix this?

PurpleCrow

Quote from: SallyM on June 19, 2010, 12:16:31 AM
Quote from: PurpleCrow on June 15, 2010, 01:47:23 PM
I've installed this but its not showing at all (I've enabled it and checked the boxes for the forums), I'm using SMF 2.0 RC3 with a custom theme.

Here's a link to a random thread: http://thewitchespath.com/index.php?topic=298.msg1823#new

Edit: Just checked and it doesnt work on any theme, I did use the rebuild index thing but it made no difference

I'm having the same problem. Did you manage to fix this?

I think (dont quote me on it LOL) that the mod will only add topics to the "Related TOpics" bit if it thinks there are any relevent topics about. Some threads dont have anything, some have a couple of threads there.
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

mkress

I get following error:
Table 'smf_related_subjects' doesn't exist
Datei:   C:\inetpub\vhosts\windows-phone.info\httpdocs\forum\Sources\Subs-RelatedFulltext.php
Zeile:   78


when I click on rebuild index - it's a new installation on 2.0 rc 3

SAFAD

nice mod there
here is the arabic translation
// Added by Related Topics
$txt['admin_related_topic'] = 'مواضيع مشابهة';
$txt['admin_related_topics_information'] = 'معلومات';
$txt['admin_related_topics_settings'] = 'خصائص';
$txt['admin_related_topics_methods'] = 'طرق';

$txt['related_topics_admin_title'] = 'مواضيع مشابهة';
$txt['related_topics_admin_desc'] = '';

$txt['related_latest_news'] = 'آخر الأخبار';
$txt['related_news_unable_to_connect'] = 'لم نستطع الإتصال ب <a href="http://www.smfarcade.info">SMFArcade.info</a> من أجل الحصول على آخر الأخبار';
$txt['related_version_info'] = 'معلومات النسخة';
$txt['related_installed_version'] = 'النسخة المثبتة';
$txt['related_latest_version'] = 'آخر نسخة';

$txt['related_topics_settings_title'] = 'مواضيع مشابهة';

$txt['related_topics_methods_title'] = 'طرق';
$txt['related_topics_methods'] = 'إختر الطرق التي يتم جلب المواضيع المشابهة عبرها<div class="smalltext">إعادة إنشاء الفهرس بعد تعديل هذا الخيار إجباري</div>';

$txt['related_topics_index'] = 'الفهرس';
$txt['related_topics_rebuild'] = 'إعادة إنشاء الفهرس';
$txt['related_topics_rebuild_desc'] = 'إستعمل هذا الخيار بعد تعديل الخصائص أو تحديث التخزين المؤقت';

$txt['relatedFulltext'] = 'Fulltext';

$txt['relatedTopicsEnabled'] = 'تفعيل المواضيع المشابهة';
$txt['relatedTopicsCount'] = 'عدد المواضيع التي يتم عرضها';
$txt['relatedIgnoredboards'] = 'المنتديات التي يتم تجاهلها<div class="smalltext">إفصل بين كل منتدى بفاصلة (,)</div>';

$txt['no_methods_selected'] = 'لم تقم بإختيار أي طريقة التي يتم جلب المواضيع المشابهة بها';

$txt['related_topics'] = 'المواضيع المشابهة';
// END Added by Related Topics

if you can
please add the translation and the SmfArabic team's copyrights in readme
thank you
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

danielseeksGod


Kermit

For the ones,who would like to colorize the usernames in related topics table

Only 1.1.x

./Sources/Subs-Related.php

Code (find) Select

$topics_ids = implode(',', $topics_ids);

$result = db_query("
SELECT
t.ID_TOPIC, t.numReplies, t.locked, t.numViews, t.isSticky, t.ID_POLL,


Code (replace) Select

$topics_ids = implode(',', $topics_ids);

$result = db_query("
SELECT
t.ID_TOPIC, t.numReplies, t.locked, t.numViews, t.isSticky, t.ID_POLL, mgf.ID_GROUP, mgf.onlineColor,
mgl.ID_GROUP AS lastID_GROUP, mgl.onlineColor AS lastOnlineColor,



Code (find) Select

LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)") . "
WHERE $user_info[query_see_board]


Code (replace) Select

LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)") . "
LEFT JOIN {$db_prefix}membergroups AS mgf ON (mgf.ID_GROUP = IF(memf.ID_GROUP = 0, memf.ID_POST_GROUP, memf.ID_GROUP))
LEFT JOIN {$db_prefix}membergroups AS mgl ON (mgl.ID_GROUP = IF(meml.ID_GROUP = 0, meml.ID_POST_GROUP, meml.ID_GROUP))
WHERE $user_info[query_see_board]



Code (find) Select

'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . $row['firstDisplayName'] . '</a>' : $row['firstDisplayName']
),


Code (replace) Select

'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => empty($row['firstID_MEMBER']) ? $row['firstDisplayName'] : (!empty($row['ID_GROUP']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '"><span style="color:'.$row['onlineColor'].'">' . $row['firstDisplayName'] . '</span></a>' : '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '">' . $row['firstDisplayName'] . '</a>')
),


Code (find) Select

'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'username' => $row['lastMemberName'],
'name' => $row['lastDisplayName'],
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => !empty($row['lastID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . $row['lastDisplayName'] . '</a>' : $row['lastDisplayName']
),


Code (replace) Select

'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'username' => $row['lastMemberName'],
'name' => $row['lastDisplayName'],
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => empty($row['lastID_MEMBER']) ? $row['lastDisplayName'] : (!empty($row['lastID_GROUP']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '"><span style="color:'.$row['lastOnlineColor'].'">' . $row['lastDisplayName'] . '</span></a>' : '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . $row['lastDisplayName'] . '</a>')

),

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Akyhne

Quote from: Delita Heiral on May 30, 2010, 01:29:10 PM
2: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passedFile: /home/******/public_html/forum.com/Sources/RelatedTopics.php
Line: 119

Got exact same error in a new forum.

venex

Quote from: Duncan85 on July 11, 2010, 05:02:47 AM
For the ones,who would like to colorize the usernames in related topics table

Only 1.1.x

./Sources/Subs-Related.php

Code (find) Select

$topics_ids = implode(',', $topics_ids);

$result = db_query("
SELECT
t.ID_TOPIC, t.numReplies, t.locked, t.numViews, t.isSticky, t.ID_POLL,


Code (replace) Select

$topics_ids = implode(',', $topics_ids);

$result = db_query("
SELECT
t.ID_TOPIC, t.numReplies, t.locked, t.numViews, t.isSticky, t.ID_POLL, mgf.ID_GROUP, mgf.onlineColor,
mgl.ID_GROUP AS lastID_GROUP, mgl.onlineColor AS lastOnlineColor,



Code (find) Select

LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)") . "
WHERE $user_info[query_see_board]


Code (replace) Select

LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)") . "
LEFT JOIN {$db_prefix}membergroups AS mgf ON (mgf.ID_GROUP = IF(memf.ID_GROUP = 0, memf.ID_POST_GROUP, memf.ID_GROUP))
LEFT JOIN {$db_prefix}membergroups AS mgl ON (mgl.ID_GROUP = IF(meml.ID_GROUP = 0, meml.ID_POST_GROUP, meml.ID_GROUP))
WHERE $user_info[query_see_board]



Code (find) Select

'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => !empty($row['firstID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstDisplayName'] . '">' . $row['firstDisplayName'] . '</a>' : $row['firstDisplayName']
),


Code (replace) Select

'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'username' => $row['firstMemberName'],
'name' => $row['firstDisplayName'],
'id' => $row['firstID_MEMBER'],
'href' => !empty($row['firstID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] : '',
'link' => empty($row['firstID_MEMBER']) ? $row['firstDisplayName'] : (!empty($row['ID_GROUP']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '"><span style="color:'.$row['onlineColor'].'">' . $row['firstDisplayName'] . '</span></a>' : '<a href="' . $scripturl . '?action=profile;u=' . $row['firstID_MEMBER'] . '">' . $row['firstDisplayName'] . '</a>')
),


Code (find) Select

'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'username' => $row['lastMemberName'],
'name' => $row['lastDisplayName'],
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => !empty($row['lastID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . $row['lastDisplayName'] . '</a>' : $row['lastDisplayName']
),


Code (replace) Select

'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'username' => $row['lastMemberName'],
'name' => $row['lastDisplayName'],
'id' => $row['lastID_MEMBER'],
'href' => !empty($row['lastID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] : '',
'link' => empty($row['lastID_MEMBER']) ? $row['lastDisplayName'] : (!empty($row['lastID_GROUP']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '"><span style="color:'.$row['lastOnlineColor'].'">' . $row['lastDisplayName'] . '</span></a>' : '<a href="' . $scripturl . '?action=profile;u=' . $row['lastID_MEMBER'] . '">' . $row['lastDisplayName'] . '</a>')

),


What do you mean colorize?

Advertisement: