Hello,
Could anyone help me to understanding or how can i do that the block "similar topics" only shows similar topics from current forum?
Example:
If i am reading a topic in the forum "General suport" the block "Similar topics" only show topics from the forum General suport, and not from all forums....
Thanks you.
SOLVED Similar Topic Only From Current Forum?
Subject: Re: Similar Topic Only From Current Forum?
There is no switch for this feature.
Currently the only way is edit the similar topics sql.
You can try something like this:
OPEN viewtopic.php
FIND
REPLACE WITH
Currently the only way is edit the similar topics sql.
You can try something like this:
OPEN viewtopic.php
FIND
if ($forums_auth_sql != '')
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
}
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
}
REPLACE WITH
Subject: Re: Similar Topic Only From Current Forum?
Thanks you very much for your help MG!!!!
Only a little correction: forums_id is forum_id and whit this run well.
OPEN viewtopic.php
FIND
REPLACE WITH
Now the similar topics is more similar.... :mrgreen:
Example:
http://www.portalanunciosgratis.com...rio-vt8068.html
Only a little correction: forums_id is forum_id and whit this run well.
OPEN viewtopic.php
FIND
if ($forums_auth_sql != '')
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
}
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
}
REPLACE WITH
if ($forums_auth_sql != '')
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forum_id . ') ';
}
{
$forums_auth_sql = ' AND t.forum_id IN (' . $forum_id . ') ';
}
Now the similar topics is more similar.... :mrgreen:
Example:
http://www.portalanunciosgratis.com...rio-vt8068.html
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.143s (PHP: 12% SQL: 88%)
SQL queries: 13 - Debug Off - GZIP Enabled