[BETA 4] Calendar Alerts MOD v0.0.4

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Thanks plasmino, I've updated the first post :D
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

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.
Marije
Greenhorn
Greenhorn
Posts: 3
Joined: Wed Jul 28, 2010 8:42 pm

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?
Marije
Greenhorn
Greenhorn
Posts: 3
Joined: Wed Jul 28, 2010 8:42 pm

Does anyone know these anwers?
User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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 :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Marije
Greenhorn
Greenhorn
Posts: 3
Joined: Wed Jul 28, 2010 8:42 pm

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.
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

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.
User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Hi pluto, have you uploaded ucp_alerts.html to styles/acidtech/template/ :?:
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

Yes, this file "ucp_alerts.html" is indeed in: styles/acidtech/template/

Thank you.
User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

What about confirm_body.html?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

confirm_body.html is OK also, It's just the cancellation :|
Otherwise the mod to work perfectly 8)

Edit: I did a test on your forum and when I delete an alert and click cancel I get a blank page.
User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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:

Code: Select all

else
{
 trigger_error('Test');
}
Now try it, you should get the message 'Test' (if this works then I will give you the redirect code :))
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

Indeed, when I click the little X to delete the word "test" appears :)

Thank you.
User avatar
battye
Site Admin
Site Admin
Posts: 14383
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Now replace the line:

Code: Select all

trigger_error('Test'); 
With

Code: Select all

redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", "i=alerts&mode=alerts")); 
Does that fix it? :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
pluto
Greenhorn
Greenhorn
Posts: 14
Joined: Fri Jul 16, 2010 8:14 pm
Location: France

No sorry, nothing happens, this has no effect :|
Note: I do not have the phrase "Are you sure you want to delete this alert?"
Post Reply