Thanks found it <img>
I also realized that I had to make the following changes (the Integramod package on this site might have these changes already implemented....
so check first before modding anything!!).
[hr:3n77auxw]
The most important thing I had to do was add some expiration/active tables to my database. So open up phpmyadmin and run the following sql query:
ALTER TABLE phpbb_user_group ADD ug_expire_date int(11) default 0; ALTER TABLE phpbb_user_group ADD ug_active_date int(11) default 0;
If you've installed Integramod in your main public_html directory then you need to edit file
lwdonateconfirm.php
and change the line
$pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 2));
to
$pos = strpos($board_config['script_path'], '/', (strlen($board_config['script_path']) - 1));
Only do the above if you didn't install Integramod in a sub directory
[b](The following is optional.... I think <s>assign_block_vars('switch_user_logged_out', array()); } else { $template->assign_block_vars('switch_user_logged_in', array()); if ( !empty($userdata['user_popup_pm']) ) { $template->assign_block_vars('switch_enable_pm_popup', array()); } require($phpbb_root_path . 'includes/lw_ipn_grp_functions.'.$phpEx); $lwuserreminder = lw_write_header_reminder(); $template->assign_block_vars('switch_lw_user_logged_in', array()); $template->assign_vars(array( 'L_LW_EXPIRE_REMINDER' => $lwuserreminder, ) ); // $lwuserreminder = ''; // if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD) // { // if(time() > ( $userdata['user_expire_date'] == 0 ? ($userdata['user_regdate'] + intval($board_config['lw_trial_period']) * 24 * 60 * 60) ] )) // { // $lwuserreminder = sprintf($lang['LW_Welcome_Nopaid_Member'], $userdata['username']); // } // else if($userdata['user_expire_date'] == 0) // { // $lwuserreminder = sprintf($lang['LW_EXPIRE_TRIAL_REMINDER'], ((($userdata['user_regdate'] + intval($board_config['lw_trial_period']) * 24 * 60 * 60) - time()) / (24 * 60 * 60) + 1)); // } // else // { // $lwuserreminder = sprintf($lang['LW_EXPIRE_MEMBER_REMINDER'], create_date($userdata['user_dateformat'], $userdata['user_expire_date'], $userdata['user_timezone'])); // } // if($userdata['user_rank'] > 0) // { // $sql = "SELECT r.rank_id, r.rank_title // FROM " . RANKS_TABLE . " r // WHERE r.rank_id = " . $userdata['user_rank']; // if ( ($resultr = $db->sql_query($sql)) ) // { // if( $rowr = $db->sql_fetchrow($resultr) ) // { // if(strcmp($rowr['rank_title'], VIP_RANK_TITLE) == 0) // { // $lwuserreminder = sprintf($lang['LW_YOU_ARE_VIP'], $userdata['username']); // } // } // } // } // // } // $template->assign_block_vars('switch_lw_user_logged_in', array()); // $template->assign_vars(array( // 'L_LW_EXPIRE_REMINDER' => $lwuserreminder, // ) // ); }[/code]
and add into /templates<your>/overall_header.php just below {QBARS} so that it looks like below
{QBARS} <a></a> <table> <tr> <td> <table> <tr> <td><a><img></a></td> <BEGIN> <td><div>{BANNER_0_IMG}</div></td> <END> <td> </td> </tr> </table> {QMENUS} <Added> <table> <BEGIN> <tr> <td><span> {L_LW_EXPIRE_REMINDER}</span></td> </tr> <END> </table> <END>
this will then display a user's subscription info (only displays it if they have any)