- Posts: 34
COMMUNITY FORUM
sending email when someone comments
- Tim
-
Topic Author
- Offline
- Junior Member
Less
More
14 years 3 months ago #93304
by Tim
sending email when someone comments was created by Tim
Hello,
Can someone tell me if there is a possibility that when a person gives a comment and someone else is reacting to this comment that the person who added a comment gets an e-mail. I use the not needed to login comment possibility.
Thx
Tim
Can someone tell me if there is a possibility that when a person gives a comment and someone else is reacting to this comment that the person who added a comment gets an e-mail. I use the not needed to login comment possibility.
Thx
Tim
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
Less
More
- Posts: 567
14 years 3 months ago #93305
by Jiliko.net
Replied by Jiliko.net on topic sending email when someone comments
Hi Tim,
You can take a look to this extension but the person has to manually subscribe to receive new comment submission :
k2joom.com/k2-extensions/k2multinotify/k2multinotify-information
Regards,
Olivier
You can take a look to this extension but the person has to manually subscribe to receive new comment submission :
k2joom.com/k2-extensions/k2multinotify/k2multinotify-information
Regards,
Olivier
Please Log in or Create an account to join the conversation.
- Tim
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
14 years 3 months ago #93306
by Tim
Replied by Tim on topic sending email when someone comments
Hello Olivier,
Thank you, I will look at it. I have some other issues, can you maybe help me with that, I get no respons on my discussions.
Thx
TimOlivier Nolbert said:
Hi Tim,
You can take a look to this extension but the person has to manually subscribe to receive new comment submission :
k2joom.com/k2-extensions/k2multinotify/k2multinotify-informa...
Regards,
Olivier
Thank you, I will look at it. I have some other issues, can you maybe help me with that, I get no respons on my discussions.
Thx
TimOlivier Nolbert said:
Hi Tim,
You can take a look to this extension but the person has to manually subscribe to receive new comment submission :
k2joom.com/k2-extensions/k2multinotify/k2multinotify-informa...
Regards,
Olivier
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
Less
More
- Posts: 567
14 years 3 months ago #93307
by Jiliko.net
Replied by Jiliko.net on topic sending email when someone comments
Tim,
Sure, if i can help you...
Olivier
Sure, if i can help you...
Olivier
Please Log in or Create an account to join the conversation.
- Tim
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
14 years 3 months ago #93308
by Tim
Replied by Tim on topic sending email when someone comments
Hi Olivier,
OK, thank. I have the following problem: I want specific articles only readable for registerd users but I want everybody to see the subject of an article. When I am making a menu item with a name like "tim" and I want to forward this menu item to an k2 article that only is used for registered members I get an error page 403. When I do it with the core joomla article manager I am transferred to the login page. Can you tell me why this happens and what I can do about it. I use a seo companent: sh404sef module.
I hope you can help me
Tim
OK, thank. I have the following problem: I want specific articles only readable for registerd users but I want everybody to see the subject of an article. When I am making a menu item with a name like "tim" and I want to forward this menu item to an k2 article that only is used for registered members I get an error page 403. When I do it with the core joomla article manager I am transferred to the login page. Can you tell me why this happens and what I can do about it. I use a seo companent: sh404sef module.
I hope you can help me
Tim
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
Less
More
- Posts: 567
14 years 3 months ago #93309
by Jiliko.net
Replied by Jiliko.net on topic sending email when someone comments
Tim,
It's a normal K2 behaviour. If the item access is set as registered or special, you get a 403 error if you try to display it with a public profile.
What you can do (the easiest way is that all your specific items are in the same category) :
Set item access to 'Public'
set a custom template for the category
set the category to only display item title on category item view options
in the custom template, modify item.php to check if the user access is correct. If access ok, display item information, if not, you can redirect or display a custom error message.
Hope this helps,
Olivier
Tim said:
Hi Olivier,
OK, thank. I have the following problem: I want specific articles only readable for registerd users but I want everybody to see the subject of an article. When I am making a menu item with a name like "tim" and I want to forward this menu item to an k2 article that only is used for registered members I get an error page 403. When I do it with the core joomla article manager I am transferred to the login page. Can you tell me why this happens and what I can do about it. I use a seo companent: sh404sef module.
I hope you can help me
Tim
It's a normal K2 behaviour. If the item access is set as registered or special, you get a 403 error if you try to display it with a public profile.
What you can do (the easiest way is that all your specific items are in the same category) :
Set item access to 'Public'
set a custom template for the category
set the category to only display item title on category item view options
in the custom template, modify item.php to check if the user access is correct. If access ok, display item information, if not, you can redirect or display a custom error message.
Hope this helps,
Olivier
Tim said:
Hi Olivier,
OK, thank. I have the following problem: I want specific articles only readable for registerd users but I want everybody to see the subject of an article. When I am making a menu item with a name like "tim" and I want to forward this menu item to an k2 article that only is used for registered members I get an error page 403. When I do it with the core joomla article manager I am transferred to the login page. Can you tell me why this happens and what I can do about it. I use a seo companent: sh404sef module.
I hope you can help me
Tim
Please Log in or Create an account to join the conversation.
- Warrick Van Den Heever
-
- Offline
- New Member
Less
More
- Posts: 15
14 years 1 month ago #93310
by Warrick Van Den Heever
Replied by Warrick Van Den Heever on topic sending email when someone comments
Would this work?
<?php $user = &JFactory::getUser(); if ( $user->guest):?> <div><?php echo JText::_('Please login to view content');?></div>
<?else;?>
<!-- add content here -->
<?php endif; ?>
<?php $user = &JFactory::getUser(); if ( $user->guest):?> <div><?php echo JText::_('Please login to view content');?></div>
<?else;?>
<!-- add content here -->
<?php endif; ?>
Please Log in or Create an account to join the conversation.
- Warrick Van Den Heever
-
- Offline
- New Member
Less
More
- Posts: 15
14 years 1 month ago #93311
by Warrick Van Den Heever
Replied by Warrick Van Den Heever on topic sending email when someone comments
O.K. went and tried the above it works but I don't know how well as I am not a programmer I worked the code out by looking at the line of code to allow comments. If you are not logged in you won't see this page. I am sure you can modify this to show certain sections of the page by moving the code around.
Create a new K2 template there are tutorials on how to do this.
open item.php found at yourtemplatename/html/com_k2/templatename/item.php
find the following line 10 and 11
// no direct accessdefined('_JEXEC') or die('Restricted access');
place this code after:
<?php $user = &JFactory::getUser(); if ($user->guest):?> <div><?php echo JText::_('Please login to view content');?></div><?php else: ?>
Just above <!-- Start K2 Item Layout -->
then place
<?php endif; ?>
at end of page
Hope this helps seems a lot of people are stuck on this
Create a new K2 template there are tutorials on how to do this.
open item.php found at yourtemplatename/html/com_k2/templatename/item.php
find the following line 10 and 11
// no direct accessdefined('_JEXEC') or die('Restricted access');
place this code after:
<?php $user = &JFactory::getUser(); if ($user->guest):?> <div><?php echo JText::_('Please login to view content');?></div><?php else: ?>
Just above <!-- Start K2 Item Layout -->
then place
<?php endif; ?>
at end of page
Hope this helps seems a lot of people are stuck on this
Please Log in or Create an account to join the conversation.