- Posts: 5
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Remove "My page", "My account" & "Moderate comments to my published items" from login
Remove "My page", "My account" & "Moderate comments to my published items" from login
- Alex Ragozzino
-
Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- zeeshan masud
-
- Offline
- New Member
- Posts: 3
Otherwise tell me method how i can remove it from my user page like joomla provide feature in user menu to remove options .Anyone help me plz.
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
This was a bug, which was fixed several months ago and is no longer an issue.
Check your main K2 parameters.
@Alex. You need to create a K2 User Group, in there, you will be able to set what permission users have.
Then assign user to that group.
You can also make that the default group that new registrations are set to as well.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Alex Ragozzino
-
Topic Author
- Offline
- New Member
- Posts: 5
The page I was concerned about is the one after you login. I did set up a user group to disable all permissions. What I don't want is the user to be able to see any other link, i.e.
* My page
* My account
* Moderate comments to my published items
Essentially what I'm trying to set up is a user with no privileges (other than access to registered articles) as it's been set up as a shared user name for more than one person to have access to. As a result I do not want want them to be able to change passwords or email addresses. The moderate comments link is also redundant if the user has no authoring privileges.
If this is not possible (as I can do this with joomla's permission settings) is it possible to have two login modules (one for K2 and other for joomla's built in login?
Thanks,
Alex
Please Log in or Create an account to join the conversation.
- Jeff Swope
-
- Offline
- New Member
- Posts: 9
/modules/mod_k2_login/tmpl/userblock.php and go to lines 47-49 and remove the bullet points and everything in between.
Alex said:Hi Simon,
The page I was concerned about is the one after you login. I did set up a user group to disable all permissions. What I don't want is the user to be able to see any other link, i.e.
* My page
* My account
* Moderate comments to my published items
Essentially what I'm trying to set up is a user with no privileges (other than access to registered articles) as it's been set up as a shared user name for more than one person to have access to. As a result I do not want want them to be able to change passwords or email addresses. The moderate comments link is also redundant if the user has no authoring privileges.
If this is not possible (as I can do this with joomla's permission settings) is it possible to have two login modules (one for K2 and other for joomla's built in login?
Thanks,
Alex
Please Log in or Create an account to join the conversation.
- Alex Ragozzino
-
Topic Author
- Offline
- New Member
- Posts: 5
Jeff Swope said:All I wanted was the moderate comments off. Here's how i did it, but you could do the same for the rest. /modules/mod_k2_login/tmpl/userblock.php and go to lines 47-49 and remove the bullet points and everything in between. Alex said:Hi Simon, The page I was concerned about is the one after you login. I did set up a user group to disable all permissions. What I don't want is the user to be able to see any other link, i.e. * My page * My account * Moderate comments to my published items
Essentially what I'm trying to set up is a user with no privileges (other than access to registered articles) as it's been set up as a shared user name for more than one person to have access to. As a result I do not want want them to be able to change passwords or email addresses. The moderate comments link is also redundant if the user has no authoring privileges.
If this is not possible (as I can do this with joomla's permission settings) is it possible to have two login modules (one for K2 and other for joomla's built in login?
Thanks,
Alex
Please Log in or Create an account to join the conversation.
- Mircea Rusu
-
- Offline
- New Member
- Posts: 6
I want the visitors to register in order to be able to comment the k2 articles but not to post an item as a registered user.
For that, i made a user group named "commenters" and i set the default user group upon registration to be "commenters"
I did check global settings for comments to "enabled to registered users only".
In back end, the "commenters" group is having the following rights:
Post comments Yes
Front-end item editing No
Add items No
Edit own items No
Edit any item No
Publish items No
So far everything looks OK!
Now the logical Bug:
after login with a new test account i have the following options:
* My page
* My account
* Moderate comments to my published items ???????? What published items? i did NOT give any rights to publish items to the "commenters" group, as a result this link is going to a blank page ( i mean a empty table)
Maybe a link to My comments will be a logical approach, even for users with item posting rights.
i have to admit that i do not have a Post new item link but it seems that you have forgotten if the user is not having the right to post items he cannot moderate items that cannot be created.
I'm using K2 v2.3
Simon Wells (K2 Support) said:@Zeeshan, which version of K2 are you using? This was a bug, which was fixed several months ago and is no longer an issue. Check your main K2 parameters.
@Alex. You need to create a K2 User Group, in there, you will be able to set what permission users have.
Then assign user to that group.
You can also make that the default group that new registrations are set to as well.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
If Not $user->usergroup=="group with no rights"
32
.
.
50
endif
I think the addition of something like this would both, clean the screen when a group with no rights logged in and also display it for the rest, and not break the deafult logic.
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
A full way would be for the code to check the users privileges first, then either display or hide the links.
@Alex, If that is the case, then it should be logged as a bug in the bug forum instead.
@William, Time permitting, I will try and reuse some other code that checks users level.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Simon Wells (K2 Support) said:@Jeff, The suggestion is valid, but will disable those links for ALL users, so it is a part solution. A full way would be for the code to check the users privileges first, then either display or hide the links.
@Alex, If that is the case, then it should be logged as a bug in the bug forum instead.
@William, Time permitting, I will try and reuse some other code that checks users level.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- dancing buddha
-
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.
- Remy Joaquim
-
- Offline
- New Member
- Posts: 8
How can i remove the button "Moderate comments to my items" in user module ?
Regards
Please Log in or Create an account to join the conversation.
- rick_blaine
-
- Offline
- New Member
- Posts: 6
Remy Joaquim said:I have edited some code but without success. How can i remove the button "Moderate comments to my items" in user module ?
Regards
Please Log in or Create an account to join the conversation.
- Neil Forrester
-
- Offline
- Junior Member
- Posts: 25
#rightcol div.module_menu div.k2UserBlock ul.k2UserBlockActions li a.modal{display:none;}
The only downside of this is that it will hide the code / link for all users in theK2 login module. But if you only have registered users it a work around that's easy to implement without too much hacking about :)
Please Log in or Create an account to join the conversation.
- Refrito
-
- Offline
- New Member
- Posts: 4
$tipos_usuarios = array("Author","Editor","Publisher");if (in_array($user->usertype,$tiposusuarios)){
.. show the "moderate comments" link
}
Please Log in or Create an account to join the conversation.
- NintendoNerds
-
- Offline
- Senior Member
- Posts: 55
I must apologize that the code is compressed.
Refrito said:
I solved the problem editing the /modules/mod_k2_login/tmpl/userblock.php around line 40:
$tipos_usuarios = array("Author","Editor","Publisher");if (in_array($user->usertype,$tiposusuarios)){
.. show the "moderate comments" link
}
Please Log in or Create an account to join the conversation.
- NintendoNerds
-
- Offline
- Senior Member
- Posts: 55
Please Log in or Create an account to join the conversation.
- NintendoNerds
-
- Offline
- Senior Member
- Posts: 55
Please Log in or Create an account to join the conversation.
- NintendoNerds
-
- Offline
- Senior Member
- Posts: 55
Please Log in or Create an account to join the conversation.
- Refrito
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Remove "My page", "My account" & "Moderate comments to my published items" from login