|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:23
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg Added Files: LastMessage.pak functions.php index.htm mx_install_readme.htm mx_last_msg.php version_history.txt Log Message: Initital core 2.7.x commit :-) --- NEW FILE: functions.php --- <?php /*************************************************************************** * functions.php * ------------------- * begin : May, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: functions.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License', or * ('at your option) any later version. * ***************************************************************************/ function read_last_msg_config() { global $db; $sql = "SELECT last_msg_number , last_msg_display_date , last_msg_display_forum , last_msg_length , last_msg_target , last_msg_align FROM " . CONFIG_LAST_MSG_TABLE ; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain module configuration', '', __LINE__, __FILE__, $sql); } $module_config = $db->sql_fetchrow($result); return $module_config; } ?> --- NEW FILE: LastMessage.pak --- module=+:50=+:Last Message=+:modules/mx_last_msg/=+:Last Message Module=+:0 function=+:50=+:170=+:Last Message=+:Last Message=+:mx_last_msg.php=+: parameter=+:170=+:17=+:Last_Msg_Number_Title=+:Number=+:15=+: parameter=+:170=+:18=+:Last_Msg_Display_Date=+:Boolean=+:TRUE=+: parameter=+:170=+:19=+:Last_Msg_Title_Length=+:Number=+:30=+: parameter=+:170=+:20=+:Last_Msg_Target=+:Values=+:_blank=+: option=+:6=+:20=+:_blank=+:New Window option=+:7=+:20=+:_self=+:Current Window parameter=+:170=+:21=+:Last_Msg_Align=+:Values=+:left=+: option=+:3=+:21=+:left=+:left option=+:4=+:21=+:right=+:right option=+:5=+:21=+:center=+:center parameter=+:170=+:22=+:Last_Msg_Display_Forum=+:Boolean=+:TRUE=+: parameter=+:170=+:37=+:Last_Msg_forum=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE) parameter=+:170=+:39=+:Last_Msg_Display_Author=+:Boolean=+:FALSE=+: parameter=+:170=+:40=+:Last_Msg_Display_Icon_View=+:Boolean=+:FALSE=+: parameter=+:170=+:54=+:Last_Msg_Display_Last_Author=+:Boolean=+:TRUE=+: block=+:16=+:Last Message=+:=+:170=+:0=+:0=+:0 --- NEW FILE: mx_last_msg.php --- <?php /*************************************************************************** * mx_last_msg.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_last_msg.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * ***************************************************************************/ $block_config = read_block_config( $block_id ); $title = $block_config[$block_id]['block_title']; $block_size = ( !empty( $block_size ) ? $block_size : '100%' ); if ( $view_page ) { $template->set_filenames(array( "body_last_msg" => "mx_last_msg_view.tpl")); } else { $template->set_filenames(array( "body_last_msg" => "mx_last_msg.tpl")); } // // Read block Configuration // $PostNumber = $block_config[$block_id][Last_Msg_Number_Title]['parameter_value']; $display_date = $block_config[$block_id][Last_Msg_Display_Date]['parameter_value']; $nb_characteres = $block_config[$block_id][Last_Msg_Title_Length]['parameter_value']; $target = $block_config[$block_id][Last_Msg_Target]['parameter_value']; $align = $block_config[$block_id][Last_Msg_Align]['parameter_value']; $display_forum = $block_config[$block_id][Last_Msg_Display_Forum]['parameter_value']; $forum_lst_msg = $block_config[$block_id][Last_Msg_forum]['parameter_value']; if ( empty( $PostNumber ) ) $PostNumber = 5; $display_author = $block_config[$block_id][Last_Msg_Display_Author]['parameter_value']; $display_last_author = $block_config[$block_id][Last_Msg_Display_Last_Author]['parameter_value']; $display_icon_view = $block_config[$block_id][Last_Msg_Display_Icon_View]['parameter_value']; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); } // // Authorization SQL // $auth_data_sql_msg = get_auth_forum(); if ( empty( $forum_lst_msg ) ) { $forum_lst_msg = $auth_data_sql_msg; } // Added for 2.705 if ( empty( $forum_lst_msg ) ) { $forum_lst_msg = -1; } $start = ( isset($HTTP_GET_VARS['lmsg_start']) ) ? intval($HTTP_GET_VARS['lmsg_start']) : 0; $start_prev = ( $start == 0 ) ? 0 : $start - $PostNumber; $start_next = $start + $PostNumber; if ( $view_page ) { $url_next = append_sid( PORTAL_URL . 'index.php' . '?lmsg_start=' . $start_next . '&block_id=' . $block_id ); $url_prev = append_sid( PORTAL_URL . 'index.php' . '?lmsg_start=' . $start_prev . '&block_id=' . $block_id ); } else { $url_next = mx_url( 'lmsg_start' , $start_next ); // append_sid( $URL_INDEX . ( ( strpos($URL_INDEX, '?') != false ) ? '&' : '?' ) . 'lmsg_start=' . $start_next ); $url_prev = mx_url( 'lmsg_start' , $start_prev ); // append_sid( $URL_INDEX . ( ( strpos($URL_INDEX, '?') != false ) ? '&' : '?' ) . 'lmsg_start=' . $start_prev ); } $template->assign_vars(array( // 'L_TITLE' => ( !empty( $lang['Latest_Post'] ) ? $lang['Latest_Post'] : 'Last Message' ), 'L_TITLE' => ( !empty( $title ) ? $title : 'Last Message' ), 'U_TARGET' => $target, 'U_ALIGN' => $align, 'BLOCK_SIZE' => $block_size, 'U_URL' => append_sid( PORTAL_URL . 'index.php' . '?block_id=' . $block_id ), 'U_URL_NEXT' => $url_next, 'U_URL_PREV' => $url_prev, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_MSG_PREV' => $lang['Previous'], 'L_MSG_NEXT' => $lang['Next'] )); $GetType = "topics"; // posts ou topics // $private = "USER"; $timediff = 0; // Différence de temps entre le serveur et l'heure du forum en heures, en clair si votre forum est reglé sur GMT et que vous habitez en France il suffit de mettre 0 pour qu'il se regle sur le fuseau français (a verfifier selon les cas)(GMT+1) // if ( $private == "USER") { // $private1 = " AND f.auth_view < 1"; // } //elseif ( $private == "PRIVATE") { // $private1 = " AND f.auth_view < 2"; // } //elseif ( $private == "MODO") { // $private1 = " AND f.auth_view <3"; // } //elseif ( $private == "ADMIN") { // $private1 = " AND f.auth_view <5"; // } //else { // $private =""; // } $sql = "SELECT t.topic_title, p.topic_id, t.topic_last_post_id, p.post_time, f.forum_name, f.forum_id, u.username, u.user_id, p.post_username, u2.username as user2, u2.user_id as id2 FROM ". TOPICS_TABLE ." AS t, ". FORUMS_TABLE ." AS f, ". POSTS_TABLE ." AS p, ". USERS_TABLE . " AS u, ". USERS_TABLE . " AS u2 WHERE f.forum_id = t.forum_id AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.poster_id = u2.user_id AND t.topic_moved_id = 0 AND f.forum_id in ( $forum_lst_msg ) AND f.forum_id in ( $auth_data_sql_msg ) ORDER BY t.topic_last_post_id DESC LIMIT $start, $PostNumber"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query topics list', '', __LINE__, __FILE__, $sql); } $postrow = $db->sql_fetchrowset($result); for($row_count = 0; $row_count < count($postrow); $row_count++) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $message = $postrow[$row_count]['topic_title']; $url = append_sid( PHPBB_URL . 'viewtopic.php?t='.$postrow[$row_count]['topic_id'].'#'.$postrow[$row_count]['topic_last_post_id']); if( $postrow[$row_count]['topic_status'] == TOPIC_MOVED ) { $topic_type = $lang['Topic_Moved'] . ' '; $topic_id = $postrow[$row_count]['topic_moved_id']; $folder_image = $images['folder']; $folder_alt = $lang['Topics_Moved']; $newest_post_img = ''; } else { if( $postrow[$row_count]['topic_type'] == POST_ANNOUNCE ) { $folder = $images['folder_announce']; $folder_new = $images['folder_announce_new']; } else if( $postrow[$row_count]['topic_type'] == POST_STICKY ) { $folder = $images['folder_sticky']; $folder_new = $images['folder_sticky_new']; } else if( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) { $folder = $images['folder_locked']; $folder_new = $images['folder_locked_new']; } else { if($replies >= $board_config['hot_threshold']) { $folder = $images['folder_hot']; $folder_new = $images['folder_hot_new']; } else { $folder = $images['folder']; $folder_new = $images['folder_new']; } } $newest_post_img = ''; if( $userdata['session_logged_in'] ) { $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array(); $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array(); if( $postrow[$row_count]['post_time'] > $userdata['user_lastvisit'] ) { if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $unread_topics = true; if( !empty($tracking_topics[$postrow[$row_count]['topic_id']]) ) { if( $tracking_topics[$postrow[$row_count]['topic_id']] >= $postrow[$row_count]['post_time'] ) { $unread_topics = false; } } if( !empty($tracking_forums[$postrow[$row_count]['topic_id']]) ) { if( $tracking_forums[$postrow[$row_count]['topic_id']] >= $postrow[$row_count]['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'] >= $postrow[$row_count]['post_time'] ) { $unread_topics = false; } } if( $unread_topics ) { $folder_image = $folder_new; $folder_alt = $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_image = $folder_new; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } IF ( $display_author == "TRUE" ) { $topic_author = ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['user_id']) . '">' : ''; $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? $postrow[$row_count]['username'] : ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] : $lang['Guest'] ); $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '</a>' : ''; } else { $topic_author = ''; } if ( $display_last_author == "TRUE" ) { $last_post_author = ( $postrow[$row_count]['id2'] == ANONYMOUS ) ? ( ($postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['id2']) . '">' . $postrow[$row_count]['user2'] . '</a>'; } else { $last_post_author = ''; } if( strlen($message ) > $nb_characteres ) { $message = substr( $message, 0, $nb_characteres); $position_espace = strrpos($message, " "); $message = substr($message, 0, $position_espace); $message .= "..."; } if ( $display_date == "TRUE" ) { $message_date = create_date($board_config['default_dateformat'], $postrow[$row_count]['post_time'],$board_config['board_timezone']); } else { $message_date = ''; } if ( $display_forum == "TRUE" ) { $forum_name = $postrow[$row_count]['forum_name']; $forum_url = append_sid( PHPBB_URL . 'viewforum.php?f=' . $postrow[$row_count]['forum_id']); } else { $forum_name = ''; $forum_url = ''; } if ( $display_icon_view == "TRUE" ) { $last_post_url = '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$row_count]['topic_last_post_id']) . '#' . $postrow[$row_count]['topic_last_post_id'] . '"><img src="' . PHPBB_URL. $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else { $last_post_url = ''; } $template->assign_block_vars("msg_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "LAST_MSG" => $message, "LAST_MSG_DATE" => $message_date, "FORUM_NAME" => $forum_name, "U_LAST_MSG" => $url, "U_FORUM" => $forum_url , 'LAST_POST_IMG' => $last_post_url, 'FOLDER_IMG' => $folder_image, 'TOPIC_AUTHOR' => $topic_author, 'LAST_POST_AUTHOR' => $last_post_author, 'L_TOPIC_FOLDER_ALT' => $folder_alt ) ); } $template->pparse("body_last_msg"); ?> --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(../../install/templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(../../install/templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><span class="postbody"><a name="top"> <p><br /> <span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Core Module</span></span> <br /> - for Mx Portal v. 2.7 (or later) <br /> <br /> <span style="font-weight: bold">Description</span> <br /> This module is an addon module for the Mx Portal. More detailed release info is published (and updated) at <a href="http://www.mx-system.com">www.mx-system.com</a>.<br /> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a> <br /> <br /> <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO </a> <br /> <br /> <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> DOWNLOAD </a> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions. If you encounter any problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> module support forum</a>. <br /> </p> <p>0) Consult the version_history.txt to learn about module version changes/updates. To install this module, follow these instructions. If you encounter any problems during install, visit the [url=http://www.mx-system.com/forum/viewforum.php?f=20] module support forum[/url].</p> <p>1) Override your old files, i.e. unzip the distributed files into your portal modules directory, /modules, and upload.</p> <p>2) Remove old module installation from MX.<br> In the AdminCP, browse to 'Module Management' and 'delete' any old module version. </p> <p><em>Note</em>: This will only remove the module from the MX system kernel. Module data itself (like actual downloads, weblinks, photos etc) will not be touch or deleted.</p> <p>3) Import new module to MX<br> In the AdminCP, browse to 'Module Management' and 'import' Module Pack for this module. Some warnings may be reported but this is generally nothing to worry about...but a symptom when upgrading.</p> <p>4) Now the module is installed, but to use it you need to add the module Block to a Portal Page. In the AdminCP, browse to 'Page Administration' and 'Add Block' to any portal page. Done!</p> <p><br /> <br /><a href="#top"> Back to Top<a> <br /> <br /><a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> This module is compatible with any theme/style. All template files are located within modules/mx_modulename/templates. Note: You dont have to specify 'SubSilver' or any theme name, since all theme settings follow from the general portal/phpbb page header. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> <a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. <br /> <br /> Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> here</a>. <br /> <br /> If exists, download and install in the modules/mx_modulename/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> /Mx Team</span><span class="gensmall"></span></p> </td> </tr> </table> </body> </html> --- NEW FILE: version_history.txt --- ################################################################# ## ## Mx Portal 2.7 - Last Message Module v. 1.04 ## v. 1.04 - Redeclare auth() fix - Some files updated. No db updates. Reinstalling (importing) is not needed! v. 1.03 - Bugfixes: numerous - New/changed file(s): mx_last_msg.php LastMessage.pak mx_install_readme.htm - Delete old file(s): Last Message.pak mx_install - readme.htm v. 1.02 - Bugfix: show author/poster - Changed files: mx_last_msg.tpl v. 1.01 - New *.pak file, for automatic Block generation during install v. 1.0 - Numerous bugfixes ## /Mx Team ## ################################################################# --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |