Hi,
is there a way to implement or create or simulate the vbulletin type feature where if a user hasn't visited the site for a certain amount of days then they get an email saying something like:
"
Hello, aliks0905!
We've noticed that you've not been active on Icy Phoenix for quite some time now, and we miss you!
Please remember that inactive users are deleted regularly...
If you don't remember your password, you can request it here: http://www.icyphoenix.com/login.php?do=lostpw
We hope to see you soon!
Kindest Regards
Icy Phoenix Admin "
Thanks
"aliks0905 We Miss You" Emails ...
Subject: Re: "aliks0905 We Miss You" Emails ...
I won't add it.
Try to look if there is a mod for phpBB which does this and then someone may help you in installing it on Icy Phoenix.
Try to look if there is a mod for phpBB which does this and then someone may help you in installing it on Icy Phoenix.
Subject: Re: "aliks0905 We Miss You" Emails ...
Well I've been looking for it in phpbb, and ther'e no a similar hack to do this.
DO someody knows about it? I think is a vbulletin feature, but I just cant find it :cry:
DO someody knows about it? I think is a vbulletin feature, but I just cant find it :cry:
Subject: Re: "aliks0905 We Miss You" Emails ...
I think that there it isn't this kind of mod.
I made something for personal use but it's manually, it's a script that export the emails of users that do not login to your forum since "x" days.
I made something for personal use but it's manually, it's a script that export the emails of users that do not login to your forum since "x" days.
Subject: Re: "aliks0905 We Miss You" Emails ...
i've got it coded on a website control panel. that files won't help you
i hope this piece of code will help you
Set 30 for the amout of days you want
i hope this piece of code will help you
// Count users
$sql = 'SELECT user_id FROM '.USERS_TABLE.' WHERE user_id > 0 AND user_lastvisit < '.(time()-86400*30).'';
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not count Users", "", __LINE__, __FILE__, $sql);
}
$total_users = $db->sql_numrows($result);
//
$query_result = mysql_query('SELECT username,user_email FROM '.USERS_TABLE.' WHERE user_id > 0 AND user_lastvisit < '.(time()-86400*30).'');
while( $row = $db->sql_fetchrow($query_result) )
{
$userrow[] = $row;
}
for ($i = 0; $i < $total_users; $i++)
{
if (empty($userrow[$i]))
{
break;
}
$row_color = (($i % 2) == 0) ? "row1" : "row2";
$template->assign_block_vars('userrow', array(
'COLOR' => $row_color,
'NUMBER' => ($start + $i + 1),
'USERNAME' => $userrow[$i]['username'],
'U_ADMIN_USER' => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $userrow[$i]['user_id']),
'EMAIL' => $userrow[$i]['user_email']
) //end array
);
} // end for
$sql = 'SELECT user_id FROM '.USERS_TABLE.' WHERE user_id > 0 AND user_lastvisit < '.(time()-86400*30).'';
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not count Users", "", __LINE__, __FILE__, $sql);
}
$total_users = $db->sql_numrows($result);
//
$query_result = mysql_query('SELECT username,user_email FROM '.USERS_TABLE.' WHERE user_id > 0 AND user_lastvisit < '.(time()-86400*30).'');
while( $row = $db->sql_fetchrow($query_result) )
{
$userrow[] = $row;
}
for ($i = 0; $i < $total_users; $i++)
{
if (empty($userrow[$i]))
{
break;
}
$row_color = (($i % 2) == 0) ? "row1" : "row2";
$template->assign_block_vars('userrow', array(
'COLOR' => $row_color,
'NUMBER' => ($start + $i + 1),
'USERNAME' => $userrow[$i]['username'],
'U_ADMIN_USER' => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $userrow[$i]['user_id']),
'EMAIL' => $userrow[$i]['user_email']
) //end array
);
} // end for
Set 30 for the amout of days you want
Subject: Re: "aliks0905 We Miss You" Emails ...
if you are confident with php, you can try to create an admin page. you need to define lang vars and create the template file
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1063s (PHP: 17% SQL: 83%)
SQL queries: 10 - Debug Off - GZIP Enabled