1
bushtit
How Can I Remove Comment Controls?
  • 2004/4/6 20:46

  • bushtit

  • Just popping in

  • Posts: 10

  • Since: 2004/4/6 2


Hope this isn't a silly question but I'm a XOOPS newbie.

I would like to remove the comment viewing controls (flat/nested/threaded | oldest first/newest first) from the comment display. Users can make their choice in the Edit Profile screen if they want. What file(s) do I need to edit to get those controls off the comments page?

Thanks in advance for your help, looking forward to being part of the XOOPS community.

2
JackJ
Re: How Can I Remove Comment Controls?
  • 2004/4/6 21:26

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Comments work module by modules, for example you can do this for news: (affects most other modules too depending on the module code)

In yoursite.com/include/comment.view.php

About line 140 change it to something like this to be left with just "Refresh" and "Post Comment":



';
if (!empty($xoopsModuleConfig['com_anonpost']) || is_object($xoopsUser)) {
$postcomment_link = 'comment_new.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode;

$xoopsTpl->assign('anon_canpost', true);
}
$link_extra = '';
if (isset($comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
foreach ($comment_config['extraParams'] as $extra_param) {
if (isset(${$extra_param})) {
$link_extra .= '&'.$extra_param.'='.${$extra_param};
$hidden_value = htmlspecialchars(${$extra_param}, ENT_QUOTES);
$navbar .= '';
}
}
}
if (isset($postcomment_link)) {
$navbar .= ' ';
}
$navbar .= '



3
bushtit
Re: How Can I Remove Comment Controls?
  • 2004/4/6 21:37

  • bushtit

  • Just popping in

  • Posts: 10

  • Since: 2004/4/6 2


Thank you JackJ. This seems to be working well.

4
JackJ
Re: How Can I Remove Comment Controls?
  • 2004/4/6 21:45

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


your welcome, and welcome to Xoops..

5
Brawn
Re: How Can I Remove Comment Controls?
  • 2004/4/13 16:12

  • Brawn

  • Just popping in

  • Posts: 24

  • Since: 2004/4/13


Quote:

JackJ wrote:
Comments work module by modules, for example you can do this for news: (affects most other modules too depending on the module code)

In yoursite.com/include/comment.view.php

About line 140 change it to something like this to be left with just "Refresh" and "Post Comment":


Fantastic! Looks much better this way... thanks

Login

Who's Online

347 user(s) are online (232 user(s) are browsing Support Forums)


Members: 0


Guests: 347


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits