- Posts: 14
COMMUNITY FORUM
Want to hide "moderate comments..." on K2 User
- Andrea
-
Topic Author
- Offline
- New Member
Site: artedelviaggio.com
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
modules/k2_login/tmpl
Please Log in or Create an account to join the conversation.
- marjan
-
- Offline
- New Member
- Posts: 5
Thanks
Please Log in or Create an account to join the conversation.
- marjan
-
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- duncan12
-
- Offline
- New Member
- Posts: 3
It can be found in one of two places, depending on whether your login module is the k2 login or the k2 user block. In the first case, the PHP file is where the previous user suggested. You'll need to find that file, crack it open, and comment out the line that looks like this:
<li>
<a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo JRoute::_('index.php?option=com_k2&view=comments&tmpl=component'); ?>"><?php echo JText::_('K2_MODERATE_COMMENTS_TO_MY_PUBLISHED_ITEMS'); ?></a>
</li>
If you are using the k2 user block, it works just the same, except you'll find the file here: modules/mod_k2_user/tmpl/userblock.php
Any text editor will work for you. Just edit out the text/code, save the file, and it should be fine.
Note: if you ever plan to update/upgrade K2, you'll need to learn about overrides. Google it. In short, you copy that file and move it under your template so that K2 won't wipe out your nifty little code changes next time you upgrade.
Please Log in or Create an account to join the conversation.
- baijianpeng
-
- Offline
- Junior Member
But, even if we choose to use Komento component to manage comments for K2, this link still shows up on K2 User module. What is the point to show it there under such an circumstance ?
So, Why not just add a new option in parameters of mod_k2_user like:
Show "moderate comments" link: Yes / No
Such an extra option will make admin easier to work.
Thanks.
www.joomlagate.com
Chinese Joomla! Users Portal
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Hi,
Would you mind posting your suggestion at the K2 repository at github.com/joomlaworks/k2 ?
Please Log in or Create an account to join the conversation.
- baijianpeng
-
- Offline
- Junior Member
Lefteris wrote: @baijianpeng
Hi,
Would you mind posting your suggestion at the K2 repository at github.com/joomlaworks/k2 ?
hi, @Lefteris,
Do you mean that I should post this feature request to Github than here?
Or do you mean that I should code it myself if I need a new feature because you don't have time to do it?
Or do you mean that I should not request any new feature because you are so busy to pay attention to it?
www.joomlagate.com
Chinese Joomla! Users Portal
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Do you mean that I should post this feature request to Github than here?
Please Log in or Create an account to join the conversation.
- baijianpeng
-
- Offline
- Junior Member
www.joomlagate.com
Chinese Joomla! Users Portal
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
We will consider it for the upcoming 2.7 version and let you know on the repo.
Please Log in or Create an account to join the conversation.