Scris: 15-Mai-2006, 08:48:07
Verifica daca ai facut bine modificarea in Page_header.php. De acolo porneste pop-up-ul de felicitare.
forumul phpBB in limba romana. Opinii, implementari, ajutor, instructiuni si download.
https://phpbb3.ro/community/
Cod: Selectaţi tot
#
#-----[ FIND ]------------------------------------------------
#
if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Birthday MOD
// see if user has or have had birthday, also see if greeting are enabled
if ( $userdata['user_birthday']!=999999 && $board_config['birthday_greeting'] && create_date('Ymd', time(), $board_config['board_timezone']) >= $userdata['user_next_birthday_greeting'].realdate ('md',$userdata['user_birthday'] ) )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_next_birthday_greeting = " . (create_date('Y', time(), $board_config['board_timezone'])+1) . "
WHERE user_id = " . $userdata['user_id'];
if( !$status = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Could not update next_birthday_greeting for user.", "", __LINE__, __FILE__, $sql);
}
$template->assign_var("GREETING_POPUP",
"<script language=\"Javascript\" type=\"text/javascript\"><!--
window.open('".append_sid('birthday_popup.'.$phpEx)."', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
//-->
</script>");
} //Sorry user shall not have a greeting this year
// End add - Birthday MOD
Cod: Selectaţi tot
} //Sorry user shall not have a greeting this year
// End add - Birthday MOD
if ( $userdata['user_new_privmsg'] )
{
$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);
Cod: Selectaţi tot
##############################################################
## MOD Title: Birthday
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. Rřd) http://mods.db9.dk
## MOD Description: This mod will add a birthday field into your
## user's profile and make users age viewable
## to others when viewing posts.
## MOD Version: 1.5.9
##
## Installation Level: Advanced
## Installation Time: 30 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:
## index.php
## viewtopic.php
## admin/admin_board.php
## admin/admin_users.php
## includes/functions.php
## includes/page_header.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
## templates/subSilver/overall_header.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
## Included Files:
## root/birthday_popup.php
## root/templates/subSilver/greeting_popup.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
Ai un link la forumul tau?Gigabyte scrie:Am si eu o problema ..am instalat birthday mod ... si nu imi apare pe nicaieri prin forum nici o informatie despre data de nastere sau ceva de genu ..ca si cum modul nu este instalat ..ma puteti ajuta si p mn cu problema asta ?