Page 2 of 4
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Sat Mar 20, 2010 4:51 pm
by battye
Thanks plasmino, I've updated the first post
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Fri Jul 16, 2010 8:19 pm
by pluto
Hello,
When I want to cancel a deletion warning, I get this error:
Code: Select all
Général error
template->_tpl_load_file(): File ./styles/acidtech/template/.html does not exist or is empty
Thank you to you.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Jul 28, 2010 8:44 pm
by Marije
Hi, great mod!
Perfect for me, who always forgets everything haha
I have 2 questions
Is there a dutch translation?
And can i edit it somehow to make it only for the admin, not the other users?
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Mon Aug 02, 2010 6:27 pm
by Marije
Does anyone know these anwers?
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Tue Aug 03, 2010 10:18 am
by battye
Hi, sorry for the delay in replying. I don't think there is Dutch, every translation I know of is in this post:
http://forums.cricketmx.com/viewtopic.php?f=63&t=4746
And when you say make it only for the admin, do you mean you want alerts to appear only to admins or you want both the "add alerts" page in the UCP
and the alerts on the index to only appear to admins? Just let me know which it is - it is a fairly easy change to implement and I will tell you which code you will need to edit
Thanks for registering at CMX Marije, welcome to the forum
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Tue Aug 03, 2010 11:42 am
by Marije
Thanx for the reply
I want it to be only for admin, both the page in UCP to add an alert, and to see the alert.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Aug 04, 2010 11:56 am
by pluto
pluto wrote:Hello,
When I want to cancel a deletion warning, I get this error:
Code: Select all
Général error
template->_tpl_load_file(): File ./styles/acidtech/template/.html does not exist or is empty
Thank you to you.
Hello,
Person for the solution ?
Thank you very much.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Aug 04, 2010 2:25 pm
by battye
Hi pluto, have you uploaded ucp_alerts.html to styles/acidtech/template/
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Aug 04, 2010 2:40 pm
by pluto
Yes, this file "ucp_alerts.html" is indeed in: styles/acidtech/template/
Thank you.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Aug 04, 2010 2:42 pm
by battye
What about confirm_body.html?
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Wed Aug 04, 2010 2:45 pm
by pluto
confirm_body.html is OK also, It's just the cancellation
Otherwise the mod to work perfectly
Edit: I did a test on your forum and when I delete an alert and click cancel I get a blank page.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Thu Aug 05, 2010 5:00 am
by battye
Try this:
open ucp_alerts.php and find:
Code: Select all
if (confirm_box(true))
{
$sql = "DELETE FROM " . ALERTS_TABLE . "
WHERE alert_id = " . request_var('delete', 0) . "
AND user_id = " . (int) $user->data['user_id'];
$db->sql_query($sql);
// Clear the cache
$cache->destroy('sql', ALERTS_TABLE);
trigger_error( sprintf($user->lang['UCP_ALERTS_DELETE_SUCCESS'], "<a href='" . append_sid($this->u_action) . "'>", "</a>") );
}
After add:
Now try it, you should get the message 'Test' (if this works then I will give you the redirect code
)
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Thu Aug 05, 2010 8:28 pm
by pluto
Indeed, when I click the little X to delete the word "test" appears
Thank you.
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Fri Aug 06, 2010 3:36 pm
by battye
Now replace the line:
With
Code: Select all
redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", "i=alerts&mode=alerts"));
Does that fix it?
Re: [BETA 3] Calendar Alerts MOD v0.0.3
Posted: Fri Aug 06, 2010 4:07 pm
by pluto
No sorry, nothing happens, this has no effect
Note: I do not have the phrase "Are you sure you want to delete this alert?"