Page 1 of 1

Email notification customization (Phoca Download 1.3.7)

Posted: 02 Feb 2011, 15:32
by Zhah
Hi there!

Could someone help me to customize upload notification emails?
I've already found where is to edit. It's in "administrator/components/com_phocadownload/helpers/phocadownload.php".
There i have found out how to edit text in message and how to hide some other stuff (like IP, website and date).

What i want to do is to place category name of uploaded file in this email.
I know that to do it there must be something like "$categoryname" in this string:

Code: Select all

#1441:      $messageText 	= JText::_( 'File') . ' "' .$fileName . '" '.JText::_('was uploaded by'). ' '.$name . $userName.'.';
And i also understand that i need to put there a function to get category name from database, but i don't know how to do it, because i don't know PHP :(

It would be great if someone can help me.

Please help me.

Re: Email notification customization (Phoca Download 1.3.7)

Posted: 05 Feb 2011, 19:01
by Jan
Hi, not allready on my PC so cannot look at the code and give any advice :-(

Try to see Phoca Guestbook email function - there are e.g. some parts you can use (getting the ip, etc.)

Jan

Re: Email notification customization (Phoca Download 1.3.7)

Posted: 07 Feb 2011, 10:51
by Zhah
Thanks Jan, I'll take a look

Re: Email notification customization (Phoca Download 1.3.7)

Posted: 08 Feb 2011, 15:49
by Zhah
I have looked through phoca guestbook files and unfortunately didn't find anything that could help me.
The topic question still remains.

Please someone help me.

Re: Email notification customization (Phoca Download 1.3.7)

Posted: 13 Feb 2011, 01:18
by Jan
See:
components/com_phocaguestbook/controllers\phocaguestbook.php

there is the email function.

Jan