SuMReD Administrator
Mesaje : 3 Varsta : 27 Localizare : Brasov
| Subiect: User reputation points Sam Apr 28, 2012 10:08 am | |
| Multi doresc acest mod si intampina probleme la el ,cu acest tutorial sigur veti reusi!(Asta numai daca faceti ce trebuie) Titlu: User reputation points Description:Acest mod va adauga sistemul de reputatie la forumul dvs! Tutorial realizat de : PlaY4FuN Version:0.3.1 Installation Level:Easy Installation Time:~12 minutes Instalare Urcati tot ce contine folderul root pe host Fisiere de modificat(este recomandat sa copiati toate fisierele pe care trebuie sa l-e modificati si sa le editati cu Notepad++) Deschide common.php Cauta - Cod:
-
require($phpbb_root_path . 'includes/constants.' . $phpEx); require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point require($phpbb_root_path . 'includes/functions_reputation.' . $phpEx); // end Deschide memberlist.php Cauta - Cod:
-
if (!empty($profile_fields['row'])) { $template->assign_vars($profile_fields['row']); } Adauga inainte - Cod:
-
// idiotnesia wuz here - user rep point $user->add_lang('mods/reputation_mod'); $template->assign_vars(array( 'S_REPUTATION' => $member['user_hide_reputation'] ? false : true, 'REPUTATION' => $member['user_reputation'], 'REP_POWER' => $reputation->get_rep_power($member['user_posts'], $member['user_regdate'], $member['user_reputation'], $member['group_id']), ) ); // end Deschide viewtopic.php Cauta - Cod:
-
// Setup look and feel $user->setup('viewtopic', $topic_data['forum_style']); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $user->add_lang('mods/reputation_mod'); // end Cauta - Cod:
-
// Does this topic contain a poll? Adauga inainte - Cod:
-
// idiotnesia wuz here - user rep point $reputation->viewtopic($forum_id); // end Cauta - Cod:
-
// Generate online information for user Adauga inainte - Cod:
-
// idiotnesia wuz here - user rep point $reputation_cache = $reputation->get_user_reputation($id_cache); // end Cauta - Cod:
-
if (isset($cp_row['row']) && sizeof($cp_row['row'])) { $postrow = array_merge($postrow, $cp_row['row']); } Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $postrow = array_merge($postrow, $reputation->reputation_row($poster_id, $row['post_id'], $reputation_cache)); // end Deschide adm/style/acp_groups.html Cauta - Cod:
-
<dl> <dt><label for="group_legend">{L_GROUP_LEGEND}:</label></dt> <dd><input name="group_legend" type="checkbox" class="radio" id="group_legend"{GROUP_LEGEND} /></dd> </dl> Adauga dupa - Cod:
-
<dl> <dt><label for="group_reputation_power">{L_RP_GROUP_POWER}:</label></dt> <dd><input name="group_reputation_power" type="text" id="group_reputation_power" maxlength="4" size="4" value="{GROUP_REPUTATION_POWER}" /></dd></dd> </dl> Deschide includes/functions_user.php Cauta - Cod:
-
$update_ary = array( FORUMS_TABLE => array('forum_last_poster_name'), MODERATOR_CACHE_TABLE => array('username'), POSTS_TABLE => array('post_username'), TOPICS_TABLE => array('topic_first_poster_name', 'topic_last_poster_name'), ); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $update_ary[REPUTATIONS_TABLE] = array('username'); // end Cauta - Cod:
-
function user_delete($mode, $user_id, $post_username = false) { global $cache, $config, $db, $user, $auth; global $phpbb_root_path, $phpEx; Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point global $reputation; // end Cauta - Cod:
-
if ($user_row['user_avatar'] && $user_row['user_avatar_type'] == AVATAR_UPLOAD) { avatar_delete('user', $user_row); } Adauga dupa - Cod:
-
//idiotnesia wuz here $reputation->delete_user($user_id); // end Cauta - Cod:
-
foreach ($attribute_ary as $attribute => $type) { if (isset($group_attributes[$attribute])) Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $attribute_ary['group_reputation_power'] = 'int'; $group_only_ary[] = 'group_reputation_power'; // end Deschide includes/acp/acp_groups.php Cauta - Cod:
-
$user->add_lang('acp/groups'); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $user->add_lang('mods/reputation_mod'); // end Cauta - Cod:
-
if ($user->data['user_type'] == USER_FOUNDER) { $submit_ary['founder_manage'] = isset($_REQUEST['group_founder_manage']) ? 1 : 0; } Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $submit_ary['reputation_power'] = request_var('group_reputation_power', 0); // end Cauta - Cod:
-
$group_attributes = array(); $test_variables = array('rank', 'colour', 'avatar', 'avatar_type', 'avatar_width', 'avatar_height', 'receive_pm', 'legend', 'message_limit', 'max_recipients', 'founder_manage'); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $test_variables[] = 'reputation_power'; // end Cauta - Cod:
-
'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)), ) ); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $template->assign_vars(array( 'GROUP_REPUTATION_POWER' => (isset($group_row['group_reputation_power'])) ? $group_row['group_reputation_power'] : 0, ) ); // end Deschide includes/ucp/ucp_main.php Cauta - Cod:
-
'U_SEARCH_USER' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'author_id=' . $user->data['user_id'] . '&sr=posts') : '', )); Adauga dupa - Cod:
-
// idiotnesia wuz here global $reputation; $reputation->display_comment($user->data['user_id'], 'ucp', 0, $config['rp_recent_points'], false); // end Deschide includes/ucp/ucp_prefs.php Cauta - Cod:
-
case 'personal': add_form_key('ucp_prefs_personal'); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $user->add_lang('mods/reputation_mod'); // end Cauta - Cod:
-
if ($data['notifymethod'] == NOTIFY_IM && (!$config['jab_enable'] || !$user->data['user_jabber'] || !@extension_loaded('xml'))) { // Jabber isnt enabled, or no jabber field filled in. Update the users table to be sure its correct. $data['notifymethod'] = NOTIFY_BOTH; } Adauga inainte - Cod:
-
// idiotnesia wuz here - user rep point $data['hidereputation'] = request_var('hidereputation', (bool) $user->data['user_hide_reputation']); // end Cauta - Cod:
-
'user_lang' => $data['lang'], 'user_timezone' => $data['tz'], 'user_style' => $data['style'], ); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $sql_ary['user_hide_reputation'] = $data['hidereputation']; // end Cauta - Cod:
-
'S_SELECT_NOTIFY' => ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')) ? true : false) ); Adauga dupa - Cod:
-
// idiotnesia wuz here - user rep point $template->assign_vars(array( 'S_HIDE_REPUTATION' => $data['hidereputation'], 'S_CAN_HIDE_REPUTATION' => ($config['rp_enable'] && $auth->acl_get('u_rp_disable')) ? true : false, ) ); // end Dupa ce termini instalarea ,ruleaza db_install.php Dlownload: http://www.girlshare.ro/2554437.6Sursa: http://howdo-it.com/forum/viewtopic.php?t=27&p=15 | |
|
◄ŚΣNK► Administrator
Mesaje : 47 Varsta : 25 Localizare : Campulung Muscel
| Subiect: Re: User reputation points Sam Apr 28, 2012 2:06 pm | |
| nu poti baga si pe forumu nostru? | |
|
SuMReD Administrator
Mesaje : 3 Varsta : 27 Localizare : Brasov
| Subiect: Re: User reputation points Dum Apr 29, 2012 5:47 am | |
| Trebuie sa avem domeniu .ro... | |
|
Continut sponsorizat
| Subiect: Re: User reputation points | |
| |
|