Vote and Comments not showing

  • Posts: 441
  • Thank you received: 24
11 years 8 months ago #138459

-- HikaShop version -- :2.3.1
-- Joomla version -- :3.2

i´ve chosen display in tabs for products and activate vote and comment, , i choose only registered user can publish and when you are not legged you cant see publis a comment wich is obvious, but the people perhaps dont know that you need to be registered, is ther an option im missing to display a text log in or register to publish comments, thanks!!.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #138657

Hi,

Actually the message is only displayed when the user try to post a comment.
To change the way it the comments are displayed, you can edit the view "vote / form" in order to add a message or hide the textarea when the user is not logged in.

I add in my todo list to change the way it's displayed when user not logged.

Please Log in or Create an account to join the conversation.

  • Posts: 441
  • Thank you received: 24
11 years 8 months ago #138666

Thaths what i mean if a set it to registered there is no form or anything to fill in and no button or action to get the message.
if i set it to registered the leave a comment form is not showing

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #138668

So you have to remove the if condition in the view to display the form:

 && empty($hide)

Or add a else to display what you want.

Please Log in or Create an account to join the conversation.

  • Posts: 64
  • Thank you received: 7
9 years 4 months ago #239974

Xavier wrote: So you have to remove the if condition in the view to display the form:

 && empty($hide)

Or add a else to display what you want.


I would like the tab to be hidden when not logged in. It is quite pointless to show an empty tab. How do I do this?

Please Log in or Create an account to join the conversation.

  • Posts: 84312
  • Thank you received: 13701
  • MODERATOR
9 years 4 months ago #240000

Hi,

You can change the code:

<li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('PRODUCT_NEW_COMMENT');?></li>
to:
<?php if($this->config->get('access_vote',0) != 'registered' || hikashop_loadUser()){ ?><li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('PRODUCT_NEW_COMMENT');?></li><?php } ?>
in the file "show_tabular" via the menu Display>Views

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum