Pagina 1 van 1
colour groups mod
Geplaatst: 02 okt 2004, 12:16
door Coen
ik heb vandaag weer eens de colour groups mod van Nivisec uit de kast getrokken en heb hem succesvol geïnstalleerd alleen nu vind ik één klein foutje, waar ik geen raad mee weet:
http://www.gamejunkies.nl
kijk eens onderaan in het Who's Online blok, daar staat dan de hele tijd:
Geregistreerde Junkies: Geen
hoe maak ik dit weer?
//edit: owja, op de index.php geeft hij ook geen kleurtjes weer, bij bv.:
Last post:
Geplaatst: 03 okt 2004, 15:38
door Coen
BUMP!
ik heb nu op aanraden van Stefkuh alle modded files eens nagekeken, hier komt het volgende uit:
in index.php is een deel van mijn modded code in de comment verdwenen doordat ik ook de category hierachie mod heb draaien... het gaat om de volgende code:
Code: Selecteer alles
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
/*
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Should we display this category/forum set?
//
$display_forums = false;
for($j = 0; $j < $total_forums; $j++)
{
if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
{
$display_forums = true;
}
}
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if ( $display_forums )
{
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
if ( $viewcat == $cat_id || $viewcat == -1 )
{
for($j = 0; $j < $total_forums; $j++)
{
if ( $forum_data[$j]['cat_id'] == $cat_id )
{
$forum_id = $forum_data[$j]['forum_id'];
if ( $is_auth_ary[$forum_id]['auth_view'] )
{
if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED )
{
$folder_image = $images['forum_locked'];
$folder_alt = $lang['Forum_locked'];
}
else
{
$unread_topics = false;
if ( $userdata['session_logged_in'] )
{
if ( !empty($new_topic_data[$forum_id]) )
{
$forum_last_post_time = 0;
while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) )
{
if ( empty($tracking_topics[$check_topic_id]) )
{
$unread_topics = true;
$forum_last_post_time = max($check_post_time, $forum_last_post_time);
}
else
{
if ( $tracking_topics[$check_topic_id] < $check_post_time )
{
$unread_topics = true;
$forum_last_post_time = max($check_post_time, $forum_last_post_time);
}
}
}
if ( !empty($tracking_forums[$forum_id]) )
{
if ( $tracking_forums[$forum_id] > $forum_last_post_time )
{
$unread_topics = false;
}
}
if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) )
{
if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $forum_last_post_time )
{
$unread_topics = false;
}
}
}
}
$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts'];
}
$posts = $forum_data[$j]['forum_posts'];
$topics = $forum_data[$j]['forum_topics'];
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
else
{
$last_post = $lang['No_Posts'];
}
if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = ' ';
$moderator_list = ' ';
}
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'FORUM_FOLDER_IMG' => $folder_image,
'FORUM_NAME' => $forum_data[$j]['forum_name'],
'FORUM_DESC' => $forum_data[$j]['forum_desc'],
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
'LAST_POST' => $last_post,
'MODERATORS' => $moderator_list,
'L_MODERATOR' => $l_moderators,
'L_FORUM_FOLDER_ALT' => $folder_alt,
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
);
}
}
}
}
}
} // for ... categories
}// if ... total_categories
else
//-- add
*/
dit stuk is door de category hierachie mod in comment tags gezet, waardoor een deel van mijn modded code er ook in valt voor andere mods... hoe los ik dit op?? :thumb:
//edit:
owja, dit stuk staat dan dus tussen de comment tags:
Code: Selecteer alles
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
ik denk tenminste dat het hier aan ligt...

Geplaatst: 04 okt 2004, 07:42
door Coen

bump
weet dan niemand het??

Geplaatst: 05 okt 2004, 07:29
door Coen
als niemand dit weet, kan iemand me dan tenminste zeggen, in welke files ik de fout moet zoeken?? als ik mijn files uit me back-up opnieuw mod, zoals Sukkelaap me aanraadde in een ander topic dan krijg ik precies dezelfde fout... ik denk nog steeds dat het licht aan die ge-modde code in die comment uit me vorige posts...

Geplaatst: 05 okt 2004, 15:55
door cartoontje
Pak gewoon eens een recente back-up van je index.php en mod die even opnieuw. Als dat nietwerkt doe je hetzelfde met de bestanden die je hebt moeten aanpassen in de map includes. Wees erg secuur hierin!
Geplaatst: 05 okt 2004, 16:02
door Coen
ja, maar kijk, mijn category hierachy mod maakt van een deel van mijn modded code een comment!! zoals ik een post of 2 terug al aangaf!
daarom weet ik juist niet goed wat ik moet veranderen!!

Geplaatst: 05 okt 2004, 20:27
door -=|Rik|=-
Dat gecommente stuk heeft geen enkele invloed op de who is online sectie van je forum
Wat heb je allemaal veranderd voor de nivsec mod?
Geplaatst: 05 okt 2004, 20:35
door Coen
ik heb mods geinstalleerd:
-gender
-birthday
-rank in memberlist
-category hierachy
-colour group (ja duhuh...)
-cash (staat op dit moment op in-actief)
-easymod
-xdata
dat was t volgens mij wel...hopelijk kun je mij helpen!!

:thumb:
Geplaatst: 05 okt 2004, 20:42
door -=|Rik|=-
Welke als laatste toen dit ophield met werken.
Geplaatst: 05 okt 2004, 22:18
door Coen
als allerlaatste de group color mod en daarvoor de category hierachie...

Geplaatst: 06 okt 2004, 12:58
door Coen
opgelost door -=|Rik|=- via MSN
thanks buddy!
