Pagina 1 van 1

Kalender vraagje type phpbb

Geplaatst: 02 jul 2004, 15:15
door phpbb fan
#############################
#### VERSION PHPBB 2.0.3 ####
#
#
#
#-----[ (VERSION PHPBB 2.0.3) FIND ]------------------------------------------
#

if ( defined('IN_ADMIN') )
{
if( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx) )
{
$board_config['default_lang'] = 'english';
}

include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);
}

#
#-----[ (VERSION PHPBB 2.0.3) AFTER, ADD ]------------------------------------------
#

//
// MOD Load Calendar Language File
//
if ( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.'.$phpEx) )
{
$board_config['default_lang'] = 'english';
}

include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.' . $phpEx);

// End MOD


####################################
#### VERSION PHPBB 2.0.4 - 2.0.6####
#
#
#
#-----[ (VERSION PHPBB 2.0.4 - 2.0.6) FIND ]------------------------------------------
#

if ( defined('IN_ADMIN') )
{
if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) )
{
$board_config['default_lang'] = 'english';
}

include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);
}

#
#-----[ (VERSION PHPBB 2.0.4 - 2.0.6) AFTER, ADD ]------------------------------------------
#

//
// MOD Load Calendar Language File
//
if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.'.$phpEx)) )
{
$board_config['default_lang'] = 'english';
}

include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.' . $phpEx);

// End MOD
#
#############################



#
#-----[ OPEN includes/page_header.php]------------------------------------------
#

#
#-----[ FIND ]------------------------------------------
#

else
{
$u_login_logout = 'login.'.$phpEx;
$l_login_logout = $lang['Login'];
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

else
{
// Mod Calendar
if (isset($caluser)) {
$u_login_logout = 'login.'.$phpEx.'?redirect=calendar.'.$phpEx;
}
else {
$u_login_logout = 'login.'.$phpEx;
}
// End Mod for Calendar
$l_login_logout = $lang['Login'];
}

#
#-----[ FIND ]------------------------------------------
#

'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),

#
#-----[ AFTER, ADD ]------------------------------------------
#

'L_CALENDAR' => $lang['Calendar'],

#
#-----[ FIND ]------------------------------------------
#

'U_MEMBERSLIST' => append_sid('memberlist.'.$phpEx),
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------------
#

'U_CALENDAR' => append_sid('calendar.'.$phpEx),


#
#-----[ OPEN templates/xxx/overall_header.tpl]------------------------------------------
#

#
#-----[ FIND ]------------------------------------------
#

<img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>

#
#-----[ AFTER, ADD ]------------------------------------------
#

&nbsp; &nbsp;<a href="{U_CALENDAR}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_calendar.gif" width="12" height="13" border="0" alt="{L_CALENDAR}" hspace="3" />{L_CALENDAR}</a>



#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Ik heb die phpbb 2.0.8, maar die staat er niet tussen.

Mvg,

Mario 8)

Geplaatst: 02 jul 2004, 15:20
door LazyTiger
gewoon die van 2.0.6 pakken.

Geplaatst: 02 jul 2004, 15:55
door phpbb fan
#-----[ OPEN templates/xxx/overall_header.tpl]------------------------------------------
#

#
#-----[ FIND ]------------------------------------------
#

<img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>

Die vind ik iet terug, ik werk met fisubsilversh, moet je dat dan vervagen?

Mvg,

Mario 8)

Geplaatst: 02 jul 2004, 16:02
door cartoontje
Die hack is gemaakt voor SubSilver, aangezien dat de standaardtemplate is. Je moet dit stuk dus ff op maat maken voor jouw template! ;)

Zoek in dat bestand naar

Code: Selecteer alles

{L_USERGROUPS}
Kijk dan even naar hoe de code eruit ziet en pas het stukje van de hack op de juiste manier in het bestand in. Het is een beetje cryptisch om uit te leggen, maar je moet die link dus "ombuigen" naar jouw stijl...