1 sayfadan 1. sayfa

[EKLENTİ] Color Group Modunun Forumun Diğer Sayfalarıyla İlişkilendirilmesi

İletiTarih: 24.07.2006, 13:05
sabri ünal
color grup modunun forumun diğer sayfalarıyla ilişkilendirilmesi

Kod: Tümünü seç
##############################################################
## MOD Title:           Color Groups Throughout
## MOD Author:          RMcGirr83 < rmcgirr83@betraythis.com > (Rich McGirr) http://betraythis.com
## MOD Description:     This mod will place the colors from the above mod into
##                      search, last poster in viewforum, groups, newest registered
##                      user, the moderator of a forum and corrects an issue
##                      within viewonline
##
##
## MOD Version:        1.0.0 (initial)
##
## Installation Level: Moderate
## Installation Time:  20 Minutes
## Files To Edit:   5
##                  groupcp.php
##                  search.php
##                  index.php
##                  viewforum.php
##                  language/lang_english/lang_main.php
## Included Files:
##                  none
##############################################################
## For security purposes, please check: http://www.phpbbhacks.com/
## 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.phpbbhacks.com/
##############################################################
## Author Notes:
##
##
## 1. Compatibility
## -----------
## This MOD is phpBB 2.0.21 compliant and may work with previous versions
##
## 2. Requirements
## -----------
## Color Groups by Billy Sauls (aka nivisec) must be installed for this
## mod to function
##
##############################################################
## MOD History:
##
##
##   2006-06-20 - Version 1.0.0
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ BEGIN COLOR OF THE MODERATOR ]-------------------------
#
#
#-----[ OPEN ]------------------------------------------------
#
index.php

#
#-----[ FIND ]------------------------------------------------
#
   $forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';

#
#-----[ REPLACE WITH ]----------------------------------------
#
    $forum_moderators[$row['forum_id']][] = color_group_colorize_name($row['user_id']);

#-----[ END COLOR OF THE MODERATOR ]--------------------------
#
#
#-----[ BEGIN NEWEST USER COLOR GROUP ]-----------------------
#
#
#-----[ OPEN ]------------------------------------------------
#
index.php

#
#-----[ FIND ]---------------------------------
#
   'NEWEST_USER' =>sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),

#
#-----[ REPLACE WITH ]------------------------------------------------
#
    'NEWEST_USER' => sprintf($lang['Newest_user'], color_group_colorize_name($newest_uid)),

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#
$lang['Newest_user'] = 'The newest registered user is <b>%s%s%s</b>'; // a href, username, /a

#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Newest_user'] = 'The newest registered user is <b>%s</b>'; // Color Group Mod

#
#-----[ END NEWEST USER COLOR GROUP ]---------------------------
#
#
#-----[ BEGIN SEARCH COLOR GROUP ]------------------------------
#
#
#-----[ OPEN ]--------------------------------------------------
#
search.php

#
#
#-----[ FIND ]--------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);

#
#-----[ AFTER, ADD ]----------------------------------------
#
include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);

#
#-----[ FIND ]--------------------------------------------------
#
            $topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : '';
            $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );

            $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';

#
#-----[ REPLACE WITH ]-------------------------------------------
#
            $topic_author = ($searchset[$i]['user_id'] == ANONYMOUS ) ? (($searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] ) : color_group_colorize_name($searchset[$i]['user_id']);

#
#-----[ FIND ]---------------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '='  . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';

#
#-----[ REPLACE WITH ]--------------------------------------------
#
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($searchset[$i]['id2']);

#
#-----[ END SEARCH COLOR GROUP ]------------------------------
#
#
#-----[ BEGIN GROUP COLOR GROUP ]------------------------------
#
#
#-----[ OPEN ]------------------------------------------------
#
groupcp.php

#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);

#
#-----[ AFTER, ADD ]----------------------------------------
#
include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);

#
#-----[ FIND ]--------------------------------
#
'MOD_USERNAME' => $username,

#
#-----[ REPLACE WITH ]--------------------------------------------
#
'MOD_USERNAME' => color_group_colorize_name($user_id, true),

#
#-----[ FIND ]------------------------------------------------
#
'USERNAME' => $username,

#
#-----[ REPLACE WITH ]--------------------------------------------
#
'USERNAME' => color_group_colorize_name($user_id, true),

#
#-----[ END GROUP COLOR GROUP ]------------------------------
#
#
#-----[ BEGIN LAST POSTER COLOR GROUP ]------------------------------
#
#
#-----[ OPEN ]------------------------------------------------
#
viewforum.php

#
#-----[ FIND ]------------------------------------------------
#
        $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '='  . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

#
#-----[ REPLACE WITH ]--------------------------------------------
#
      $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($topic_rowset[$i]['id2']);

#
#-----[ END LAST POSTER COLOR GROUP ]------------------------------
#
#
#-----[+]-------- BU KISMI UYGULAMAYIN --------------------------
#-----[ BEGIN FIX VIEWONLINE ]------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
viewonline.php

#
#-----[ FIND ]------------------------------------------------
#
         include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
         $username = color_group_colorize_name($user_id, true);
         
#   $user_id is not defined
#
#
#-----[ REPLACE WITH ]--------------------------------------------
#
         include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
         $username = color_group_colorize_name($row[user_id], true);

#
#   $row[user_id] is used instead
#-----[ BEGIN FIX VIEWONLINE ]------------------------------
#-----[-]-------- BU KISMI UYGULAMAYIN --------------------------
#
#----- EOM ------------------------------
#


ADDED BY YAKUSHA

---------- [ AÇ ] -----------------

viewtopic.php

---------- [ BUL ] -----------------

include($phpbb_root_path . 'common.'.$phpEx);

---------- [ SONRASINA EKLE ] -----------------

include($phpbb_root_path . 'includes/functions_color_groups.'.$phpEx);

---------- [ BUL ] -----------------
//kodun sadece bir kısmıdır...
'POSTER_NAME'

---------- [ BUNUNLA DEĞİŞTİR ] -----------------

'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster,


---------- [ KAYDET VE KAPAT ] -----------------

İletiTarih: 24.07.2006, 15:52
ado_u
peki viewforum daki alt forumların yazarları için bu modu nasıl uygularız?

İletiTarih: 24.07.2006, 16:59
trf1
bende hepsini yaptım ama viewtopicte avatarın üstünde bulunan nicklerin rengini değiştiremedim ya...arkadaşlar bir yardım etseniz bu konuya tşk ederim.ayrıca bu sorunu buradada yazmıştım

http://canver.net/rank-colours-by-emrag ... 10612.html

İletiTarih: 26.07.2006, 13:43
trf1
yapamayacakmıyız:(

İletiTarih: 29.07.2006, 09:04
ado_u
trf1 yazdı:yapamayacakmıyız:(


bunun için bence color groups modunu kullan kesin sonuca ulaşacaksın :+1: :+1: :+1:

peki benim sorunum ne olacak şu subforumlarda renklendirme işini nasıl yapabilirim?

İletiTarih: 01.08.2006, 10:03
trf1
ado_u yazdı:
trf1 yazdı:yapamayacakmıyız:(


bunun için bence color groups modunu kullan kesin sonuca ulaşacaksın :+1: :+1: :+1:

peki benim sorunum ne olacak şu subforumlarda renklendirme işini nasıl yapabilirim?


ya zaten colour groups kurulu ama viewtopicte nickler colour groupstaki rengi almıyor??

Cvp: [EKLENTİ] Color Group Modunun Forumun Diğer Sayfalarıyla İlişkilendirilmesi

İletiTarih: 01.08.2006, 11:36
sabri ünal
Kod: Tümünü seç
---------- [ AÇ ] -----------------

viewtopic.php

---------- [ BUL ] -----------------

include($phpbb_root_path . 'common.'.$phpEx);

---------- [ SONRASINA EKLE ] -----------------

include($phpbb_root_path . 'includes/functions_color_groups.'.$phpEx);

---------- [ BUL ] -----------------
//kodun sadece bir kısmıdır...
      'POSTER_NAME'

---------- [ BUNUNLA DEĞİŞTİR ] -----------------

      'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster,


---------- [ KAYDET VE KAPAT ] -----------------

İletiTarih: 02.08.2006, 14:27
trf1
çok saol üstat en sonunda düzeltebildim bir sorum daha olcak kusura bakmazsanız rank colour by emrag sanırım onunla çalışmıyormu.o nickten kişinin profiline girilmiyorda şuanda...

İletiTarih: 02.08.2006, 14:54
sabri ünal
true yazan yerleri false yaparsan link özelliğini de kendisi ekliyor, fakat uyarayım, google fazla link sevmiyor...

İletiTarih: 02.08.2006, 15:07
trf1
çok saol sabri üstat.bu problemi aşmış bulunyuorum tamamı ile:)

İletiTarih: 04.08.2006, 21:03
IcEman
herkesin sorduğunu bende sorayım alt forumlarda nicklerin renklendirilmesini nasıl sağlayabiliriz ve Birthday 1.5.9 da da aynı özellği yapabilirmiyiz


saygılar.. (aradıklarımı buldum tşk ler )

İletiTarih: 11.08.2006, 13:34
ado_u
şu altforum işini bi halledebilsek çok iyi olacak yau

İletiTarih: 11.08.2006, 15:07
Sergeant Orion
hangi alt forum modunu kullandığınızı belirtirseniz yardımcı olabilirim.

İletiTarih: 11.08.2006, 22:07
IcEman
simple subforums mod için color groups uyumu


- viewforum.php

[BUL]

[syntax="php"]$last_post .= ( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . '=' . $subforum_data[$j]['user_id']) . '">' . $subforum_data[$j]['username'] . '</a> '; [/syntax]

[DEĞİŞTİR]
[syntax="php"]$last_post .= ( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($subforum_data[$j]['user_id']);[/syntax]

İletiTarih: 12.08.2006, 17:18
ado_u
easy subforum ile nasıl uyumlu hale getireceğiz peki?

Cvp: [EKLENTİ] Color Group Modunun Forumun Diğer Sayfalarıyla İlişkilendirilmesi

İletiTarih: 13.08.2006, 16:57
IcEman
Bunu foruma kurdum çalıştı.Yedek almayı unutmayın.


Recent Topics MOD Color Groups MOD u ilişkilendirilmesi:

[AÇ]
recent.php

[BUL]
[syntax="php"]$first_time = create_date($board_config['default_dateformat'], $line[$i]['topic_time'], $board_config['board_timezone']); [/syntax]

[ÜSTÜNE EKLE]
[syntax="php"]include_once($phpbb_root_path.'includes/functions_color_groups.'.$phpEx);
$last_author = color_group_colorize_name($last_poster_id, true);
$first_author = color_group_colorize_name($first_poster_id, true); [/syntax]

[BUL]
[syntax="php"]$first_author = ( $line[$i]['first_poster_id'] != ANONYMOUS ) ? '<a class="gensmall" target ="_top" href="'. append_sid("profile.$phpEx?mode=viewprofile&amp;". POST_USERS_URL .'='. $line[$i]['first_poster_id']) .'">'. $line[$i]['first_poster'] .'</a>' : ( ($line[$i]['first_poster_name'] != '' ) ? $line[$i]['first_poster_name'] : $lang['Guest'] ); [/syntax]

[DEĞİŞTİR]
[syntax="php"]$first_author = ( $line[$i]['first_poster_id'] == ANONYMOUS ) ? ( ($line[$i]['first_poster_name'] != '' ) ? $line[$i]['first_poster_name'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($line[$i]['first_poster_id']); [/syntax]

[BUL]
[syntax="php"]$last_author = ( $line[$i]['last_poster_id'] != ANONYMOUS ) ? '<a class="gensmall" target ="_top" href="'. append_sid("profile.$phpEx?mode=viewprofile&amp;". POST_USERS_URL .'='. $line[$i]['last_poster_id']) .'">'. $line[$i]['last_poster'] .'</a>' : ( ($line[$i]['last_poster_name'] != '' ) ? $line[$i]['last_poster_name'] : $lang['Guest'] ); [/syntax]

[DEĞİŞTİR]
[syntax="php"]$last_author = ( $line[$i]['last_poster_id'] == ANONYMOUS ) ? ( ($line[$i]['last_poster_name'] != '' ) ? $line[$i]['last_poster_name'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($line[$i]['last_poster_id']); [/syntax][u]

İletiTarih: 14.08.2006, 01:22
yaso19
harikasın ice, teşekkürler ;)

İletiTarih: 14.08.2006, 12:42
ado_u
@IcEman süpersin aga eline koluna sağlık

Cvp: [EKLENTİ] Color Group Modunun Forumun Diğer Sayfalarıyla İlişkilendirilmesi

İletiTarih: 18.08.2006, 11:09
haliluz
Arkadaşlar peki color groups modu ile forum ana sayfasında son konuların görünmesini sağlayan modu nasıl ilişkilendireceğiz.
Bende bahsi geçen mod yüklü ve ana sayfada sağ tarafta son gönderici ismi renklenmiyo :?
Teşekkürler