What version do I have?

Mod that adds a birthday field to the users profile, theire age are displayed beside the posts, and on there birthday they will have a greeting popup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

What version do I have?

Postby robindr on Wed 21. Sep, 2005 09:27

Hi,

A long time ago :-) I've installed the birthday pop-up mod on my forum, now it doesn't seem to be compatible anymore. I receive a pop-up, but instead of showing the birtday greeting, it shows some kind of login page.


So I want to upgrade, but how do I know wich version I'm using? I don't have the original files on my harddrive anymore.
robindr
Poster
Poster
 
Posts: 2
Joined: Wed 21. Sep, 2005 09:18

Postby robindr on Wed 21. Sep, 2005 09:33

This is my birthday_popup.php:

Code: Select all
<?
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$html_entities_match = array('#&#', '#<#', '#>#');
$html_entities_replace = array('&amp;', '&lt;', '&gt;');
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//

$gen_simple_header = TRUE;
$page_title = $lang['Greeting_Messaging'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$year=create_date('Y', time(), $board_config['board_timezone']);
$date_today = create_date('Ymd', time(), $board_config['board_timezone']);
$user_birthday=realdate("md",$userdata['user_birthday']);
$user_birthday2=(($year.$user_birthday<$date_today)? $year+1:$year).$user_birthday;
$l_greeting = ($user_birthday2==$date_today) ?
   sprintf ( $lang['Birthday_greeting_today'], date('Y')-realdate('Y',$userdata['user_birthday']) ) :
   sprintf ( $lang['Birthday_greeting_prev'],  date('Y')-realdate('Y',$userdata['user_birthday']) , realdate(str_replace('Y','',$lang['DATE_FORMAT']),$userdata['user_birthday']) );
$template->set_filenames(array(
      'body' => 'greeting_popup.tpl'));
$template->assign_vars(array(
      'L_CLOSE_WINDOW' => $lang['Close_window'],
      'L_MESSAGE' => $l_greeting ));
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
robindr
Poster
Poster
 
Posts: 2
Joined: Wed 21. Sep, 2005 09:18


Return to Birthday [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron