У меня Ipb 2.1.5 как мне сделать,что бы при репутации 10 звание рядом писалось Лох и вооще как тут именно поставить звание?
_http://ibresource.ru/ тут качаеш хак,а потом в скрипте пишеш что то вроде if $rep=10 { print "lox"; }
Ну вот сам хак репутации _http://www.ibresource.ru/db/678/ Дальше нужно смотреть исходники этой репутации и дописывать что то вроде того что я писал выше
PHP: if(strtolower($this->ipsclass->input['act']) == 'st' OR $this->ipsclass->input['act'] == 'rep') { $member['reputation_allow'] = true; if( $member['reputation'] <= 10 && $member['reputation'] > 0) $rep_title = 'Новичок'; if( $member['reputation'] <= 50 && $member['reputation'] > 10)$ rep_title = 'Бывалый'; if( $member['reputation'] <= 100 && $member['reputation'] > 50) $rep_title = 'Форумчанин'; $member['reputation_text'] = $this->ipsclass->lang['reputation']; if (($this->ipsclass->member['id'] != $member['id']) && ($this->ipsclass->member['posts'] >= $this->ipsclass->vars['rep_posts']) && $this->ipsclass->member['rep_allow']) { $member['reputation_minus'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_minus&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_dec']}'>{$this->ipsclass->lang['minus']}</a>"; $member['reputation_add'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_add&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_inc']}'>{$this->ipsclass->lang['plus']}</a>"; } else { $member['reputation_minus'] = "{$this->ipsclass->lang['minus_disabled']}"; $member['reputation_add'] = "{$this->ipsclass->lang['plus_disabled']}"; } $member['reputation_scores'] = "<a href='{$this->ipsclass->base_url}act=rep&type=history&mid={$member['id']}' title='{$this->ipsclass->lang['view_rep']}'>{$member['reputation']} / {$rep_title}</a>"; } там замени это на ~180 строке. примерно так.
Блин я уже исправил,но сейчас! Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in z:\home\vip.ru\www\forums\sources\action_public\topics.php on line 1211
Блин я уже исправил я вылажу код нормальный а вы отредактируйте ! PHP: if(strtolower($this->ipsclass->input['act']) == 'st' OR $this->ipsclass->input['act'] == 'rep') { $member['reputation_allow'] = true; $member['reputation_text'] = $this->ipsclass->lang['reputation']; if (($this->ipsclass->member['id'] != $member['id']) && ($this->ipsclass->member['posts'] >= $this->ipsclass->vars['rep_posts']) && $this->ipsclass->member['rep_allow']) { $member['reputation_minus'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_minus&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_dec']}'>{$this->ipsclass->lang['minus']}</a>"; $member['reputation_add'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_add&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_inc']}'>{$this->ipsclass->lang['plus']}</a>"; } else { $member['reputation_minus'] = "{$this->ipsclass->lang['minus_disabled']}"; $member['reputation_add'] = "{$this->ipsclass->lang['plus_disabled']}"; } $member['reputation_scores'] = "<a href='{$this->ipsclass->base_url}act=rep&type=history&mid={$member['id']}' title='{$this->ipsclass->lang['view_rep']}'>{$member['reputation']}</a>"; } return $member; }
Я исправил как было то есть родовая (но с установленным модом)! этот код отредактируй что бы появился статус!
PHP: if(strtolower($this->ipsclass->input['act']) == 'st' OR $this->ipsclass->input['act'] == 'rep') { $member['reputation_allow'] = true; if( $member['reputation'] <= 10 && $member['reputation'] > 0) $rep_title = 'Новичок'; // если репы меньше 10 if( $member['reputation'] <= 50 && $member['reputation'] > 10)$ rep_title = 'Бывалый'; //если репы меньше 50 if( $member['reputation'] <= 100 && $member['reputation'] > 50) $rep_title = 'Форумчанин'; //если репы меньше 100 $member['reputation_text'] = $this->ipsclass->lang['reputation']; if (($this->ipsclass->member['id'] != $member['id']) && ($this->ipsclass->member['posts'] >= $this->ipsclass->vars['rep_posts']) && $this->ipsclass->member['rep_allow']) { $member['reputation_minus'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_minus&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_dec']}'>{$this->ipsclass->lang['minus']}</a>"; $member['reputation_add'] = "<a href='javascript:rep_change_window_open(\"{$this->ipsclass->base_url}act=rep&type=win_add&mid={$member['id']}&p={PID}\");' title='{$this->ipsclass->lang['rep_inc']}'>{$this->ipsclass->lang['plus']}</a>"; } else { $member['reputation_minus'] = "{$this->ipsclass->lang['minus_disabled']}"; $member['reputation_add'] = "{$this->ipsclass->lang['plus_disabled']}"; } $member['reputation_scores'] = "<a href='{$this->ipsclass->base_url}act=rep&type=history&mid={$member['id']}' title='{$this->ipsclass->lang['view_rep']}'>{$member['reputation']}</a>"; } return $member; }