Login Form

#224 – Missing function in Komento plugin

Posted in ‘BF Auction’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 12 May 2014 16:30 AEST
picht
Joomla! version: 3.3.0
BF Auction 1.5.4

As described earlier i have added the Komento comments to my website.

But when a user recieved a notification email about e new comment or a reply to a comment then the link to the comment in the email was not valid.
It was missing the domain and folder part of the link.
So a link would look like this: index.php?option=com_bfauction_plus&view=bid&id=1#kmt-47
It was missing http://domain.com/foldername

I contacted StackItead and the added the following to /components/com_bfauction_plus\komento_plugin.php

public function getContentPermalink()
	{
		$link = 'http://domain.com/folder/'. $this->_item->permalink_field;

		return $link;
	}


I suppose the domain and folder should be replaced by a variable of some kind.

This change should be added to your next release.

Here is a link to their forum: http://stackideas.com/forums/url-in-email

Regards
Picht
 
Monday, 12 May 2014 21:17 AEST 15'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Thanks Picht, I will definitely include this in the next version. Would you mind testing to see if the following can be used instead of the hardcoded domain.

$link = JURI::base( true ).'/'. $this->_item->permalink_field;

Thanks

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Monday, 12 May 2014 22:53 AEST
picht
Hi Tim

Now the link is:
folder/index.php?option=com_bfauction_plus&view=bid&id=1#kmt-47

I's still missing the domain.com

/Picht
 
Wednesday, 21 May 2014 01:01 AEST
picht
This fixed it:

$link = 'http://'.JURI::getInstance()->getHost().JURI::base( true ).'/'. $this->_item->permalink_field;


/Picht
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top