|
Page 1 of 1
|
Inactive User
|
 Tpl - Php Programming Help Wanted
I need to add a php var / string to statistics.tpl to include some markup to allow me to add different footers to Vista Crystal Styles without having to create a new theme-group just for the sake of three entries.
Existing Code:
<!-- BEGIN main_bottom -->
<div class="copyright" style="text-align:center;">{VERSION_INFO} ♦ {INSTALL_INFO} ♦ {VIEWED_INFO}</div>
<!-- END main_bottom -->
What I need to do:
<!-- BEGIN main_bottom -->
<div class="copyright" style="text-align:center;">{VERSION_INFO} ♦ {INSTALL_INFO} ♦ {VIEWED_INFO}</div>
<!-- END main_bottom -->
#Start Conditions here#
</td>
</tr>
</table>
#End conditions here#
The:
Has to be conditional on the fact that "if exists ../templates/vista/images/coppertone/" for it to be parsed. ?
And also be flexible to add other themes etc?
Else I'll have to make another theme group.
Can this be done? If so - How??
|
#1 Sun 04 May, 2008 12:12 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: Tpl - Php Programming Help Wanted
It is easy. Just paste in a spoiler vista.cfg file and I'll show you how.
Greets!
____________ Gabriel Anca
|
#2 Sun 04 May, 2008 23:02 |
|
Inactive User
|
 Re: Tpl - Php Programming Help Wanted
Thanks Kas,
The conditions are very important that the path exists, else it will break the tables of other crystal themes.
The themes affected are: army, cool, coppertone, pink and inferno.
<?php
define(TEMPLATE_CONFIG, true);
global $phpEx, $lang, $board_config, $userdata, $phpbb_root_path, $color, $head_foot_ext, $lofi_bots_parsing;
// Valid Colors - BEGIN
$colors = array(
'crystal_blue',
'crystal_p_blue',
'crystal_p_black',
'crystal_split',
'crystal_teal',
'crystal_cool',
'crystal_inferno',
'crystal_coppertone',
'crystal_army',
'crystal_pink',
);
// Valid Colors - END
// Table Headers Colors - BEGIN
$squared_colors = array(
'crystal_blue',
'crystal_p_blue',
'crystal_p_black',
'crystal_split',
'crystal_teal',
'crystal_cool',
'crystal_inferno',
'crystal_coppertone',
'crystal_army',
'crystal_pink',
);
// Table Headers Colors - END
// TPL (overall_header and overall_footer suffix) Colors - BEGIN
$tpl_colors_extension = array(
'crystal_blue' => '_crystal_blue',
'crystal_p_blue' => '_crystal_p_blue',
'crystal_p_black' => '_crystal_p_black',
'crystal_split' => '_crystal_split',
'crystal_teal' => '_crystal_teal',
'crystal_cool' => '_crystal_cool',
'crystal_inferno' => '_crystal_inferno',
'crystal_coppertone' => '_crystal_coppertone',
'crystal_army' => '_crystal_army',
'crystal_pink' => '_crystal_pink',
);
// TPL (overall_header and overall_footer suffix) Colors - END
$color = $row['body_background'];
$css_color = $color;
if((strlen($phpbb_root_path) > 0) && (substr($template_dir, 0, strlen($phpbb_root_path)) !== $phpbb_root_path))
{
$template_dir = $phpbb_root_path . $template_dir;
}
$full_server_url = create_server_url();
$common_images = 'templates/common/images/';
$current_template_images_root = $current_template_path . '/images/';
$current_template_images = $current_template_path . '/images/' . $color . '/';
$template_dir = $current_template_path;
$imageset_dir = $template_dir . '/images/' . $color . '/';
$current_lang = 'lang_' . $board_config['default_lang'] . '/';
$tpl_lang = $board_config['default_lang'];
$head_foot_ext = '';
$img_fade = '" class="imgfade" onmouseover="slowhigh(this)" onmouseout="slowlow(this)';
$img_fade_nm = '" class="imgfade_nm" onmouseover="slowhigh(this)" onmouseout="slowlow(this)';
$extra_padding = '';
if (!file_exists($current_template_images . $current_lang))
{
$current_lang = 'lang_english/';
$tpl_lang = 'english';
}
if ( array_key_exists($color, $tpl_colors_extension) == true )
{
$head_foot_ext = $tpl_colors_extension[$color];
}
// MG Smart Tables - BEGIN
$light_template = false;
if ( ($lofi_bots_parsing == true) || isset($_COOKIE['lofi']) || isset($_GET['lofi']) || isset($_POST['lofi']) )
{
$light_template = ($lofi_bots_parsing == true) ? true : ( ($_COOKIE['lofi'] == true) ? true : ( ($_GET['lofi'] == true) ? true : ( ($_POST['lofi'] == true) ? true : false ) ) );
//$light_template = true;
}
if ($light_template == true)
{
$images['tbl_h_l'] = '<table class="forumline" width="100%" cellspacing="0" style="margin-bottom:0px;"><tr><td class="row-header">';
$images['tbl_h_c'] = '';
$images['tbl_h_r'] = '</td></tr></table>';
$images['tbl_b_l'] = '';
$images['tbl_b_c'] = '';
$images['tbl_b_r'] = '';
$images['tbl_v_t'] = '';
$images['tbl_v_ls'] = '';
$images['tbl_v_rs'] = '';
$images['tbl_v_b'] = '';
$images['tbl_f_l'] = '';
$images['tbl_f_c'] = '';
$images['tbl_f_r'] = '';
$images['tbl_h_l_house'] = $images['tbl_h_l'];
$images['tbl_h_l_alt'] = $images['tbl_h_l'];
$images['tbl_h_r_alt'] = $images['tbl_h_r'];
$imageset_dir = $template_dir . '/lofi' . '/images' . '/lofi_';
}
else
{
if(in_array($color, $squared_colors))
{
$images['tbl_h_l'] = '<div style="padding:2px;"></div><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td align="right" valign="bottom" width="11px"> <img src="' . $current_template_images . 'tbl_h_l.png" width="11px" alt="" /></td>';
$images['tbl_h_c'] = '<td class="tbl_h_c" width="100%" align="center">';
$images['tbl_h_r'] = '</td><td width="11px" align="left" valign="bottom"><img src="' . $current_template_images . 'tbl_h_r.png" width="11px" alt="" /></td></tr><tr><td class="tbl_l_s" width="11px"></td><td>';
$images['tbl_b_l'] = '';
$images['tbl_b_c'] = '';
$images['tbl_b_r'] = '';
$images['tbl_v_t'] = '<td align="right" width="11px"><img src="' . $current_template_images . 'tbl_top_l.png" width="11px" alt="" /></td><td class="tbl_top_c" width="100%"></td><td width="11px" align="left"><img src="' . $current_template_images . 'tbl_top_r.png" width="11px" alt="" /></td>';
$images['tbl_v_ls'] = '<td class="tbl_l_s" width="11"></td>';
$images['tbl_v_rs'] = '<td class="tbl_r_s" width="11"></td>';
$images['tbl_v_b'] = '<td width="11px"><img src="' . $current_template_images . 'tbl_f_l.png" width="11px" height="10px alt="" /></td><td class="tbl_f_c"></td><td width="11px"> <img src="' . $current_template_images . 'tbl_f_r.png" width="11px" height="11px" alt="" /> </td>';
$images['tbl_f_l'] = '</td><td class="tbl_r_s" width="11"></td></tr><tr><td width="11"><img src="' . $current_template_images . 'tbl_f_l.png" width="11" height="10" alt="" /></td>';
$images['tbl_f_c'] = '<td class="tbl_f_c"></td>';
$images['tbl_f_r'] = '<td width="11"><img src="' . $current_template_images . 'tbl_f_r.png" width="11" height="10" alt="" /></td></tr></table>';
$images['tbl_h_l_house'] = $images['tbl_h_l'];
$images['tbl_h_l_alt'] = $images['tbl_h_l'];
$images['tbl_h_r_alt'] = $images['tbl_h_r'];
$images['tbl_h_l_small_b'] = $images['tbl_h_l'];
$images['tbl_h_r_small_b'] = $images['tbl_h_r'];
$images['tbl_h_l_small_y'] = $images['tbl_h_l'];
$images['tbl_h_r_small_y'] = $images['tbl_h_r'];
}
}
// MG Smart Tables - END
if( ($color == 'crystal_blue') || ($color == 'crystal_split') || ($color == 'crystal_teal') || ($color == 'crystal_cool') || ($color == 'crystal_inferno') || ($color == 'crystal_coppertone') || ($color == 'crystal_army')|| ($color == 'crystal_pink') )
{
$buttons_extension = 'gif';
$extra_padding = '" style="margin-top:2px;';
}
else
{
$buttons_extension = 'png';
}
if( ($color == 'crystal_p_blue') || ($color == 'crystal_p_black') )
{
$buttons_extension = 'png';
$extra_padding = '" style="margin-top:2px;';
}
else
{
$buttons_extension = 'gif';
}
$images['sitelogo'] = $current_template_images . 'sitelogo_small.png';
$images['spacer'] = $current_template_images_root . 'spacer.gif';
$images['menu_sep'] = $current_template_images . 'menu_sep.png';
$images['arrow_up'] = $current_template_images . 'arrow_up.gif';
$images['arrow_right'] = $current_template_images . 'arrow_right.gif';
$images['arrow_down'] = $current_template_images . 'arrow_down.gif';
$images['arrow_left'] = $current_template_images . 'arrow_left.gif';
$images['arrows_alt_up'] = $current_template_images . 'arrow_up_alt.gif';
$images['arrows_alt_right'] = $current_template_images . 'arrow_right_alt.gif';
$images['arrows_alt_down'] = $current_template_images . 'arrow_down_alt.gif';
$images['arrows_alt_left'] = $current_template_images . 'arrow_left_alt.gif';
$images['arrows_rounded_up'] = $current_template_images . 'arrow_up_rounded.' . $buttons_extension;
$images['arrows_rounded_right'] = $current_template_images . 'arrow_right_rounded.' . $buttons_extension;
$images['arrows_rounded_down'] = $current_template_images . 'arrow_down_rounded.' . $buttons_extension;
$images['arrows_rounded_left'] = $current_template_images . 'arrow_left_rounded.' . $buttons_extension;
$images['up_arrow2'] = $current_template_images . 'icon_up_arrow.gif';
$images['down_arrow2'] = $current_template_images . 'icon_down_arrow.gif';
$images['up_arrow'] = $current_template_images_root . 'spacer.gif';
//$images['down_arrow'] = $current_template_images . 'calendar3.gif';
$images['down_arrow'] = $current_template_images . $current_lang . 'calendar3.gif';
// Forum icons
$images['forum_nor_read'] = $current_template_images . 'forum_nor_read.' . $buttons_extension;
$images['forum_nor_unread'] = $current_template_images . 'forum_nor_unread.' . $buttons_extension;
$images['forum_nor_locked_read'] = $current_template_images . 'forum_nor_locked_read.' . $buttons_extension;
$images['forum_nor_locked_unread'] = $current_template_images . 'forum_nor_locked_read.' . $buttons_extension;
$images['forum_sub_read'] = $current_template_images . 'forum_sub_read.' . $buttons_extension;
$images['forum_sub_unread'] = $current_template_images . 'forum_sub_unread.' . $buttons_extension;
$images['forum_sub_locked_read'] = $current_template_images . 'forum_nor_locked_read.' . $buttons_extension;
$images['forum_sub_locked_unread'] = $current_template_images . 'forum_nor_locked_read.' . $buttons_extension;
$images['forum_link'] = $current_template_images . 'forum_link.' . $buttons_extension;
$images['forum_nor_ar'] = $current_template_images . 'forum_nor_ar_read.' . $buttons_extension;
$images['forum_sub_ar'] = $current_template_images . 'forum_sub_ar_read.' . $buttons_extension;
// PM folders
$images['pm_inbox'] = $current_template_images . 'pm_inbox.' . $buttons_extension;
$images['pm_outbox'] = $current_template_images . 'pm_outbox.' . $buttons_extension;
$images['pm_savebox'] = $current_template_images . 'pm_savebox.' . $buttons_extension;
$images['pm_sentbox'] = $current_template_images . 'pm_sentbox.' . $buttons_extension;
// Topic icons
$images['topic_nor_read'] = $current_template_images . 'topic_nor_read.' . $buttons_extension;
$images['topic_nor_read_own'] = $current_template_images . 'topic_nor_read_own.' . $buttons_extension;
$images['topic_nor_unread'] = $current_template_images . 'topic_nor_unread.' . $buttons_extension;
$images['topic_nor_unread_own'] = $current_template_images . 'topic_nor_unread_own.' . $buttons_extension;
$images['topic_nor_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_nor_locked_read_own'] = $current_template_images . 'topic_nor_locked_read_own.' . $buttons_extension;
$images['topic_nor_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_nor_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread_own.' . $buttons_extension;
$images['topic_hot_read'] = $current_template_images . 'topic_hot_read.' . $buttons_extension;
$images['topic_hot_read_own'] = $current_template_images . 'topic_hot_read_own.' . $buttons_extension;
$images['topic_hot_unread'] = $current_template_images . 'topic_hot_unread.' . $buttons_extension;
$images['topic_hot_unread_own'] = $current_template_images . 'topic_hot_unread_own.' . $buttons_extension;
$images['topic_hot_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_hot_locked_read_own'] = $current_template_images . 'topic_nor_locked_read_own.' . $buttons_extension;
$images['topic_hot_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_hot_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread_own.' . $buttons_extension;
$images['topic_glo_read'] = $current_template_images . 'topic_glo_read.' . $buttons_extension;
$images['topic_glo_read_own'] = $current_template_images . 'topic_glo_read_own.' . $buttons_extension;
$images['topic_glo_unread'] = $current_template_images . 'topic_glo_unread.' . $buttons_extension;
$images['topic_glo_unread_own'] = $current_template_images . 'topic_glo_unread_own.' . $buttons_extension;
$images['topic_glo_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_glo_locked_read_own'] = $current_template_images . 'topic_nor_locked_read_own.' . $buttons_extension;
$images['topic_glo_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_glo_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread_own.' . $buttons_extension;
$images['topic_ann_read'] = $current_template_images . 'topic_ann_read.' . $buttons_extension;
$images['topic_ann_read_own'] = $current_template_images . 'topic_ann_read_own.' . $buttons_extension;
$images['topic_ann_unread'] = $current_template_images . 'topic_ann_unread.' . $buttons_extension;
$images['topic_ann_unread_own'] = $current_template_images . 'topic_ann_unread_own.' . $buttons_extension;
$images['topic_ann_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_ann_locked_read_own'] = $current_template_images . 'topic_nor_locked_read_own.' . $buttons_extension;
$images['topic_ann_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_ann_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread_own.' . $buttons_extension;
$images['topic_imp_read'] = $current_template_images . 'topic_imp_read.' . $buttons_extension;
$images['topic_imp_read_own'] = $current_template_images . 'topic_imp_read_own.' . $buttons_extension;
$images['topic_imp_unread'] = $current_template_images . 'topic_imp_unread.' . $buttons_extension;
$images['topic_imp_unread_own'] = $current_template_images . 'topic_imp_unread_own.' . $buttons_extension;
$images['topic_imp_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_imp_locked_read_own'] = $current_template_images . 'topic_nor_locked_read_own.' . $buttons_extension;
$images['topic_imp_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_imp_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread_own.' . $buttons_extension;
$images['topic_ar_read'] = $current_template_images . 'topic_ar_read.' . $buttons_extension;
$images['topic_ar_read_own'] = $current_template_images . 'topic_ar_read.' . $buttons_extension;
$images['topic_ar_unread'] = $current_template_images . 'topic_ar_unread.' . $buttons_extension;
$images['topic_ar_unread_own'] = $current_template_images . 'topic_ar_unread.' . $buttons_extension;
$images['topic_ar_locked_read'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_ar_locked_read_own'] = $current_template_images . 'topic_nor_locked_read.' . $buttons_extension;
$images['topic_ar_locked_unread'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
$images['topic_ar_locked_unread_own'] = $current_template_images . 'topic_nor_locked_unread.' . $buttons_extension;
// Large buttons
$images['post_new'] = $current_template_images . $current_lang . 'new_topic.' . $buttons_extension;
$images['post_locked'] = $current_template_images . $current_lang . 'locked.' . $buttons_extension;
$images['reply_new'] = $current_template_images . $current_lang . 'post_reply.' . $buttons_extension;
$images['reply_locked'] = $current_template_images . $current_lang . 'locked.' . $buttons_extension;
$images['quick_reply'] = $current_template_images . $current_lang . 'quick_reply.' . $buttons_extension;
$images['thanks'] = $current_template_images . $current_lang . 'thanks.' . $buttons_extension;
$images['pm_replymsg'] = $current_template_images . $current_lang . 'post_reply.' . $buttons_extension;
$images['pm_postmsg'] = $current_template_images . $current_lang . 'new_post.' . $buttons_extension;
// Topic icons
$images['topic_watch'] = $current_template_images_root . 'topic_watch_on.png';
$images['topic_un_watch'] = $current_template_images_root . 'topic_watch_off.png';
$images['topic_ar_switch_on'] = $current_template_images_root . 'accept.png';
$images['topic_ar_switch_off'] = $current_template_images_root . 'delete.png';
$images['topic_kb_on'] = $current_template_images_root . 'topic_kb_on.png';
$images['topic_kb_off'] = $current_template_images_root . 'topic_kb_off.png';
$images['topic_mod_lock'] = $current_template_images . $current_lang . 'topic_lock.' . $buttons_extension . $extra_padding;
$images['topic_mod_unlock'] = $current_template_images . $current_lang . 'topic_unlock.' . $buttons_extension . $extra_padding;
$images['topic_mod_split'] = $current_template_images . $current_lang . 'topic_split.' . $buttons_extension . $extra_padding;
$images['topic_mod_move'] = $current_template_images . $current_lang . 'topic_move.' . $buttons_extension . $extra_padding;
$images['topic_mod_delete'] = $current_template_images . $current_lang . 'topic_delete.' . $buttons_extension . $extra_padding;
$images['topic_mod_merge'] = $current_template_images . $current_lang . 'topic_merge.' . $buttons_extension . $extra_padding;
$images['topic_mod_bin'] = $current_template_images . $current_lang . 'topic_bin.' . $buttons_extension . $extra_padding;
// Normal-Sticky-Announce-Global
$images['normal_post'] = $current_template_images . $current_lang . 'normal.' . $buttons_extension;
$images['sticky_post'] = $current_template_images . $current_lang . 'sticky.' . $buttons_extension;
$images['announce_post'] = $current_template_images . $current_lang . 'announce.' . $buttons_extension;
$images['gannounce_post'] = $current_template_images . $current_lang . 'global.' . $buttons_extension;
// Small icons
$images['forum_tiny'] = $current_template_images . 'icon_post.gif';
$images['icon_minipost'] = $current_template_images . 'icon_post.gif';
$images['icon_gotopost'] = $current_template_images . 'icon_post.gif';
$images['forum_new_tiny'] = $current_template_images . 'icon_post_new.gif';
$images['icon_minipost_new'] = $current_template_images . 'icon_post_new.gif';
$images['forum_locked_tiny'] = $current_template_images . 'icon_minipost_lock.gif';
$images['icon_latest_reply'] = $current_template_images . 'icon_reply.gif';
$images['icon_newest_reply'] = $current_template_images . 'icon_reply_new.gif';
$images['icon_minicat'] = $current_template_images . 'icon_minicat.gif';
$images['icon_minicat_new'] = $current_template_images . 'icon_minicat_new.gif';
$images['icon_minicat_locked'] = $current_template_images . 'icon_minicat_lock.gif';
$images['icon_post_prev'] = $current_template_images . 'post_prev.gif';
$images['icon_post_next'] = $current_template_images . 'post_next.gif';
$images['icon_minilink'] = $current_template_images . 'icon_minilink.gif';
//$images['topic_locked_tiny'] = $current_template_images . 'icon_minipost_lock.gif';
$images['icon_minipost_lock'] = $current_template_images . 'icon_minipost_lock.gif';
$images['category_block'] = $current_template_images . 'cat_block.gif';
// BEGIN Unread Post Information to Database Mod
$images['mark_img'] = $current_template_images . $current_lang . 'upi2db_mark.' . $buttons_extension;
$images['unmark_img'] = $current_template_images . $current_lang . 'upi2db_unmark.' . $buttons_extension;
$images['unread_img'] = $current_template_images . $current_lang . 'upi2db_unread.' . $buttons_extension;
$images['mini_upi2db_p'] = $current_template_images . 'icon_mini_upi2db_p.' . $buttons_extension;
$images['mini_upi2db_u'] = $current_template_images . 'icon_mini_upi2db_u.' . $buttons_extension;
$images['mini_upi2db_m'] = $current_template_images . 'icon_mini_upi2db_m.' . $buttons_extension;
$images['backgrount_vt'] = $current_template_images_root . 'background_upi2db.gif';
// END Unread Post Information to Database Mod
// Icons
$images['icon_quote'] = $current_template_images . $current_lang . 'icon_quote.' . $buttons_extension . $extra_padding;
$images['icon_quick_quote'] = $current_template_images . $current_lang . 'icon_quick_quote.' . $buttons_extension . $extra_padding;
$images['icon_offtopic'] = $current_template_images . $current_lang . 'icon_offtopic.' . $buttons_extension . $extra_padding;
$images['icon_edit'] = $current_template_images . $current_lang . 'icon_edit.' . $buttons_extension . $extra_padding;
$images['icon_search'] = $current_template_images . $current_lang . 'icon_search.' . $buttons_extension . $extra_padding;
$images['icon_profile'] = $current_template_images . $current_lang . 'icon_profile.' . $buttons_extension . $extra_padding;
$images['icon_pm'] = $current_template_images . $current_lang . 'icon_pm.' . $buttons_extension . $extra_padding;
$images['icon_email'] = $current_template_images . $current_lang . 'icon_email.' . $buttons_extension . $extra_padding;
$images['icon_delpost'] = $current_template_images . $current_lang . 'icon_delete.' . $buttons_extension . $extra_padding;
$images['icon_ip'] = $current_template_images . $current_lang . 'icon_ip.' . $buttons_extension . $extra_padding;
$images['icon_www'] = $current_template_images . $current_lang . 'icon_***.' . $buttons_extension . $extra_padding;
$images['icon_icq'] = $current_template_images . $current_lang . 'icon_icq.' . $buttons_extension . $extra_padding;
$images['icon_aim'] = $current_template_images . $current_lang . 'icon_aim.' . $buttons_extension . $extra_padding;
$images['icon_yim'] = $current_template_images . $current_lang . 'icon_yim.' . $buttons_extension . $extra_padding;
$images['icon_skype'] = $current_template_images . $current_lang . 'icon_skype.' . $buttons_extension . $extra_padding;
$images['icon_msnm'] = $current_template_images . $current_lang . 'icon_msn.' . $buttons_extension . $extra_padding;
$images['icon_view'] = $current_template_images . $current_lang . 'icon_view.' . $buttons_extension . $extra_padding;
$images['icon_download'] = $current_template_images . $current_lang . 'icon_download.' . $buttons_extension . $extra_padding;
$images['icon_online'] = $current_template_images . $current_lang . 'icon_online.gif' . $extra_padding;
$images['icon_offline'] = $current_template_images . $current_lang . 'icon_offline.gif' . $extra_padding;
$images['icon_hidden'] = $current_template_images . $current_lang . 'icon_hidden.gif' . $extra_padding;
$images['pm_quotemsg'] = $current_template_images . $current_lang . 'icon_quote.' . $buttons_extension;
$images['pm_editmsg'] = $current_template_images . $current_lang . 'icon_edit.' . $buttons_extension;
// Squared icons
$images['icon_ip2'] = $current_template_images . 'icon_ip2.' . $buttons_extension;
$images['icon_icq2'] = $current_template_images . 'icon_icq2.' . $buttons_extension;
$images['icon_aim2'] = $current_template_images . 'icon_aim2.' . $buttons_extension;
$images['icon_yim2'] = $current_template_images . 'icon_yim2.' . $buttons_extension;
$images['icon_skype2'] = $current_template_images . 'icon_skype2.' . $buttons_extension;
$images['icon_msnm2'] = $current_template_images . 'icon_msn2.' . $buttons_extension;
$images['icon_view2'] = $current_template_images . 'icon_view2.' . $buttons_extension;
$images['icon_download2'] = $current_template_images . 'icon_download2.' . $buttons_extension;
$images['icon_online2'] = $current_template_images . 'icon_online2.' . $buttons_extension;
$images['icon_offline2'] = $current_template_images . 'icon_offline2.' . $buttons_extension;
$images['icon_hidden2'] = $current_template_images . 'icon_hidden2.' . $buttons_extension;
// PM images
$images['scroll_pm'] = $current_template_images . 'pm_read.gif';
$images['pm_readmsg'] = $current_template_images . 'pm_read.gif';
$images['pm_unreadmsg'] = $current_template_images . 'pm_unread.gif';
$images['pm_reply'] = $current_template_images . 'pm_replied.gif';
$images['pm_new_msg'] = 'PM-new';
$images['pm_no_new_msg'] = 'PM';
// Polls
$images['voting_graphic'][0] = $current_template_images . 'voting_bar.gif';
$images['voting_graphic_body'] = $current_template_images . 'voting_bar.gif';
$images['voting_graphic_left'] = $current_template_images . 'vote_lcap.gif';
$images['voting_graphic_right'] = $current_template_images . 'vote_rcap.gif';
$images['voting_graphic_blue'][0] = $current_template_images . 'voting_bar_blue.gif';
$images['voting_graphic_blue_body'] = $current_template_images . 'voting_bar_blue.gif';
$images['voting_graphic_blue_left'] = $current_template_images . 'vote_lcap_blue.gif';
$images['voting_graphic_blue_right'] = $current_template_images . 'vote_rcap_blue.gif';
$images['voting_graphic_green'][0] = $current_template_images . 'voting_bar_green.gif';
$images['voting_graphic_green_body'] = $current_template_images . 'voting_bar_green.gif';
$images['voting_graphic_green_left'] = $current_template_images . 'vote_lcap_green.gif';
$images['voting_graphic_green_right'] = $current_template_images . 'vote_rcap_green.gif';
$images['voting_graphic_red'][0] = $current_template_images . 'voting_bar_red.gif';
$images['voting_graphic_red_body'] = $current_template_images . 'voting_bar_red.gif';
$images['voting_graphic_red_left'] = $current_template_images . 'vote_lcap_red.gif';
$images['voting_graphic_red_right'] = $current_template_images . 'vote_rcap_red.gif';
$board_config['vote_graphic_length'] = 205;
$board_config['privmsg_graphic_length'] = 175;
// ACP Images - BEGIN
if (defined('IN_ADMIN'))
{
$images['acp_category'] = $common_images . 'folders.gif';
$images['acp_category_locked'] = $common_images . 'folder_locked.gif';
$images['acp_forum'] = $common_images . 'folder.gif';
$images['acp_forum_locked'] = $common_images . 'folder_locked.gif';
$images['acp_link'] = $common_images . 'folder_link.gif';
$images['acp_icon_minicat'] = $common_images . 'icon_minicat.gif';
$images['acp_icon_minicat_locked'] = $common_images . 'icon_minicat_lock.gif';
$images['acp_icon_minipost'] = $common_images . 'icon_post.gif';
$images['acp_icon_minipost_lock'] = $common_images . 'icon_minipost_lock.gif';
$images['acp_icon_minilink'] = $common_images . 'icon_minilink.gif';
$images['acp_up_arrow2'] = $common_images . 'icon_up_arrow.gif';
$images['acp_down_arrow2'] = $common_images . 'icon_down_arrow.gif';
$images['acp_spacer'] = $common_images . 'spacer.gif';
}
// ACP Images - END
// Nav menu and others
$images['maximise'] = $current_template_images . 'maximise.gif';
$images['minimise'] = $current_template_images . 'minimise.gif';
$images['nav_menu_sep'] = $current_template_images . 'menu_sep.png';
$images['stats_image'] = $current_template_images . 'stats.png';
$images['whosonline'] = $current_template_images_root . 'spacer.gif';
$images['icon_unmark_read'] = $current_template_images_root . 'spacer.gif';
$images['birthday_image'] = $current_template_images . 'birthday.png';
$images['nav_menu_application'] = $current_template_images . 'application_view_tile.png';
$images['nav_menu_newspaper'] = $current_template_images_root . 'newspaper.png';
$images['nav_menu_information'] = $current_template_images_root . 'information.png';
$images['nav_menu_group'] = $current_template_images_root . 'group.png';
$images['nav_menu_palette'] = $current_template_images_root . 'palette.png';
$images['nav_menu_world'] = $current_template_images_root . 'world.png';
$images['nav_menu_random_quote'] = $current_template_images_root . 'random_quote.png';
$images['nav_menu_sponsor'] = $current_template_images_root . 'asterisk_orange.png';
$images['nav_menu_feed'] = $current_template_images_root . 'feed.png';
$images['nav_menu_rss_feed'] = $current_template_images_root . 'rss.gif';
$images['nav_menu_games'] = $current_template_images_root . 'games.png';
$images['nav_menu_games_alt'] = $current_template_images_root . 'games_alt.png';
$images['nav_menu_pm'] = $current_template_images_root . 'PM.png';
$images['nav_menu_star'] = $current_template_images_root . 'star.png';
$images['nav_menu_users'] = $current_template_images_root . 'users.png';
$images['nav_menu_wsettings'] = $current_template_images_root . 'web_settings.png';
$images['vf_topic_ann'] = $current_template_images_root . 'topic_ann.png';
$images['vf_topic_cal'] = $current_template_images_root . 'topic_cal.png';
$images['vf_topic_ga'] = $current_template_images_root . 'topic_ga.png';
$images['vf_topic_imp'] = $current_template_images_root . 'topic_imp.png';
$images['vf_topic_news'] = $current_template_images_root . 'topic_news.png';
$images['vf_topic_nor'] = $current_template_images_root . 'topic_nor.png';
$images['vf_topic_poll'] = $current_template_images_root . 'topic_poll.png';
$images['icon_minigender_male'] = $current_template_images_root . 'male.png';
$images['icon_minigender_female'] = $current_template_images_root . 'female.png';
// Yellow card
$images['icon_b_card'] = $current_template_images . 'icon_bcard.gif';
$images['icon_g_card'] = $current_template_images . 'icon_gcard.gif';
$images['icon_y_card'] = $current_template_images . 'icon_ycard.gif';
$images['icon_r_card'] = $current_template_images . 'icon_rcard.gif';
$images['icon_y_cards'] = $current_template_images_root . 'icon_ycards.gif';
$images['icon_r_cards'] = $current_template_images_root . 'icon_rcards.gif';
$images['icon_bhot_card'] = $current_template_images . 'icon_bhotcard.gif';
$images['icon_calendar'] = $current_template_images_root . 'icon_calendar.gif';
$images['icon_tiny_topic'] = $current_template_images_root . 'icon_tiny_topic.gif';
$images['icon_tiny_profile'] = $current_template_images_root . 'icon_tiny_profile.gif';
$images['folder_birthday'] = $current_template_images . 'folder_calendar.gif';
// CMS
$images['news_floppy'] = $current_template_images_root . 'floppy.gif';
$images['news_print'] = $current_template_images_root . 'printer.png';
$images['news_reply'] = $current_template_images_root . 'comment.png';
$images['news_email'] = $current_template_images_root . 'email.png';
$images['news_clock'] = $current_template_images_root . 'clock.png';
$images['icon_previous'] = $current_template_images_root . 'page_white_previous.png';
$images['icon_next'] = $current_template_images_root . 'page_white_go.png';
$images['floppy2'] = $current_template_images_root . 'disk_multiple.png';
$images['printer_topic'] = $current_template_images_root . 'printer_topic.png';
$images['email_topic'] = $current_template_images_root . 'email_topic.png';
$images['bookmark_add'] = $current_template_images_root . 'book_add.png';
$images['bookmark_remove'] = $current_template_images_root . 'book_delete.png';
//$images['block_edit'] = $current_template_images_root . 'block_edit.png';
//$images['block_delete'] = $current_template_images_root . 'block_delete.png';
$images['layout_blocks_edit'] = 'images/cms/b_edit_blocks.png';
$images['layout_preview'] = 'images/cms/b_preview.png';
$images['block_edit'] = 'images/cms/b_edit.png';
$images['block_delete'] = 'images/cms/b_delete.png';
$images['arrows_cms_up'] = 'images/cms/arrow_up.png';
$images['arrows_cms_down'] = 'images/cms/arrow_down.png';
$images['icon_approve'] = $current_template_images . $current_lang . 'icon_approve.' . $buttons_extension;
$images['icon_unapprove'] = $current_template_images . $current_lang . 'icon_unapprove.' . $buttons_extension;
$images['icon_censor'] = $current_template_images . $current_lang . 'icon_censor.' . $buttons_extension;
$images['kb_title'] = $current_template_images . $current_lang . 'kb.gif';
// PA File DB
$images['pa_search'] = $current_template_images . $current_lang . 'icon_pa_search.' . $buttons_extension;
$images['pa_stats'] = $current_template_images . $current_lang . 'icon_pa_stats.' . $buttons_extension;
$images['pa_toplist'] = $current_template_images . $current_lang . 'icon_pa_toplist.' . $buttons_extension;
$images['pa_upload'] = $current_template_images . $current_lang . 'icon_pa_upload.' . $buttons_extension;
$images['pa_viewall'] = $current_template_images . $current_lang . 'icon_pa_viewall.' . $buttons_extension;
$images['pa_download'] = $current_template_images . $current_lang . 'icon_pa_download.' . $buttons_extension;
$images['pa_rate'] = $current_template_images . $current_lang . 'icon_pa_rate.' . $buttons_extension;
$images['pa_email'] = $current_template_images . $current_lang . 'icon_pa_email.' . $buttons_extension;
$images['pa_comment_post'] = $current_template_images . $current_lang . 'icon_pa_post_comment.' . $buttons_extension;
$images['pa_file_new'] = $current_template_images_root . 'icon_pa_new.' . $buttons_extension;
// Mighty Gorgon - Full Album Pack - BEGIN
//$images['icon_left_arrow3'] = $current_template_images . 'icon_left_arrow3.gif';
//$images['icon_right_arrow3'] = $current_template_images . 'icon_right_arrow3.gif';
$images['icon_left_arrow3'] = $current_template_images . 'arrow_left_rounded.' . $buttons_extension;
$images['icon_right_arrow3'] = $current_template_images . 'arrow_right_rounded.' . $buttons_extension;
$images['no_thumbnail'] = $current_template_images . 'nothumbnail.jpg';
//$images['no_thumbnail'] = $current_template_images . 'nothumbnail.gif';
//$images['spacer'] = $current_template_images_root . 'spacer.gif';
$images['mini_new_pictures'] = $current_template_images . 'icon_minipost_new.gif';
$images['cat_pictures_new'] = $current_template_images . 'folders_new.' . $buttons_extension;
$images['cat_pictures'] = $current_template_images . 'folders.' . $buttons_extension;
$images['mini_all_pic_view_mode'] = $current_template_images . 'icon_mini_showall.gif';
$images['icon_album'] = $current_template_images . $current_lang . 'icon_album.' . $buttons_extension . $extra_padding;
$images['manage_pic'] = $current_template_images . $current_lang . 'manage_pic.' . $buttons_extension;
$images['upload_pic'] = $current_template_images . $current_lang . 'upload_pic.' . $buttons_extension;
$images['jupload_pic']= $current_template_images . $current_lang . 'jupload_pic.' . $buttons_extension;
$images['download_pic'] = $current_template_images . $current_lang . 'download.' . $buttons_extension;
$images['download_all_pic'] = $current_template_images . $current_lang . 'download.' . $buttons_extension;
$images['all_pic_view_mode'] = $current_template_images . $current_lang . 'simple_view.' . $buttons_extension;
$images['normal_pic_view_mode'] = $current_template_images . $current_lang . 'normal_view.' . $buttons_extension;
$images['show_all_pics'] = $current_template_images . $current_lang . 'show_all_pics.' . $buttons_extension;
$images['show_all_ratings'] = $current_template_images . $current_lang . 'show_all_ratings.' . $buttons_extension;
$images['show_all_comments'] = $current_template_images . $current_lang . 'show_all_comments.' . $buttons_extension;
$images['orange_dot'] = $current_template_images . 'orange_dot.png';
$images['blue_dot'] = $current_template_images . 'blue_dot.png';
$images['green_dot'] = $current_template_images . 'green_dot.png';
$images['yellow_dot'] = $current_template_images . 'yellow_dot.png';
// Mighty Gorgon - Full Album Pack - END
// Sudoku
$images['sudoku_x'] = $common_images . 'sudoku/sudoku_blank.gif';
$images['sudoku_1'] = $common_images . 'sudoku/1_given.gif';
$images['sudoku_2'] = $common_images . 'sudoku/2_given.gif';
$images['sudoku_3'] = $common_images . 'sudoku/3_given.gif';
$images['sudoku_4'] = $common_images . 'sudoku/4_given.gif';
$images['sudoku_5'] = $common_images . 'sudoku/5_given.gif';
$images['sudoku_6'] = $common_images . 'sudoku/6_given.gif';
$images['sudoku_7'] = $common_images . 'sudoku/7_given.gif';
$images['sudoku_8'] = $common_images . 'sudoku/8_given.gif';
$images['sudoku_9'] = $common_images . 'sudoku/9_given.gif';
$images['sudoku_11'] = $common_images . 'sudoku/11_given.gif';
$images['sudoku_12'] = $common_images . 'sudoku/12_given.gif';
$images['sudoku_13'] = $common_images . 'sudoku/13_given.gif';
$images['sudoku_14'] = $common_images . 'sudoku/14_given.gif';
$images['sudoku_15'] = $common_images . 'sudoku/15_given.gif';
$images['sudoku_16'] = $common_images . 'sudoku/16_given.gif';
$images['sudoku_17'] = $common_images . 'sudoku/17_given.gif';
$images['sudoku_18'] = $common_images . 'sudoku/18_given.gif';
$images['sudoku_19'] = $common_images . 'sudoku/19_given.gif';
$images['sudoku_21'] = $common_images . 'sudoku/1_ran.gif';
$images['sudoku_22'] = $common_images . 'sudoku/2_ran.gif';
$images['sudoku_23'] = $common_images . 'sudoku/3_ran.gif';
$images['sudoku_24'] = $common_images . 'sudoku/4_ran.gif';
$images['sudoku_25'] = $common_images . 'sudoku/5_ran.gif';
$images['sudoku_26'] = $common_images . 'sudoku/6_ran.gif';
$images['sudoku_27'] = $common_images . 'sudoku/7_ran.gif';
$images['sudoku_28'] = $common_images . 'sudoku/8_ran.gif';
$images['sudoku_29'] = $common_images . 'sudoku/9_ran.gif';
// Others
$images['show_quick_links'] = $current_template_images . $current_lang . 'quick_links2.gif';
$images['show_latest_news'] = $current_template_images . $current_lang . 'news.gif';
// DOWNLOADS - BEGIN
$images['Dl_upload'] = $current_template_images . $current_lang . 'icon_pa_upload.' . $buttons_extension;
$images['Dl_download'] = $current_template_images_root . 'icon_dl_download.gif';
$images['Dl_homepage'] = $current_template_images_root . 'icon_dl_homepage.gif';
$images['Dl_blue'] = $current_template_images_root . 'dl_blue.png';
$images['Dl_grey'] = $current_template_images_root . 'dl_grey.png';
$images['Dl_red'] = $current_template_images_root . 'dl_red.png';
$images['Dl_green'] = $current_template_images_root . 'dl_green.png';
$images['Dl_white'] = $current_template_images_root . 'dl_white.png';
$images['Dl_yellow'] = $current_template_images_root . 'dl_yellow.png';
$images['Dl_new'] = $current_template_images_root . 'dl_new.png';
$images['Dl_edit'] = $current_template_images_root . 'dl_edit.png';
$images['Dl_rate_no'] = $current_template_images_root . 'dl_rate_no.png';
$images['Dl_rate_yes'] = $current_template_images_root . 'dl_rate_yes.png';
$images['Dl_acp_config'] = $current_template_images_root . 'dl_config.png';
$images['Dl_acp_traffic'] = $current_template_images_root . 'dl_traffic.png';
$images['Dl_acp_categories'] = $current_template_images_root . 'dl_categories.png';
$images['Dl_acp_files'] = $current_template_images_root . 'dl_files.png';
$images['Dl_acp_stats'] = $current_template_images_root . 'dl_stats.png';
$images['Dl_acp_toolbox'] = $current_template_images_root . 'dl_toolbox.png';
$images['Dl_acp_ext_blacklist'] = $current_template_images_root . 'dl_ext_blacklist.png';
$images['Dl_acp_banlist'] = $current_template_images_root . 'dl_banlist.png';
// DOWNLOADS - END
// CBACK CrackerTracker - BEGIN
$images['ctracker_key_icon'] = $common_images . 'key_icon.png';
$images['ctracker_acp_bg'] = $common_images . 'acp_head_bg.jpg';
$images['ctracker_acp_logo'] = $common_images . 'acp_head_logo.jpg';
$images['ctracker_icon_set_1'] = $common_images . 'acp_settings_1.png';
$images['ctracker_icon_set_2'] = $common_images . 'acp_settings_2.png';
$images['ctracker_icon_set_3'] = $common_images . 'acp_settings_3.png';
$images['ctracker_icon_set_4'] = $common_images . 'acp_settings_4.png';
$images['ctracker_icon_set_5'] = $common_images . 'acp_settings_5.png';
$images['ctracker_icon_set_6'] = $common_images . 'acp_settings_6.png';
$images['ctracker_icon_set_7'] = $common_images . 'acp_settings_7.png';
$images['ctracker_icon_set_8'] = $common_images . 'acp_settings_8.png';
$images['ctracker_icon_cred_1'] = $common_images . 'acp_credits_1.png';
$images['ctracker_icon_cred_2'] = $common_images . 'acp_credits_2.png';
$images['ctracker_icon_cred_3'] = $common_images . 'acp_credits_3.png';
$images['ctracker_icon_cred_4'] = $common_images . 'acp_credits_4.png';
$images['ctracker_fc_icon_1'] = $common_images . 'fc_icon_1.png';
$images['ctracker_fc_icon_2'] = $common_images . 'fc_icon_2.png';
$images['ctracker_global_msg'] = $common_images . 'global_message.png';
$images['ctracker_global_res'] = $common_images . 'global_reset.png';
$images['ctracker_log_manager'] = $common_images . 'log_manager.png';
$images['ctracker_footer_s'] = $common_images . 'footer_1.png';
$images['ctracker_footer_b'] = $common_images . 'footer_2.png';
$images['ctracker_recovery'] = $common_images . 'recovery.png';
$images['ctracker_gmu'] = $common_images . 'glob_msg_user.png';
$images['ctracker_note'] = $common_images . 'ip_warning.png';
// CBACK CrackerTracker - END
// adding custom template variables
$template->assign_vars(array(
'FULL_SITE_PATH' => $full_server_url,
'T_TPL_PATH' => $current_template_path . '/',
'T_COMMON_TPL_PATH' => 'templates/common/',
'T_TEMPLATE_PATH' => $template_dir,
'T_IMAGESET_PATH' => $imageset_dir,
'T_IMAGESET_LANG_PATH' => $imageset_dir . 'lang_' . $tpl_lang,
'CURRENT_LANG' => $board_config['default_lang'],
'CURRENT_TPL_LANG' => $tpl_lang,
'TPL_COLOR' => $color,
'CSS_COLOR' => $css_color,
'S_LOGGED_IN' => $userdata['session_logged_in'] ? 1 : 0,
'S_ADMIN' => $userdata['user_level'] == ADMIN ? 1 : 0,
'S_MOD' => $userdata['user_level'] == MOD ? 1 : 0,
'C_PM' => $userdata['session_logged_in'] && $userdata['user_new_privmsg'] ? ' <b>(' . $userdata['user_new_privmsg'] . ')</b>' : '',
'S_LOGIN_ACTION2' => htmlspecialchars(append_sid(LOGIN_MG)),
'S_LOGIN_ACTION3' => urlencode(LOGIN_MG . '?sid=' . $userdata['session_id']),
//'S_SID' => $userdata['session_id'],
// Mighty Gorgon - Rounded Corners - Begin
'IMG_THL' => $images['tbl_h_l'],
'IMG_THC' => $images['tbl_h_c'],
'IMG_THR' => $images['tbl_h_r'],
'IMG_TBL' => $images['tbl_b_l'],
'IMG_TBC' => $images['tbl_b_c'],
'IMG_TBR' => $images['tbl_b_r'],
'IMG_TFL' => $images['tbl_f_l'],
'IMG_TFC' => $images['tbl_f_c'],
'IMG_TFR' => $images['tbl_f_r'],
'IMG_TVT' => $images['tbl_v_t'],
'IMG_TVLS' => $images['tbl_v_ls'],
'IMG_TVRS' => $images['tbl_v_rs'],
'IMG_TVB' => $images['tbl_v_b'],
'IMG_THL_HOUSE' => $images['tbl_h_l_house'],
'IMG_THL_ALT' => $images['tbl_h_l_alt'],
'IMG_THR_ALT' => $images['tbl_h_r_alt'],
'IMG_ARU' => $images['arrows_rounded_up'],
'IMG_ARR' => $images['arrows_rounded_right'],
'IMG_ARD' => $images['arrows_rounded_down'],
'IMG_ARL' => $images['arrows_rounded_left'],
'IMG_AAU' => $images['arrows_alt_up'],
'IMG_AAR' => $images['arrows_alt_right'],
'IMG_AAD' => $images['arrows_alt_down'],
'IMG_AAL' => $images['arrows_alt_left'],
// Mighty Gorgon - Rounded Corners - End
'SITELOGO' => $images['sitelogo'],
'SPACER' => $images['spacer'],
'GRAPH_IMAGE' => $images['voting_graphic_body'],
'LEFT_GRAPH_IMAGE' => $images['voting_graphic_left'],
'RIGHT_GRAPH_IMAGE' => $images['voting_graphic_right'],
'IMG_ARROW_UP' => '<img src="' . $images['arrow_up'] . '" alt="up" title="up" />',
'IMG_ARROW_RIGHT' => '<img src="' . $images['arrow_right'] . '" alt="right" title="right" />',
'IMG_ARROW_DOWN' => '<img src="' . $images['arrow_down'] . '" alt="down" title="down" />',
'IMG_ARROW_LEFT' => '<img src="' . $images['arrow_left'] . '" alt="left" title="left" />',
'IMG_MENU_SEP' => $images['menu_sep'],
'IMG_POST_PREV' => $images['icon_post_prev'],
'IMG_POST_NEXT' => $images['icon_post_next'],
'IMG_MAXIMISE' => $images['maximise'],
'IMG_MINIMISE' => $images['minimise'],
'IMG_NAV_MENU_SEP' => '<img src="' . $images['nav_menu_sep'] . '" alt="" title="" />',
'IMG_NAV_MENU_APPLICATION' => $images['nav_menu_application'],
'IMG_NAV_MENU_NEWSPAPER' => $images['nav_menu_newspaper'],
'IMG_NAV_MENU_INFORMATION' => $images['nav_menu_information'],
'IMG_NAV_MENU_GROUP' => $images['nav_menu_group'],
'IMG_NAV_MENU_PALETTE' => $images['nav_menu_palette'],
'IMG_NAV_MENU_WORLD' => $images['nav_menu_world'],
'IMG_NAV_MENU_RANDOM_QUOTE' => $images['nav_menu_random_quote'],
'IMG_NAV_MENU_SPONSOR' => $images['nav_menu_sponsor'],
'IMG_NAV_MENU_FEED' => $images['nav_menu_feed'],
'IMG_NAV_MENU_RSS_FEED' => $images['nav_menu_rss_feed'],
'IMG_NAV_MENU_GAMES' => $images['nav_menu_games'],
'IMG_NAV_MENU_GAMES_ALT' => $images['nav_menu_games_alt'],
'IMG_NAV_MENU_PM' => $images['nav_menu_pm'],
'IMG_NAV_MENU_STAR' => $images['nav_menu_star'],
'IMG_NAV_MENU_USERS' => $images['nav_menu_users'],
'IMG_NAV_MENU_WSETTINGS' => $images['nav_menu_wsettings'],
'RSS_NEWS_HELP' => '<a href="javascript:rss_news_help()">' . $lang['Rss_news_help'] . '</a>',
'IMG_CALENDAR' => $images['icon_calendar'],
'IMG_VF_ANN' => $images['vf_topic_ann'],
'IMG_VF_CAL' => $images['vf_topic_cal'],
'IMG_VF_GA' => $images['vf_topic_ga'],
'IMG_VF_IMP' => $images['vf_topic_imp'],
'IMG_VF_NEWS' => $images['vf_topic_news'],
'IMG_VF_NOR' => $images['vf_topic_nor'],
'IMG_VF_POLL' => $images['vf_topic_poll'],
)
);
if( defined('IN_ADMIN') && (empty($_GET['pane']) || $_GET['pane'] !== 'left') )
{
$template->assign_block_vars('ca_admin', array());
}
else
{
$template->assign_block_vars('ca_noadmin', array());
}
?>
|
#3 Sun 04 May, 2008 23:56 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: Tpl - Php Programming Help Wanted
Before ?>, add: if ($color == 'crystal_coppertone')
{
$template->assign_block_vars('switch_crystal_coppertone', array());
}
If you also want to check for the folder existence you can use this code instead of the written upper: if ($color == 'crystal_coppertone' && file_exists($current_template_images))
{
$template->assign_block_vars('switch_crystal_coppertone', array());
}
Greets!
____________ Gabriel Anca
|
#4 Mon 05 May, 2008 22:30 |
|
Inactive User
|
 Re: Tpl - Php Programming Help Wanted
Thanks Kas, it looks like it should work - but it didn't
We had about the same problem with pa_*.tpl files not parsing vars from the theme.cfg file until MG modified pafiledb_common.php and added a pa.cfg.tpl file to vista templates.
If we have to go that way again, I'd rather just release them as either a group or all "Stand Alone" themes, because I'm beginning to think that one has to be a "Rocket Scientist Programmer" to apply all of the variations to one .cfg file without having to adjust the core.php files also to get these things to work independant of each other.
Themes really shouldn't be that difficult to make. So I may release all of the themes I have made / modified as stand-alone themes. And fix the problems with markup.
|
#5 Tue 06 May, 2008 01:52 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: Tpl - Php Programming Help Wanted
If we have to go that way again, I'd rather just release them as either a group or all "Stand Alone" themes, because I'm beginning to think that one has to be a "Rocket Scientist Programmer" to apply all of the variations to one .cfg file without having to adjust the core.php files also to get these things to work independant of each other.
I think the best way to release templates is in a pack so you don't have to upload big amounts of files each time you want to install a template... If the problem is PHP code, I think I can help you.
It should work on footer: <!-- BEGIN main_bottom -->
<div class="copyright" style="text-align:center;">{VERSION_INFO} ♦ {INSTALL_INFO} ♦ {VIEWED_INFO}</div>
<!-- END main_bottom -->
<!-- BEGIN switch_crystal_coppertone -->
</td>
</tr>
</table>
<!-- END switch_crystal_coppertone --> In PAFILEDB it should not work because there the template gets parsed in another way through another class...
Just try that code and clean cache.
Greets!
____________ Gabriel Anca
|
#6 Wed 07 May, 2008 09:38 |
|
Inactive User
|
 Re: Tpl - Php Programming Help Wanted
Thanks again, Kas.
But I did all that when I was testing it.
I even removed one var: <!-- END switch_crystal_coppertone --> to see if it would generate an error, and it didn't.
The stat's footer also doesn't recognise {IMG_THR} etc, So unless I'm missing something, we're back to square one.
I'll just release them either as a group or stand-alone themes, as either way the problem will not be there anymore.
As to my thoughts on Group vs stand-alone themes, this is something I posted for Luca.
h**p://icythemes.com/ip/re-four-the...g-vp52.html#p52
Anyway, thanks Kas for the input but there were .php problems with pa_*.tpl files too before the core files were modified. And this time, that can be avoided.
|
#7 Wed 07 May, 2008 10:25 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: Tpl - Php Programming Help Wanted
Well... pafiledb uses $pafiledb_template instead of $template... I thought you were going to use it in overall_footer...
Anyway thank you for your wonderful templates and good luck
____________ Gabriel Anca
|
#8 Sat 10 May, 2008 10:31 |
|
Inactive User
|
 Re: Tpl - Php Programming Help Wanted
No, it's the stats footer that is / was the problem because I had to close and re-start tables elsewhere with the original Vista styles. And now with the different format for the latest additions, I needed to close off the statistics.tpl strictly with the "if exists" statement.
Doesn't matter now, there are quite a few of the "new" group that will be released here shortly as stand-alone themes - and there is a reason for that also.
Thanks again Kas for your input, but I'm glad now that I didn't go the way of adding them to the original Vista styles.
|
#9 Mon 12 May, 2008 13:11 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|