[RC1] Extended Similar topics

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
hrock
Registered User
Posts: 1
Joined: Wed Jan 02, 2008 1:02 am

Re: [RC1] Extended Similar topics

Post by hrock » Wed Jan 02, 2008 1:09 am

Hi Porutchik

Can i set similar topics that it doesnt result links with exact same title?

ex: Link 1 title: Hello
Link 2 title: Hello

I use "sort by revelant" 5 links
I would like that all 5 links have différent title

Can you help please?

Thanks and happy new year

RedStar79
Registered User
Posts: 7
Joined: Thu Apr 17, 2008 5:41 pm
Location: Asilmavi
Contact:

Re: [RC1] Extended Similar topics

Post by RedStar79 » Wed Jun 04, 2008 2:51 pm

similar topics addon colour group

idea?

thanks

User avatar
sascha26
Registered User
Posts: 5
Joined: Wed Jun 04, 2008 7:22 pm
Location: Germany
Contact:

Re: [RC1] Extended Similar topics

Post by sascha26 » Wed Jun 04, 2008 8:13 pm

hello RedStar79,
i think you can change this:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/similar_topics.php
# 
#-----[ FIND ]------------------------------------------ 
# 
$author_url = append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $similar['user_id']);
$author = ( $similar['user_id'] != ANONYMOUS ) ? '<a href="'. $author_url .'">'. $similar['username'] .'</a>' : ( ($similar['post_username'] != '' ) ? $similar['post_username'] : $lang['Guest'] );
	  
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=". $similar['forum_id']);  
$forum = '<a href="'. $forum_url .'">'. $similar['forum_name'] .'</a>';

$last_post_author = ( $similar['id2'] == ANONYMOUS ) ? ( ($similar['post_username2'] != '' ) ? $similar['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $similar['id2']) . '">' . $similar['user2'] . '</a>';
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
$author = color_group_colorize_name($similar['user_id']);
		
$author_url = append_sid("profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $similar['user_id']);

//$author = ( $similar['user_id'] != ANONYMOUS ) ? '<a href="'. $author_url .'">'. $similar['username'] .'</a>' : ( ($similar['post_username'] != '' ) ? $similar['post_username'] : $lang['Guest'] );
	  
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=". $similar['forum_id']);  
$forum = '<a href="'. $forum_url .'">'. $similar['forum_name'] .'</a>';
		
$last_post_author = color_group_colorize_name($similar['id2']);
		
//$last_post_author = ( $similar['id2'] == ANONYMOUS ) ? ( ($similar['post_username2'] != '' ) ? $similar['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '='  . $similar['id2']) . '">' . $similar['user2'] . '</a>';
# 
#-----[  SAVE/CLOSE FILE ]------------------------------------------ 
#

Post Reply

Return to “[2.0.x] MODs in Development”