News:

Wondering if this will always be free?  See why free is better.

Main Menu

Related Topics

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

Previous topic - Next topic

L.G.S

Probably have a big chance of nothing appearing at all.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Laibeus Lord

Curious, any chance to use the "Custom Index" instead??

Thanks!


niko

Quote from: Laibeus Lord on December 09, 2006, 06:41:28 AM
Curious, any chance to use the "Custom Index" instead??

Thanks!



I don't think so. It would require whole different start point.
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

lupus

Quote from: Niko on December 05, 2006, 04:07:39 PM

see Display.template.php and find related it should be at bottom.

For different themes just get code from messageindex and replace

foreach ($context['topics'] as $topic) with $context['related'] as $topic edit header and footer so it works put whole code in if (count($context['related']) > 0)
{
... code ...
}



Sorry where should i be looking for this bit??  Here's the bottam bit of my Display.template.php.  What should i be adding and where??

function theme_show_mod_buttons()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

        $moderationButtons = array();

        if ($context['can_move'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_move.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';
        if ($context['can_delete'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_rem.gif" alt="' . $txt[63] . '" border="0" />' : $txt[63]) . '</a>';
        if ($context['can_lock'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';
        if ($context['can_sticky'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
        if ($context['can_merge'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/merge.gif" alt="' . $txt['smf252'] . '" border="0" />' : $txt['smf252']) . '</a>';
        if ($context['can_remove_poll'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';

        if ($context['calendar_post'])
                $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';

        if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
      $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" />' : '<a href="javascript:document.forms.quickModForm.submit();" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';

        return implode($context['menu_separator'], $moderationButtons);
}

?>



IKShadow

Working perfectly for me on 1.1 final with several mods installed:

Mod Name  Version 
1. Ad Managment 2.0 [ Uninstall ] [ List Files ] [ Delete ]
2. cbi, 1.0 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Gender On Registration 1.0 [ Uninstall ] [ List Files ] [ Delete ]
4. Member posts recount 0.5 [ Uninstall ] [ List Files ] [ Delete ]
5. Reg Bar 1.0 [ Uninstall ] [ List Files ] [ Delete ]
6. Seo 4 SMF 0.2 [ Uninstall ] [ List Files ] [ Delete ]
7. Simple Blog 1.4.1 [ Uninstall ] [ List Files ] [ Delete ]
8. Spoiler Tag 0.3.0 [ Uninstall ] [ List Files ] [ Delete ]
9. Related Topics 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]


The only think Iam missing is Related topic text.

I can see window filled with related topics but above it, I would need some txt so users would know that bellow are related topics.

If someone could tell me where to add it I would realy appriciate it.
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

L.G.S

So when are my related topics going to appear.. it's been over a week now
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Mazeman

Quote from: L.G.S on December 12, 2006, 02:08:19 PM
So when are my related topics going to appear.. it's been over a week now
I'm wondering the same thing...
Marko Kaartinen

niko

Quote from: IKShadow on December 12, 2006, 01:42:58 PM
The only think Iam missing is Related topic text.

I can see window filled with related topics but above it, I would need some txt so users would know that bellow are related topics.

If someone could tell me where to add it I would realy appriciate it.

Will fix this to new version but you can just add

(i didn't test this)

<tr>
<td class="titlebg" colspan="7">Related topics</td>
</tr>


Quote from: Mazeman on December 12, 2006, 02:23:06 PM
Quote from: L.G.S on December 12, 2006, 02:08:19 PM
So when are my related topics going to appear.. it's been over a week now
I'm wondering the same thing...

Like I said there needs to be posts that have few same words that are not usual (in 50% messages/subjects).
This cannot be affected by me, its MySQL thing.
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

L.G.S

Well what can we do to change it.. why cant we have an admin panel which we can select a % of the same topic to show or something.. I tried the IPB mod for this and it starts straight away.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


IKShadow

#149
hehe we would realy need some expanation how this FTI related thing works.

I dont belive we can set % how much related topic should be to show.

My forum is quite new ( Idid not transfer 150K of posts and 1.5K of users from the old phpbb one, we needed one fresh start ) but related topics worked immediately , and I have only 2K of posts and 100 users now.

I guess the problems you have its completly MYSQL FTI related, try to do manual FTI QUERY for related topics thingy. ( dunno sql statement, but someone will post it )

Is there a limit how many related topics will show, I dont want after few months to have list of 50 topics bellow.

p.s. Niko: The Related Topic text worked perfectly .
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

mgaidia

would this mod work with a non english forum correctly
im using french

IKShadow

Quote from: mgaidia on December 16, 2006, 07:40:38 PM
would this mod work with a non english forum correctly
im using french

off course , its uses mysql full text index function that looks for similar words.

p.s. Iam using it on non english forum.
Installed:
SMF 1.1
Gender On Registration 1.0
cbi, 0.5
Spoiler Tag
Reg Bar   1.0
Simple Blog 1.4.1

Patxi

Hi

I´m very interested in this mod and installed it first locally and then on my webserver. Unfortunately it doesen´t work on both.

I have at both servers SMF 1.1 with approx. 2900 topic and 27000 posts.
DB is mysql. Server Version: 4.1.21-standard
the table type is MyISAM, and the collation is "latin1_swedish_ci" (I don´t know why - tried to convert it to UTF-8, but made problems with äöü and recent topic function did not work also)

I tried it with the standard theme (english) and with my adapted customized theme (english & german).

I was not quite sure if I have to switch before installing to the "fulltext search" and create an index (it´s a creation only on the "subject" i have seen). but then the index is created 2 times and the DB is quite large.

or

if I have to leave it on "no index", install the mod. during installation, an index on "subject" and "body" is created.

with both versions I have had no luck.
I was wondering, why for the standard fulltext search creates only an index on the "subject" but works with the body text as well!?

=> is there a way to test the query manually e.g. in phpmyadmin?

this mod seems really quite interesting, but if it doesn´t work....hmm

=> what can be the reason/problem?

thanks for infos and help,

Patxi

Enc0der

will it work on forums with the "Custom index" method ?

Laibeus Lord

Quote from: Enc0der on December 22, 2006, 07:37:09 AM
will it work on forums with the "Custom index" method ?


Maybe not, coz when my other forum was setup to the other two options, the mod was looking for the full text index function, so I ended up with 2 indexes.  I decided to delete the one I'm not going to use in favor of the full-text index, since this is what the mod is looking for.

But then again I am not sure, that's just what I noticed.

wudzzy

great mod , i just install it on my forum , the installation is ok , but the mod doesn't works , is it possible to install it manually ?

p.s.
sorry for my english.

L.G.S

The mod probably will never show up then..
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


mgaidia

it will work automatically, you dont need to cofigure anything

L.G.S

Been just about a month for me, still nothing. Don't expect it to come if its going to take this long..
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


wudzzy

#159
mod installed fine but it doesn't show related topics , what i should fix ? should i enable it from admin cp ?

Advertisement: