Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Similar Topic Only From Current Forum? 
 
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.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
Code: [Download] [Hide] [Select]
        if ($forums_auth_sql != '')
        {
            $forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
        }

REPLACE WITH
Code: [Download] [Hide] [Select]
        $forums_auth_sql = ' AND t.forum_id = ' . $forums_id . ' ';

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
Code: [Download] [Hide] [Select]
if ($forums_auth_sql != '')
        {
            $forums_auth_sql = ' AND t.forum_id IN (' . $forums_auth_sql . ') ';
        }

REPLACE WITH
Code: [Download] [Hide] [Select]
if ($forums_auth_sql != '')
        {
            $forums_auth_sql = ' AND t.forum_id IN (' . $forum_id . ') ';
        }



Now the similar topics is more similar....

Example:
http://www.portalanunciosgratis.com...rio-vt8068.html
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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


  

 

  cron