You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb/admin Added Files: mx_module_defs.php Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: mx_module_defs.php --- <?php /** * * @package mxBB Portal Module - mx_pafiledb * @version $Id: mx_module_defs.php,v 1.1 2006/08/13 18:52:33 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /********************************************************************************\ | Class: mx_module_defs | The mx_module_defs object provides additional module block parameters... \********************************************************************************/ // // The following flags are class specific options // // Flow control define('MX_PANEL_DEBUG', false); /** * Enter description here... * */ class mx_module_defs { var $is_panel = false; // ------------------------------ // Private Methods // // // =================================================== // define module specific block parameters // =================================================== function get_parameters($type_row = '') { global $lang; if (empty($type_row)) { $type_row = array(); } $type_row['link_quick_cat'] = !empty($lang['ParType_link_quick_cat']) ? $lang['ParType_link_quick_cat'] : "linkDb default category"; return $type_row; } // =================================================== // Submit custom parameter field and data // =================================================== function submit_module_parameters( $parameter_data, $block_id ) { global $HTTP_POST_VARS, $db, $board_config, $mx_blockcp, $mx_root_path, $phpEx; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; /* switch ( $parameter_data['parameter_type'] ) { case 'pa_quick_cat': $bbcode_on = $board_config['allow_bbcode'] ? true : false; $html_on = $board_config['allow_html'] ? true : false; $smilies_on = $board_config['allow_smilies'] ? true : false; if( $bbcode_on ) { $bbcode_uid = make_bbcode_uid(); } break; } $parameter_value = prepare_message(trim($parameter_value), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); $parameter_opt = $bbcode_uid; */ return array('parameter_value' => $parameter_value, 'parameter_opt' => $parameter_opt); } // =================================================== // display parameter field and data in the add/edit page // =================================================== function display_module_parameters( $parameter_data, $block_id ) { global $template, $mx_blockcp, $mx_root_path, $theme, $lang; switch ( $parameter_data['parameter_type'] ) { case 'link_quick_cat': $this->display_edit_link_quick_cat( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } function display_edit_link_quick_cat( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; // // Includes // $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; include_once( $module_root_path . 'linkdb/includes/linkdb_constants.' . $phpEx ); // // Get varaibles // $data = ( !empty( $parameter_data['parameter_value'] ) ) ? $parameter_data['parameter_value'] : ''; $parameter_datas = $this->generate_jumpbox( 0, 0, array( $data => 1 ), false ); // // Start page proper // $template->set_filenames(array( 'parameter' => 'admin/mx_module_parameters.tpl') ); $template->assign_block_vars( 'select', array( 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'PARAMETER_TITLE_EXPLAIN' => ( !empty($lang[$parameter_data['parameter_name']. "_explain"]) ) ? '<br />' . $lang[$parameter_data['parameter_name']. "_explain"] : '', 'L_NONE' => $lang['None'], 'SELECT_LIST' => $parameter_datas, 'FIELD_NAME' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'FIELD_ID' => $parameter_data['parameter_id'], 'FIELD_DESCRIPTION' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '' )); $template->pparse('parameter'); } // =================================================== // Jump menu function // $cat_id : to handle parent cat_id // $depth : related to function to generate tree // $default : the cat you wanted to be selected // $for_file: TRUE high category ids will be -1 // $check_upload: if true permission for upload will be checked // =================================================== function generate_jumpbox( $cat_id = 0, $depth = 0, $default = '', $for_file = false, $check_upload = false ) { global $db; static $cat_rowset = false; $sql = 'SELECT * FROM ' . LINK_CATEGORIES_TABLE . ' ORDER BY cat_order ASC'; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); } $cat_rowset_temp = $db->sql_fetchrowset( $result ); $db->sql_freeresult( $result ); $cat_rowset = array(); foreach( $cat_rowset_temp as $row ) { $cat_rowset[$row['cat_id']] = $row; } // // Generate list // $cat_list .= ''; $pre = str_repeat( ' ', $depth ); $temp_cat_rowset = $cat_rowset; if ( !empty( $temp_cat_rowset ) ) { foreach ( $temp_cat_rowset as $temp_cat_id => $cat ) { if ( $cat['cat_parent'] == $cat_id ) { if ( is_array( $default ) ) { if ( isset( $default[$cat['cat_id']] ) ) { $sel = ' selected="selected"'; } else { $sel = ''; } } $cat_pre = ( !$cat['cat_allow_file'] ) ? '+ ' : '- '; $sub_cat_id = ( $for_file ) ? ( ( !$cat['cat_allow_file'] ) ? -1 : $cat['cat_id'] ) : $cat['cat_id']; $cat_class = ( !$cat['cat_allow_file'] ) ? 'class="greyed"' : ''; $cat_list .= '<option value="' . $sub_cat_id . '"' . $sel . ' ' . $cat_class . ' />' . $pre . $cat_pre . $cat['cat_name'] . '</option>'; $cat_list .= $this->generate_jumpbox( $cat['cat_id'], $depth + 1, $default, $for_file, $check_upload ); } } return $cat_list; } else { return; } } } ?> |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb Modified Files: mx_linkdb.pak Added Files: linkdb_lists.php linkdb_mini.php Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: linkdb_mini.php --- <?php /** * * @package mxBB Portal Module - mx_pafiledb * @version $Id: linkdb_mini.php,v 1.1 2006/08/13 18:52:33 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); $is_block = true; global $images; // // Definitions // define( 'MXBB_MODULE', true ); define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); list( $trash, $mx_script_name_temp ) = split ( trim( $board_config['server_name'] ), PORTAL_URL ); $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); // // Setup config parameters // $config_name = array( 'mini_default_cat_id', 'mini_display_options', 'mini_pagination' ); for( $i = 0; $i < count( $config_name ); $i++ ) { $config_value = $mx_block->get_parameters( $config_name[$i] ); $mini_config[$config_name[$i]] = $config_value; } // =================================================== // Include the common file // =================================================== include_once( $module_root_path . 'linkdb/linkdb_common.' . $phpEx ); $template->destroy(); // =================================================== // Get action variable other wise set it to the main // =================================================== $action = ( isset( $_REQUEST['action_mini'] ) ) ? htmlspecialchars( $_REQUEST['action_mini'] ) : 'mini'; // =================================================== // if the database disabled give them a nice message // =================================================== if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); } // =================================================== // an array of all expected actions // =================================================== $actions = array( 'mini' => 'mini', 'download' => 'download' ); // =================================================== // Lets Build the page // =================================================== $page_title = $lang['Download']; if ( $action != 'download' ) { if ( !$is_block ) { include( $mx_root_path . 'includes/page_header.' . $phpEx ); } } $linkdb->module( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); $template->pparse( 'body' ); if ( $action != 'download' ) { if ( !$is_block ) { include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } } ?> --- NEW FILE: linkdb_lists.php --- <?php /** * * @package mxBB Portal Module - mx_linkdb * @version $Id: linkdb_lists.php,v 1.1 2006/08/13 18:52:33 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); $is_block = true; global $images; // // Definitions // define( 'MXBB_MODULE', true ); define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); // // Setup config parameters // $config_name = array( 'toplist_sort_method', 'toplist_display_options', 'toplist_pagination', 'toplist_use_pagination', 'toplist_filter_date', 'toplist_cat_id' ); for( $i = 0; $i < count( $config_name ); $i++ ) { $config_value = $mx_block->get_parameters( $config_name[$i] ); $toplist_config[$config_name[$i]] = $config_value; } // // Get pafiledb target block // $toplist_block_id = $mx_block->get_parameters( 'target_block' ); $toplist_page_id = intval($toplist_block_id) > 0 ? get_page_id( $toplist_block_id ) : get_page_id( 'linkdb.php', true ); // =================================================== // Include the common file // =================================================== include_once( $module_root_path . 'linkdb/linkdb_common.' . $phpEx ); $template->destroy(); // =================================================== // if the database disabled give them a nice message // =================================================== if ( intval( $linkdb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['linkdb_disable'] ); } // =================================================== // an array of all expected actions // =================================================== $actions = array( 'lists' => 'lists' ); $action = 'lists'; $linkdb->module( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); $template->pparse( 'body' ); ?> Index: mx_linkdb.pak =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/mx_linkdb.pak,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_linkdb.pak 15 Jan 2005 23:47:36 -0000 1.2 --- mx_linkdb.pak 13 Aug 2006 18:52:32 -0000 1.3 *************** *** 5,6 **** --- 5,26 ---- block=+:=+:Demo - linkdb=+:Demo block=+:95=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:53=+:59=+:LinkDb_list=+:LinkDb toplists=+:linkdb_lists.php=+: + parameter=+:59=+:115=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "linkdb.php")=+:0 + parameter=+:59=+:154=+:toplist_cat_id=+:link_quick_cat=+:0=+:=+:1 + parameter=+:59=+:152=+:toplist_display_options=+:Checkbox_multiple_select=+:a:1:{i:0;s:4:"date";}=+:a:4:{i:0;s:4:"date";i:1;s:8:"username";i:2;s:7:"counter";i:3;s:4:"rate";}=+:1 + parameter=+:59=+:155=+:toplist_filter_date=+:Function=+:5=+:get_list_static("{parameter_id}[]",array("no limit", "1 day", "2 days", "3 days", "1 week", "2 weeks", "3 weeks", "1 month", "2 months", "3 months", "6 months", "1 year"),"{parameter_value}")=+:1 + parameter=+:59=+:114=+:toplist_pagination=+:Number=+:3=+:=+:0 + parameter=+:59=+:109=+:toplist_sort_method=+:Menu_single_select=+:latest=+:a:4:{i:0;s:6:"latest";i:1;s:12:"most_popular";i:2;s:8:"toprated";i:3;s:6:"random";}=+:1 + parameter=+:59=+:113=+:toplist_use_pagination=+:Boolean=+:TRUE=+:=+:1 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Demo - LinkDb_list=+:Demo block=+:59=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + function=+:0=+:0=+:0=+:endoflist=+:0=+:0 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:53=+:90=+:LinkDb_mini=+:Mini navigation block=+:linkdb_mini.php=+: + parameter=+:90=+:156=+:mini_default_cat_id=+:link_quick_cat=+:0=+:=+:1 + parameter=+:90=+:158=+:mini_display_options=+:Checkbox_multiple_select=+:a:1:{i:0;s:4:"date";}=+:a:4:{i:0;s:4:"date";i:1;s:8:"username";i:2;s:7:"counter";i:3;s:4:"rate";}=+:1 + parameter=+:90=+:157=+:mini_pagination=+:Number=+:5=+:=+:1 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Demo - LinkDb_mini=+:Demo block=+:90=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + function=+:0=+:0=+:0=+:endoflist=+:0=+:0 |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb/templates/subSilver Added Files: link_lists.tpl link_mini.tpl Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: link_mini.tpl --- <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" style="border-top:none;"><tr><td> <tr> <td> <table width="100%" cellpadding="2" cellspacing="0"> <tr><td align="center" class="row2"> <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return false;}"> <input type="hidden" name="action" value="category" /> <input type="hidden" name="page" value="{MX_PAGE}" /> <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"> <option value="-1">{L_QUICK_JUMP}</option> {BLOCK_JUMPMENU} </select> <!--<input type="submit" value="{L_QUICK_GO}" class="liteoption" />--> </span> </form> </td></tr> </table> </td> </tr> <tr> <td align="center"> <!-- BEGIN FILELIST --> <table width="100%" cellpadding="2" cellspacing="0"> <!-- BEGIN file_rows --> <tr> <td rowspan="2" class="{FILELIST.file_rows.COLOR}" valign="top"> {FILELIST.file_rows.PIN_IMAGE}</td> <td width="100%" class="{FILELIST.file_rows.COLOR}"> <a href="{FILELIST.file_rows.U_FILE}" class="topictitle" target="_blank">{FILELIST.file_rows.FILE_NAME}</a> <!-- BEGIN is_new_file --> <img src="{FILELIST.file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"> <!-- END is_new_file --> <br><span class="genmed">{FILELIST.file_rows.FILE_DESC}</span> </td> </tr> <tr> <td valign="top" align="left" class="{FILELIST.file_rows.COLOR}"> <span class="gensmall"> <!-- BEGIN display_username --> • {L_SUBMITED_BY} {FILELIST.file_rows.POSTER}<br /> <!-- END display_username --> <!-- BEGIN display_date --> • {L_DATE}: {FILELIST.file_rows.DATE}<br /> <!-- END display_date --> <!-- BEGIN display_counter --> • {L_DOWNLOADS}: {FILELIST.file_rows.FILE_DLS}<br /> <!-- END display_counter --> <!-- BEGIN display_rate --> • {FILELIST.file_rows.L_RATING}: {FILELIST.file_rows.RATING} ({FILELIST.file_rows.FILE_VOTES} {L_VOTES}) {FILELIST.file_rows.DO_RATE}<br /> <!-- END display_rate --> </span> </td> </tr> <!-- END file_rows --> <tr valign="middle"> <td align="right" colspan="2" valign="top" nowrap="nowrap" height="28" class="cat"><span class="gensmall">{BLOCK_PAGINATION}</span></td> </tr> </table> <!-- END FILELIST --> <!-- BEGIN NO_FILE --> <table width="100%" cellspacing="1" cellpadding="4"> <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> </table> <!-- END NO_FILE --> </td></tr></table> --- NEW FILE: link_lists.tpl --- <!-- BEGIN FILELIST --> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" style="border-top:none;"><tr><td> <table width="100%" cellpadding="2" cellspacing="0"> <!-- BEGIN file_rows --> <tr> <td rowspan="2" class="{FILELIST.file_rows.COLOR}" valign="top"> {FILELIST.file_rows.PIN_IMAGE}</td> <td width="100%" class="{FILELIST.file_rows.COLOR}"> <a href="{FILELIST.file_rows.U_FILE}" class="topictitle" target="_blank">{FILELIST.file_rows.FILE_NAME}</a> <!-- BEGIN is_new_file --> <img src="{FILELIST.file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"> <!-- END is_new_file --> <br><span class="genmed">{FILELIST.file_rows.FILE_DESC}</span> </td> </tr> <tr> <td valign="top" align="left" class="{FILELIST.file_rows.COLOR}"> <span class="gensmall"> <!-- BEGIN display_username --> • {L_SUBMITED_BY} {FILELIST.file_rows.POSTER}<br /> <!-- END display_username --> <!-- BEGIN display_date --> • {L_DATE}: {FILELIST.file_rows.DATE}<br /> <!-- END display_date --> <!-- BEGIN display_counter --> • {L_DOWNLOADS}: {FILELIST.file_rows.FILE_DLS}<br /> <!-- END display_counter --> <!-- BEGIN display_rate --> • {FILELIST.file_rows.L_RATING}: {FILELIST.file_rows.RATING} ({FILELIST.file_rows.FILE_VOTES} {L_VOTES}) {FILELIST.file_rows.DO_RATE}<br /> <!-- END display_rate --> </span> </td> </tr> <!-- END file_rows --> <!-- BEGIN toplist_pagination --> <tr valign="middle"> <td align="right" colspan="2" valign="top" nowrap="nowrap" height="28" class="cat"><span class="gensmall">{BLOCK_PAGINATION}</span></td> </tr> <!-- END toplist_pagination --> </table> </td></tr></table> <!-- END FILELIST --> <!-- BEGIN NO_FILE --> <table width="100%" cellspacing="1" cellpadding="4"> <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> </table> <!-- END NO_FILE --> |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb/templates/subSilver/admin Added Files: mx_module_parameters.tpl Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: mx_module_parameters.tpl --- <!-- BEGIN select --> <tr> <td width="100%" colspan="2"> <table cellpadding="2" cellspacing="0" width="100%"> <tr title="{select.FIELD_DESCRIPTION}"> <td class="row1" width="50%" align="right"> <span class="topictitle">{select.PARAMETER_TITLE}:</span> <span class="gensmall">{select.PARAMETER_TITLE_EXPLAIN}</span> </td> <td class="row1"> <select name="{select.FIELD_ID}" class="post"> <option value="0">{select.L_NONE}</option> {select.SELECT_LIST} </select> </td> </tr> </table> </td> </tr> <!-- END select --> |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb/linkdb/includes Modified Files: functions_linkdb.php Log Message: More module blocks - Mini block - Latest Item block Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** functions_linkdb.php 4 Aug 2006 20:11:18 -0000 1.18 --- functions_linkdb.php 13 Aug 2006 18:52:32 -0000 1.19 *************** *** 772,779 **** * @param unknown_type $sort_order * @param unknown_type $start - * @param unknown_type $show_file_message * @param unknown_type $cat_id */ ! function display_items( $sort_method, $sort_order, $start, $show_file_message, $cat_id = false ) { global $db, $linkdb_config, $template, $board_config; --- 772,782 ---- * @param unknown_type $sort_order * @param unknown_type $start * @param unknown_type $cat_id + * @param unknown_type $show_file_message + * @param unknown_type $sort_options_list + * @param unknown_type $sql_xtra + * @param unknown_type $target_page_id */ ! function display_items( $sort_method, $sort_order, $start, $cat_id = false, $show_file_message = true, $sort_options_list = false, $sql_xtra = '', $target_page_id = false ) { global $db, $linkdb_config, $template, $board_config; *************** *** 788,792 **** // Category SQL // ! $cat_where = empty( $cat_id ) ? "AND f1.link_catid IN (" . $this->gen_cat_ids( '0' ) . ")" : "AND f1.link_catid = $cat_id"; // --- 791,807 ---- // Category SQL // ! if (!$cat_id) ! { ! $cat_where = "AND f1.link_catid IN (" . $this->gen_cat_ids( '0' ) . ")"; ! } ! else if (is_array($cat_id)) ! { ! $cat_where = "AND f1.link_catid IN (" . $this->gen_cat_ids( $cat_id['parent'] ) . ")"; ! $cat_id = false; ! } ! else ! { ! $cat_where = "AND f1.link_catid = $cat_id"; ! } // *************** *** 802,805 **** --- 817,821 ---- AND f1.link_approved = 1 $cat_where + $sql_xtra GROUP BY f1.link_id ORDER BY $sort_method $sort_order"; *************** *** 813,816 **** --- 829,833 ---- WHERE f1.link_approved = 1 $cat_where + $sql_xtra GROUP BY f1.link_id ORDER BY $sort_method $sort_order"; *************** *** 836,840 **** FROM " . LINKS_TABLE . " AS f1 WHERE f1.link_approved='1' ! $cat_where"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 853,858 ---- FROM " . LINKS_TABLE . " AS f1 WHERE f1.link_approved='1' ! $cat_where ! $sql_xtra"; if ( !( $result = $db->sql_query( $sql ) ) ) *************** *** 953,956 **** --- 971,1000 ---- $template->assign_block_vars( "FILELIST.file_rows.split_links", array() ); } + + // + // Options (only used for the toplist block) + // + if ($sort_options_list) + { + foreach ($sort_options_list as $sort_option => $options_value) + { + switch ($sort_option) + { + case 'date': + $template->assign_block_vars( "FILELIST.file_rows.display_date", array()); + break; + case 'username': + $template->assign_block_vars( "FILELIST.file_rows.display_username", array()); + break; + case 'counter': + $template->assign_block_vars( "FILELIST.file_rows.display_counter", array()); + break; + case 'rate': + $template->assign_block_vars( "FILELIST.file_rows.display_rate", array()); + break; + } + } + } + } *************** *** 1069,1076 **** * @return unknown */ ! function this_mxurl( $args = '', $force_standalone_mode = false, $non_html_amp = false ) { global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; if ( !MXBB_MODULE ) { --- 1113,1122 ---- * @return unknown */ ! function this_mxurl( $args = '', $force_standalone_mode = false, $non_html_amp = false, $pageId = '' ) { global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; + $pageId = empty($pageId) ? $page_id : $pageId; + if ( !MXBB_MODULE ) { *************** *** 1086,1092 **** { $mxurl = $mx_root_path . 'index.' . $phpEx; ! if ( is_numeric( $page_id ) ) { ! $mxurl .= '?page=' . $page_id . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); } else --- 1132,1138 ---- { $mxurl = $mx_root_path . 'index.' . $phpEx; ! if ( is_numeric( $pageId ) ) { ! $mxurl .= '?page=' . $pageId . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); } else |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:52:36
|
Update of /cvsroot/mxbb/mx_linkdb/language/lang_english In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28103/modules/mx_linkdb/language/lang_english Modified Files: lang_admin.php Log Message: More module blocks - Mini block - Latest Item block Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/language/lang_english/lang_admin.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** lang_admin.php 1 Aug 2006 21:02:19 -0000 1.8 --- lang_admin.php 13 Aug 2006 18:52:32 -0000 1.9 *************** *** 21,24 **** --- 21,30 ---- // + // Parameter Types + // + $lang['ParType_link_quick_cat'] = 'linkDb default category'; + $lang['ParType_link_quick_cat_info'] = ''; + + // // Configuration // *************** *** 316,319 **** --- 322,344 ---- // + // Admin Panels - Toplists + // + $lang['toplist_sort_method'] = 'Toplist type'; + $lang['toplist_display_options'] = 'Display options'; + $lang['toplist_use_pagination'] = 'Use Pagination (Previous/Next \'Number of rows\')'; + $lang['toplist_pagination'] = 'Number of rows'; + $lang['toplist_filter_date'] = "Filter by time"; + $lang['toplist_filter_date_explain'] = "- Show posts from last week, month, year..."; + $lang['toplist_cat_id'] = 'Limit to category'; + $lang['target_block'] = 'Associated (target) pafileDB Block'; + + // + // Admin Panels - Mini + // + $lang['mini_display_options'] = 'Display options'; + $lang['mini_pagination'] = 'Number of rows'; + $lang['mini_default_cat_id'] = 'Limit to category'; + + // //Java script messages and php errors // |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:45
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb Modified Files: KnowledgeBase.pak kb_lists.php Added Files: kb_mini.php Log Message: More module blocks - Mini block - Latest Item block Index: KnowledgeBase.pak =================================================================== RCS file: /cvsroot/mxbb/mx_kb/KnowledgeBase.pak,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** KnowledgeBase.pak 30 Jun 2006 12:22:26 -0000 1.11 --- KnowledgeBase.pak 13 Aug 2006 18:51:37 -0000 1.12 *************** *** 5,9 **** parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - KB=+:Demo block=+:61=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 - function=+:0=+:0=+:0=+:endoflist=+:0=+:0 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:55=+:62=+:Article_reader=+:Block to display articles only. No category navigation. To be used with newssuite.=+:kb_article_reader.php=+: --- 5,8 ---- *************** *** 12,16 **** parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Article_reader=+:Demo block=+:62=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 - function=+:0=+:0=+:0=+:endoflist=+:0=+:0 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:55=+:63=+:Last Articles=+:KB Last Articles Function=+:kb_last_article.php=+: --- 11,14 ---- *************** *** 29,31 **** --- 27,47 ---- parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Last Articles=+:Demo block=+:63=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:55=+:59=+:KB_list=+:KB toplists=+:kb_lists.php=+: + parameter=+:59=+:115=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "kb.php")=+:0 + parameter=+:59=+:154=+:toplist_cat_id=+:kb_quick_cat=+:0=+:=+:1 + parameter=+:59=+:152=+:toplist_display_options=+:Checkbox_multiple_select=+:a:1:{i:0;s:4:"date";}=+:a:4:{i:0;s:4:"date";i:1;s:8:"username";i:2;s:7:"counter";i:3;s:4:"rate";}=+:1 + parameter=+:59=+:155=+:toplist_filter_date=+:Function=+:5=+:get_list_static("{parameter_id}[]",array("no limit", "1 day", "2 days", "3 days", "1 week", "2 weeks", "3 weeks", "1 month", "2 months", "3 months", "6 months", "1 year"),"{parameter_value}")=+:1 + parameter=+:59=+:114=+:toplist_pagination=+:Number=+:3=+:=+:0 + parameter=+:59=+:109=+:toplist_sort_method=+:Menu_single_select=+:latest=+:a:4:{i:0;s:6:"latest";i:1;s:12:"most_popular";i:2;s:8:"toprated";i:3;s:6:"random";}=+:1 + parameter=+:59=+:113=+:toplist_use_pagination=+:Boolean=+:TRUE=+:=+:1 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Demo - KB_list=+:Demo block=+:59=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:55=+:90=+:kb_mini=+:Mini navigation block=+:kb_mini.php=+: + parameter=+:90=+:156=+:mini_default_cat_id=+:kb_quick_cat=+:0=+:=+:1 + parameter=+:90=+:158=+:mini_display_options=+:Checkbox_multiple_select=+:a:1:{i:0;s:4:"date";}=+:a:4:{i:0;s:4:"date";i:1;s:8:"username";i:2;s:7:"counter";i:3;s:4:"rate";}=+:1 + parameter=+:90=+:157=+:mini_pagination=+:Number=+:5=+:=+:1 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Demo - KB_mini=+:Demo block=+:90=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: kb_mini.php --- <?php /** * * @package mxBB Portal Module - mx_pafiledb * @version $Id: kb_mini.php,v 1.1 2006/08/13 18:51:37 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); $is_block = true; global $images; // // Definitions // define( 'MXBB_MODULE', true ); define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); list( $trash, $mx_script_name_temp ) = split ( trim( $board_config['server_name'] ), PORTAL_URL ); $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); // // Setup config parameters // $config_name = array( 'mini_default_cat_id', 'mini_display_options', 'mini_pagination' ); for( $i = 0; $i < count( $config_name ); $i++ ) { $config_value = $mx_block->get_parameters( $config_name[$i] ); $mini_config[$config_name[$i]] = $config_value; } // =================================================== // Include the common file // =================================================== include_once( $module_root_path . 'kb/kb_common.' . $phpEx ); $template->destroy(); // =================================================== // Get action variable other wise set it to the main // =================================================== $action = ( isset( $_REQUEST['action_mini'] ) ) ? htmlspecialchars( $_REQUEST['action_mini'] ) : 'mini'; // =================================================== // if the database disabled give them a nice message // =================================================== if ( intval( $kb_config['module_enable'] ) ) { mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); } // =================================================== // an array of all expected actions // =================================================== $actions = array( 'mini' => 'mini', 'download' => 'download' ); // =================================================== // Lets Build the page // =================================================== $page_title = $lang['Download']; if ( $action != 'download' ) { if ( !$is_block ) { include( $mx_root_path . 'includes/page_header.' . $phpEx ); } } $mx_kb->module( $actions[$action] ); $mx_kb->modules[$actions[$action]]->main( $action ); $template->pparse( 'body' ); if ( $action != 'download' ) { if ( !$is_block ) { include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } } ?> Index: kb_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_lists.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** kb_lists.php 5 Jul 2006 22:48:25 -0000 1.2 --- kb_lists.php 13 Aug 2006 18:51:37 -0000 1.3 *************** *** 2,58 **** /** * ! * @package mxBB Portal Module - mx_kb * @version $Id$ ! * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! // ! // This block is not yet ported to KB ! // ! if ( !function_exists( 'read_block_config' ) ) { ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'PafileDB_toplist' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query PafileDB_toplist module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; } - else - { - if( !defined('IN_PORTAL') || !is_object($mx_block)) - { - die("Hacking attempt"); - } - // - // Read Block Settings - // - $title = $mx_block->block_info['block_title']; - $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! $is_block = true; ! global $images; ! } // --- 2,25 ---- /** * ! * @package mxBB Portal Module - mx_pafiledb * @version $Id$ ! * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! die("Hacking attempt"); } ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! ! $is_block = true; ! global $images; // *************** *** 63,613 **** // ! // Includes ! // ! include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); ! include_once( $module_root_path . 'pafiledb/includes/functions_auth.' . $phpEx ); ! include_once( $module_root_path . 'pafiledb/includes/functions_pafiledb.' . $phpEx ); ! ! // ! // Read block Configuration // ! $album_sp_config['img_rows'] = $mx_block->get_parameters( 'num_of_rows' ); ! $album_sp_config['img_cols'] = $mx_block->get_parameters( 'num_of_cols' ); ! ! $album_sp_config['disp_late'] = $mx_block->get_parameters( 'display_latest_posts' ) == 'TRUE' ? 1 : 0; ! $album_sp_config['disp_high'] = $mx_block->get_parameters( 'display_top_ranked' ) == 'TRUE' ? 1 : 0; ! $album_sp_config['disp_rand'] = $mx_block->get_parameters( 'display_random_posts' ) == 'TRUE' ? 1 : 0; ! $album_sp_config['disp_most'] = $mx_block->get_parameters( 'display_most_posts' ) == 'TRUE' ? 1 : 0; ! ! $album_config['rate'] = 1; ! $album_config['fullpic_popup'] = 0; ! $album_config['comment'] = 1; ! $album_sp_config['rate_type'] = 1; // // Get pafiledb target block // ! $pafiledb_block_id = $mx_block->get_parameters( 'target_block' ); ! $pafiledb_page_id = $pafiledb_block_id > 0 ? get_page_id( $pafiledb_block_id ) : get_page_id( 'dload.php', true ); ! ! // ! // Build Categories Index ! // ! $sql = "SELECT c.*, COUNT(p.file_id) AS count ! FROM " . PA_CATEGORY_TABLE . " AS c ! LEFT JOIN " . PA_FILES_TABLE . " AS p ON c.cat_id = p.file_catid ! WHERE cat_id <> 0 ! GROUP BY cat_id ! ORDER BY cat_order ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql ); ! } ! ! $catrows = array(); ! ! $pafiledb = new pafiledb_public(); ! $pafiledb->init(); ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! // $album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW ! if ( $pafiledb->auth[$row['cat_id']]['auth_view'] ) ! { ! $catrows[] = $row; ! } ! } ! ! $allowed_cat = ''; // For Recent Public Pics below ! // $catrows now stores all categories which this user can view. Dump them out! ! for ( $i = 0; $i < count( $catrows ); $i++ ) ! { ! // -------------------------------- ! // Build allowed category-list (for recent pics after here) ! // -------------------------------- ! $allowed_cat .= ( $allowed_cat == '' ) ? $catrows[$i]['cat_id'] : ',' . $catrows[$i]['cat_id']; ! } ! // END of Categories Index ! /* ! +---------------------------------------------------------- ! | Recent Public Pics ! +---------------------------------------------------------- ! */ ! if ( $album_sp_config['disp_late'] == 1 ) ! { ! if ( $allowed_cat != '' ) ! { ! $sql = "SELECT p.file_ssurl, p.file_id, p.file_name, p.file_desc, p.user_id, p.poster_ip, p.file_creator, p.file_time, p.file_update_time, p.file_catid, p.file_dls, u.user_id, u.username, r.votes_file, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comments_id) AS comments ! FROM " . PA_FILES_TABLE . " AS p ! LEFT JOIN " . USERS_TABLE . " AS u ON p.user_id = u.user_id ! LEFT JOIN " . PA_CATEGORY_TABLE . " AS ct ON p.file_catid = ct.cat_id ! LEFT JOIN " . PA_VOTES_TABLE . " AS r ON p.file_id = r.votes_file ! LEFT JOIN " . PA_COMMENTS_TABLE . " AS c ON p.file_id = c.file_id ! WHERE p.file_catid IN ($allowed_cat) AND p.file_approved = 1 ! GROUP BY p.file_id ! ORDER BY file_time DESC ! LIMIT " . $album_sp_config['img_cols'] * $album_sp_config['img_rows']; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql ); ! } ! ! $recentrow = array(); ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $recentrow[] = $row; ! } ! ! $template->assign_block_vars( 'recent_pics_block', array() ); ! ! if ( count( $recentrow ) > 0 ) ! { ! for ( $i = 0; $i < count( $recentrow ); $i += $album_sp_config['img_cols'] ) ! { ! $template->assign_block_vars( 'recent_pics_block.recent_pics', array() ); ! ! for ( $j = $i; $j < ( $i + $album_sp_config['img_cols'] ); $j++ ) ! { ! if ( $j >= count( $recentrow ) ) ! { ! break; ! } ! $file_screenshot_url = trim( $recentrow[$j]['file_ssurl'] ); ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_col', array( ! // 'U_PIC' => ($album_config['fullpic_popup']) ? append_sid($this->this_mxurl("smartor_mode=album_pic&pic_id=". $recentrow[$j]['pic_id'])) : append_sid($this->this_mxurl("smartor_mode=album_showpage&pic_id=". $recentrow[$j]['pic_id'])), ! // 'THUMBNAIL' => append_sid($this->this_mxurl("smartor_mode=album_thumbnail&pic_id=". $recentrow[$j]['pic_id'], TRUE)), ! // 'DESC' => $recentrow[$j]['pic_desc'] ! 'SS' => ( !empty( $file_screenshot_url ) ) ? '<hr><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '"><img src="' . $file_screenshot_url . '" width="100" border="0"></a><br /><span class="genmed"><i><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $recentrow[$j]['file_name'] . '</a></i></span>' : '' ! )); ! ! if ( ( $recentrow[$j]['user_id'] == ALBUM_GUEST ) or ( $recentrow[$j]['username'] == '' ) ) ! { ! $recent_poster = ( $recentrow[$j]['file_creator'] == '' ) ? $lang['Guest'] : $recentrow[$j]['file_creator']; ! } ! else ! { ! $recent_poster = '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $recentrow[$j]['user_id'] ) . '">' . $recentrow[$j]['username'] . '</a>'; ! } ! ! $rating_image = paImageRating( $recentrow[$j]['rating'] ); ! ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_detail', array( ! 'TITLE' => ( empty( $file_screenshot_url ) ) ? '<b>' . $lang['File_Title'] . ': <a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $recentrow[$j]['file_name'] . '</a></b><br />' : '', ! 'DESC' => $recentrow[$j]['file_desc'], ! 'POSTER' => $recent_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $recentrow[$j]['file_time'], $board_config['board_timezone'] ), ! 'UPDATED' => create_date( $board_config['default_dateformat'], $recentrow[$j]['file_update_time'], $board_config['board_timezone'] ), ! 'VIEW' => $recentrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); ! } ! } ! } ! else ! { ! // ! // No Pics Found ! // ! $template->assign_block_vars( 'recent_pics_block.no_pics', array() ); ! } ! } ! else ! { ! // ! // No Cats Found ! // ! $template->assign_block_vars( 'recent_pics_block.no_pics', array() ); ! } ! } ! ! /* ! +---------------------------------------------------------- ! | Most downloaded/viewed ! +---------------------------------------------------------- ! */ ! if ( $album_sp_config['disp_most'] == 1 ) ! { ! if ( $allowed_cat != '' ) ! { ! $sql = "SELECT p.file_ssurl, p.file_id, p.file_name, p.file_desc, p.user_id, p.poster_ip, p.file_creator, p.file_time, p.file_update_time, p.file_catid, p.file_dls, u.user_id, u.username, r.votes_file, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comments_id) AS comments ! FROM " . PA_FILES_TABLE . " AS p ! LEFT JOIN " . USERS_TABLE . " AS u ON p.user_id = u.user_id ! LEFT JOIN " . PA_CATEGORY_TABLE . " AS ct ON p.file_catid = ct.cat_id ! LEFT JOIN " . PA_VOTES_TABLE . " AS r ON p.file_id = r.votes_file ! LEFT JOIN " . PA_COMMENTS_TABLE . " AS c ON p.file_id = c.file_id ! WHERE p.file_catid IN ($allowed_cat) AND p.file_approved = 1 ! GROUP BY p.file_id ! ORDER BY file_dls DESC ! LIMIT " . $album_sp_config['img_cols'] * $album_sp_config['img_rows']; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not query recent pics information', '', __LINE__, __FILE__, $sql ); ! } ! ! $mostrow = array(); ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $mostrow[] = $row; ! } ! ! $template->assign_block_vars( 'most_pics_block', array() ); ! ! if ( count( $mostrow ) > 0 ) ! { ! for ( $i = 0; $i < count( $mostrow ); $i += $album_sp_config['img_cols'] ) ! { ! $template->assign_block_vars( 'most_pics_block.most_pics', array() ); ! ! for ( $j = $i; $j < ( $i + $album_sp_config['img_cols'] ); $j++ ) ! { ! if ( $j >= count( $mostrow ) ) ! { ! break; ! } ! $file_screenshot_url = trim( $mostrow[$j]['file_ssurl'] ); ! $template->assign_block_vars( 'most_pics_block.most_pics.most_col', array( ! // 'U_PIC' => ($album_config['fullpic_popup']) ? append_sid($this->this_mxurl("smartor_mode=album_pic&pic_id=". $recentrow[$j]['pic_id'])) : append_sid($this->this_mxurl("smartor_mode=album_showpage&pic_id=". $recentrow[$j]['pic_id'])), ! // 'THUMBNAIL' => append_sid($this->this_mxurl("smartor_mode=album_thumbnail&pic_id=". $recentrow[$j]['pic_id'], TRUE)), ! // 'DESC' => $recentrow[$j]['pic_desc'] ! 'SS' => ( !empty( $file_screenshot_url ) ) ? '<hr><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '"><img src="' . $file_screenshot_url . '" width="100" border="0"></a><br /><span class="genmed"><i><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $mostrow[$j]['file_name'] . '</a></i></span>' : '' ! )); ! ! if ( ( $mostrow[$j]['user_id'] == ALBUM_GUEST ) or ( $mostrow[$j]['username'] == '' ) ) ! { ! $most_poster = ( $mostrow[$j]['file_creator'] == '' ) ? $lang['Guest'] : $mostrow[$j]['file_creator']; ! } ! else ! { ! $most_poster = '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $mostrow[$j]['user_id'] ) . '">' . $mostrow[$j]['username'] . '</a>'; ! } ! ! $rating_image = paImageRating( $mostrow[$j]['rating'] ); ! ! $template->assign_block_vars( 'most_pics_block.most_pics.most_detail', array( ! 'TITLE' => ( empty( $file_screenshot_url ) ) ? '<b>' . $lang['File_Title'] . ': <a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $mostrow[$j]['file_name'] . '</a></b><br />' : '', ! 'DESC' => $mostrow[$j]['file_desc'], ! 'POSTER' => $most_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $mostrow[$j]['file_time'], $board_config['board_timezone'] ), ! 'UPDATED' => create_date( $board_config['default_dateformat'], $mostrow[$j]['file_update_time'], $board_config['board_timezone'] ), ! 'VIEW' => $mostrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $mostrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); ! } ! } ! } ! else ! { ! // ! // No Pics Found ! // ! $template->assign_block_vars( 'most_pics_block.no_pics', array() ); ! } ! } ! else ! { ! // ! // No Cats Found ! // ! $template->assign_block_vars( 'most_pics_block.no_pics', array() ); ! } ! } ! ! /* ! +---------------------------------------------------------- ! | Highest Rated Pics ! | by MarkFulton.com ! +---------------------------------------------------------- ! */ ! if ( $album_sp_config['disp_high'] == 1 ) ! { ! if ( $allowed_cat != '' ) ! { ! $sql = "SELECT p.file_ssurl, p.file_id, p.file_name, p.file_desc, p.user_id, p.poster_ip, p.file_creator, p.file_time, p.file_update_time, p.file_catid, p.file_dls, u.user_id, u.username, r.votes_file, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comments_id) AS comments ! FROM " . PA_FILES_TABLE . " AS p ! LEFT JOIN " . USERS_TABLE . " AS u ON p.user_id = u.user_id ! LEFT JOIN " . PA_CATEGORY_TABLE . " AS ct ON p.file_catid = ct.cat_id ! LEFT JOIN " . PA_VOTES_TABLE . " AS r ON p.file_id = r.votes_file ! LEFT JOIN " . PA_COMMENTS_TABLE . " AS c ON p.file_id = c.file_id ! WHERE p.file_catid IN ($allowed_cat) AND p.file_approved = 1 ! GROUP BY p.file_id ! ORDER BY rating DESC ! LIMIT " . $album_sp_config['img_cols'] * $album_sp_config['img_rows']; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not query highest rated pics information', '', __LINE__, __FILE__, $sql ); ! } ! ! $highestrow = array(); ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $highestrow[] = $row; ! } ! ! $template->assign_block_vars( 'highest_pics_block', array() ); ! ! if ( count( $highestrow ) > 0 ) ! { ! for ( $i = 0; $i < count( $highestrow ); $i += $album_sp_config['img_cols'] ) ! { ! $template->assign_block_vars( 'highest_pics_block.highest_pics', array() ); ! ! for ( $j = $i; $j < ( $i + $album_sp_config['img_cols'] ); $j++ ) ! { ! if ( $j >= count( $highestrow ) ) ! { ! break; ! } ! $file_screenshot_url = trim( $highestrow[$j]['file_ssurl'] ); ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_col', array( ! // 'U_PIC' => ($album_config['fullpic_popup']) ? append_sid($this->this_mxurl("smartor_mode=album_pic&pic_id=". $highestrow[$j]['pic_id'])) : append_sid($this->this_mxurl("smartor_mode=album_showpage&pic_id=". $highestrow[$j]['pic_id'])), ! // 'THUMBNAIL' => append_sid($this->this_mxurl("smartor_mode=album_thumbnail&pic_id=". $highestrow[$j]['pic_id'], TRUE)), ! // 'DESC' => $highestrow[$j]['pic_desc'] ! 'SS' => ( !empty( $file_screenshot_url ) ) ? '<hr><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '"><img src="' . $file_screenshot_url . '" width="100" border="0"></a><br /><span class="genmed"><i><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $highestrow[$j]['file_name'] . '</a></i></span>' : '' ! )); ! ! if ( ( $highestrow[$j]['user_id'] == ALBUM_GUEST ) or ( $highestrow[$j]['username'] == '' ) ) ! { ! $highest_poster = ( $highestrow[$j]['file_creator'] == '' ) ? $lang['Guest'] : $highestrow[$j]['file_creator']; ! } ! else ! { ! $highest_poster = '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $highestrow[$j]['user_id'] ) . '">' . $highestrow[$j]['username'] . '</a>'; ! } ! ! $rating_image = paImageRating( $highestrow[$j]['rating'] ); ! ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_detail', array( ! 'H_TITLE' => ( empty( $file_screenshot_url ) ) ? '<b>' . $lang['File_Title'] . ': <a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $highestrow[$j]['file_name'] . '</a></b><br />' : '', ! 'H_DESC' => $highestrow[$j]['file_desc'], ! 'H_POSTER' => $highest_poster, ! 'H_TIME' => create_date( $board_config['default_dateformat'], $highestrow[$j]['file_time'], $board_config['board_timezone'] ), ! 'UPDATED' => create_date( $board_config['default_dateformat'], $highestrow[$j]['file_update_time'], $board_config['board_timezone'] ), ! 'H_VIEW' => $highestrow[$j]['file_dls'], ! 'H_RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'H_COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $highestrow[$j]['comments'] . '<br />' ) : '' ! // 'H_IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($highestrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($highestrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); ! } ! } ! } ! else ! { ! // ! // No Pics Found ! // ! $template->assign_block_vars( 'highest_pics_block.no_pics', array() ); ! } ! } ! else ! { ! // ! // No Cats Found ! // ! $template->assign_block_vars( 'highest_pics_block.no_pics', array() ); ! } ! } ! ! /* ! +---------------------------------------------------------- ! | Random Pics ! | by CLowN ! +---------------------------------------------------------- ! */ ! if ( $album_sp_config['disp_rand'] == 1 ) ! { ! if ( $allowed_cat != '' ) ! { ! $sql = "SELECT p.file_id, p.file_name, p.file_desc, p.user_id, p.poster_ip, p.file_creator, p.file_time, p.file_update_time, p.file_catid, p.file_dls, p.file_ssurl, u.user_id, u.username, r.votes_file, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comments_id) AS comments ! FROM " . PA_FILES_TABLE . " AS p ! LEFT JOIN " . USERS_TABLE . " AS u ON p.user_id = u.user_id ! LEFT JOIN " . PA_CATEGORY_TABLE . " AS ct ON p.file_catid = ct.cat_id ! LEFT JOIN " . PA_VOTES_TABLE . " AS r ON p.file_id = r.votes_file ! LEFT JOIN " . PA_COMMENTS_TABLE . " AS c ON p.file_id = c.file_id ! WHERE p.file_catid IN ($allowed_cat) AND p.file_approved = 1 ! GROUP BY p.file_id ! ORDER BY RAND() ! LIMIT " . $album_sp_config['img_cols'] * $album_sp_config['img_rows']; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not query rand pics information', '', __LINE__, __FILE__, $sql ); ! } ! ! $randrow = array(); ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $randrow[] = $row; ! } ! ! $template->assign_block_vars( 'random_pics_block', array() ); ! ! if ( count( $randrow ) > 0 ) ! { ! for ( $i = 0; $i < count( $randrow ); $i += $album_sp_config['img_cols'] ) ! { ! $template->assign_block_vars( 'random_pics_block.rand_pics', array() ); ! ! for ( $j = $i; $j < ( $i + $album_sp_config['img_cols'] ); $j++ ) ! { ! if ( $j >= count( $randrow ) ) ! { ! break; ! } ! ! $file_screenshot_url = trim( $randrow[$j]['file_ssurl'] ); ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_col', array( ! // 'U_PIC' => ($album_config['fullpic_popup']) ? append_sid($this->this_mxurl("smartor_mode=album_pic&pic_id=". $randrow[$j]['pic_id'])) : append_sid($this->this_mxurl("smartor_mode=album_showpage&pic_id=". $randrow[$j]['pic_id'])), ! // 'THUMBNAIL' => append_sid($this->this_mxurl("smartor_mode=album_thumbnail&pic_id=". $randrow[$j]['pic_id'], TRUE)), ! // 'DESC' => $randrow[$j]['file_desc'] ! 'SS' => ( !empty( $file_screenshot_url ) ) ? '<hr><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '"><img src="' . $file_screenshot_url . '" width="100" border="0"></a><br /><span class="genmed"><i><a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $randrow[$j]['file_name'] . '</a></i></span>' : '' ! )); ! ! if ( ( $randrow[$j]['user_id'] == ALBUM_GUEST ) or ( $randrow[$j]['username'] == '' ) ) ! { ! $rand_poster = ( $randrow[$j]['file_creator'] == '' ) ? $lang['Guest'] : $randrow[$j]['file_creator']; ! } ! else ! { ! $rand_poster = '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $randrow[$j]['user_id'] ) . '">' . $randrow[$j]['username'] . '</a>'; ! } ! ! $rating_image = paImageRating( $randrow[$j]['rating'] ); ! ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_detail', array( ! 'TITLE' => ( empty( $file_screenshot_url ) ) ? '<b>' . $lang['File_Title'] . ': <a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $randrow[$j]['file_name'] . '</a></b><br />' : '', ! 'DESC' => $randrow[$j]['file_desc'], ! 'POSTER' => $rand_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $randrow[$j]['file_time'], $board_config['board_timezone'] ), ! 'UPDATED' => create_date( $board_config['default_dateformat'], $randrow[$j]['file_update_time'], $board_config['board_timezone'] ), ! 'VIEW' => $randrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $randrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($randrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($randrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); ! } ! } ! } ! else ! { ! // ! // No Pics Found ! // ! $template->assign_block_vars( 'random_pics_block.no_pics', array() ); ! } ! } ! else ! { ! // ! // No Cats Found ! // ! $template->assign_block_vars( 'random_pics_block.no_pics', array() ); ! } ! } ! /* ! +---------------------------------------------------------- ! | Start output the page ! +---------------------------------------------------------- ! */ ! $page_title = $lang['Album']; ! if ( !$is_block ) { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); } ! $template->set_filenames( array( 'body' => 'pa_lists.tpl' ) ); ! ! $template->assign_vars( array( ! 'L_CATEGORY' => $lang['Category'], ! 'L_PICS' => $lang['Pics'], ! 'L_LAST_PIC' => $lang['Last_Pic'], ! ! 'U_YOUR_PERSONAL_GALLERY' => append_sid( $this->this_mxurl( "smartor_mode=album_personal&user_id=" . $userdata['user_id'] ) ), ! 'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'], ! ! 'U_USERS_PERSONAL_GALLERIES' => append_sid( $this->this_mxurl( "smartor_mode=album_personal_index" ) ), ! 'L_USERS_PERSONAL_GALLERIES' => $lang['Users_Personal_Galleries'], ! 'S_COLS' => $album_sp_config['img_cols'], ! 'S_COL_WIDTH' => ( 100 / $album_sp_config['img_cols'] ) . '%', ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', ! 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Files'], ! 'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Files'], ! 'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Files'], ! 'L_MOST_PUBLIC_PICS' => $lang['Most_Public_Files'], ! 'L_NO_PICS' => $lang['No_Pics'], ! 'L_FILE_TITLE' => $lang['File_Title'], ! 'L_FILE_DESC' => $lang['File_Desc'], ! 'L_VIEW' => $lang['Dls'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Posted'], ! 'L_UPDATE_TIME' => $lang['Update_time'], ! 'L_PUBLIC_CATS' => $lang['Public_Categories'] ) ! ); - // - // Generate the page - // $template->pparse( 'body' ); - - if ( !$is_block ) - { - include( $mx_root_path . 'includes/page_tail.' . $phpEx ); - } - - /** - * Enter description here... - * - * @param unknown_type $args - * @param unknown_type $force_standalone_mode - * @param unknown_type $page_id - * @return unknown - */ - function this_kb_mxurl( $args = '', $force_standalone_mode = false, $page_id = 1 ) - { - global $mx_root_path, $module_root_path, $phpEx, $is_block; - - if ( $force_standalone_mode || !$is_block ) - { - $mxurl = $module_root_path . 'dload.' . $phpEx . ( $args == '' ? '' : '?' . $args ); - } - else - { - $mxurl = $mx_root_path . 'index.' . $phpEx; - if ( is_numeric( $page_id ) ) - { - $mxurl .= '?page=' . $page_id . ( $args == '' ? '' : '&' . $args ); - } - else - { - $mxurl .= ( $args == '' ? '' : '?' . $args ); - } - } - return $mxurl; - } - - /** - * Enter description here... - * - * @param unknown_type $rating - * @return unknown - */ - function paImageRating( $rating ) - { - global $db, $album_sp_config, $module_root_path; - - if ( !$rating ) - return( "<i>Not Rated</i>" ); - else - return ( round( $rating, 2 ) ); - } ?> \ No newline at end of file --- 30,72 ---- // ! // Setup config parameters // ! $config_name = array( 'toplist_sort_method', 'toplist_display_options', 'toplist_pagination', 'toplist_use_pagination', 'toplist_filter_date', 'toplist_cat_id' ); ! for( $i = 0; $i < count( $config_name ); $i++ ) ! { ! $config_value = $mx_block->get_parameters( $config_name[$i] ); ! $toplist_config[$config_name[$i]] = $config_value; ! } // // Get pafiledb target block // ! $toplist_block_id = $mx_block->get_parameters( 'target_block' ); ! $toplist_page_id = intval($toplist_block_id) > 0 ? get_page_id( $toplist_block_id ) : get_page_id( 'kb.php', true ); ! // =================================================== ! // Include the common file ! // =================================================== ! include_once( $module_root_path . 'kb/kb_common.' . $phpEx ); ! $template->destroy(); ! // =================================================== ! // if the database disabled give them a nice message ! // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['kb_disable'] ); } ! // =================================================== ! // an array of all expected actions ! // =================================================== ! $actions = array( 'lists' => 'lists' ); ! $action = 'lists'; ! $mx_kb->module( $actions[$action] ); ! $mx_kb->modules[$actions[$action]]->main( $action ); $template->pparse( 'body' ); ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:44
|
Update of /cvsroot/mxbb/mx_kb/kb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/kb/modules Added Files: kb_lists.php kb_mini.php Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: kb_mini.php --- <?php /** * * @package mxBB Portal Module - mx_pafiledb * @version $Id: kb_mini.php,v 1.1 2006/08/13 18:51:37 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class mx_kb_mini extends mx_kb_public { /** * Enter description here... * * @param unknown_type $action */ function main( $action ) { global $template, $lang, $phpEx, $kb_config, $userdata; global $mx_root_path, $module_root_path, $is_block, $phpEx, $mx_request_vars, $mini_config; global $page_id; // ======================================================= // Request vars // ======================================================= $start = $mx_request_vars->request('mini_start', MX_TYPE_INT, 0); $cat_id = $mx_request_vars->request('cat_id', MX_TYPE_INT, $mini_config['mini_default_cat_id']); if ( empty( $cat_id ) ) { //mx_message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } // // Sorting of items // $sort_method = $kb_config['sort_method']; $sort_order = $kb_config['sort_order']; // ======================================================= // If user not allowed to view file listing (read) and there is no sub Category // or the user is not allowed to view these category we gave him a nice message. // ======================================================= $show_category = false; if ( isset( $this->subcat_rowset[$cat_id] ) ) { foreach( $this->subcat_rowset[$cat_id] as $sub_cat_id => $sub_cat_row ) { if ( $this->auth_user[$sub_cat_id]['auth_view'] ) { $show_category = true; break; } } } if ( ( !$this->auth_user[$cat_id]['auth_read'] ) && ( !$show_category ) ) { if ( !$userdata['session_logged_in'] ) { // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("action=category&cat_id=" . $cat_id, true), true)); } $message = sprintf( $lang['Sorry_auth_view'], $this->auth_user[$cat_id]['auth_read_type'] ); mx_message_die( GENERAL_MESSAGE, $message ); } if ( !isset( $this->cat_rowset[$cat_id] ) ) { //mx_message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } $no_file_message = true; $filelist = false; $template->set_filenames( array( 'body' => 'kb_mini.tpl' ) ); $sort_options_list = unserialize($mini_config['mini_display_options']); $kb_config['pagination'] = $mini_config['mini_pagination']; $total_num_items = $this->display_items( $start, $cat_id, $sort_options_list ); $template->assign_vars( array( 'U_KB' => append_sid( $this->this_mxurl() ), 'L_KB' => $kb_config['module_name'], 'BLOCK_JUMPMENU' => $this->generate_jumpbox( $mini_config['mini_default_cat_id'], 0, array( $_GET['cat_id'] => 1 ) ), 'MX_PAGE' => $page_id, 'S_JUMPBOX_ACTION' => append_sid( $this->this_mxurl( ) ), 'BLOCK_PAGINATION' => mx_generate_pagination(append_sid( $this->this_mxurl( 'cat_id=' . $cat_id, false, false ) ), $total_num_items, $mini_config['mini_pagination'], $start, true, true, true, false, 'mini_start'), )); } } ?> --- NEW FILE: kb_lists.php --- <?php /** * * @package mxBB Portal Module - mx_pafiledb * @version $Id: kb_lists.php,v 1.1 2006/08/13 18:51:37 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, pafileDB, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class mx_kb_lists extends mx_kb_public { /** * Enter description here... * * @param unknown_type $action */ function main( $action ) { global $template, $lang, $phpEx, $kb_config, $userdata; global $mx_root_path, $module_root_path, $is_block, $phpEx, $mx_request_vars; global $toplist_page_id, $toplist_config; // ======================================================= // Request vars // ======================================================= $start = $mx_request_vars->request('kb_start', MX_TYPE_INT, 0); // // Sorting of items // if ( isset( $toplist_config['toplist_sort_method'] ) ) { switch ( $toplist_config['toplist_sort_method'] ) { case 'latest': $sort_method = 'article_date'; break; case 'most_popular': $sort_method = 'views'; break; case 'toprated': $sort_method = 'rating'; break; case 'random': $sort_method = 'RAND()'; break; default: $sort_method = $kb_config['sort_method']; } } else { $sort_method = $kb_config['sort_method']; } $sort_order = 'DESC'; $msg_today = date('mdY'); switch( $toplist_config['toplist_filter_date'] ) { case '0': $msg_time_filter_lo = 'no'; break; case '1': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '2': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '3': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '4': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 7), intval(substr($msg_today, 4, 4))); break; case '5': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 14), intval(substr($msg_today, 4, 4))); break; case '6': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 21), intval(substr($msg_today, 4, 4))); break; case '7': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 1), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '8': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 2), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '9': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 3), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '10': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 6), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '11': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4) - 1)); break; default: $msg_time_filter_lo = 'no'; break; } if ( $msg_time_filter_lo != 'no' && !empty($msg_time_filter_lo) ) { $sql_xtra = " AND t.article_date > " . $msg_time_filter_lo; } $filter_cat_id = false; if (intval($toplist_config['toplist_cat_id']) > 0) { $filter_cat_id = array(); $filter_cat_id['parent'] = $toplist_config['toplist_cat_id']; } $no_file_message = true; $filelist = false; $template->set_filenames( array( 'body' => 'kb_lists.tpl' ) ); $sort_options_list = unserialize($toplist_config['toplist_display_options']); $kb_config['pagination'] = $toplist_config['toplist_pagination']; $total_num_items = $this->display_items( $start, $filter_cat_id, $sort_options_list, $sql_xtra, $toplist_page_id ); $template->assign_vars( array( 'U_KB' => append_sid( $this->this_mxurl() ), 'L_KB' => $kb_config['module_name'], 'BLOCK_PAGINATION' => mx_generate_pagination(append_sid( $this->this_mxurl( '', false, false ) ), $total_num_items, $toplist_config['toplist_pagination'], $start, true, true, true, false, 'kb_start'), )); if ($toplist_config['toplist_use_pagination'] == 'TRUE') { $template->assign_block_vars( "toplist_pagination", array()); } } } ?> |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:43
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/templates/subSilver Added Files: kb_lists.tpl kb_mini.tpl Log Message: More module blocks - Mini block - Latest Item block --- NEW FILE: kb_mini.tpl --- <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" style="border-top:none;"><tr><td> <tr> <td> <table width="100%" cellpadding="2" cellspacing="0"> <tr><td align="center" class="row2"> <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return false;}"> <input type="hidden" name="mode" value="cat" /> <input type="hidden" name="page" value="{MX_PAGE}" /> <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"> <option value="-1">{L_QUICK_JUMP}</option> {BLOCK_JUMPMENU} </select> <!--<input type="submit" value="{L_QUICK_GO}" class="liteoption" />--> </span> </form> </td></tr> </table> </td> </tr> <tr> <td align="center"> <!-- BEGIN ARTICLELIST --> <table width="100%" cellpadding="2" cellspacing="0"> <!-- BEGIN articlerow --> <tr> <td rowspan="2" class="{ARTICLELIST.articlerow.COLOR}" valign="middle"> <img src="{ARTICLELIST.articlerow.ARTICLE_IMAGE}" border="0" class="mx_icon"></td> <td width="100%" class="{ARTICLELIST.articlerow.COLOR}"> <a href="{ARTICLELIST.articlerow.U_ARTICLE}" class="topictitle">{ARTICLELIST.articlerow.ARTICLE}</a> <br><span class="genmed">{ARTICLELIST.articlerow.ARTICLE_DESCRIPTION}</span> </td> </tr> <tr> <td valign="top" align="left" class="{ARTICLELIST.articlerow.COLOR}"> <span class="gensmall"> <!-- BEGIN display_username --> • {L_ARTICLE_AUTHOR} {ARTICLELIST.articlerow.ARTICLE_AUTHOR}<br /> <!-- END display_username --> <!-- BEGIN display_date --> • {L_ARTICLE_DATE}: {ARTICLELIST.articlerow.ARTICLE_DATE}<br /> <!-- END display_date --> <!-- BEGIN display_counter --> • {L_VIEWS}: {ARTICLELIST.articlerow.ART_VIEWS}<br /> <!-- END display_counter --> <!-- BEGIN display_rate --> • {ARTICLELIST.articlerow.L_RATING}: {ARTICLELIST.articlerow.RATING} ({ARTICLELIST.articlerow.ARTICLE_VOTES} {L_VOTES}) {ARTICLELIST.articlerow.DO_RATE}<br /> <!-- END display_rate --> </span> </td> </tr> <!-- END articlerow --> <tr valign="middle"> <td align="right" colspan="2" valign="top" nowrap="nowrap" height="28" class="cat"><span class="gensmall">{BLOCK_PAGINATION}</span></td> </tr> </table> <!-- END ARTICLELIST --> <!-- BEGIN no_articles --> <table class="forumline" width="100%" cellspacing="1" cellpadding="3"> <tr> <th class="thHead">{no_articles.L_NO_ARTICLES}</th> </tr> <tr> <td class="row1" align="center" height="30"><span class="genmed">{no_articles.L_NO_ARTICLES_CAT}</span></td> </tr> </table> <!-- END no_articles --> </td></tr></table> --- NEW FILE: kb_lists.tpl --- <!-- BEGIN ARTICLELIST --> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" style="border-top:none;"><tr><td> <table width="100%" cellpadding="2" cellspacing="0"> <!-- BEGIN articlerow --> <tr> <td rowspan="2" class="{ARTICLELIST.articlerow.COLOR}" valign="middle"> <img src="{ARTICLELIST.articlerow.ARTICLE_IMAGE}" border="0" class="mx_icon"></td> <td width="100%" class="{ARTICLELIST.articlerow.COLOR}"> <a href="{ARTICLELIST.articlerow.U_ARTICLE}" class="topictitle">{ARTICLELIST.articlerow.ARTICLE}</a> <br><span class="genmed">{ARTICLELIST.articlerow.ARTICLE_DESCRIPTION}</span> </td> </tr> <tr> <td valign="top" align="left" class="{ARTICLELIST.articlerow.COLOR}"> <span class="gensmall"> <!-- BEGIN display_username --> • {L_ARTICLE_AUTHOR} {ARTICLELIST.articlerow.ARTICLE_AUTHOR}<br /> <!-- END display_username --> <!-- BEGIN display_date --> • {L_ARTICLE_DATE}: {ARTICLELIST.articlerow.ARTICLE_DATE}<br /> <!-- END display_date --> <!-- BEGIN display_counter --> • {L_VIEWS}: {ARTICLELIST.articlerow.ART_VIEWS}<br /> <!-- END display_counter --> <!-- BEGIN display_rate --> • {ARTICLELIST.articlerow.L_RATING}: {ARTICLELIST.articlerow.RATING} ({ARTICLELIST.articlerow.ARTICLE_VOTES} {L_VOTES}) {ARTICLELIST.articlerow.DO_RATE}<br /> <!-- END display_rate --> </span> </td> </tr> <!-- END articlerow --> <!-- BEGIN toplist_pagination --> <tr valign="middle"> <td align="right" colspan="2" valign="top" nowrap="nowrap" height="28" class="cat"><span class="gensmall">{BLOCK_PAGINATION}</span></td> </tr> <!-- END toplist_pagination --> </table> </td></tr></table> <!-- END ARTICLELIST --> <!-- BEGIN no_articles --> <table class="forumline" width="100%" cellspacing="1" cellpadding="3"> <tr> <th class="thHead">{no_articles.L_NO_ARTICLES}</th> </tr> <tr> <td class="row1" align="center" height="30"><span class="genmed">{no_articles.L_NO_ARTICLES_CAT}</span></td> </tr> </table> <!-- END no_articles --> |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:43
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/templates/subSilver/admin Modified Files: mx_module_parameters.tpl Log Message: More module blocks - Mini block - Latest Item block Index: mx_module_parameters.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/admin/mx_module_parameters.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_module_parameters.tpl 5 Apr 2006 21:19:50 -0000 1.3 --- mx_module_parameters.tpl 13 Aug 2006 18:51:38 -0000 1.4 *************** *** 1,14 **** <script type="text/javascript" src="{MX_ROOT_PATH}/modules/mx_shared/lib/rollout_toggle.js"></script> ! <tr> <td width="100%" colspan="2"> <!-- BEGIN switch_forums_phpbb --> <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr name="{PARAMETER_TYPE} :: {PARAMETER_TYPE_EXPLAIN}"> <td class="row2" colspan="2" align="left"> ! <span class="cattitle"> {PARAMETER_TITLE}<hr> ! </span> ! </td> </tr> <!-- END switch_forums_phpbb --> --- 1,14 ---- <script type="text/javascript" src="{MX_ROOT_PATH}/modules/mx_shared/lib/rollout_toggle.js"></script> ! <tr> <td width="100%" colspan="2"> <!-- BEGIN switch_forums_phpbb --> <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr name="{PARAMETER_TYPE} :: {PARAMETER_TYPE_EXPLAIN}"> <td class="row2" colspan="2" align="left"> ! <span class="cattitle"> {PARAMETER_TITLE}<hr> ! </span> ! </td> </tr> <!-- END switch_forums_phpbb --> *************** *** 29,33 **** </td> </tr> - ! \ No newline at end of file --- 29,53 ---- </td> </tr> ! <!-- BEGIN select --> ! <tr> ! <td width="100%" colspan="2"> ! <table cellpadding="2" cellspacing="0" width="100%"> ! <tr title="{select.FIELD_DESCRIPTION}"> ! <td class="row1" width="50%" align="right"> ! <span class="topictitle">{select.PARAMETER_TITLE}:</span> ! <span class="gensmall">{select.PARAMETER_TITLE_EXPLAIN}</span> ! </td> ! <td class="row1"> ! <select name="{select.FIELD_ID}" class="post"> ! <option value="0">{select.L_NONE}</option> ! {select.SELECT_LIST} ! </select> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! <!-- END select --> ! ! |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:43
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/kb/includes Modified Files: functions_auth.php functions_kb.php Log Message: More module blocks - Mini block - Latest Item block Index: functions_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_auth.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** functions_auth.php 1 Aug 2006 21:00:37 -0000 1.4 --- functions_auth.php 13 Aug 2006 18:51:37 -0000 1.5 *************** *** 347,351 **** global $kb_type_select_data, $kb_config; ! if ( !MXBB_MODULE || MXBB_27x ) { return true; --- 347,351 ---- global $kb_type_select_data, $kb_config; ! if ( !MXBB_MODULE || MXBB_27x || !isset($kb_type_select_data) ) { return true; Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_kb.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** functions_kb.php 4 Aug 2006 20:10:43 -0000 1.17 --- functions_kb.php 13 Aug 2006 18:51:37 -0000 1.18 *************** *** 137,141 **** $db->sql_freeresult( $result ); ! $this->auth( AUTH_ALL, AUTH_LIST_ALL, $userdata, $cat_rowset ); for( $i = 0; $i < count( $cat_rowset ); $i++ ) --- 137,141 ---- $db->sql_freeresult( $result ); ! $this->auth( KB_AUTH_ALL, AUTH_LIST_ALL, $userdata, $cat_rowset ); for( $i = 0; $i < count( $cat_rowset ); $i++ ) *************** *** 821,825 **** /** ! * Enter description here... * * @param unknown_type $start --- 821,825 ---- /** ! * display items. * * @param unknown_type $start *************** *** 828,832 **** * @param unknown_type $approve */ ! function display_items( $start, $cat_id = false ) { global $db, $kb_config, $template, $board_config; --- 828,832 ---- * @param unknown_type $approve */ ! function display_items( $start, $cat_id = false, $sort_options_list = false, $sql_xtra = '', $target_page_id = false ) { global $db, $kb_config, $template, $board_config; *************** *** 836,843 **** $filelist = false; ! if ( empty( $cat_id ) ) { $cat_where = "AND t.article_category_id IN (" . $this->gen_cat_ids( '0' ) . ")"; } else { --- 836,854 ---- $filelist = false; ! $file_rowset = array(); ! $total_file = 0; ! ! // ! // Category SQL ! // ! if (!$cat_id) { $cat_where = "AND t.article_category_id IN (" . $this->gen_cat_ids( '0' ) . ")"; } + else if (is_array($cat_id)) + { + $cat_where = "AND t.article_category_id IN (" . $this->gen_cat_ids( $cat_id['parent'] ) . ")"; + $cat_id = false; + } else { *************** *** 856,859 **** --- 867,871 ---- AND t.article_category_id = cat.category_id $cat_where + $sql_xtra GROUP BY t.article_id ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order; *************** *** 869,872 **** --- 881,885 ---- WHERE t.approved = '1' $cat_where + $sql_xtra GROUP BY t.article_id ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order; *************** *** 876,880 **** if ( !( $result = $mx_kb_functions->sql_query_limit( $sql, $kb_config['pagination'], $start ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info for this category', '', __LINE__, __FILE__, $sql ); } --- 889,893 ---- if ( !( $result = $mx_kb_functions->sql_query_limit( $sql, $kb_config['pagination'], $start ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get article info for this category', '', __LINE__, __FILE__, $sql ); } *************** *** 895,899 **** FROM " . KB_ARTICLES_TABLE . " AS t WHERE t.approved='1' ! $cat_where"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 908,913 ---- FROM " . KB_ARTICLES_TABLE . " AS t WHERE t.approved='1' ! $cat_where ! $sql_xtra"; if ( !( $result = $db->sql_query( $sql ) ) ) *************** *** 1013,1016 **** --- 1027,1055 ---- } + // + // Options (only used for the toplist block) + // + if ($sort_options_list) + { + foreach ($sort_options_list as $sort_option => $options_value) + { + switch ($sort_option) + { + case 'date': + $template->assign_block_vars( "ARTICLELIST.articlerow.display_date", array()); + break; + case 'username': + $template->assign_block_vars( "ARTICLELIST.articlerow.display_username", array()); + break; + case 'counter': + $template->assign_block_vars( "ARTICLELIST.articlerow.display_counter", array()); + break; + case 'rate': + $template->assign_block_vars( "ARTICLELIST.articlerow.display_rate", array()); + break; + } + } + } + } *************** *** 1121,1128 **** * @return unknown */ ! function this_mxurl( $args = '', $force_standalone_mode = false, $non_html_amp = false ) { global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; if ( !MXBB_MODULE ) { --- 1160,1169 ---- * @return unknown */ ! function this_mxurl( $args = '', $force_standalone_mode = false, $non_html_amp = false, $pageId = '' ) { global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; + $pageId = empty($pageId) ? $page_id : $pageId; + if ( !MXBB_MODULE ) { *************** *** 1138,1144 **** { $mxurl = $mx_root_path . 'index.' . $phpEx; ! if ( is_numeric( $page_id ) ) { ! $mxurl .= '?page=' . $page_id . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); } else --- 1179,1185 ---- { $mxurl = $mx_root_path . 'index.' . $phpEx; ! if ( is_numeric( $pageId ) ) { ! $mxurl .= '?page=' . $pageId . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); } else |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:43
|
Update of /cvsroot/mxbb/mx_kb/language/lang_english In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/language/lang_english Modified Files: lang_admin.php Log Message: More module blocks - Mini block - Latest Item block Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/language/lang_english/lang_admin.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** lang_admin.php 1 Aug 2006 21:00:38 -0000 1.6 --- lang_admin.php 13 Aug 2006 18:51:38 -0000 1.7 *************** *** 29,32 **** --- 29,35 ---- $lang['ParType_default_article_id_info'] = '- Article Reader'; + $lang['ParType_kb_quick_cat'] = 'KB default category'; + $lang['ParType_kb_quick_cat_info'] = ''; + // // Parameter Names *************** *** 372,374 **** --- 375,396 ---- $lang['Field_Checkbox'] = 'Multiple-Selection Checkbox'; + // + // Admin Panels - Toplists + // + $lang['toplist_sort_method'] = 'Toplist type'; + $lang['toplist_display_options'] = 'Display options'; + $lang['toplist_use_pagination'] = 'Use Pagination (Previous/Next \'Number of rows\')'; + $lang['toplist_pagination'] = 'Number of rows'; + $lang['toplist_filter_date'] = "Filter by time"; + $lang['toplist_filter_date_explain'] = "- Show posts from last week, month, year..."; + $lang['toplist_cat_id'] = 'Limit to category'; + $lang['target_block'] = 'Associated (target) pafileDB Block'; + + // + // Admin Panels - Mini + // + $lang['mini_display_options'] = 'Display options'; + $lang['mini_pagination'] = 'Number of rows'; + $lang['mini_default_cat_id'] = 'Limit to category'; + ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-08-13 18:51:43
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27663/modules/mx_kb/admin Modified Files: mx_module_defs.php Log Message: More module blocks - Mini block - Latest Item block Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/mx_module_defs.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mx_module_defs.php 28 Jun 2006 20:52:30 -0000 1.11 --- mx_module_defs.php 13 Aug 2006 18:51:37 -0000 1.12 *************** *** 44,47 **** --- 44,48 ---- $type_row['kb_type_select'] = !empty($lang['ParType_kb_type_select']) ? $lang['ParType_kb_type_select'] : "KB phpBB Source Forums"; + $type_row['kb_quick_cat'] = !empty($lang['ParType_kb_quick_cat']) ? $lang['ParType_kb_quick_cat'] : "KB default category"; return $type_row; *************** *** 81,87 **** --- 82,130 ---- $this->display_edit_KB_type_select( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; + + case 'kb_quick_cat': + $this->display_edit_kb_quick_cat( $block_id, $parameter_data['parameter_id'], $parameter_data ); + break; } } + function display_edit_kb_quick_cat( $block_id, $parameter_id, $parameter_data ) + { + global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; + + // + // Includes + // + $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; + include_once( $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); + + // + // Get varaibles + // + $data = ( !empty( $parameter_data['parameter_value'] ) ) ? $parameter_data['parameter_value'] : ''; + $parameter_datas = $this->generate_jumpbox( 0, 0, array( $data => 1 ), false ); + + // + // Start page proper + // + $template->set_filenames(array( + 'parameter' => 'admin/mx_module_parameters.tpl') + ); + + $template->assign_block_vars( 'select', array( + 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], + 'PARAMETER_TITLE_EXPLAIN' => ( !empty($lang[$parameter_data['parameter_name']. "_explain"]) ) ? '<br />' . $lang[$parameter_data['parameter_name']. "_explain"] : '', + 'L_NONE' => $lang['None'], + + 'SELECT_LIST' => $parameter_datas, + + 'FIELD_NAME' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], + 'FIELD_ID' => $parameter_data['parameter_id'], + 'FIELD_DESCRIPTION' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '' + )); + + $template->pparse('parameter'); + } + function display_edit_KB_type_select( $block_id, $parameter_id, $parameter_data ) { *************** *** 163,166 **** --- 206,283 ---- $template->pparse('parameter'); } + + // =================================================== + // Jump menu function + // $cat_id : to handle parent cat_id + // $depth : related to function to generate tree + // $default : the cat you wanted to be selected + // $for_file: TRUE high category ids will be -1 + // $check_upload: if true permission for upload will be checked + // =================================================== + function generate_jumpbox( $cat_id = 0, $depth = 0, $default = '', $for_file = false, $check_upload = false ) + { + global $db; + + static $cat_rowset = false; + + $sql = 'SELECT * + FROM ' . KB_CATEGORIES_TABLE . ' + ORDER BY cat_order ASC'; + + if ( !( $result = $db->sql_query( $sql ) ) ) + { + mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); + } + $cat_rowset_temp = $db->sql_fetchrowset( $result ); + + $db->sql_freeresult( $result ); + + $cat_rowset = array(); + foreach( $cat_rowset_temp as $row ) + { + $cat_rowset[$row['category_id']] = $row; + } + + // + // Generate list + // + + $cat_list .= ''; + + $pre = str_repeat( ' ', $depth ); + + $temp_cat_rowset = $cat_rowset; + + if ( !empty( $temp_cat_rowset ) ) + { + foreach ( $temp_cat_rowset as $temp_cat_id => $cat ) + { + if ( $cat['parent'] == $cat_id ) + { + if ( is_array( $default ) ) + { + if ( isset( $default[$cat['category_id']] ) ) + { + $sel = ' selected="selected"'; + } + else + { + $sel = ''; + } + } + $cat_pre = ( !$cat['cat_allow_file'] ) ? '+ ' : '- '; + $sub_cat_id = ( $for_file ) ? ( ( !$cat['cat_allow_file'] ) ? -1 : $cat['category_id'] ) : $cat['category_id']; + $cat_class = ( !$cat['cat_allow_file'] ) ? 'class="greyed"' : ''; + $cat_list .= '<option value="' . $sub_cat_id . '"' . $sel . ' ' . $cat_class . ' />' . $pre . $cat_pre . $cat['category_name'] . '</option>'; + $cat_list .= $this->generate_jumpbox( $cat['category_id'], $depth + 1, $default, $for_file, $check_upload ); + } + } + return $cat_list; + } + else + { + return; + } + } } ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:11:53
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5513/modules/mx_pafiledb/pafiledb/includes Modified Files: functions_pafiledb.php Log Message: statistics Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** functions_pafiledb.php 4 Aug 2006 16:32:19 -0000 1.38 --- functions_pafiledb.php 4 Aug 2006 20:11:50 -0000 1.39 *************** *** 1055,1066 **** $filelist = false; ! if ( empty( $cat_id ) ) ! { ! $cat_where = ''; ! } ! else ! { ! $cat_where = "AND f1.file_catid = $cat_id"; ! } // --- 1055,1062 ---- $filelist = false; ! // ! // Category SQL ! // ! $cat_where = empty( $cat_id ) ? "AND f1.file_catid IN (" . $this->gen_cat_ids( '0' ) . ")" : "AND f1.file_catid = $cat_id"; // *************** *** 1084,1088 **** default: ! $sql = "SELECT f1.*, f1.file_id, r.votes_file, AVG(r.rate_point) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username, COUNT(c.file_id) AS total_comments FROM " . PA_FILES_TABLE . " AS f1 LEFT JOIN " . PA_VOTES_TABLE . " AS r ON f1.file_id = r.votes_file --- 1080,1084 ---- default: ! $sql = "SELECT f1.*, f1.file_id, r.votes_file, IF(COUNT(r.rate_point)>0,AVG(r.rate_point),0) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username, COUNT(c.file_id) AS total_comments FROM " . PA_FILES_TABLE . " AS f1 LEFT JOIN " . PA_VOTES_TABLE . " AS r ON f1.file_id = r.votes_file *************** *** 1163,1171 **** $db->sql_freeresult( $result ); ! $where_sql = ( !empty( $cat_id ) ) ? "AND file_catid = $cat_id" : ''; ! $sql = "SELECT COUNT(file_id) as total_file ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved='1' ! $where_sql"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 1159,1166 ---- $db->sql_freeresult( $result ); ! $sql = "SELECT COUNT(f1.file_id) as total_file ! FROM " . PA_FILES_TABLE . " AS f1 ! WHERE f1.file_approved='1' ! $cat_where"; if ( !( $result = $db->sql_query( $sql ) ) ) |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:11:53
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5513/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_viewall.php Log Message: statistics Index: pa_viewall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_viewall.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** pa_viewall.php 1 Aug 2006 21:03:25 -0000 1.17 --- pa_viewall.php 4 Aug 2006 20:11:50 -0000 1.18 *************** *** 27,31 **** function main( $action ) { ! global $pafiledb_template, $lang, $phpEx, $pafiledb_config, $_REQUEST, $userdata; $start = ( isset( $_REQUEST['start'] ) ) ? intval( $_REQUEST['start'] ) : 0; --- 27,31 ---- function main( $action ) { ! global $pafiledb_template, $lang, $phpEx, $pafiledb_config, $userdata; $start = ( isset( $_REQUEST['start'] ) ) ? intval( $_REQUEST['start'] ) : 0; |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:11:21
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5387/modules/mx_linkdb/templates/subSilver Modified Files: link_viewall_body.tpl Log Message: statistics Index: link_viewall_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/subSilver/link_viewall_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** link_viewall_body.tpl 5 Apr 2006 21:25:22 -0000 1.2 --- link_viewall_body.tpl 4 Aug 2006 20:11:18 -0000 1.3 *************** *** 18,22 **** <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <!-- END no_split_links --> ! <!-- tr> <th colspan="2" class="thTop" width="57%">{L_FILE}</th> </tr --> --- 18,22 ---- <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> <!-- END no_split_links --> ! <!-- tr> <th colspan="2" class="thTop" width="57%">{L_FILE}</th> </tr --> *************** *** 29,32 **** --- 29,33 ---- <td width="100%" class="{FILELIST.file_rows.COLOR}"> <a href="{FILELIST.file_rows.U_FILE}" class="topictitle" target="_blank">{FILELIST.file_rows.FILE_NAME}</a> + <a href="{FILELIST.file_rows.U_FILE_MORE}" class="topictitle">[{FILELIST.file_rows.L_FILE_MORE}]</a> <!-- BEGIN IS_NEW_FILE --> <img src="{FILELIST.file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"> *************** *** 47,51 **** <!-- END file_rows --> <!-- BEGIN no_split_links --> ! </table> <!-- END no_split_links --> --- 48,52 ---- <!-- END file_rows --> <!-- BEGIN no_split_links --> ! </table> <!-- END no_split_links --> *************** *** 55,59 **** <input type="hidden" name="action" value="viewall"> <input type="hidden" name="start" value="{START}"> ! <tr> <td align="center" colspan="2" class="cat"><span class="genmed">{L_SELECT_SORT_METHOD}: <select name="sort_method"> --- 56,60 ---- <input type="hidden" name="action" value="viewall"> <input type="hidden" name="start" value="{START}"> ! <tr> <td align="center" colspan="2" class="cat"><span class="genmed">{L_SELECT_SORT_METHOD}: <select name="sort_method"> *************** *** 72,80 **** </span></td> </tr> ! </form> ! </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> ! <tr> <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td> <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td> --- 73,81 ---- </span></td> </tr> ! </form> ! </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> ! <tr> <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td> <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span></td> *************** *** 88,94 **** <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- END NO_FILE --> \ No newline at end of file --- 89,95 ---- <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- END NO_FILE --> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:11:21
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5387/modules/mx_linkdb/linkdb/modules Modified Files: link_viewall.php Log Message: statistics Index: link_viewall.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_viewall.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** link_viewall.php 1 Aug 2006 21:02:20 -0000 1.9 --- link_viewall.php 4 Aug 2006 20:11:18 -0000 1.10 *************** *** 27,31 **** function main( $action ) { ! global $template, $lang, $phpEx, $linkdb_config, $_REQUEST, $userdata; $start = ( isset( $_REQUEST['start'] ) ) ? intval( $_REQUEST['start'] ) : 0; --- 27,31 ---- function main( $action ) { ! global $template, $lang, $phpEx, $linkdb_config, $userdata; $start = ( isset( $_REQUEST['start'] ) ) ? intval( $_REQUEST['start'] ) : 0; |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:11:21
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv5387/modules/mx_linkdb/linkdb/includes Modified Files: functions_linkdb.php Log Message: statistics Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** functions_linkdb.php 4 Aug 2006 16:31:34 -0000 1.17 --- functions_linkdb.php 4 Aug 2006 20:11:18 -0000 1.18 *************** *** 782,798 **** $filelist = false; - if ( empty( $cat_id ) ) - { - $cat_where = ''; - } - else - { - $cat_where = "AND f1.link_catid = $cat_id"; - } - $file_rowset = array(); $total_file = 0; // // Main query // --- 782,794 ---- $filelist = false; $file_rowset = array(); $total_file = 0; // + // Category SQL + // + $cat_where = empty( $cat_id ) ? "AND f1.link_catid IN (" . $this->gen_cat_ids( '0' ) . ")" : "AND f1.link_catid = $cat_id"; + + // // Main query // *************** *** 837,845 **** $db->sql_freeresult( $result ); ! $where_sql = ( !empty( $cat_id ) ) ? "AND link_catid = $cat_id" : ''; ! $sql = "SELECT COUNT(link_id) as total_links ! FROM " . LINKS_TABLE . " ! WHERE link_approved='1' ! $where_sql"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 833,840 ---- $db->sql_freeresult( $result ); ! $sql = "SELECT COUNT(f1.link_id) as total_links ! FROM " . LINKS_TABLE . " AS f1 ! WHERE f1.link_approved='1' ! $cat_where"; if ( !( $result = $db->sql_query( $sql ) ) ) |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:10:47
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4946/modules/mx_kb/templates/subSilver Modified Files: kb_article_body.tpl kb_article_body_print.tpl kb_cat_body.tpl kb_stats_body.tpl Log Message: statistics print view Index: kb_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_cat_body.tpl,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** kb_cat_body.tpl 1 Aug 2006 21:00:39 -0000 1.14 --- kb_cat_body.tpl 4 Aug 2006 20:10:43 -0000 1.15 *************** *** 147,152 **** </tr> </table> ! <!-- END no_articles --> ! ! ! --- 147,149 ---- </tr> </table> ! <!-- END no_articles --> \ No newline at end of file Index: kb_stats_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_stats_body.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** kb_stats_body.tpl 1 Aug 2006 21:00:39 -0000 1.7 --- kb_stats_body.tpl 4 Aug 2006 20:10:43 -0000 1.8 *************** *** 2,13 **** <tr> <td align="left" class="nav"> ! <a href="{U_KB}" class="nav">{L_KB}</a> ! <!-- BEGIN navlinks --> ! » <a href="{navlinks.U_VIEW_CAT}" class="nav">{navlinks.CAT_NAME}</a> ! <!-- END navlinks --> </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0" class="forumline"> <tr> --- 2,11 ---- <tr> <td align="left" class="nav"> ! <a href="{U_KB}" class="nav">{L_KB}</a>{PATH} </td> </tr> </table> + <!-- BEGIN ARTICLELIST --> <table width="100%" cellpadding="0" cellspacing="0" class="forumline"> <tr> *************** *** 19,32 **** <!-- BEGIN articlerow --> <tr> ! <td rowspan="2" class="{articlerow.COLOR}" valign="middle"> <img src="{articlerow.ARTICLE_IMAGE}" border="0" class="mx_icon"></td> ! <td width="100%" class="{articlerow.COLOR}"> ! <a href="{articlerow.U_ARTICLE}" class="topictitle">{articlerow.ARTICLE}</a> ! <br><span class="genmed">{articlerow.ARTICLE_DESCRIPTION}</span> </td> </tr> <tr> ! <td valign="top" align="left" class="{articlerow.COLOR}"><span class="gensmall">{L_ARTICLE_TYPE}: {articlerow.ARTICLE_TYPE} • {L_ARTICLE_DATE}: {articlerow.ARTICLE_DATE} • {L_VIEWS}: {articlerow.ART_VIEWS} • {L_ARTICLE_AUTHOR}: {articlerow.ARTICLE_AUTHOR} <!-- BEGIN show_ratings --> ! • {articlerow.L_RATING}: {articlerow.RATING} ({articlerow.ARTICLE_VOTES} {L_VOTES}) <!-- END show_ratings --> </span> --- 17,30 ---- <!-- BEGIN articlerow --> <tr> ! <td rowspan="2" class="{ARTICLELIST.articlerow.COLOR}" valign="middle"> <img src="{ARTICLELIST.articlerow.ARTICLE_IMAGE}" border="0" class="mx_icon"></td> ! <td width="100%" class="{ARTICLELIST.articlerow.COLOR}"> ! <a href="{ARTICLELIST.articlerow.U_ARTICLE}" class="topictitle">{ARTICLELIST.articlerow.ARTICLE}</a> ! <br><span class="genmed">{ARTICLELIST.articlerow.ARTICLE_DESCRIPTION}</span> </td> </tr> <tr> ! <td valign="top" align="left" class="{ARTICLELIST.articlerow.COLOR}"><span class="gensmall">{L_ARTICLE_TYPE}: {ARTICLELIST.articlerow.ARTICLE_TYPE} • {L_ARTICLE_DATE}: {ARTICLELIST.articlerow.ARTICLE_DATE} • {L_VIEWS}: {ARTICLELIST.articlerow.ART_VIEWS} • {L_ARTICLE_AUTHOR}: {ARTICLELIST.articlerow.ARTICLE_AUTHOR} <!-- BEGIN show_ratings --> ! • {ARTICLELIST.articlerow.L_RATING}: {ARTICLELIST.articlerow.RATING} ({ARTICLELIST.articlerow.ARTICLE_VOTES} {L_VOTES}) {ARTICLELIST.articlerow.DO_RATE} <!-- END show_ratings --> </span> *************** *** 38,41 **** --- 36,62 ---- </td> </tr> + <form action="{S_ACTION_SORT}" method="post"> + <input type="hidden" name="action" value="category"> + <input type="hidden" name="cat_id" value="{ID}"> + <input type="hidden" name="start" value="{START}"> + <tr> + <td align="center" colspan="2" class="cat"><span class="genmed">{L_SELECT_SORT_METHOD}: + <select name="sort_method"> + <option {SORT_ALPHABETIC} value='Alphabetic'>{L_ALPHABETIC}</option> + <option {SORT_LATEST} value='Latest'>{L_LATEST}</option> + <option {SORT_TOPRATED} value='Toprated'>{L_TOPRATED}</option> + <option {SORT_MOST_POPULAR} value='Most_popular'>{L_MOST_POPULAR}</option> + <option {SORT_USERRANK} value='Userrank'>{L_USERRANK}</option> + <option {SORT_ID} value='Id'>{L_ID}</option> + </select> + {L_ORDER}: + <select name="sort_order"> + <option {SORT_ASC} value="ASC">{L_ASC}</option> + <option {SORT_DESC} value="DESC">{L_DESC}</option> + </select> + <input type="submit" name="submit" value="{L_SORT}" class="liteoption" /> + </span></td> + </tr> + </form> </table> *************** *** 46,47 **** --- 67,80 ---- </tr> </table> + <!-- END ARTICLELIST --> + + <!-- BEGIN no_articles --> + <table class="forumline" width="100%" cellspacing="1" cellpadding="3"> + <tr> + <th class="thHead">{no_articles.L_NO_ARTICLES}</th> + </tr> + <tr> + <td class="row1" align="center" height="30"><span class="genmed">{no_articles.L_NO_ARTICLES_CAT}</span></td> + </tr> + </table> + <!-- END no_articles --> \ No newline at end of file Index: kb_article_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_article_body.tpl,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** kb_article_body.tpl 4 Aug 2006 16:30:30 -0000 1.20 --- kb_article_body.tpl 4 Aug 2006 20:10:43 -0000 1.21 *************** *** 15,18 **** --- 15,29 ---- </script> + <style type="text/css"> + <!-- + .articleDetails { + width: 200px; + display: block; + border: 1px solid {T_TH_COLOR1}; + float:right; + } + --> + </style> + <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> *************** *** 31,69 **** <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> ! <td class="row2"><hr> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}<br /></span> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b></span> <span class="gensmall">{ARTICLE_DESCRIPTION}<br /></span> ! <span class="gensmall"><b>{L_ARTICLE_CATEGORY}</b></span> <span class="gensmall">{ARTICLE_CATEGORY}</span> ! <span class="gensmall"><b>{L_ARTICLE_TYPE}</b></span> <span class="gensmall">{ARTICLE_TYPE}</span> ! ! <!-- BEGIN custom_field --> ! <span class="gensmall"><br /><b>{custom_field.CUSTOM_NAME}</b> </span> <span class="gen">{custom_field.DATA} </span> ! <!-- END custom_field --> ! <!-- BEGIN switch_ratings --> ! <hr> ! <span class="gensmall"><b>{L_RATINGS}</b></span> <span class="gensmall">{switch_ratings.RATING} ({switch_ratings.VOTES} {switch_ratings.L_VOTES})</span> ! <span class="gensmall"><a href="{switch_ratings.U_RATE}" class="gensmall">{switch_ratings.DO_RATE}</a></span> ! <!-- END switch_ratings --> ! </td> </tr> - <tr> <td class="row1" wrap="wrap"> ! <span class="maintitle"style="font-size: 9pt;">{ARTICLE_TITLE}</span> ! </tr> ! <!-- BEGIN switch_toc --> ! <tr> ! <td class="row1" align="left"><br /><span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span></td> ! </tr> ! <!-- END switch_toc --> ! <tr> ! <td class="row1" wrap="wrap"><span class="postbody">{ARTICLE_TEXT}</span></td> </tr> <!-- BEGIN switch_pages --> --- 42,91 ---- <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thTop" align="left"> ! {ARTICLE_TITLE} ! </th> </tr> <tr> <td class="row1" wrap="wrap"> ! ! <div class="articleDetails" align="right"> ! <table width="100%" cellpadding="4" cellspacing="1" border="0"> ! <tr> ! <td class="row2"> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span><br /> ! <span class="gensmall">{VIEWS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_CATEGORY}</b></span> <span class="gensmall">{ARTICLE_CATEGORY}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_TYPE}</b></span> <span class="gensmall">{ARTICLE_TYPE}</span><br /> ! ! <!-- BEGIN custom_field --> ! <span class="gensmall"><b>{custom_field.CUSTOM_NAME}</b> </span> <span class="gensmall">{custom_field.DATA} </span><br /> ! <!-- END custom_field --> ! <!-- BEGIN switch_ratings --> ! <hr> ! <span class="gensmall"><b>{L_RATINGS}</b></span> <span class="gensmall">{switch_ratings.RATING} ({switch_ratings.VOTES} {switch_ratings.L_VOTES})</span> ! <span class="gensmall"><a href="{switch_ratings.U_RATE}" class="gensmall">{switch_ratings.DO_RATE}</a></span> ! <!-- END switch_ratings --> ! </td> ! </tr> ! </table> ! </div> ! ! <span class="maintitle"style="font-size: 9pt;">{ARTICLE_TITLE}</span> ! <p><span class="gensmall"><b>{ARTICLE_DESCRIPTION}</b></span> ! ! <!-- BEGIN switch_toc --> ! <br /> ! <span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span> ! <!-- END switch_toc --> ! ! <p><span class="postbody">{ARTICLE_TEXT}</span> ! ! </td> </tr> <!-- BEGIN switch_pages --> Index: kb_article_body_print.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_article_body_print.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** kb_article_body_print.tpl 5 Apr 2006 21:19:50 -0000 1.5 --- kb_article_body_print.tpl 4 Aug 2006 20:10:43 -0000 1.6 *************** *** 6,11 **** {META} {NAV_LINKS} ! <title>{SITENAME} :: {PAGE_TITLE}</title> ! <link rel="stylesheet" href="templates/print_version.css" type="text/css" > </head> --- 6,23 ---- {META} {NAV_LINKS} ! <title>{ARTICLE_TITLE}</title> ! <link rel="stylesheet" href="modules/mx_kb/templates/print_version.css" type="text/css" > ! ! <style type="text/css"> ! <!-- ! .articleDetails { ! width: 200px; ! display: block; ! border: 1px solid {T_TH_COLOR1}; ! float:right; ! } ! --> ! </style> ! </head> *************** *** 13,56 **** <a name="top"></a> ! <table align ="center" width="80%" cellpadding="4" cellspacing="1" border="0" class="forumline"> ! <tr> ! <td class="row2"> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}</span><br /> ! ! <span class="gensmall"><b>{L_ARTICLE_KEYWORDS}</b></span> <span class="gensmall">{ARTICLE_KEYWORDS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b> </span><span class="gensmall">{ARTICLE_DESCRIPTION}</span> ! ! <!-- BEGIN custom_field --> ! <span class="gensmall"><br /><b>{custom_field.CUSTOM_NAME}</b> </span> <span class="gen">{custom_field.DATA} </span> ! <!-- END custom_field --> ! <br /> ! <!-- BEGIN switch_comments --> ! <span class="gensmall"><br />{COMMENTS}</span> ! <!-- END switch_comments --> ! <!-- BEGIN switch_ratings --> ! <span class="gensmall"><br />{RATINGS}</span> ! <!-- END switch_ratings --> ! </td> ! <!-- BEGIN switch_toc --> ! <tr> ! <td class="row1" align="left"><span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span></td> ! </tr> ! <!-- END switch_toc --> <tr> ! <td class="maintitle" nowrap="nowrap"><br />{ARTICLE_TITLE} <br /><hr></td> ! </tr> ! <tr> ! <td class="row1" wrap="wrap"><span class="postbody">{ARTICLE_TEXT}</span></td> </tr> <!-- BEGIN switch_pages --> <tr> ! <td class="row1" align="center"><span class="nav">{L_GOTO_PAGE} <!-- BEGIN pages --> {switch_pages.pages.PAGE_LINK} --- 25,74 ---- <a name="top"></a> ! <table align="center" width="70%" cellpadding="20" cellspacing="1" border="0" class="forumline"> <tr> ! <td class="row1" wrap="wrap"> ! ! <div class="articleDetails" align="right"> ! <table width="100%" cellpadding="4" cellspacing="1" border="0"> ! <tr> ! <td class="row2"> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span><br /> ! <span class="gensmall">{VIEWS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_CATEGORY}</b></span> <span class="gensmall">{ARTICLE_CATEGORY}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_TYPE}</b></span> <span class="gensmall">{ARTICLE_TYPE}</span><br /> ! ! <!-- BEGIN custom_field --> ! <span class="gensmall"><b>{custom_field.CUSTOM_NAME}</b> </span> <span class="gensmall">{custom_field.DATA} </span><br /> ! <!-- END custom_field --> ! <!-- BEGIN switch_ratings --> ! <hr> ! <span class="gensmall"><b>{L_RATINGS}</b></span> <span class="gensmall">{switch_ratings.RATING} ({switch_ratings.VOTES} {switch_ratings.L_VOTES})</span> ! <!-- END switch_ratings --> ! </td> ! </tr> ! </table> ! </div> ! ! <span class="maintitle"style="font-size: 9pt;">{ARTICLE_TITLE}</span> ! <p><span class="gensmall"><b>{ARTICLE_DESCRIPTION}</b></span> ! ! <!-- BEGIN switch_toc --> ! <br /> ! <span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span> ! <!-- END switch_toc --> ! ! <p><span class="postbody">{ARTICLE_TEXT}</span> ! ! </td> </tr> <!-- BEGIN switch_pages --> <tr> ! <td class="row1" align="center"><span class="nav">{L_GOTO_PAGE} <!-- BEGIN pages --> {switch_pages.pages.PAGE_LINK} *************** *** 70,74 **** <!-- END switch_comments_show --> <!-- BEGIN postrow --> ! <tr> <td class="row1" width="100%" height="28" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> --- 88,92 ---- <!-- END switch_comments_show --> <!-- BEGIN postrow --> ! <tr> <td class="row1" width="100%" height="28" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> *************** *** 76,80 **** <td width="100%"><span class="genmed"><b>{postrow.POSTER_NAME}</b></span><span class="postdetails"> {L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT} {postrow.POST_SUBJECT}</span></td> </tr> ! <tr> <td ><hr /></td> </tr> --- 94,98 ---- <td width="100%"><span class="genmed"><b>{postrow.POSTER_NAME}</b></span><span class="postdetails"> {L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT} {postrow.POST_SUBJECT}</span></td> </tr> ! <tr> <td ><hr /></td> </tr> *************** *** 84,88 **** </table></td> </tr> ! <tr> <td class="spaceRow" colspan="2" height="1"><img src="{SPACER_IMG}" alt="" width="1" height="1" /></td> </tr> --- 102,106 ---- </table></td> </tr> ! <tr> <td class="spaceRow" colspan="2" height="1"><img src="{SPACER_IMG}" alt="" width="1" height="1" /></td> </tr> |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:10:47
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4946/modules/mx_kb/kb/includes Modified Files: functions.php functions_kb.php Log Message: statistics print view Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** functions.php 4 Aug 2006 16:30:30 -0000 1.13 --- functions.php 4 Aug 2006 20:10:43 -0000 1.14 *************** *** 299,307 **** 'U_MCP' => $mcp_url, 'U_SEARCH' => $search_url, ! 'U_TOPRATED' => append_sid( $mx_kb->this_mxurl( "mode=stats&stats=toprated" ) ), 'L_TOPRATED' => $lang['Top_toprated'], ! 'U_MOST_POPULAR' => append_sid( $mx_kb->this_mxurl( "mode=stats&stats=mostpopular" ) ), 'L_MOST_POPULAR' => $lang['Top_most_popular'], ! 'U_LATEST' => append_sid( $mx_kb->this_mxurl( "mode=stats&stats=latest" ) ), 'L_LATEST' => $lang['Top_latest'] )); --- 299,307 ---- 'U_MCP' => $mcp_url, 'U_SEARCH' => $search_url, ! 'U_TOPRATED' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Toprated&sort_order=DESC" ) ), 'L_TOPRATED' => $lang['Top_toprated'], ! 'U_MOST_POPULAR' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Most_popular&sort_order=DESC" ) ), 'L_MOST_POPULAR' => $lang['Top_most_popular'], ! 'U_LATEST' => append_sid( $mx_kb->this_mxurl( "mode=stats&sort_method=Latest&sort_order=DESC" ) ), 'L_LATEST' => $lang['Top_latest'] )); Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_kb.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** functions_kb.php 4 Aug 2006 16:30:30 -0000 1.16 --- functions_kb.php 4 Aug 2006 20:10:43 -0000 1.17 *************** *** 828,865 **** * @param unknown_type $approve */ ! function display_items( $start, $cat_id = false, $block_name = 'articlerow', $approve = '1' ) { global $db, $kb_config, $template, $board_config; ! global $images, $lang, $phpEx, $mx_kb_functions; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx; $filelist = false; - // - // This ambigious extra code is for reusing this method for the mcp (not needed with new mcp panel) - // - $approved_sql = ''; if ( empty( $cat_id ) ) { ! $approved_sql = " t.approved = '1'"; ! $cat_where = ''; ! } ! else ! { ! if ( !$this->auth_user[$cat_id]['auth_mod'] ) ! { ! $approved_sql = " t.approved = " . $approve; ! } ! $cat_where = !empty($approved_sql) ? "AND t.article_category_id = $cat_id" : " t.article_category_id = $cat_id"; ! } ! ! $order_sql = ''; ! if ( defined( 'IN_ADMIN' ) ) ! { ! $order_sql = " ORDER BY t.article_id"; } else { ! $order_sql = " ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order; } --- 828,846 ---- * @param unknown_type $approve */ ! function display_items( $start, $cat_id = false ) { global $db, $kb_config, $template, $board_config; ! global $images, $lang, $theme, $phpEx, $mx_kb_functions; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx; $filelist = false; if ( empty( $cat_id ) ) { ! $cat_where = "AND t.article_category_id IN (" . $this->gen_cat_ids( '0' ) . ")"; } else { ! $cat_where = "AND t.article_category_id = $cat_id"; } *************** *** 872,884 **** AND t.article_type = typ.id(+) AND t.article_author_id = u.user_id(+) ! $approved_sql AND t.article_category_id = cat.category_id $cat_where GROUP BY t.article_id ! $order_sql"; break; default: ! $sql = "SELECT t.*, t.article_id, r.votes_article, AVG(r.rate_point) AS rating, COUNT(r.votes_article) AS total_votes, u.user_id, u.username, typ.type FROM " . KB_ARTICLES_TABLE . " AS t LEFT JOIN " . KB_VOTES_TABLE . " AS r ON t.article_id = r.votes_article --- 853,865 ---- AND t.article_type = typ.id(+) AND t.article_author_id = u.user_id(+) ! AND t.approved = '1' AND t.article_category_id = cat.category_id $cat_where GROUP BY t.article_id ! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order; break; default: ! $sql = "SELECT t.*, t.article_id, r.votes_article, IF(COUNT(r.rate_point)>0,AVG(r.rate_point),0) AS rating, COUNT(r.votes_article) AS total_votes, u.user_id, u.username, typ.type FROM " . KB_ARTICLES_TABLE . " AS t LEFT JOIN " . KB_VOTES_TABLE . " AS r ON t.article_id = r.votes_article *************** *** 886,893 **** LEFT JOIN " . USERS_TABLE . " AS u ON t.article_author_id = u.user_id LEFT JOIN " . KB_CATEGORIES_TABLE . " AS cat ON t.article_category_id = cat.category_id ! WHERE $approved_sql $cat_where GROUP BY t.article_id ! $order_sql"; break; } --- 867,874 ---- LEFT JOIN " . USERS_TABLE . " AS u ON t.article_author_id = u.user_id LEFT JOIN " . KB_CATEGORIES_TABLE . " AS cat ON t.article_category_id = cat.category_id ! WHERE t.approved = '1' $cat_where GROUP BY t.article_id ! ORDER BY " . $this->sort_method_extra . $this->sort_method . " " . $this->sort_order; break; } *************** *** 911,919 **** $db->sql_freeresult( $result ); ! $where_sql = ( !empty( $cat_id ) ) ? "AND article_category_id = $cat_id" : ''; ! $sql = "SELECT COUNT(article_id) as total_articles ! FROM " . KB_ARTICLES_TABLE . " ! WHERE approved='1' ! $where_sql"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 892,899 ---- $db->sql_freeresult( $result ); ! $sql = "SELECT COUNT(t.article_id) as total_articles ! FROM " . KB_ARTICLES_TABLE . " AS t ! WHERE t.approved='1' ! $cat_where"; if ( !( $result = $db->sql_query( $sql ) ) ) *************** *** 992,1048 **** $article_url = append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); - /* - $approve = ''; - $delete = ''; - - if ( defined( 'IN_ADMIN' ) ) - { - if ( $article_approved == 2 || $article_approved == 0 ) - { - // approve - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=approve&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_approve'] . '" border="0" alt="' . $lang['Approve'] . '"></a>'; - } - elseif ( $article_approved == 1 ) - { - // unapprove - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=unapprove&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_unapprove'] . '" border="0" alt="' . $lang['Un_approve'] . '"></a>'; - } - // delete - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=delete&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $delete = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_delpost'] . '" border="0" alt="' . $lang['Delete'] . '"></a>'; - } - else - { - if ( $this->auth_user[$cat_id]['auth_mod'] ) - { - if ( $article_approved == 2 || $article_approved == 0 ) - { - // approve - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=approve&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_approve'] . '" border="0" alt="' . $lang['Approve'] . '"></a>'; - } - elseif ( $article_approved == 1 ) - { - // unapprove - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=unapprove&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_unapprove'] . '" border="0" alt="' . $lang['Un_approve'] . '"></a>'; - } - } - if ( $this->auth_user[$cat_id]['auth_delete'] || $this->auth_user[$cat_id]['auth_mod']) - { - // delete - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=delete&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $delete = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_delpost'] . '" border="0" alt="' . $lang['Delete'] . '"></a>'; - } - } - */ - // =================================================== // Assign Vars // =================================================== ! $template->assign_block_vars( ARTICLELIST .'.'.$block_name, array( 'ARTICLE' => $article_title, 'ARTICLE_DESCRIPTION' => $article_description, --- 972,980 ---- $article_url = append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); // =================================================== // Assign Vars // =================================================== ! $template->assign_block_vars( "ARTICLELIST.articlerow", array( 'ARTICLE' => $article_title, 'ARTICLE_DESCRIPTION' => $article_description, *************** *** 1085,1089 **** if ( $filelist ) { ! $action = ( empty( $cat_id ) ) ? 'viewall' : 'cat&cat=' . $cat_id; $sort_method = isset($_REQUEST['sort_method']) ? $_REQUEST['sort_method'] : $kb_config['sort_method']; --- 1017,1021 ---- if ( $filelist ) { ! $action = ( empty( $cat_id ) ) ? 'stats' : 'cat&cat=' . $cat_id; $sort_method = isset($_REQUEST['sort_method']) ? $_REQUEST['sort_method'] : $kb_config['sort_method']; *************** *** 1091,1097 **** $template->assign_vars( array( 'L_ARTICLES' => $lang['Articles'], - 'L_CATEGORY' => $lang['Category'], 'L_LINK_SITE_DESC' => $lang['Siteld'], 'L_DOWNLOADS' => $lang['Hits'], --- 1023,1037 ---- $template->assign_vars( array( + 'L_CATEGORY' => $lang['Category'], + 'L_CATEGORY_NAME' => $category_name, + 'L_ARTICLE' => $lang['Article'], 'L_ARTICLES' => $lang['Articles'], + 'L_ARTICLE_TYPE' => $lang['Article_type'], + 'L_ARTICLE_CATEGORY' => $lang['Category'], + 'L_ARTICLE_DATE' => $lang['Date'], + 'L_ARTICLE_AUTHOR' => $lang['Author'], + 'L_VIEWS' => $lang['Views'], + 'L_VOTES' => $lang['Votes'], 'L_LINK_SITE_DESC' => $lang['Siteld'], 'L_DOWNLOADS' => $lang['Hits'], *************** *** 1100,1104 **** 'L_FILE' => $lang['Link'], 'L_SUBMITED_BY' => $lang['Submiter'], - 'L_VOTES' => $lang['Votes'], 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], --- 1040,1043 ---- *************** *** 1147,1435 **** /** - * Enter description here... - * - * @param unknown_type $start - * @param unknown_type $cat_id - */ - function display_stats( $start, $type = false, $cat_id = false, $block_name = 'articlerow', $approve = '1' ) - { - global $db, $kb_config, $template, $board_config; - global $images, $lang, $phpEx, $mx_kb_functions; - global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx; - - $filelist = false; - - $approved_sql = ''; - if ( empty( $cat_id ) ) - { - $approved_sql = " t.approved = '1'"; - $cat_where = ''; - } - else - { - if ( !$this->auth_user[$cat_id]['auth_mod'] ) - { - $approved_sql = " t.approved = " . $approve; - } - $cat_where = !empty($approved_sql) ? "AND t.article_category_id = $cat_id" : " t.article_category_id = $cat_id"; - } - - $order_sql = ''; - if ( $type ) - { - if ( $type == 'toprated' ) - { - $order_sql = " ORDER BY rating DESC "; - } - elseif ( $type == 'latest' ) - { - $order_sql = " ORDER BY article_date DESC "; - } - elseif ( $type == 'mostpopular' ) - { - $order_xtra = !empty($cat_where) || !empty($approved_sql)? " AND views > 0" : " views > 0 "; - $order_sql = " ORDER BY views DESC "; - } - } - else - { - - } - - switch ( SQL_LAYER ) - { - case 'oracle': - $sql = "SELECT t.*, t.article_id, r.votes_article, AVG(r.rate_point) AS rating, COUNT(r.votes_article) AS total_votes, u.user_id, u.username, COUNT(c.comments_id) AS total_comments, cat.cat_allow_ratings, cat.cat_allow_comments, typ.type - FROM " . KB_ARTICLES_TABLE . " AS t, " . KB_VOTES_TABLE . " AS r, " . USERS_TABLE . " AS u, " . KB_COMMENTS_TABLE . " AS c, " . KB_CATEGORIES_TABLE . " AS cat, " . KB_TYPES_TABLE . " AS typ - WHERE t.article_id = r.votes_article(+) - AND t.article_type = typ.id(+) - AND t.article_author_id = u.user_id(+) - AND t.article_id = c.article_id(+) - AND t.article_category_id = cat.category_id - $approved_sql - $cat_where - $order_xtra - GROUP BY t.article_id - $order_sql"; - break; - - default: - $sql = "SELECT t.*, t.article_id, r.votes_article, AVG(r.rate_point) AS rating, COUNT(r.votes_article) AS total_votes, u.user_id, u.username, COUNT(c.comments_id) AS total_comments, cat.cat_allow_ratings, cat.cat_allow_comments, typ.type - FROM " . KB_ARTICLES_TABLE . " AS t - LEFT JOIN " . KB_VOTES_TABLE . " AS r ON t.article_id = r.votes_article - LEFT JOIN " . KB_TYPES_TABLE . " AS typ ON t.article_type = typ.id - LEFT JOIN " . USERS_TABLE . " AS u ON t.article_author_id = u.user_id - LEFT JOIN " . KB_COMMENTS_TABLE . " AS c ON t.article_id = c.article_id - LEFT JOIN " . KB_CATEGORIES_TABLE . " AS cat ON t.article_category_id = cat.category_id - WHERE $approved_sql - $cat_where - $order_xtra - GROUP BY t.article_id - $order_sql"; - break; - } - - if ( !( $result = $mx_kb_functions->sql_query_limit( $sql, $kb_config['pagination'], $start ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info for this category', '', __LINE__, __FILE__, $sql ); - } - - $file_rowset = array(); - $total_file = 0; - - while ( $row = $db->sql_fetchrow( $result ) ) - { - if ( $this->auth_user[$row['article_category_id']]['auth_view'] ) - { - $file_rowset[] = $row; - } - } - - $db->sql_freeresult( $result ); - - $where_sql = ( !empty( $cat_id ) ) ? "AND article_category_id = $cat_id" : ''; - $sql = "SELECT COUNT(article_id) as total_articles - FROM " . KB_ARTICLES_TABLE . " - WHERE approved='1' - $where_sql"; - - if ( !( $result = $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldn\'t get number of article', '', __LINE__, __FILE__, $sql ); - } - - $row = $db->sql_fetchrow( $result ); - $db->sql_freeresult( $result ); - - $total_file = $row['total_articles']; - unset( $row ); - - if (count( $file_rowset ) > 0) - { - $template->assign_block_vars( 'ARTICLELIST', array() ); - - $filelist = true; - } - - // - // Ratings - // - $kb_use_ratings = false; - for ( $i = 0; $i < count( $file_rowset ); $i++ ) - { - if ( $this->ratings[$file_rowset[$i]['article_category_id']]['activated'] ) - { - $kb_use_ratings = true; - break; - } - } - - for ( $i = 0; $i < count( $file_rowset ); $i++ ) - { - // =================================================== - // Format the date for the given file - // =================================================== - $article_date = create_date( $board_config['default_dateformat'], $file_rowset[$i]['article_date'], $board_config['board_timezone'] ); - // =================================================== - // Get rating for the file and format it - // =================================================== - $rating = ( $file_rowset[$i]['rating'] != 0 ) ? round( $file_rowset[$i]['rating'], 2 ) . ' / 10' : $lang['Not_rated']; - // - // If the file is new then put a new image in front of it - // - $is_new = FALSE; - if (time() - ($kb_config['settings_newdays'] * 24 * 60 * 60) < $file_rowset[$i]['article_date']) - { - $is_new = TRUE; - } - // - // If the file is new then put a new image in front of it - // - $is_new = FALSE; - if (time() - ($kb_config['settings_newdays'] * 24 * 60 * 60) < $file_rowset[$i]['article_date']) - { - $is_new = TRUE; - } - - $cat_name = ( empty( $cat_id ) ) ? $this->cat_rowset[$file_rowset[$i]['file_catid']]['category_name'] : ''; - $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['article_category_id'] ) ); - - $article_description = $file_rowset[$i]['article_description'] ; - $article_cat_id = $file_rowset[$i]['article_category_id']; - $article_approved = $file_rowset[$i]['approved']; - - // - // type - // - $article_type = isset($lang['KB_type_' . $file_rowset[$i]['type']]) ? $lang['KB_type_' . $file_rowset[$i]['type']] : $file_rowset[$i]['type']; - - // - // author information - // - $author = ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid( $phpbb_root_path . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $file_rowset[$i]['user_id'] ) . '" target=_blank>' : ''; - $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? $file_rowset[$i]['username'] : $file_rowset[$i]['post_username'] . '(' . $lang['Guest'] . ')'; - $author .= ( $file_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; - - $article_id = $file_rowset[$i]['article_id']; - $views = $file_rowset[$i]['views']; - - $article_title = $file_rowset[$i]['article_title']; - $temp_url = append_sid( $this->this_mxurl( "mode=article&k=$article_id" ) ); - $article = '<a href="' . $temp_url . '" class="gen">' . $article_title . '</a>'; - - /* - $approve = ''; - $delete = ''; - - if ( defined( 'IN_ADMIN' ) ) - { - if ( $article_approved == 2 || $article_approved == 0 ) - { - // approve - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=approve&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_approve'] . '" border="0" alt="' . $lang['Approve'] . '"></a>'; - } - elseif ( $article_approved == 1 ) - { - // unapprove - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=unapprove&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_unapprove'] . '" border="0" alt="' . $lang['Un_approve'] . '"></a>'; - } - // delete - $temp_url = append_sid( $module_root_path . "admin/admin_kb_art.$phpEx?mode=delete&a=$article_id&cat=$article_cat_id" . "&start=" . $start); - $delete = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_delpost'] . '" border="0" alt="' . $lang['Delete'] . '"></a>'; - } - else - { - if ( $this->auth_user[$cat_id]['auth_mod'] ) - { - if ( $article_approved == 2 || $article_approved == 0 ) - { - // approve - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=approve&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_approve'] . '" border="0" alt="' . $lang['Approve'] . '"></a>'; - } - elseif ( $article_approved == 1 ) - { - // unapprove - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=unapprove&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $approve = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_unapprove'] . '" border="0" alt="' . $lang['Un_approve'] . '"></a>'; - } - } - if ( $this->auth_user[$cat_id]['auth_delete'] || $this->auth_user[$cat_id]['auth_mod']) - { - // delete - $temp_url = append_sid( $this->this_mxurl( "mode=moderate&action=delete&a=$article_id&cat=$article_cat_id&page=$page_id" . "&start=" . $start) ); - $delete = '<a href="' . $temp_url . '"><img src="' . $images['kb_icon_delpost'] . '" border="0" alt="' . $lang['Delete'] . '"></a>'; - } - } - */ - - // =================================================== - // Assign Vars - // =================================================== - $template->assign_block_vars( $block_name, array( - 'ARTICLE' => $article , - 'ARTICLE_DESCRIPTION' => $article_description, - 'ARTICLE_TYPE' => $article_type, - 'ARTICLE_DATE' => $article_date, - 'ARTICLE_AUTHOR' => $author, - - 'ARTICLE_IMAGE' => $is_new ? $images['kb_article'] : $images['kb_article'], - - 'CATEGORY' => $cat_name, - 'ART_VIEWS' => $views, - - 'ARTICLE_VOTES' => $file_rowset[$i]['total_votes'], - 'L_RATING' => '<a href="' . append_sid( $this->this_mxurl( 'mode=rate&k=' . $file_rowset[$i]['article_id'] ) ) . '">' . $lang['Votes_label'] . '</a>', - 'RATING' => $rating, - - //'U_APPROVE' => $approve, - - 'ARTICLE_IMAGE' => $is_new ? $images['kb_article_new'] : $images['kb_article'], - 'COLOR' => ( ( $i % 2 ) ? "row2" : "row1" ), - 'POSTER' => $file_poster, - - //'U_DELETE' => $delete - )); - - if ( $kb_use_ratings ) - { - $template->assign_block_vars( "articlerow.show_ratings", array() ); - } - - if ( $is_new ) - { - $template->assign_block_vars( "articlerow.is_new_file", array() ); - } - } - - if ( !$filelist ) - { - $template->assign_block_vars( 'no_articles', array( 'COMMENT' => $lang['No_Articles'] ) ); - } - } - - /** * auth_can. * --- 1086,1089 ---- |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:10:47
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4946/modules/mx_kb Modified Files: kb.php Log Message: statistics print view Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** kb.php 4 Aug 2006 12:43:51 -0000 1.39 --- kb.php 4 Aug 2006 20:10:43 -0000 1.40 *************** *** 47,98 **** define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); ! if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); ! $mx_get_page = new kb_pages(); ! $mx_get_page->init('kb.php'); ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! $url = ''; ! if ( empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=cat&cat=' . $mx_get_page->cat_id; } ! else if ( !empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=article&k=' . $mx_get_page->item_id; } ! ! if ( !empty( $url ) && !$mx_get_page->error ) { ! if ( !empty( $db ) ) ! { ! $db->sql_close(); ! } ! if ( @preg_match( '/Microsoft|WebSTAR|Xitami/', getenv( 'SERVER_SOFTWARE' ) ) ) ! { ! header( 'Refresh: 0; URL=' . $url ); ! echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' . "\n" . '<html><head>' . "\n" . '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">' . "\n" . '<meta http-equiv="refresh" content="0; url=' . $url . '">' . "\n" . '<title>Redirect</title>' . "\n" . '<script language="javascript" type="text/javascript">' . "\n" . '<!--' . "\n" . 'if( document.images ) {' . "\n" . "\t" . 'parent.location.replace("' . $url . '");' . "\n" . '} else {' . "\n" . "\t" . 'parent.location.href = "' . $url . '";' . "\n" . '}' . "\n" . '// -->' . "\n" . '</script>' . "\n" . '</head>' . "\n" . '<body>' . "\n" . '<div align="center">If your browser does not support meta redirection please click ' . '<a href="' . $url . '">HERE</a> to be redirected</div>' . "\n" . '</body></html>'; ! exit; ! } ! @header( 'Location: ' . $url ); } else { ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! die("Hacking attempt"); ! } ! ! if ( MXBB_27x ) ! { ! mx_message_die( GENERAL_MESSAGE, $lang['Standalone_Not_Supported'] ); ! } ! else ! { ! die('No article or redirect'); ! } } } --- 47,100 ---- define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); ! $mx_get_page = new kb_pages(); ! $mx_get_page->init('kb.php'); ! ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! ! $url = ''; ! if ( empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=cat&cat=' . $mx_get_page->cat_id; ! } ! else if ( !empty( $mx_get_page->item_id ) ) ! { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=article&k=' . $mx_get_page->item_id; ! } ! if (isset($HTTP_GET_VARS['print'])) ! { ! $url .= '&print=true'; ! } ! if ( !empty( $url ) && !$mx_get_page->error ) ! { ! if ( !empty( $db ) ) { ! $db->sql_close(); } ! ! if ( @preg_match( '/Microsoft|WebSTAR|Xitami/', getenv( 'SERVER_SOFTWARE' ) ) ) { ! header( 'Refresh: 0; URL=' . $url ); ! echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' . "\n" . '<html><head>' . "\n" . '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">' . "\n" . '<meta http-equiv="refresh" content="0; url=' . $url . '">' . "\n" . '<title>Redirect</title>' . "\n" . '<script language="javascript" type="text/javascript">' . "\n" . '<!--' . "\n" . 'if( document.images ) {' . "\n" . "\t" . 'parent.location.replace("' . $url . '");' . "\n" . '} else {' . "\n" . "\t" . 'parent.location.href = "' . $url . '";' . "\n" . '}' . "\n" . '// -->' . "\n" . '</script>' . "\n" . '</head>' . "\n" . '<body>' . "\n" . '<div align="center">If your browser does not support meta redirection please click ' . '<a href="' . $url . '">HERE</a> to be redirected</div>' . "\n" . '</body></html>'; ! exit; } ! @header( 'Location: ' . $url ); ! } ! else ! { ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! die("Hacking attempt"); ! } ! if ( MXBB_27x ) ! { ! mx_message_die( GENERAL_MESSAGE, $lang['Standalone_Not_Supported'] ); } else { ! die('No article or redirect'); } } *************** *** 140,144 **** // =================================================== $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! $print_version = $mx_request_vars->request('print', MX_TYPE_NO_TAGS, ''); $kb_config['reader_mode'] = false; --- 142,146 ---- // =================================================== $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! $print_version = $mx_request_vars->is_request('print', MX_TYPE_NO_TAGS, ''); $kb_config['reader_mode'] = false; *************** *** 174,182 **** // Lets Build the page // =================================================== - if ( !$is_block && !$print_version) - { - include( $mx_root_path . 'includes/page_header.' . $phpEx ); - } - $mx_kb->module( $actions[$mode] ); $mx_kb->modules[$actions[$mode]]->main( $mode ); --- 176,179 ---- *************** *** 200,205 **** --- 197,214 ---- ); + if ( $print_version) + { + ob_start(); + } + $template->pparse( 'body' ); + if ( $print_version ) + { + $print_contents = ob_get_contents(); + ob_end_clean(); + die($print_contents); + } + // // load module footer *************** *** 209,216 **** $mx_kb_functions->page_footer(); } - - if ( !$is_block && !$print_version ) - { - include( $mx_root_path . 'includes/page_tail.' . $phpEx ); - } ?> \ No newline at end of file --- 218,220 ---- |
|
From: Jon O. <jon...@us...> - 2006-08-04 20:10:47
|
Update of /cvsroot/mxbb/mx_kb/kb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4946/modules/mx_kb/kb/modules Modified Files: kb_article.php kb_cat.php kb_stats.php Log Message: statistics print view Index: kb_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_stats.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kb_stats.php 1 Aug 2006 21:00:38 -0000 1.6 --- kb_stats.php 4 Aug 2006 20:10:43 -0000 1.7 *************** *** 34,57 **** // $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); - $stats = $mx_request_vars->request('stats', MX_TYPE_NO_TAGS, ''); - - //$this->generate_jumpbox( 'auth_view', 0, 0, true ); - $this->generate_jumpbox( 0, 0, array( $_GET['cat'] => 1 )); - - $template->set_filenames( array( 'body' => 'kb_stats_body.tpl' ) ); ! if ( $stats == 'toprated' ) ! { ! $path_kb = $lang['Top_toprated']; ! } ! elseif ( $stats == 'latest' ) { ! $path_kb = $lang['Top_latest']; } ! elseif ( $stats == 'mostpopular' ) { ! $path_kb = $lang['Top_most_popular']; } $template->assign_vars( array( 'L_CATEGORY_NAME' => $category_name, --- 34,93 ---- // $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); ! // ! // Sorting of items ! // ! if ( isset( $_REQUEST['sort_method'] ) ) { ! switch ( $_REQUEST['sort_method'] ) ! { ! case 'Id': ! $this->sort_method = 't.article_id'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_id']; ! break; ! case 'Latest': ! $this->sort_method = 't.article_date'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_latest']; ! break; ! case 'Toprated': ! $this->sort_method = 'rating'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_toprated']; ! break; ! case 'Most_popular': ! $this->sort_method = 't.views'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_most_popular']; ! break; ! case 'Userrank': ! $this->sort_method = 'u.user_rank'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_userrank']; ! break; ! case 'Alphabetic': ! $this->sort_method = 't.article_title'; ! $this->sort_method_extra = 't.article_type' . " DESC, " ; ! $path_kb = ' » ' . $lang['Top_alphabetic']; ! break; ! } } ! ! if ( isset( $_REQUEST['sort_order'] ) ) { ! switch ( $_REQUEST['sort_order'] ) ! { ! case 'ASC': ! $this->sort_order = 'ASC'; ! break; ! case 'DESC': ! $this->sort_order = 'DESC'; ! break; ! } } + $template->set_filenames( array( 'body' => 'kb_stats_body.tpl' ) ); + $template->assign_vars( array( 'L_CATEGORY_NAME' => $category_name, *************** *** 66,94 **** 'L_CATEGORY' => $lang['Category_sub'], 'L_ARTICLES' => $lang['Articles'], ! 'PATH' => '» ' . $path_kb, 'U_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) )); ! $this->display_stats( $start, $stats ); ! ! // ! // Stats pagination is inactivated for now ;) ! // ! if ( $total_articles > 0 ) ! { ! // $pagination = generate_pagination( $this->this_mxurl( "mode=cat&cat=$category_id" ), $total_articles, $kb_config['pagination'], $start ) . ' '; ! } ! ! if ( $total_articles > 0 ) ! { ! // $template->assign_block_vars( 'pagination', array() ); ! } // // Get footer quick dropdown jumpbox // - //$this->generate_jumpbox( 'auth_view', 0, 0, true ); $this->generate_jumpbox( 0, 0, array( $_GET['cat'] => 1 )); - } } --- 102,115 ---- 'L_CATEGORY' => $lang['Category_sub'], 'L_ARTICLES' => $lang['Articles'], ! 'PATH' => $path_kb, 'U_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) )); ! $this->display_items( $start ); // // Get footer quick dropdown jumpbox // $this->generate_jumpbox( 0, 0, array( $_GET['cat'] => 1 )); } } Index: kb_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_cat.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** kb_cat.php 1 Aug 2006 21:00:38 -0000 1.7 --- kb_cat.php 4 Aug 2006 20:10:43 -0000 1.8 *************** *** 143,161 **** $template->assign_vars( array( - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $kb_config['pagination'] ) + 1 ), ceil( $total_articles / $kb_config['pagination'] ) ), - 'L_GOTO_PAGE' => $lang['Goto_page'], - 'L_CATEGORY_NAME' => $category_name, - 'L_ARTICLE' => $lang['Article'], - 'L_ARTICLE_TYPE' => $lang['Article_type'], - 'L_ARTICLE_CATEGORY' => $lang['Category'], - 'L_ARTICLE_DATE' => $lang['Date'], - 'L_ARTICLE_AUTHOR' => $lang['Author'], - 'L_VIEWS' => $lang['Views'], - 'L_VOTES' => $lang['Votes'], - - 'L_CATEGORY' => $lang['Category_sub'], - 'L_ARTICLES' => $lang['Articles'], - 'U_CAT' => append_sid( $this->this_mxurl( 'mode=cat&cat=' . $category_id ) ) ) ); --- 143,146 ---- Index: kb_article.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_article.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** kb_article.php 4 Aug 2006 16:30:30 -0000 1.12 --- kb_article.php 4 Aug 2006 20:10:43 -0000 1.13 *************** *** 27,31 **** function main( $action ) { ! global $template, $lang, $db, $phpEx, $kb_config, $mx_request_vars, $userdata; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx, $images; global $mx_kb_custom_field, $mx_kb_functions, $print_version, $board_config, $mx_block; --- 27,31 ---- function main( $action ) { ! global $template, $lang, $theme, $db, $phpEx, $kb_config, $mx_request_vars, $userdata; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx, $images; global $mx_kb_custom_field, $mx_kb_functions, $print_version, $board_config, $mx_block; *************** *** 294,298 **** 'EDIT' => $edit, 'DELETE' => $delete, ! 'VIEWS' => $views ) ); --- 294,301 ---- 'EDIT' => $edit, 'DELETE' => $delete, ! 'VIEWS' => $views, ! ! 'T_TH_COLOR1' => '#'.$theme['th_color1'], // Border Colors (main) ! ) ); |
|
From: Jon O. <jon...@us...> - 2006-08-04 16:33:18
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27083/includes Modified Files: mx_functions_tools.php Log Message: updated some tools... Index: mx_functions_tools.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_tools.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_functions_tools.php 1 Aug 2006 21:06:13 -0000 1.6 --- mx_functions_tools.php 4 Aug 2006 16:33:12 -0000 1.7 *************** *** 1586,1591 **** var $auto_message_update = ''; // for auto generated messages - - /** * this will be replaced by the loaded module. --- 1586,1589 ---- *************** *** 1682,1686 **** if ( $this->to_id == $this->from_id ) { ! //continue; } --- 1680,1684 ---- if ( $this->to_id == $this->from_id ) { ! continue; } |
|
From: Jon O. <jon...@us...> - 2006-08-04 16:32:22
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26533/modules/mx_pafiledb/pafiledb/includes Modified Files: functions.php functions_comment.php functions_pafiledb.php Log Message: finetuning of - notifications - approval Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** functions.php 1 Aug 2006 21:03:24 -0000 1.28 --- functions.php 4 Aug 2006 16:32:19 -0000 1.29 *************** *** 937,941 **** function init( $item_id = 0) { ! global $db, $lang, $module_root_path, $phpbb_root_path, $phpEx, $userdata; // ======================================================= --- 937,941 ---- function init( $item_id = 0) { ! global $db, $lang, $module_root_path, $phpbb_root_path, $phpEx, $userdata, $pafiledb; // ======================================================= *************** *** 978,986 **** { case 'oracle': ! $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username, COUNT(c.comments_id) as total_comments ! FROM " . PA_FILES_TABLE . " AS f, " . PA_VOTES_TABLE . " AS r, " . USERS_TABLE . " AS u, " . PA_CATEGORY_TABLE . " AS c, " . PA_COMMENTS_TABLE . " AS cm WHERE f.file_id = r.votes_file(+) AND f.user_id = u.user_id(+) - AND f.file_id = cm.file_id(+) AND c.cat_id = a.file_catid AND f.file_id = '" . $item_id . "' --- 978,985 ---- { case 'oracle': ! $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username ! FROM " . PA_FILES_TABLE . " AS f, " . PA_VOTES_TABLE . " AS r, " . USERS_TABLE . " AS u, " . PA_CATEGORY_TABLE . " AS c WHERE f.file_id = r.votes_file(+) AND f.user_id = u.user_id(+) AND c.cat_id = a.file_catid AND f.file_id = '" . $item_id . "' *************** *** 989,997 **** default: ! $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username, COUNT(c.comments_id) as total_comments FROM " . PA_FILES_TABLE . " AS f, " . PA_CATEGORY_TABLE . " AS cat LEFT JOIN " . PA_VOTES_TABLE . " AS r ON f.file_id = r.votes_file LEFT JOIN " . USERS_TABLE . " AS u ON f.user_id = u.user_id - LEFT JOIN " . PA_COMMENTS_TABLE . " AS c ON f.file_id = c.file_id WHERE cat.cat_id = f.file_catid AND f.file_id = '" . $item_id . "' --- 988,995 ---- default: ! $sql = "SELECT f.*, AVG(r.rate_point) AS rating, COUNT(r.votes_file) AS total_votes, u.user_id, u.username FROM " . PA_FILES_TABLE . " AS f, " . PA_CATEGORY_TABLE . " AS cat LEFT JOIN " . PA_VOTES_TABLE . " AS r ON f.file_id = r.votes_file LEFT JOIN " . USERS_TABLE . " AS u ON f.user_id = u.user_id WHERE cat.cat_id = f.file_catid AND f.file_id = '" . $item_id . "' *************** *** 1043,1047 **** $this->data['item_editor'] = ( $userdata['user_id'] != '-1' ) ? $userdata['username'] : $lang['Guest']; ! //$this->temp_url = PORTAL_URL . $pafiledb->this_mxurl("action=" . "link&link_id=" . $this->data['item_id'], false, true); } } --- 1041,1045 ---- $this->data['item_editor'] = ( $userdata['user_id'] != '-1' ) ? $userdata['username'] : $lang['Guest']; ! $this->temp_url = PORTAL_URL . $pafiledb->this_mxurl("action=" . "file&file_id=" . $this->data['item_id'], false, true); } } Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_comment.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** functions_comment.php 1 Aug 2006 21:03:24 -0000 1.23 --- functions_comment.php 4 Aug 2006 16:32:19 -0000 1.24 *************** *** 146,152 **** // Toggles // ! $bbcode_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_bbcode'] ? true : false) : false; ! $html_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_html'] ? true : false) : true; ! $smilies_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_smilies'] ? true : false) : false; // --- 146,152 ---- // Toggles // ! $bbcode_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_bbcode'] ? true : false) : false; ! $html_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_html'] ? true : false) : true; ! $smilies_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_smilies'] ? true : false) : false; // *************** *** 351,357 **** // Toggles // ! $bbcode_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_bbcode'] ? true : false) : false; ! $html_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_html'] ? true : false) : true; ! $smilies_on = !$pafiledb_config['allow_wysiwyg'] ? ($pafiledb_config['allow_smilies'] ? true : false) : false; // --- 351,357 ---- // Toggles // ! $bbcode_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_bbcode'] ? true : false) : false; ! $html_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_html'] ? true : false) : true; ! $smilies_on = !$pafiledb_config['allow_comment_wysiwyg'] ? ($pafiledb_config['allow_comment_smilies'] ? true : false) : false; // Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** functions_pafiledb.php 1 Aug 2006 21:03:24 -0000 1.37 --- functions_pafiledb.php 4 Aug 2006 16:32:19 -0000 1.38 *************** *** 1890,1894 **** function update_add_item( $file_id = false ) { ! global $db, $phpbb_root_path, $db, $userdata, $pafiledb_config, $_FILES, $pafiledb_functions, $user_ip, $auth, $module_root_path, $pafiledb; $ss_upload = ( empty( $_POST['screen_shot_url'] ) ) ? true : false; --- 1890,1894 ---- function update_add_item( $file_id = false ) { ! global $db, $phpbb_root_path, $userdata, $pafiledb_config, $_FILES, $pafiledb_functions, $user_ip, $auth, $module_root_path; $ss_upload = ( empty( $_POST['screen_shot_url'] ) ) ? true : false; *************** *** 2026,2029 **** --- 2026,2053 ---- } + if ( !$file_id ) + { + if ($this->auth_user[$cat_id]['auth_approval'] || $this->auth_user[$cat_id]['auth_mod']) + { + $file_approved = 1; + } + else + { + $file_approved = 0; + } + } + else + { + if ($this->auth_user[$cat_id]['auth_approval_edit'] || $this->auth_user[$cat_id]['auth_mod']) + { + $file_approved = 1; + } + else + { + $file_approved = 0; + } + } + + /* if ( $pafiledb->modules[$pafiledb->module_name]->auth_user[$cat_id]['auth_approval'] || ( $pafiledb->modules[$pafiledb->module_name]->auth_user[$cat_id]['auth_mod'] && $userdata['session_logged_in'] ) ) { *************** *** 2041,2044 **** --- 2065,2070 ---- $file_approved = 0; } + */ + if ( !$file_id ) *************** *** 2170,2174 **** $mx_pa_notification->notify( $mx_notification_mode, $mx_notification_action ); ! if ( $this->notification[$cat_id]['notify_group'] > 0 ) { $mx_pa_notification->notify( $mx_notification_mode, $mx_notification_action, - intval($this->notification[$catId]['notify_group']) ); --- 2196,2200 ---- $mx_pa_notification->notify( $mx_notification_mode, $mx_notification_action ); ! if ( $this->notification[$catId]['notify_group'] > 0 ) { $mx_pa_notification->notify( $mx_notification_mode, $mx_notification_action, - intval($this->notification[$catId]['notify_group']) ); |
|
From: Jon O. <jon...@us...> - 2006-08-04 16:32:22
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26533/modules/mx_pafiledb/templates/subSilver Modified Files: pa_file_body.tpl Log Message: finetuning of - notifications - approval Index: pa_file_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_file_body.tpl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pa_file_body.tpl 2 May 2006 23:28:16 -0000 1.8 --- pa_file_body.tpl 4 Aug 2006 16:32:19 -0000 1.9 *************** *** 1,2 **** --- 1,18 ---- + <script language='javascript'> + <!-- + function delete_item(theURL) + { + if (confirm('Are you sure you want to delete this item??')) + { + window.location.href=theURL; + } + else + { + alert ('No Action has been taken.'); + } + } + --> + </script> + <!-- INCLUDE pa_header.tpl --> <table width="100%" cellpadding="2" cellspacing="2"> *************** *** 9,24 **** <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th class="thCornerL" align="left" colspan="2">{L_FILE} - {FILE_NAME}</th> <th class="thCornerR" align="right" nowrap> ! <!-- IF AUTH_EDIT --> <a href="{U_EDIT}"><img src="{EDIT_IMG}" border="0" alt="{L_EDIT}" /></a> <!-- ENDIF --> ! <!-- IF AUTH_DELETE --> ! <a href="javascript:delete_file('{U_DELETE}')"><img src="{DELETE_IMG}" border="0" alt="{L_DELETE}" /></a> <!-- ENDIF --> </th> </tr> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_DESC}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_LONGDESC}</span></td> --- 25,40 ---- <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th class="thCornerL" align="left" colspan="2">{L_FILE} - {FILE_NAME}</th> <th class="thCornerR" align="right" nowrap> ! <!-- IF AUTH_EDIT --> <a href="{U_EDIT}"><img src="{EDIT_IMG}" border="0" alt="{L_EDIT}" /></a> <!-- ENDIF --> ! <!-- IF AUTH_DELETE --> ! <a href="javascript:delete_item('{U_DELETE}')"><img src="{DELETE_IMG}" border="0" alt="{L_DELETE}" /></a> <!-- ENDIF --> </th> </tr> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_DESC}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_LONGDESC}</span></td> *************** *** 27,45 **** <td class="row2" valign="middle" width="20%"><span class="genmed">{L_SUBMITED_BY}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="name">{FILE_SUBMITED_BY}</span></td> ! </tr> <!-- IF SHOW_AUTHOR --> <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_AUTHOR}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_AUTHOR}</span></td> ! </tr> <!-- ENDIF --> <!-- IF SHOW_VERSION --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_VERSION}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_VERSION}</span></td> ! </tr> ! <!-- ENDIF --> <!-- IF SHOW_SCREENSHOT --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_SCREENSHOT}:</span></td> <!-- IF SS_AS_LINK --> --- 43,61 ---- <td class="row2" valign="middle" width="20%"><span class="genmed">{L_SUBMITED_BY}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="name">{FILE_SUBMITED_BY}</span></td> ! </tr> <!-- IF SHOW_AUTHOR --> <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_AUTHOR}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_AUTHOR}</span></td> ! </tr> <!-- ENDIF --> <!-- IF SHOW_VERSION --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_VERSION}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed">{FILE_VERSION}</span></td> ! </tr> ! <!-- ENDIF --> <!-- IF SHOW_SCREENSHOT --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_SCREENSHOT}:</span></td> <!-- IF SS_AS_LINK --> *************** *** 48,82 **** <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed"><a href="javascript:mpFoto('{FILE_SCREENSHOT}')"><img src="{FILE_SCREENSHOT}" border="0" width="100" hight="100"></a></span></td> <!-- ENDIF --> ! </tr> <!-- ENDIF --> <!-- IF SHOW_WEBSITE --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_WEBSITE}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed"><a href="{FILE_WEBSITE}" target="_blank">{L_CLICK_HERE}</a></span></td> </tr> ! <!-- ENDIF --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_DATE}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{TIME}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_UPDATE_TIME}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{UPDATE_TIME}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_LASTTDL}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{LAST}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_SIZE}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{FILE_SIZE}</span></td> </tr> ! <!-- BEGIN use_ratings --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{use_ratings.L_RATING}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{use_ratings.RATING} ({use_ratings.FILE_VOTES} {use_ratings.L_VOTES})</span></td> </tr> <!-- END use_ratings --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_DLS}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{FILE_DLS}</span></td> --- 64,98 ---- <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed"><a href="javascript:mpFoto('{FILE_SCREENSHOT}')"><img src="{FILE_SCREENSHOT}" border="0" width="100" hight="100"></a></span></td> <!-- ENDIF --> ! </tr> <!-- ENDIF --> <!-- IF SHOW_WEBSITE --> ! <tr> <td class="row2" valign="middle" width="20%"><span class="genmed">{L_WEBSITE}:</span></td> <td class="row1" valign="middle" width="80%" colspan="2"><span class="genmed"><a href="{FILE_WEBSITE}" target="_blank">{L_CLICK_HERE}</a></span></td> </tr> ! <!-- ENDIF --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_DATE}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{TIME}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_UPDATE_TIME}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{UPDATE_TIME}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_LASTTDL}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{LAST}</span></td> </tr> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_SIZE}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{FILE_SIZE}</span></td> </tr> ! <!-- BEGIN use_ratings --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{use_ratings.L_RATING}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{use_ratings.RATING} ({use_ratings.FILE_VOTES} {use_ratings.L_VOTES})</span></td> </tr> <!-- END use_ratings --> ! <tr> <td class="row2" valign="middle"><span class="genmed">{L_DLS}:</span></td> <td class="row1" valign="middle" colspan="2"><span class="genmed">{FILE_DLS}</span></td> *************** *** 88,92 **** </tr> <!-- END custom_field --> ! <tr> <td class="cat" align="center" colspan="3"></td> </tr> --- 104,108 ---- </tr> <!-- END custom_field --> ! <tr> <td class="cat" align="center" colspan="3"></td> </tr> *************** *** 95,107 **** <table width="100%" cellpadding="2" cellspacing="0"> <tr> ! <!-- IF AUTH_DOWNLOAD --> <td width="33%" align="center"><a href="{U_DOWNLOAD}"><img src="{DOWNLOAD_IMG}" border="0" alt="{L_DOWNLOAD}" /></a></td> <!-- ENDIF --> ! <!-- BEGIN use_ratings --> <td width="34%" align="center"><a href="{use_ratings.U_RATE}"><img src="{use_ratings.RATE_IMG}" border="0" alt="{use_ratings.L_RATE}" /></a></td> <!-- END use_ratings --> ! <!-- IF AUTH_EMAIL --> <td width="33%" align="center"><a href="{U_EMAIL}"><img src="{EMAIL_IMG}" border="0" alt="{L_EMAIL}" /></a></td> <!-- ENDIF --> --- 111,123 ---- <table width="100%" cellpadding="2" cellspacing="0"> <tr> ! <!-- IF AUTH_DOWNLOAD --> <td width="33%" align="center"><a href="{U_DOWNLOAD}"><img src="{DOWNLOAD_IMG}" border="0" alt="{L_DOWNLOAD}" /></a></td> <!-- ENDIF --> ! <!-- BEGIN use_ratings --> <td width="34%" align="center"><a href="{use_ratings.U_RATE}"><img src="{use_ratings.RATE_IMG}" border="0" alt="{use_ratings.L_RATE}" /></a></td> <!-- END use_ratings --> ! <!-- IF AUTH_EMAIL --> <td width="33%" align="center"><a href="{U_EMAIL}"><img src="{EMAIL_IMG}" border="0" alt="{L_EMAIL}" /></a></td> <!-- ENDIF --> *************** *** 110,114 **** <br /> ! <!-- BEGIN use_comments --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> <tr> --- 126,130 ---- <br /> ! <!-- BEGIN use_comments --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> <tr> *************** *** 120,124 **** </tr> <!-- END no_comments --> ! <!-- BEGIN text --> <tr> --- 136,140 ---- </tr> <!-- END no_comments --> ! <!-- BEGIN text --> <tr> *************** *** 135,139 **** <!-- BEGIN auth_edit --> <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}"><img src="{use_comments.text.auth_edit.EDIT_IMG}" alt="{use_comments.text.auth_edit.L_COMMENT_EDIT}" title="{use_comments.text.auth_edit.L_COMMENT_EDIT}" border="0"></a> ! <!-- END auth_edit --> <!-- BEGIN auth_delete --> <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}"><img src="{use_comments.text.auth_delete.DELETE_IMG}" alt="{use_comments.text.auth_delete.L_COMMENT_DELETE}" title="{use_comments.text.auth_delete.L_COMMENT_DELETE}" border="0"></a> --- 151,155 ---- <!-- BEGIN auth_edit --> <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}"><img src="{use_comments.text.auth_edit.EDIT_IMG}" alt="{use_comments.text.auth_edit.L_COMMENT_EDIT}" title="{use_comments.text.auth_edit.L_COMMENT_EDIT}" border="0"></a> ! <!-- END auth_edit --> <!-- BEGIN auth_delete --> <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}"><img src="{use_comments.text.auth_delete.DELETE_IMG}" alt="{use_comments.text.auth_delete.L_COMMENT_DELETE}" title="{use_comments.text.auth_delete.L_COMMENT_DELETE}" border="0"></a> *************** *** 141,145 **** </td> </tr> ! <tr> <td colspan="2"><hr /></td> </tr> --- 157,161 ---- </td> </tr> ! <tr> <td colspan="2"><hr /></td> </tr> *************** *** 150,154 **** </td> </tr> ! <tr> <td class="spaceRow" colspan="2" height="1"><img src="{use_comments.text.ICON_SPACER}" alt="" width="1" height="1" /></td> </tr> --- 166,170 ---- </td> </tr> ! <tr> <td class="spaceRow" colspan="2" height="1"><img src="{use_comments.text.ICON_SPACER}" alt="" width="1" height="1" /></td> </tr> *************** *** 164,168 **** </table> <!-- END comments_pag --> ! <!-- BEGIN auth_post --> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> --- 180,184 ---- </table> <!-- END comments_pag --> ! <!-- BEGIN auth_post --> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> |