|
From: Florin C B. <ory...@us...> - 2011-03-28 23:59:09
|
Update of /cvsroot/mxbb/mx_glance
In directory vz-cvs-4.sog:/tmp/cvs-serv30035
Modified Files:
mx_glance.php
Log Message:
mx at a glance prosilver template fix
Index: mx_glance.php
===================================================================
RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** mx_glance.php 12 Oct 2008 01:28:41 -0000 1.21
--- mx_glance.php 28 Mar 2011 23:59:07 -0000 1.22
***************
*** 288,292 ****
SELECT
f.forum_id, f.forum_name" . $sql_title . ", t.*,
! p2.post_time, p2.poster_id,
u.username as last_username,
u2.username as author_username
--- 288,292 ----
SELECT
f.forum_id, f.forum_name" . $sql_title . ", t.*,
! p2.post_time, p2.poster_id, p2.icon_id,
u.username as last_username,
u2.username as author_username
***************
*** 571,578 ****
}
! $topic_autor_id = append_sid(PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $latest_news[$i]['user_id']);
$topic_autor = $latest_news[$i]['username'];
! $topic_poster = ($latest_news[$i]['topic_poster'] == ANONYMOUS ) ? '<span ' . $topic_poster_style . '>' . $lang['Guest'] . '</span>' : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['topic_poster']) . '"><span ' . $topic_poster_style . '>' . $latest_news[$i]['author_username'] . '</span></a> ';
$topic_poster_full = $topic_poster;
}
--- 571,578 ----
}
! $topic_autor_id = mx_append_sid(PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $latest_news[$i]['user_id']);
$topic_autor = $latest_news[$i]['username'];
! $topic_poster = ($latest_news[$i]['topic_poster'] == ANONYMOUS ) ? '<span ' . $topic_poster_style . '>' . $lang['Guest'] . '</span>' : '<a href="' . mx_append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['topic_poster']) . '"><span ' . $topic_poster_style . '>' . $latest_news[$i]['author_username'] . '</span></a> ';
$topic_poster_full = $topic_poster;
}
***************
*** 620,630 ****
$next_news_url = '';
}
-
$template->assign_block_vars('latest_news', array(
'NEWEST_POST_IMG' => $$bullet_full,
'TOPIC_FOLDER_IMG_SRC' => $$bullet_src,
'TOPIC_TITLE' => $latest_news[$i]['topic_title'],
! 'U_LAST_POST' => mx_append_sid( PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . '&p=' . $latest_news[$i]['topic_last_post_id'] . '#p' . $latest_news[$i]['topic_last_post_id']),
'TOPIC_TIME' => $message_date,
'LAST_POST_TIME' => $last_post_time,
'TOPIC_POSTER' => $topic_poster,
--- 620,632 ----
$next_news_url = '';
}
$template->assign_block_vars('latest_news', array(
'NEWEST_POST_IMG' => $$bullet_full,
'TOPIC_FOLDER_IMG_SRC' => $$bullet_src,
'TOPIC_TITLE' => $latest_news[$i]['topic_title'],
! 'U_LAST_POST' => mx_append_sid(PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . '&p=' . $latest_news[$i]['topic_last_post_id'] . '#p' . $latest_news[$i]['topic_last_post_id']),
'TOPIC_TIME' => $message_date,
+ 'TOPIC_ICON_IMG' => (!empty($mx_user->img[$latest_news[$i]['icon_id']])) ? $mx_user->img[$latest_news[$i]['icon_id']]['img'] : '',
+ 'TOPIC_ICON_IMG_WIDTH' => (!empty($mx_user->img[$latest_news[$i]['icon_id']])) ? $mx_user->img[$latest_news[$i]['icon_id']]['width'] : '',
+ 'TOPIC_ICON_IMG_HEIGHT' => (!empty($mx_user->img[$latest_news[$i]['icon_id']])) ? $mx_user->img[$latest_news[$i]['icon_id']]['height'] : '',
'LAST_POST_TIME' => $last_post_time,
'TOPIC_POSTER' => $topic_poster,
***************
*** 639,644 ****
'TOPIC_AUTHOR_FULL' => $topic_poster_full,
'FORUM_TITLE' => $latest_news[$i]['forum_name'],
! 'U_VIEW_TOPIC' => mx_append_sid( PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . $newest_code),
! 'U_VIEW_FORUM' => mx_append_sid( PHPBB_URL . 'viewforum.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id']),
'NEXT_URL' => $next_news_url,
'PREV_URL' => $prev_news_url,
--- 641,646 ----
'TOPIC_AUTHOR_FULL' => $topic_poster_full,
'FORUM_TITLE' => $latest_news[$i]['forum_name'],
! 'U_VIEW_TOPIC' => mx_append_sid(PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . $newest_code),
! 'U_VIEW_FORUM' => mx_append_sid(PHPBB_URL . 'viewforum.' . $phpEx . '?' . 'f=' . $latest_news[$i]['forum_id']),
'NEXT_URL' => $next_news_url,
'PREV_URL' => $prev_news_url,
***************
*** 832,839 ****
$topic_poster_style = '';
}
! $topic_autor_id = append_sid(PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $latest_topics[$i]['user_id']);
$topic_autor = $latest_topics[$i]['username'];
! $topic_poster = ($latest_topics[$i]['topic_poster'] == ANONYMOUS ) ? '<span ' . $topic_poster_style . '>' . $lang['Guest'] . '</span>' : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['topic_poster']) . '"><span ' . $topic_poster_style . '>' . $latest_topics[$i]['author_username'] . '</span></a> ';
$topic_poster_full = $topic_poster;
}
--- 834,841 ----
$topic_poster_style = '';
}
! $topic_autor_id = mx_append_sid(PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $latest_topics[$i]['user_id']);
$topic_autor = $latest_topics[$i]['username'];
! $topic_poster = ($latest_topics[$i]['topic_poster'] == ANONYMOUS ) ? '<span ' . $topic_poster_style . '>' . $lang['Guest'] . '</span>' : '<a href="' . mx_append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['topic_poster']) . '"><span ' . $topic_poster_style . '>' . $latest_topics[$i]['author_username'] . '</span></a> ';
$topic_poster_full = $topic_poster;
}
***************
*** 871,874 ****
--- 873,879 ----
'NEWEST_POST_IMG' => $$bullet_full,
'TOPIC_FOLDER_IMG_SRC' => $$bullet_src,
+ 'TOPIC_ICON_IMG' => (!empty($mx_user->img[$latest_topics[$i]['icon_id']])) ? $mx_user->img[$latest_topics[$i]['icon_id']]['img'] : '',
+ 'TOPIC_ICON_IMG_WIDTH' => (!empty($mx_user->img[$latest_topics[$i]['icon_id']])) ? $mx_user->img[$latest_topics[$i]['icon_id']]['width'] : '',
+ 'TOPIC_ICON_IMG_HEIGHT' => (!empty($mx_user->img[$latest_topics[$i]['icon_id']])) ? $mx_user->img[$latest_topics[$i]['icon_id']]['height'] : '',
'U_LAST_POST' => mx_append_sid( PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $latest_topics[$i]['forum_id'] . '&t=' . $latest_topics[$i]['topic_id'] . '&p=' . $latest_topics[$i]['topic_last_post_id'] . '#p' . $latest_topics[$i]['topic_last_post_id']),
'TOPIC_POSTS' => $latest_topics[$i]['topic_replies'],
|