Kod: Tümünü seç
###############################################
## MOD Title: INTERESTS IN MEMBERLIST
## MOD Author: kber < webmaster@phpbbegypt.com > (kber) http://www.phpbbegypt.com
## MOD Description: Adds the INTERESTS field from users profiles to the memberlist.
## so users can share thier interests easily
##
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: 3
## language/lang_turkish/lang_main.php
## memberlist.php
## templates/subSilver/memberlist_body.tpl
##
## Included Files:N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
##############################################################
## Author Notes:
## this is my third hack , i,m taking idea from a mod that add user avatar
##in memberlist, but i think this is more intersting to share other users'
## interests in memberlist page.
##############################################################
## MOD History:
## 2006-11-08 - virsion 1.1.0
## fix mod look ( thnks evil3<)
## 2006-11-08 - Version 1.0.0
## -first Release ( IT S WORKING )
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Sort_INTERESTS'] = 'İLGİ ALANLARI';
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$mode_types_text = array($lang['Sort_Joined'], $lang['Sort_Username'], $lang['Sort_Location'], $lang['Sort_Posts'], $lang['Sort_Email'], $lang['Sort_Website'], $lang['Sort_Top_Ten']);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Sort_Top_Ten']
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $lang['Sort_INTERESTS']
#
#-----[ FIND ]------------------------------------------
#
$mode_types = array('joindate', 'username', 'location', 'posts', 'email', 'website', 'topten');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'topten'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'interests'
#
#-----[ FIND ]------------------------------------------
#
'L_PM' => $lang['Private_Message'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_INTERESTS' => $lang['interests'],
#
#-----[ FIND ]------------------------------------------
#
case 'topten':
$order_by = "user_posts $sort_order LIMIT 10";
break;
#
#-----[ AFTER, ADD ]------------------------------------
#
case 'interests':
$order_by = "user_occ $sort_order LIMIT $start, " . $board_config['topics_per_page'];
break;
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_allowavatar
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_interests
#
#-----[ FIND ]------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------
#
$interests = ( !empty($row['user_interests']) ) ? $row['user_interests'] : ' ';
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
#
#-----[ AFTER, ADD ]------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_INTERESTS}</th>
#
#-----[ FIND ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
#
#-----[ AFTER, ADD ]------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.INTERESTS}</span></td>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM