Cooperation with User reminder MOD

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Cooperation with User reminder MOD

Post by JirkaX »

Hi,
I'd like to add code below (from User reminder mod - http://www.phpbb.com/community/viewtopi ... &start=105) to the portal.php file, but I don't know where exactly it should be. I was told to put it before the template vars are assigned. Can anyone help me? This part of code is normally in index.php file, but now my entrance page is portal.php.

Code: Select all

// if automatic reminders is set, remind people. lets only run this once a day.
if ( $config['user_reminder_enable'] == ENABLED )
{

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

	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();

		set_config('user_reminder_last_auto_run', (int) $check_time);
	}
}
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Cooperation with User reminder MOD

Post by Kevin »

The template vars are assigned here in portal.php:

Code: Select all

$template->assign_vars(array(
	'PORTAL_LEFT_COLLUMN' 	=> $portal_config['portal_left_collumn_width'],
	'PORTAL_RIGHT_COLLUMN' 	=> $portal_config['portal_right_collumn_width'],
));
So you should add this code before this lines.
Let me know if it works (don't know the mod).
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: Cooperation with User reminder MOD

Post by JirkaX »

Thanks. I will try it and let you know. BTW That code is executed once a day only, so I will know whether it works or not tomorrow.

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: Cooperation with User reminder MOD

Post by JirkaX »

Tested and it seems to be working properly. Thanks for your help.
Locked

Return to “board3 Portal 1.0.x - English Support”