Related Topics

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

Previous topic - Next topic

sharks

Did you update the package xml file to enable it to install on 1.1.12?

perfec2

How would I do that  sharks?


Neo_TE

Works properly in RC5. To get this mod to work in SMF 2.0 RC4/RC5 do the following edits in the "package-info.xml" file.

Find :
<install for="2.0 RC3">

Replace With :
<install for="2.0 RC3, 2.0 RC4, 2.0 RC5">



Find :
<uninstall for="2.0 RC3">

Replace With :
<uninstall for="2.0 RC3, 2.0 RC4, 2.0 RC5">

Spoogs

or just follow the link in the previous post for a simpler solution ;)

coolfx350

Getting this error.

QuoteTable 'mocheng_omnia.smf_related_subjects' doesn't exist
File: /home/mocheng/public_html/omnia/Sources/Subs-RelatedFulltext.php
Line: 72

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

when I tried to run http://www.mysite.com/related_topics.php

I got this
::)
Fatal error: Function name must be a string in /home/mocheng/public_html/omnia/related_topics.php on line 69

coolfx350

anyone got answers to this problem?  Thanks.

coolfx350


Arantor

The mod installer hasn't been updated since the changes to the database installation methods back in 2.0 RC2 or thereabouts... so it won't work until someone updates it.
Holder of controversial views, all of which my own.


RvG

Quote from: Arantor on March 06, 2011, 08:12:59 AM
The mod installer hasn't been updated since the changes to the database installation methods back in 2.0 RC2 or thereabouts... so it won't work until someone updates it.

sir, kindly request you to update at least the installation for rc4/5.

Arantor

Only the mod author can update it!
Holder of controversial views, all of which my own.


RvG

sorry, I didn't mean you to update it. Just requesting only the portion the needs to make it work... :(

Arantor

While I could tell you how to fix it, I can't update the master package which means you will have to download it, unpack it, modify a file, repack it and then upload it to your site... because only the mod's author can distribute the package - no-one else is even allowed to distribute the fixed installer file.
Holder of controversial views, all of which my own.


RvG

No prob. Fixed already :)
thanks for your support.

Sweetwater

This is a great mod... I'm another one waiting patiently for an upgrade to 2.0 RC5

Fingers crossed

Sweetwater

PLAYBOY

it doesnt installt it on rc5.

niko

Sorry that this mod has been overlooked but now there's version for 2.0 Gold :)

Theme has also been improved so it fits in curve.
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

TurtleKicker

Hey Niko... first of all, thanks for updating this for 2.0 gold. :)

I tried installing this on a virgin/clean SMF 2.0 test install (never was a RC or beta or 1.x) and am getting an error similar to coolfx350's earlier when I try to post a new thread:

Table 'xxxxxx.smf_related_subjects' doesn't exist
File: /xxxxxxxx/Sources/Subs-RelatedFulltext.php
Line: 109

imno007

Sorry, but I think this is bugged. I installed on a 2.0 board and it was causing big problems. When members would click on a topic, it was often taking them to another entirely different topic, maybe one by the same author. I've used this mod in the past and I'm pretty sure that's not the way it's supposed to work - the related topics should only show up at the bottom as recommendations, correct? ;)

Biology Forums

Could you make this mod so that it's compatible with SMF gallery. For instance, related topics based on the image's description. I tried putting it in the gallery_template.php, but it didn't work:


// Added by Related Topics
if (!empty($context['related_topics']) > 0)
{
echo '
<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">
<td colspan="7">', $txt['related_topics'], '</td>
</tr>
<tr>
<td width="9%" colspan="2" class="catbg3"></td>
<td class="catbg3">', $txt[70],'</td>
<td class="catbg3">', $txt[109],'</td>
<td class="catbg3">', $txt[110],'</td>
<td class="catbg3">', $txt[301],'</td>
<td class="catbg3">', $txt[111],'</td>
</tr>';

foreach ($context['related_topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));

echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="windowbg' , !empty($settings['seperate_sticky_lock']) && $topic['is_sticky'] ? '3' : '' , '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>';

if (!empty($settings['seperate_sticky_lock']))
echo '
' , $topic['is_locked'] ? '<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" id="lockicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '' , '
' , $topic['is_sticky'] ? '<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" id="stickyicon' . $topic['first_post']['id'] . '" style="margin: 0;" />' : '';

echo '
', $topic['is_sticky'] ? '<b>' : '' , '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</b>' : '';

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

echo '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small><br />
<small>', $topic['board_link'], '</small>
</td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '
</td>
<td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
', $topic['replies'], '
</td>
<td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
', $topic['views'], '
</td>
<td class="windowbg2" valign="middle" width="22%">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
<span class="smalltext">
', $topic['last_post']['time'], '<br />
', $txt[525], ' ', $topic['last_post']['member']['link'], '
</span>
</td>';

echo '
</tr>';

}

echo '
</table>
</div>';
}

Advertisement: