Navigating the Internet I found a mod for changing the logo of phpBB2, and I have adapted to Icy Phoenix.
Would you think.
First upload to the server folder images.
SQL:
INSERT INTO `ip_config` VALUES ('logo_image_path', 'images/logo');
INSERT INTO `ip_config` VALUES ('logo_image', 'subSilver.gif');
INSERT INTO `ip_config` VALUES ('logo_image_w', '200');
INSERT INTO `ip_config` VALUES ('logo_image_h', '91');
INSERT INTO `ip_config` VALUES ('logo_image', 'subSilver.gif');
INSERT INTO `ip_config` VALUES ('logo_image_w', '200');
INSERT INTO `ip_config` VALUES ('logo_image_h', '91');
OPEN:
language/lang_english/lang_admin.php
Search:
Before Add:
$lang['Logo_settings'] = 'Logo Setting';
$lang['Logo_explain'] = 'Here you can set the folder path to your forum logos, the logo to be used and it's display height and width.';
$lang['Logo_path'] = 'Logo Storage Path';
$lang['Logo_path_explain'] = 'Path under your phpBB root dir, e.g. images/logo';
$lang['Logo'] = 'Choose a Logo';
$lang['Logo_dimensions'] = 'Logo Dimensions';
$lang['Logo_dimensions_explain'] = '(Height x Width in pixels). Setting these values to 0 means to display the image in its original height and width.';
$lang['Logo_explain'] = 'Here you can set the folder path to your forum logos, the logo to be used and it's display height and width.';
$lang['Logo_path'] = 'Logo Storage Path';
$lang['Logo_path_explain'] = 'Path under your phpBB root dir, e.g. images/logo';
$lang['Logo'] = 'Choose a Logo';
$lang['Logo_dimensions'] = 'Logo Dimensions';
$lang['Logo_dimensions_explain'] = '(Height x Width in pixels). Setting these values to 0 means to display the image in its original height and width.';
Open:
adm/admin_board.php
Search:
Before add:
$dir = @opendir($phpbb_root_path . $new['logo_image_path']);
$count = 0;
while( $file = @readdir($dir) )
{
if( !@is_dir(phpbb_realpath($phpbb_root_path . $new['logo_image_path'] . '/' . $file)) )
{
if( preg_match('/(.gif$|.png$|.jpg|.jpeg)$/is', $file) )
{
$logo[$count] = $file;
$count++;
}
}
}
@closedir($dir);
// Logo ListBox
$logo_list = "";
for( $i = 0; $i < count($logo); $i++ )
{
if ($logo[$i] == $new['logo_image'])
$logo_list .= '<option value="' . $logo[$i] . '" selected="selected">' . $logo[$i] . '</option>';
else
$logo_list .= '<option value="' . $logo[$i] . '">' . $logo[$i] . '</option>';
}
$logo_image = $new['logo_image'];
$logo_width = $new['logo_image_w'];
$logo_height = $new['logo_image_h'];
$count = 0;
while( $file = @readdir($dir) )
{
if( !@is_dir(phpbb_realpath($phpbb_root_path . $new['logo_image_path'] . '/' . $file)) )
{
if( preg_match('/(.gif$|.png$|.jpg|.jpeg)$/is', $file) )
{
$logo[$count] = $file;
$count++;
}
}
}
@closedir($dir);
// Logo ListBox
$logo_list = "";
for( $i = 0; $i < count($logo); $i++ )
{
if ($logo[$i] == $new['logo_image'])
$logo_list .= '<option value="' . $logo[$i] . '" selected="selected">' . $logo[$i] . '</option>';
else
$logo_list .= '<option value="' . $logo[$i] . '">' . $logo[$i] . '</option>';
}
$logo_image = $new['logo_image'];
$logo_width = $new['logo_image_w'];
$logo_height = $new['logo_image_h'];
Search:
After add:
'L_LOGO_SETTINGS' => $lang['Logo_settings'],
'L_LOGO_EXPLAIN' => $lang['Logo_explain'],
'L_LOGO_PATH' => $lang['Logo_path'],
'L_LOGO_PATH_EXPLAIN' => $lang['Logo_path_explain'],
'L_LOGO' => $lang['Logo'],
'L_LOGO_DIMENSIONS' => $lang['Logo_dimensions'],
'L_LOGO_DIMENSIONS_EXPLAIN' => $lang['Logo_dimensions_explain'],
'L_LOGO_EXPLAIN' => $lang['Logo_explain'],
'L_LOGO_PATH' => $lang['Logo_path'],
'L_LOGO_PATH_EXPLAIN' => $lang['Logo_path_explain'],
'L_LOGO' => $lang['Logo'],
'L_LOGO_DIMENSIONS' => $lang['Logo_dimensions'],
'L_LOGO_DIMENSIONS_EXPLAIN' => $lang['Logo_dimensions_explain'],
Search:
After add:
'LOGO_PATH' => $new['logo_image_path'],
'LOGO_IMAGE_DIR' => $phpbb_root_path . $new['logo_image_path'],
'LOGO_LIST' => $logo_list,
'LOGO_IMAGE' => ($logo_image) ? $phpbb_root_path . $board_config['logo_image_path'] .'/' . $logo_image : '',
'LOGO_WIDTH' => $new['logo_image_w'],
'LOGO_HEIGHT' => $new['logo_image_h'],
'LOGO_IMAGE_DIR' => $phpbb_root_path . $new['logo_image_path'],
'LOGO_LIST' => $logo_list,
'LOGO_IMAGE' => ($logo_image) ? $phpbb_root_path . $board_config['logo_image_path'] .'/' . $logo_image : '',
'LOGO_WIDTH' => $new['logo_image_w'],
'LOGO_HEIGHT' => $new['logo_image_h'],
Open:
includes/page_header.php
Search:
After add:
'LOGO' => ($board_config['logo_image']) ? $phpbb_root_path . $board_config['logo_image_path'] .'/' . $board_config['logo_image'] : '',
'LOGO_WIDTH' => ($board_config['logo_image_w'] == 0) ? "" : 'width="' . $board_config['logo_image_w'] . '" ',
'LOGO_HEIGHT' => ($board_config['logo_image_h'] == 0) ? "" : 'height="' . $board_config['logo_image_h'] . '" ',
'LOGO_WIDTH' => ($board_config['logo_image_w'] == 0) ? "" : 'width="' . $board_config['logo_image_w'] . '" ',
'LOGO_HEIGHT' => ($board_config['logo_image_h'] == 0) ? "" : 'height="' . $board_config['logo_image_h'] . '" ',
Open:
templates/common/ACP/board_config_body.tpl
Search:
After add:
<script language="javascript" type="text/javascript">
<!--
function update_logo(newlogo)
{
document.logo_image.src = "{LOGO_IMAGE_DIR}/" + newlogo;
}
//-->
</script>
<!--
function update_logo(newlogo)
{
document.logo_image.src = "{LOGO_IMAGE_DIR}/" + newlogo;
}
//-->
</script>
Search:
<tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>
After Add:
<tr>
<th class="thHead" colspan="2">{L_LOGO_SETTINGS}</th>
</tr>
<tr>
<td class="row2" colspan="2"><span class="gensmall">{L_LOGO_EXPLAIN}</span></td>
</tr>
<tr>
<td class="row1">{L_LOGO_PATH}<br /><span class="gensmall">{L_LOGO_PATH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="20" maxlength="255" name="logo_image_path" value="{LOGO_PATH}" /></td>
</tr>
<tr>
<td class="row1">{L_LOGO_DIMENSIONS}<br /><span class="gensmall">{L_LOGO_DIMENSIONS_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="logo_image_h" value="{LOGO_HEIGHT}" /> x <input class="post" type="text" size="3" maxlength="4" name="logo_image_w" value="{LOGO_WIDTH}"></td>
</tr>
<tr>
<td class="row1">{L_LOGO}</td>
<td class="row2"><select name="logo_image" onchange="update_logo(this.options[selectedIndex].value);">{LOGO_LIST}</select> <img name="logo_image" src="{LOGO_IMAGE}" border="0" width="{LOGO_WIDTH}" height="{LOGO_HEIGHT}"/> </td>
</tr>
<th class="thHead" colspan="2">{L_LOGO_SETTINGS}</th>
</tr>
<tr>
<td class="row2" colspan="2"><span class="gensmall">{L_LOGO_EXPLAIN}</span></td>
</tr>
<tr>
<td class="row1">{L_LOGO_PATH}<br /><span class="gensmall">{L_LOGO_PATH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="20" maxlength="255" name="logo_image_path" value="{LOGO_PATH}" /></td>
</tr>
<tr>
<td class="row1">{L_LOGO_DIMENSIONS}<br /><span class="gensmall">{L_LOGO_DIMENSIONS_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="logo_image_h" value="{LOGO_HEIGHT}" /> x <input class="post" type="text" size="3" maxlength="4" name="logo_image_w" value="{LOGO_WIDTH}"></td>
</tr>
<tr>
<td class="row1">{L_LOGO}</td>
<td class="row2"><select name="logo_image" onchange="update_logo(this.options[selectedIndex].value);">{LOGO_LIST}</select> <img name="logo_image" src="{LOGO_IMAGE}" border="0" width="{LOGO_WIDTH}" height="{LOGO_HEIGHT}"/> </td>
</tr>
Open:
templates/mg_themes/overall_header.tpl
Search:
<td><a href="{U_INDEX}"><img src="{FULL_SITE_PATH}{SITELOGO}" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
In-Line Search:
Replace With:
And now, I attached the images folder.