× KISS International Help Forum. English language, please.

\"Could not instantiate mail function\"

More
20 Sep 2011 13:08 #4488

The \'Contact\' button cannot be removed by settings, only by changing the code of the function \'getNavigationBar\' in the frontend file \'ksadvertiser.php\'.

Goto function getNavigationBar, and search for the following

case \'contact\':
$buttontext = JText::_(\'Contact\');
$link = JRoute::_(\'index.php?option=\' . $option . $linkItemid . \'&task=contact&id=\'.$row->id);
$img = JRoute::_($live_site.DS.\'components\'.DS.$option.DS.\'images\' . DS . \'icon-16-email.png\');
$msg = JText::_(\'TT Contact\');
$navbar .=\'<li><a href=\"\'.$link.\'\" \'.$warnmessage.\' title=\"\'.$msg.\'\">&nbsp;<img src=\\\'\'.$img.\'\\\' border=\"0\" />&nbsp;\'.$buttontext.\'&nbsp;</a></li>\';
...
Comment the following line out:
$navbar .=\'<li><a href=\"\'.$link.\'\" \'.$warnmessage.\' title=\"\'.$msg.\'\">&nbsp;<img src=\\\'\'.$img.\'\\\' border=\"0\" />&nbsp;\'.$buttontext.\'&nbsp;</a></li>\';
So it will look like this:
//$navbar .=\'<li><a href=\"\'.$link.\'\" \'.$warnmessage.\' title=\"\'.$msg.\'\">&nbsp;<img src=\\\'\'.$img.\'\\\' border=\"0\" />&nbsp;\'.$buttontext.\'&nbsp;</a></li>\';
This will eliminate the \'contact\' button. Please keep in mind that this will be overwritten with any update.


Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.

Please Log in or Create an account to join the conversation.

More
18 Sep 2011 17:39 #4481

OK, I\'ve solved this by installing UddeIM which is incorporated by KSadvertiser seamlessly!

So, how an I remove the \'contact\' menu item in the component as it is now not required?

Cheers

Granular

Please Log in or Create an account to join the conversation.

More
18 Sep 2011 16:00 #4477

Hi Doc et al,

I\'m just working with the latest advertiser (1.5.66) and Joomla 1.5.

I am getting system emails via Joomla for new registrations, both to the user adddress and admin.

But if I attempt to \'Contact the Advertiser\' I get the error message \"Could not instantiate mail function.\" but this shows above the message \"Your message has been sent.\" which is very confusing.

No email ever arrives, except one to admin with the new ad details on ad creation. Which suggests KSadvertiser is able to send mail.

Has anyone else found this?

Cheers

Granular

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.