i saw this request at wishlist, too, so i made a modification for email sending after a new category added by a user. i am new in php indeed, so if you see any any mistake or absence in the code just write here...
open components/com_phocagallery/views/user/tmpl/default_category.php file:
find this:
Code: Select all
defined('_JEXEC') or die('Restricted access');Code: Select all
global $mainframe;
$uri = &JFactory::getURI();
$fromname = $mainframe->getCfg( 'sitename' );
$mailfrom = $mainframe->getCfg( 'mailfrom' );
$subject = 'A new Gallery Added';
$message="<p>A new category has been added in Phoca Gallery.</p><p>Visit Your Gallery to see new category...</p>";
$message .= '<p><a href="' . JURI::base(). '/index.php?option=com_phocagallery&view=categories">Gallery Categories</a></p>';
Code: Select all
.'<p>'.JText::_('Your category is unpublished').'</p></div>';
Code: Select all
JUtility::sendMail($mailfrom, $fromname, $mailfrom, $subject, $message, "1", "", "", "", "", "");

