I want guests users to see login or register links when viewing a topic discussion on group or pages.
like this, "To comment please register or login"
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- jekwumoore@jekwumoore
jekwumoore - 0 likes
- Cash@costelloc
Cash - 0 likes
- jekwumoore@jekwumoore
jekwumoore - 0 likes
You must log in to post replies.Extend Group/Pages/Discussion views where needed with something like :-
You can style the DIV however you fancy.
I only want the link to be displayed, the whole idea of the login form and register form appearing is not cool.
I added the code below in mod/groups/views/default/forum/ in viewposts.php
<?php
if (!isloggedin()){
echo "<a href='http://mysite/go/pg/login/'>login to comment</a>";
}
?>
<?php
if (!isloggedin()){
echo "<a href='http://mysite/go/pg/register/'>or register to comment</a>";
}
?>
like it that way, thanks
So are you saying that you have solved your problem?
yes, I have solved the problem.
But the link shows in one of my sites but does not show on another. I do not know if it has to do with caching or I should run upgrade.php file?