Email on Birthday 1.0.1b

Here my mods and history gets moved when validated and released to the phpbb.com MODDB

Re: Email on Birthday 1.0.1b

Postby lefty » Sun Jan 30, 2011 3:26 pm

:thumbsup:
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Email on Birthday 1.0.1b

Postby Blackwolf » Sun Jan 30, 2011 10:52 pm

All good :thumbsup:

Recieved single Birthday email for test user & Birthday Pop Up worked too :tigs:

Thanks again Lefty :yessir:
PhpBB3 Version: 3.0.10
Oz Unity
Ultimate Edition
Ultimate Edition Oz

We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.
Blackwolf
Forum Member
 
Posts: 25
Joined: Thu Jan 27, 2011 10:18 am
Location: Melbourne, Australia

Re: Email on Birthday 1.0.1b

Postby demetris20 » Fri Aug 19, 2011 2:45 am

hello lefty74
i am a huge fun of yours and your mods and i wanted to thank you personally for all the help you provide me with the announcement centre
now back to business :rotfl2: :rotfl2: :laughpound:

well i have install this mod and everything where ok until i notice something strange about this mod
the birthday email is send correctly but the problem is that is send from normal users instead of the admin
you see its kind strange to receive an email that sais happy birthday etc...and at the end email signature
admin@mysite.com but it was receive by a normal member that dont have any post

its not a big problem but if this can be fixed it will be great

thanks
demetris20
demetris20
Forum Member
 
Posts: 15
Joined: Mon Oct 20, 2008 8:34 pm

Re: Email on Birthday 1.0.1b

Postby lefty » Sun Aug 21, 2011 5:19 pm

hi, what do you mean, it is sent by normal members, when you refer to the admin log, it's only recording who is triggering the script to send the emails. the emails are still sent from the board.
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Email on Birthday 1.0.1b

Postby jackennils » Thu Aug 25, 2011 11:40 pm

Hallo lefty74!

Ich habe versucht deine Mod einzubauen.
Nutze immernoch phpbb3 in der Version 3.0.6, da ich jede Menge Mods implementiert habe und diese nicht erneut einbauen will.

Wie auch immer, Version 1.0.1b sollte ja mit 3.0.6 funktionieren.

Habe die Mod wie beschrieben eingebaut, jedoch kommt, wenn die Mail verschickt werden soll, dieser SQL Fehler:

Image

Das Forum um das es geht, findest du hier: http://mafia-daily.net/forum/

Hast du eine Ahnung woran das liegt?


Viele Grüße
jackennils


Edit: Hat sich erledigt, es lag an der falschen Codierung des TXT-Files. Hatte vergessen es in UTF-8 ohne BOM zu speichern.

Danke dennoch. ;)
jackennils
Newbie/Neuling
 
Posts: 1
Joined: Thu Aug 25, 2011 11:36 pm

Re: Email on Birthday 1.0.1b

Postby Blackwolf » Tue Nov 01, 2011 2:15 am

HI lefty....long time :shifty:

Can I ask you to please check my index.php ?

Have a fairly heavily modded board....alls been good for the last 12 months.

Last night the ACP shows 3 emails sent to the same user..... and 3 days ago 3 non logged in users received 3 duplicate reminders.might be nothing but I figure due to my relative inexperience compared to yours, may have inadvertently misplaced some code.

Image

Can I trouble you to check it please? :embarrassed:

Code: Select all
<?php
/**
*
* @package phpBB3
* @version $Id: index.php 9614 2009-06-18 11:04:54Z nickvergessen $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
*/

/**
* @ignore
*/
define('IN_FORUM_INDEX', true);
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');

display_forums('', $config['load_moderators']);

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts   = $config['num_posts'];
$total_topics   = $config['num_topics'];
$total_users   = $config['num_users'];
$uptimeindex    = shell_exec("cut -d. -f1 /proc/uptime");
$daysindex       = floor($uptimeindex/60/60/24);
$hoursindex    = $uptimeindex/60/60%24;
$minsindex       = $uptimeindex/60%60;
$secsindex       = $uptimeindex%60;
$load          = sys_getloadavg();
$total_files      = $config['num_files'];
$start_date     = date("d M Y, H:i:s", $config['board_startdate'] );
$boarddays       = ceil((time() - $config['board_startdate']) / 86400);
$l_total_user_s = ($total_users == 0) ? 'TOTAL_USERS_ZERO' : 'TOTAL_USERS_OTHER';
$l_total_post_s = ($total_posts == 0) ? 'TOTAL_POSTS_ZERO' : 'TOTAL_POSTS_OTHER';
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
$l_total_file_s = ($total_files == 0) ? 'TOTAL_FILES_ZERO' : 'TOTAL_FILES_OTHER';
$posts_per_day = $total_posts / $boarddays;
$l_posts_per_day_s = ($posts_per_day == 0) ? 'POSTS_PER_DAY_ZERO' : 'POSTS_PER_DAY_OTHER';
$posts_per_year = $posts_per_day * 365;
$l_posts_per_year_s = ($posts_per_year == 0) ? 'POSTS_PER_YEAR_ZERO' : 'POSTS_PER_YEAR_OTHER';
$posts_per_user = $total_posts / $total_users;
$l_posts_per_user_s = ($posts_per_user == 0) ? 'POSTS_PER_USER_ZERO' : 'POSTS_PER_USER_OTHER';
$posts_per_topic = $total_posts / $total_topics;
$l_posts_per_topic_s = ($posts_per_topic == 0) ? 'POSTS_PER_TOPIC_ZERO' : 'POSTS_PER_TOPIC_OTHER';
$topics_per_day = $total_topics / $boarddays;
$l_topics_per_day_s = ($topics_per_day == 0) ? 'TOPICS_PER_DAY_ZERO' : 'TOPICS_PER_DAY_OTHER';
$topics_per_year = $topics_per_day * 365;
$l_topics_per_year_s = ($topics_per_year == 0) ? 'TOPICS_PER_YEAR_ZERO' : 'TOPICS_PER_YEAR_OTHER';
$topics_per_user = $total_topics / $total_users;
$l_topics_per_user_s = ($topics_per_user == 0) ? 'TOPICS_PER_USER_ZERO' : 'TOPICS_PER_USER_OTHER';
$files_per_day = $total_files / $boarddays;
$l_files_per_day_s = ($files_per_day == 0) ? 'FILES_PER_DAY_ZERO' : 'FILES_PER_DAY_OTHER';
$files_per_year = $files_per_day * 365;
$l_files_per_year_s = ($files_per_year == 0) ? 'FILES_PER_YEAR_ZERO' : 'FILES_PER_YEAR_OTHER';
$files_per_user = $total_files / $total_users;
$l_files_per_user_s = ($files_per_day == 0) ? 'FILES_PER_USER_ZERO' : 'FILES_PER_USER_OTHER';
$users_per_day = $total_users / $boarddays;
$l_users_per_day_s = ($users_per_day == 0) ? 'USERS_PER_DAY_ZERO' : 'USERS_PER_DAY_OTHER';
$users_per_year = $users_per_day * 365;
$l_users_per_year_s = ($users_per_year == 0) ? 'USERS_PER_YEAR_ZERO' : 'USERS_PER_YEAR_OTHER';
// Grab group details for legend display
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
{
   $sql = 'SELECT group_id, group_name, group_colour, group_type
      FROM ' . GROUPS_TABLE . '
      WHERE group_legend = 1
      ORDER BY group_name ASC';
}
else
{
   $sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
      FROM ' . GROUPS_TABLE . ' g
      LEFT JOIN ' . USER_GROUP_TABLE . ' ug
         ON (
            g.group_id = ug.group_id
            AND ug.user_id = ' . $user->data['user_id'] . '
            AND ug.user_pending = 0
         )
      WHERE g.group_legend = 1
         AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
      ORDER BY g.group_name ASC';
}
$result = $db->sql_query($sql);

$legend = array();
while ($row = $db->sql_fetchrow($result))
{
   $colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
   $group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];

   if ($row['group_name'] == 'BOTS' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))
   {
      $legend[] = '<span' . $colour_text . '>' . $group_name . '</span>';
   }
   else
   {
      $legend[] = '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . $group_name . '</a>';
   }
}
$db->sql_freeresult($result);

$legend = implode(' | ', $legend);

// Generate birthday list if required ...
$birthday_list = '';
$bd_list_ary = $bd_list_log_ary = array();

if ($config['load_birthdays'] && $config['allow_birthdays'])
{
   $now = getdate(time() + $user->timezone + $user->dst - date('Z'));
   $sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday, u.user_email, u.user_lang,u.user_notify_type, u.user_jabber
      FROM ' . USERS_TABLE . ' u
      LEFT JOIN ' . BANLIST_TABLE . " b ON (u.user_id = b.ban_userid)
      WHERE (b.ban_id IS NULL
         OR b.ban_exclude = 1)
         AND u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
         AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
   $result = $db->sql_query($sql);

   while ($row = $db->sql_fetchrow($result))
   {
      $birthday_list .= (($birthday_list != '') ? ', ' : '') . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

      if ($age = (int) substr($row['user_birthday'], -4))
      {
         $birthday_list .= ' (' . ($now['year'] - $age) . ')';
      }

             if (trim($row['user_email']) && $config['birthday_emails'])
          {
             $bd_list_ary[] = array(
                'method'   => $row['user_notify_type'],
                'email'      => $row['user_email'],
                'jabber'   => $row['user_jabber'],
                'name'      => $row['username'],
                'lang'      => $row['user_lang']
             );
      }
   }
   $db->sql_freeresult($result);

       $check_time_bdemail = (int) gmdate('mdY',time() + (3600 * ($config['board_timezone'] + $config['board_dst'])));

       if ( sizeof($bd_list_ary) && ($user->data['user_timezone'] == $config['board_timezone'] && $user->data['user_dst'] == $config['board_dst']) && ($config['birthday_run'] != $check_time_bdemail) && $config['birthday_emails'] )
       {
          set_config('birthday_run', $check_time_bdemail);
         
          include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
          $messenger = new messenger();

          foreach ($bd_list_ary as $pos => $addr)
          {
             $messenger->template('birthday_email', $addr['lang']);
             
             $messenger->to($addr['email'], $addr['name']);
             $messenger->im($addr['jabber'], $addr['name']);
             // if you want to receive copies of the birthday emails, just uncomment below line
             $messenger->cc('ultimateblackwolf@gmail.com', 'your_name');
             
             $messenger->assign_vars(array(
                'USERNAME'      => htmlspecialchars_decode($addr['name'])
             ));
             $messenger->send($addr['method']);
             
             $bd_list_log_ary[] = $addr['name'];
          }
          add_log('admin', 'LOG_BIRTHDAY_EMAIL_SENT', implode(', ', $bd_list_log_ary));           
          unset($bd_list_ary);
          unset($bd_list_log_ary);
         
          $messenger->save_queue();
          unset($messenger);
       }

       }

if (!class_exists('phpbb_mods_who_was_here'))
{
   include($phpbb_root_path . 'includes/mods/who_was_here.' . $phpEx);
   phpbb_mods_who_was_here::update_session();
}
phpbb_mods_who_was_here::display();

// BEGIN Welcome Mod
//--Welcome_Mod--get the hour number-->
$date = $user->format_date(time(), 'H');

if ($user->data['is_registered'])
{
    $u_user_name = get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']);
}
else
{
    $u_user_name = $user->lang['WELCOME_GUEST'];
}   

switch (true)
{
        case ($date < 1):
            // if the hour is 11am-12am (18-23)
            $s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
        break;
     
         case ($date < 4):
            // if the hour is 1-3 am
            $s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
        break;
       
        case ($date < 8):
            // if the hour is 4-7 am
            $s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
        break;
       
        case ($date < 12):
            // if the hour is 8-11 am
            $s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
        break;
       
        case ($date < 18):
            // if the hour is 12-5pm
            $s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
        break;
       
        case ($date < 24):
            // if the hour is 6pm-11pm
            $s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
        break;
}

// how long a member for
$member_for = '';
if ($user->data['is_registered'] && !$user->data['is_bot'])
{
    $member_length = time() - $user->data['user_regdate'];
    $years = $months = $days = 0;
    $member_for = '';
    if ($member_length)
    {   
        if ($member_length >= 31536000)
        {
            $years = floor($member_length / 31536000);
            $member_length = $member_length - ($years * 31536000);
            $member_for .= $years > 1 ? ($years . '&nbsp;' . $user->lang['WELCOME_YEARS'] . ', ') : ($years . '&nbsp;' . $user->lang['WELCOME_YEAR'] . ', ');
        }
        $months = floor($member_length / 2628000);
        if ($months)
        {
            $months = $months > 1 ? ($months . '&nbsp;' . $user->lang['WELCOME_MONTHS'] . ', ') : ($months . '&nbsp;' . $user->lang['WELCOME_MONTHS'] . ', ');
            $member_length = $member_length - ($months * 2628000);
            $member_for .= $months;
        }
        $days = floor($member_length / 86400);
        if ($days)
        {
            $days = $days > 1 ? ($days . '&nbsp;' . $user->lang['WELCOME_DAYS']) : ($days . '&nbsp;' . $user->lang['WELCOME_DAY']);
            $member_for .= $days;
        }       
    }
}
//END Welcome Mod
if ($config['load_birthdays'] && $config['allow_birthdays'] && ( $config['allow_birthdays_ahead'] > 0 ) )
{
   if(!function_exists('get_upcbirthdays'))
   {   
      include($phpbb_root_path . 'includes/functions_upcbirthdays.' . $phpEx);
   }
   get_upcbirthdays();
}
//-- mod: top five ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/top_five.' . $phpEx);
//-- end: top five ---------------------------------------------------------//

// if automatic reminders is set, remind people. lets only run this once a day.
if (isset($config['user_reminder_enable']))
{
   if ( $config['user_reminder_enable'] == ENABLED )
   {
      $check_time = (int) gmdate('mdY',time() + (3600 * ($config['board_timezone'] + $config['board_dst'])));
   
      if ( $config['user_reminder_last_auto_run'] != $check_time)
      {
         if (!function_exists('send_user_reminders'))
         {
            include($phpbb_root_path . 'includes/functions_user_reminder.' . $phpEx);
         }
         
         send_user_reminders();
         
         if ($config['user_reminder_log_opt_users_react'])
         {
            add_log('admin', 'LOG_USER_REMINDER_AUTO_RUN');
         }
         
         set_config('user_reminder_last_auto_run', $check_time);
      }
   }
}

if ( isset($config['announcement_enable']))
{
   if ( $config['announcement_show_index'] && ($config['announcement_enable'] || $config['announcement_show_birthdays_always']) )
   {
      if (!function_exists('get_announcement_data'))
      {
         include($phpbb_root_path . 'includes/functions_announcements.' . $phpEx);
      }
      get_announcement_data();
   }
}

//-- mod: Top Poster of the Month ----------------------------------------------------------//
// if the user is a bot, we won’t even process this function...
if (!$user->data['is_bot'])
{
   include($phpbb_root_path . 'includes/functions_tpotm.' . $phpEx);
   tpotm_set_template_vars();
}
//-- end: Top Poster Of The Month ----------------------------------------------------------//
//Begin: National_Flag
if (!empty($config['allow_flags']))
{
   if (!function_exists('top_flags'))
   {
      include($phpbb_root_path . 'includes/functions_flag.' . $phpEx);
   }
   top_flags();
}
//End: National_Flag
// Generate anniversary list
$anniversary_list = $cache->get('anniversary_list');
if ($anniversary_list === false)
{
   $anniversary_list = '';
   $current_date = date('m-d');
   $current_year = date('Y');
   $leap_year = date('L');
   $sql = 'SELECT user_id, username, user_colour, user_regdate
      FROM ' . USERS_TABLE . "
      WHERE user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
   $result = $db->sql_query($sql);

   while ($row = $db->sql_fetchrow($result))
   {
      // We are compensating for leap year here.  If the year is not a leap year, the current date is Feb 28, and they joined Feb 29 we will list their names.
      if (date('m-d', $row['user_regdate']) == $current_date || (!$leap_year && $current_date == '02-28' && date('m-d', $row['user_regdate']) == '02-29'))
      {
         if (($current_year - date('Y', $row['user_regdate'])) > 0)
         {
            $anniversary_list .= (($anniversary_list != '') ? ', ' : '') . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
            $anniversary_list .= ' (' . ($current_year - date('Y', $row['user_regdate'])) . ')';
         }
      }
   }
   $db->sql_freeresult($result);

   //Figure out what tomorrow's beginning time is based on the board timezone settings and have the cache expire then.
   $till_tomorrow = gmmktime(0, 0, 0) + 86400 - ($config['board_timezone'] * 3600) - ($config['board_dst'] * 3600) - time();
   $cache->put('anniversary_list', $anniversary_list, $till_tomorrow);
}
$template->assign_var('ANNIVERSARY_LIST', $anniversary_list);
// Assign index specific vars
$template->assign_vars(array(
      'TOTAL_POSTS'    => sprintf($user->lang[$l_total_post_s], number_format($total_posts, 0, ',', '.')),
    'POSTS_PER_DAY'   => str_replace('.', ',', sprintf($user->lang[$l_posts_per_day_s], $posts_per_day)),
    'POSTS_PER_YEAR'    => sprintf($user->lang[$l_posts_per_year_s], number_format($posts_per_year, 0, ',', '.')),
    'POSTS_PER_TOPIC'   => str_replace('.', ',', sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic)),
    'POSTS_PER_USER'   => str_replace('.', ',', sprintf($user->lang[$l_posts_per_user_s], $posts_per_user)),
    'TOTAL_TOPICS'    => sprintf($user->lang[$l_total_topic_s], number_format($total_topics, 0, ',', '.')),
    'TOPICS_PER_DAY'   => str_replace('.', ',', sprintf($user->lang[$l_topics_per_day_s], $topics_per_day)),
    'TOPICS_PER_YEAR'   => sprintf($user->lang[$l_topics_per_year_s], number_format($topics_per_year, 0, ',', '.')),
    'TOPICS_PER_USER'   => str_replace('.', ',', sprintf($user->lang[$l_topics_per_user_s], $topics_per_user)),
    'TOTAL_FILES'    => sprintf($user->lang[$l_total_file_s], number_format($total_files, 0, ',', '.')),
    'FILES_PER_DAY'   => str_replace('.', ',', sprintf($user->lang[$l_files_per_day_s], $files_per_day)),
    'FILES_PER_YEAR'    => sprintf($user->lang[$l_files_per_year_s], number_format($files_per_year, 0, ',', '.')),
    'FILES_PER_USER'   => str_replace('.', ',', sprintf($user->lang[$l_files_per_user_s], $files_per_user)),
    'TOTAL_USERS'    => sprintf($user->lang[$l_total_user_s], number_format($total_users, 0, ',', '.')),
    'USERS_PER_DAY'   => str_replace('.', ',', sprintf($user->lang[$l_users_per_day_s], $users_per_day)),
    'USERS_PER_YEAR'    => sprintf($user->lang[$l_users_per_year_s], number_format($users_per_year, 0, ',', '.')),
    'NEWEST_USER'   => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
    'UPTIME_DAYS'      => $daysindex,
    'UPTIME_HOURS'      => $hoursindex,
    'UPTIME_MINS'      => $minsindex,
    'UPTIME_SECS'      => $secsindex,
    'AVG_LOAD0'         => $load[0],
    'AVG_LOAD1'         => $load[1],
    'AVG_LOAD2'         => $load[2],
    'START_DATE'         => $start_date,

       // BEGIN Welcome Mod   
    'S_WELCOME'                   => $s_welcome,
    'S_JOINED_DATE'               => $user->lang['JOINED'] . ':&nbsp;' . $user->format_date($user->data['user_regdate']),
    'USER_AVATAR'               => get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']),
    'MEMBER_FOR'               => (!empty($member_for)) ? $user->lang['MEMBER_FOR'] . '&nbsp;' . $member_for : '',
      // END Welcome Mod

   'LEGEND'      => $legend,
   'BIRTHDAY_LIST'   => $birthday_list,

   'FORUM_IMG'            => $user->img('forum_read', 'NO_UNREAD_POSTS'),
   'FORUM_UNREAD_IMG'         => $user->img('forum_unread', 'UNREAD_POSTS'),
   'FORUM_LOCKED_IMG'      => $user->img('forum_read_locked', 'NO_UNREAD_POSTS_LOCKED'),
   'FORUM_UNREAD_LOCKED_IMG'   => $user->img('forum_unread_locked', 'UNREAD_POSTS_LOCKED'),

   'S_LOGIN_ACTION'         => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
   'S_DISPLAY_BIRTHDAY_LIST'   => ($config['load_birthdays']) ? true : false,
    'SEO_DESC'                 => (isset($config['seo_desc']) && $config['seo_desc']) ? $config['seo_desc'] : false,
    'SEO_KEY'                    => (isset($config['seo_key']) && $config['seo_key']) ? $config['seo_key'] : false,

   
   'U_MARK_FORUMS'      => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&amp;mark=forums') : '',
   'U_MCP'            => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=front', true, $user->session_id) : '')
);

// BEGIN mChat Mod
$mchat_installed = (!empty($config['mchat_version']) && !empty($config['mchat_enable'])) ? true : false;
if ($mchat_installed && $auth->acl_get('u_mchat_view'))
{
   if(!defined('MCHAT_INCLUDE') && $config['mchat_on_index'] && !empty($user->data['user_mchat_index']))
   {
      define('MCHAT_INCLUDE', true);
      $mchat_include_index = true;
      include($phpbb_root_path . 'mchat.' . $phpEx);
   }   

   if (!empty($config['mchat_stats_index']) && !empty($user->data['user_mchat_stats_index']))
   {
      if (!function_exists('mchat_users'))
      {
         include($phpbb_root_path . 'includes/functions_mchat.' . $phpEx);
      }
      // Add lang file
      $user->add_lang('mods/mchat_lang');
      // stats display
      $mchat_session_time = !empty($config_mchat['timeout']) ? $config_mchat['timeout'] : 300;// you can change this number to a greater number for longer chat sessions
      $mchat_stats = mchat_users($mchat_session_time);
      $template->assign_vars(array(
         'MCHAT_INDEX_STATS'   => true,
         'MCHAT_INDEX_USERS_COUNT'   => $mchat_stats['mchat_users_count'],
         'MCHAT_INDEX_USERS_LIST'   => $mchat_stats['online_userlist'],
         'L_MCHAT_ONLINE_EXPLAIN'   => $mchat_stats['refresh_message'],   
      ));
   }
}   
// END mChat Mod
// BEGAN - ModernDignity.com Hello Name Tag of Newest User mod
   include($phpbb_root_path . 'includes/hellotag.' . $phpEx);
// ENDED - ModernDignity.com Hello Name Tag of Newest User mod

// BEGAN - ModernDignity.com Flash Animated Cumulus Tag Cloud
if (!function_exists('display_cloud'))
{
   include($phpbb_root_path . 'includes/functions_cloud.' . $phpEx);
}
display_cloud();
// ENDED - ModernDignity.com Flash Animated Cumulus Tag Cloud
//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
// Output page
page_header('Ultimate Edition Oz Forum');

$template->set_filenames(array(
   'body' => 'index_body.html')
);

page_footer();

?>
PhpBB3 Version: 3.0.10
Oz Unity
Ultimate Edition
Ultimate Edition Oz

We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.
Blackwolf
Forum Member
 
Posts: 25
Joined: Thu Jan 27, 2011 10:18 am
Location: Melbourne, Australia

Re: Email on Birthday 1.0.1b

Postby lefty » Wed Nov 02, 2011 9:53 pm

Hi blackwolf, long time indeed, hope all is well.

i will try to have a look at the weekend. i havent looked at code in a while so hope I can remember things.
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Email on Birthday 1.0.1b

Postby Blackwolf » Sat Dec 31, 2011 2:41 am

NO worries...take your time. No issues whatsoever apart from this. :thumbsup:

Learnt a lot from you. Passed your info re upkeep of mods to cisco007. He'll be in touch. :excellent:


Last bumped by Blackwolf on Sat Dec 31, 2011 2:41 am.
PhpBB3 Version: 3.0.10
Oz Unity
Ultimate Edition
Ultimate Edition Oz

We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.
Blackwolf
Forum Member
 
Posts: 25
Joined: Thu Jan 27, 2011 10:18 am
Location: Melbourne, Australia

Previous

Return to [3.0.x] MOD Database Releases

Who is online

Users browsing this forum: No registered users and 2 guests

cron