Hi,
thanks for help, it works great. Actually I've tune it a little bit. Now i have a mail icon only when user choose 'notify' option, which i renamed to 'show' option. ALso when I hover over mail icon the popout message shows 'Write message to 'user name'' where user name is changing dynamic.
here is the code:
/* {notify} */
if ($notify==1)
{
if ($this->_item['email'] != "" && strstr($this->_item['email'], "@")){
$html = str_replace('{notify}', "<span id='mailIcon'><a href='mailto:" . $this->_item['email'] . "'>
<img src='/components/com_comment/joscomment/templates/SSlide-emotop/images/mailred.jpg' title='"
. (_JOOMLACOMMENT_NOTIFYTXT1) . $this->profileLink($name, $this->_user_id) ."'></a></span>
|", $html);}
else
{
$html = str_replace('{notify}', "", $html);
}
}
else
{
$html = str_replace('{notify}', "", $html);
}
/*
And here is the web adres of my site where i use this:
http://www.pchela.pl/ARTnewsy/nowy-artyku-na-stron-gown.html
The site is in Polish language but You will get the point
But i need just one more thing:
Can You tell me, how to make notify automatic when user write his email in new post form?
Also if this is posible that user can unsubscribe by clicking in link or something like that? I as admin can unsubscribe users but can they do this in other way, than choose to not notify in new post form?
The hole idea is simple:
- when user put his email, he gets automatic subscribe
- then he can choose to 'show' or 'hide' option (previosly 'notify' don't notify'
- if he choose to show email, other users can write to him as well
- when he gets an email, when new comment is added, at the bottom of email is link to unsubscribe from emails.
I know that this is a lot of questions, but i need to know is this posible.
Thanks in Advance