Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
$page_string = $lang['Goto_page'] . ' ' . $page_string;
#
#-----[ REPLACE ]----------------------------------------------
#
/// --- BEGIN MOD: Goto specific page
if ( $total_pages > 5 )
{
$select_page = ' <select name="generate_pagination" onChange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }">';
for($i = 1; $i <= $total_pages; $i++)
{
$selected = ( $i == $on_page ) ? ' selected="selected"' : ''; // highlight current page by default
$select_page .= '<option value="' . append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '"' . $selected . '>' . $i . '</option>';
}
$select_page .= '</select>:';
}
else
$select_page = '';
/// --- END MOD: Goto specific page
$page_string = $lang['Goto_page'] . $select_page . ' ' . $page_string;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
wingchun wrote: but.. i have a small problem:
i can't see the >< icon
onle the red x of no pic.
Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : merge -----------------------------------------------------------------------------------
//-- add
$images['topic_mod_merge'] = "$current_template_images/topic_merge.gif";
//-- fin mod : merge ---------------------------------------------------
Parse error: parse error in /home/www/dubsouth/forum/includes/functions.php on line 800
Warning: Cannot modify header information - headers already sent by (output started at /home/www/dubsouth/forum/includes/functions.php:800) in /home/www/dubsouth/forum/includes/sessions.php on line 305
Warning: Cannot modify header information - headers already sent by (output started at /home/www/dubsouth/forum/includes/functions.php:800) in /home/www/dubsouth/forum/includes/sessions.php on line 306
Code: Select all
// all in merge.php
// won't update title bug...
FIND:
// build the update request
$sql_update = '';
if ( !empty($topic_title) )
{
$sql_title = "topic_title = '" . str_replace("\'", "''", $topic_title) . "'";
REPLACE WITH:
// build the update request
$sql_update = '';
if ( !empty($topic_title) )
{
$sql_update = "topic_title = '" . str_replace("\'", "''", $topic_title) . "'";
// can't get past page 2 bug...
FIND:
if (isset($HTTP_POST_VARS['start'])) $start = intval($start);
REPLACE WITH:
if (isset($HTTP_POST_VARS['start'])) $start = intval($HTTP_POST_VARS['start']);
Code: Select all
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// Set up style
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
}
if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
dJomp wrote: I don't get any "language management" page in the acp from installing this mod; maybe it's interfered with another of your mods?