× KISS International Help Forum. English language, please.

\"Could not instantiate mail function\"

Mehr
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.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum
Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.