- 1 Ağu 2007
- 5,470
- 41
Invision Power Board IPB Derslerinden Üye Renkleri Profilde Ve Konu İçrisinde Gözüksün :
Düzenlenecek Dosya
./sources/action_public/profile.php
Aç: ./sources/action_public/profile.php
Bul:
Altına Ekle:
=================================
Bul:
Bununla Değiştir:
===========================
Bul:
Bununla Değiştir:
========================
Bul:
Üstüne Ekle:
======================
Bul:
Bununla Değiştir:
=====================
Bul:
Bununla Değiştir:
======================
Bul:
Bununla Değiştir:
======================
Bul:
Bununla Değiştir:
===============
Kaydet Ve Upload Et
NOT= Dosyalarınızın YEdeğini ALmayı Unutmayınız
Düzenlenecek Dosya
./sources/action_public/profile.php
Aç: ./sources/action_public/profile.php
Bul:
Kod:
[ function personal_iframe_comments() ][/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] // Load member[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $member = $this->personal_function_load_member( $member_id );[/COLOR]
Altına Ekle:
Kod:
$member['members_display_name'] = $this->ipsclass->make_name_formatted($member['members_display_name'], $member['mgroup']);
=================================
Bul:
Kod:
[ function personal_iframe_comments() ][/COLOR]
[COLOR=white]//-----------------------------------------[/COLOR]
[COLOR=white] // Regenerate comments...[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $this->ipsclass->DB->build_query( array( 'select' => 'pc.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_comments' => 'pc' ),[/COLOR]
[COLOR=white] 'where' => 'pc.comment_for_member_id='.$member_id . $sql_extra,[/COLOR]
[COLOR=white] 'order' => 'pc.comment_date DESC',[/COLOR]
[COLOR=white] 'limit' => array( $start, $comment_perpage ),[/COLOR]
[COLOR=white] 'add_join' => array( 0 => array( 'select' => 'm.members_display_name',[/COLOR]
[COLOR=white] 'from' => array( 'members' => 'm' ),[/COLOR]
[COLOR=white] 'where' => 'm.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ),[/COLOR]
[COLOR=white] 1 => array( 'select' => 'pp.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_portal' => 'pp' ),[/COLOR]
[COLOR=white] 'where' => 'pp.pp_member_id=m.id',[/COLOR]
[COLOR=white] 'type' => 'left' ), [/COLOR]
[COLOR=white] 2 => array( 'select' => 'me.*',[/COLOR]
[COLOR=white] 'from' => array( 'member_extra' => 'me' ),[/COLOR]
[COLOR=white] 'where' => 'me.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ) ) ) );[/COLOR]
[COLOR=white] $this->ipsclass->DB->exec_query();[/COLOR]
Bununla Değiştir:
Kod:
//-----------------------------------------[/COLOR]
[COLOR=white]// Regenerate comments...[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $this->ipsclass->DB->build_query( array( 'select' => 'pc.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_comments' => 'pc' ),[/COLOR]
[COLOR=white] 'where' => 'pc.comment_for_member_id='.$member_id . $sql_extra,[/COLOR]
[COLOR=white] 'order' => 'pc.comment_date DESC',[/COLOR]
[COLOR=white] 'limit' => array( $start, $comment_perpage ),[/COLOR]
[COLOR=white] 'add_join' => array( 0 => array( 'select' => 'm.mgroup,m.members_display_name',[/COLOR]
[COLOR=white] 'from' => array( 'members' => 'm' ),[/COLOR]
[COLOR=white] 'where' => 'm.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ),[/COLOR]
[COLOR=white] 1 => array( 'select' => 'pp.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_portal' => 'pp' ),[/COLOR]
[COLOR=white] 'where' => 'pp.pp_member_id=m.id',[/COLOR]
[COLOR=white] 'type' => 'left' ), [/COLOR]
[COLOR=white] 2 => array( 'select' => 'me.*',[/COLOR]
[COLOR=white] 'from' => array( 'member_extra' => 'me' ),[/COLOR]
[COLOR=white] 'where' => 'me.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ) ) ) );[/COLOR]
[COLOR=white] $this->ipsclass->DB->exec_query()[/COLOR]
===========================
Bul:
Kod:
[ function personal_build_comments( $member, $new_id=0, $return_msg='' ) ][/COLOR]
[COLOR=white]//-----------------------------------------[/COLOR]
[COLOR=white] // Regenerate comments...[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $this->ipsclass->DB->build_query( array( 'select' => 'pc.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_comments' => 'pc' ),[/COLOR]
[COLOR=white] 'where' => 'pc.comment_for_member_id='.$member_id.' AND pc.comment_approved=1',[/COLOR]
[COLOR=white] 'order' => 'pc.comment_date DESC',[/COLOR]
[COLOR=white] 'limit' => array( 0, $comment_perpage ),[/COLOR]
[COLOR=white] 'add_join' => array( 0 => array( 'select' => 'm.members_display_name',[/COLOR]
[COLOR=white] 'from' => array( 'members' => 'm' ),[/COLOR]
[COLOR=white] 'where' => 'm.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ),[/COLOR]
[COLOR=white] 1 => array( 'select' => 'pp.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_portal' => 'pp' ),[/COLOR]
[COLOR=white] 'where' => 'pp.pp_member_id=m.id',[/COLOR]
[COLOR=white] 'type' => 'left' ), [/COLOR]
[COLOR=white] 2 => array( 'select' => 'me.*',[/COLOR]
[COLOR=white] 'from' => array( 'member_extra' => 'me' ),[/COLOR]
[COLOR=white] 'where' => 'me.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ) ) ) );[/COLOR]
[COLOR=white] $this->ipsclass->DB->exec_query();[/COLOR]
Bununla Değiştir:
Kod:
//-----------------------------------------[/COLOR]
[COLOR=white] // Regenerate comments...[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $this->ipsclass->DB->build_query( array( 'select' => 'pc.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_comments' => 'pc' ),[/COLOR]
[COLOR=white] 'where' => 'pc.comment_for_member_id='.$member_id.' AND pc.comment_approved=1',[/COLOR]
[COLOR=white] 'order' => 'pc.comment_date DESC',[/COLOR]
[COLOR=white] 'limit' => array( 0, $comment_perpage ),[/COLOR]
[COLOR=white] 'add_join' => array( 0 => array( 'select' => 'm.mgroup,m.members_display_name',[/COLOR]
[COLOR=white] 'from' => array( 'members' => 'm' ),[/COLOR]
[COLOR=white] 'where' => 'm.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ),[/COLOR]
[COLOR=white] 1 => array( 'select' => 'pp.*',[/COLOR]
[COLOR=white] 'from' => array( 'profile_portal' => 'pp' ),[/COLOR]
[COLOR=white] 'where' => 'pp.pp_member_id=m.id',[/COLOR]
[COLOR=white] 'type' => 'left' ), [/COLOR]
[COLOR=white] 2 => array( 'select' => 'me.*',[/COLOR]
[COLOR=white] 'from' => array( 'member_extra' => 'me' ),[/COLOR]
[COLOR=white] 'where' => 'me.id=pc.comment_by_member_id',[/COLOR]
[COLOR=white] 'type' => 'left' ) ) ) );[/COLOR]
[COLOR=white] $this->ipsclass->DB->exec_query();[/COLOR]
========================
Bul:
Kod:
[ function personal_build_comments( $member, $new_id=0, $return_msg='' ) ][/COLOR]
[COLOR=white]$comment_html = $this->ipsclass->compiled_templates['skin_profile']->personal_portal_show_comment( $comments, $member, $new_id, $return_msg );[/COLOR]
Üstüne Ekle:
Kod:
$member['members_display_name'] = $this->ipsclass->make_name_formatted($member['members_display_name'], $member['mgroup']);
======================
Bul:
Kod:
[ function personal_portal_view() ][/COLOR]
[COLOR=white]$this->page_title = $member['members_display_name'] . ' - ' . $this->ipsclass->lang['page_title_pp'];[/COLOR]
Bununla Değiştir:
Kod:
$this->page_title = strip_tags($member['members_display_name']) . ' - ' . $this->ipsclass->lang['page_title_pp'];
=====================
Bul:
Kod:
[ function personal_portal_set_information( $member, $noids=0 ) ][/COLOR]
[COLOR=white]//-----------------------------------------[/COLOR]
[COLOR=white] // Long display names[/COLOR]
[COLOR=white] //-----------------------------------------[/COLOR]
[COLOR=white] $member['members_display_name_short'] = $this->ipsclass->txt_truncate( $member['members_display_name'], 16 );[/COLOR]
Bununla Değiştir:
Kod:
//-----------------------------------------[/COLOR]
[COLOR=white]// Long display names[/COLOR]
[COLOR=white]//-----------------------------------------[/COLOR]
[COLOR=white]$member['members_display_name_short'] = $this->ipsclass->make_name_formatted($this->ipsclass->txt_truncate($member['members_display_name'], 16), $member['mgroup']);[/COLOR]
[COLOR=white] $member['members_display_name'] = $this->ipsclass->make_name_formatted($member['members_display_name'], $member['mgroup']);[/COLOR]
======================
Bul:
Kod:
[ function view_profile() ][/COLOR]
[COLOR=white]$info['group_title'] = $this->ipsclass->cache['group_cache'][ $member['mgroup'] ]['g_title'];[/COLOR]
Bununla Değiştir:
Kod:
[COLOR=white] $info['group_title'] = $this->ipsclass->make_name_formatted($this->ipsclass->cache['group_cache'][$member['mgroup']]['g_title'], $member['mgroup']);[/COLOR]
======================
Bul:
Kod:
[ function view_profile() ][/COLOR]
[COLOR=white]$info['members_display_name'] = $member['members_display_name'];[/COLOR]
Bununla Değiştir:
Kod:
$info['members_display_name'] = $this->ipsclass->make_name_formatted($member['members_display_name'], $member['mgroup']);
===============
Kaydet Ve Upload Et
NOT= Dosyalarınızın YEdeğini ALmayı Unutmayınız