Rating & Comment

More
13 years 2 weeks ago #20214 by harky
Rating & Comment was created by harky
Hi,
i understand that rating is included in the plugin.

may i know what abt comment? how can i add the comment under the rating? or i need to d/l a extension?

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

More
13 years 2 weeks ago #20215 by ggppdk
Replied by ggppdk on topic Rating & Comment
Inside your template folder, edit the file item.php (it creates the html of each item):
e.g.
components/com_flexicontent/templates/mytemplate/item.php

FIND the code that creates the comments:
Code:
<!-- BOF comments --> <?php if ($this->params->get('comments') && !JRequest::getVar('print')) : ?> ... ... <!-- EOF comments -->
Find the template position that you have inserted the ratings field (the field name is voting) and then move the above code just after the lines
Code:
<div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div>

Finally alter the line:
Code:
<?php if ($this->params->get('comments') && !JRequest::getVar('print')) : ?>
to:
Code:
<?php if ($field->name=='voting' && $this->params->get('comments') && !JRequest::getVar('print')) : ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
13 years 1 week ago #20316 by harky
Replied by harky on topic Rating & Comment
hi , i installed jcomments
do i still need to put these code in?

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

More
13 years 1 week ago #20321 by ggppdk
Replied by ggppdk on topic Rating & Comment
No, the changes were just if you want the comments to appear in page in a different place (bellow ratings), otherwise make no changes and comments will appear at the bottom.

Don't forget to enable comments in FLEXIcontent's Global Configuration, and then you can toggle this setting on/off per category (in the category parameters)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
13 years 1 week ago #20348 by johnlewisdesign
Replied by johnlewisdesign on topic Rating & Comment
On this note, how would I (1) show and (2) expand commments by default in the category view? I need all comments showing without any clicks, but am yet to find ONE commenting solution that allows it. I have category comments on, and I also have the global comments on. No comments showing at all.

Thanks!

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

More
13 years 1 week ago #20410 by ggppdk
Replied by ggppdk on topic Rating & Comment
To make it expand you could call the javascript that is on the onclick event when the page finishes loading.

For example to make open the comment submit form
Put the following in the item.php of your template

<?php
$opencomments_js = "
var box = {};
window.addEvent('domready', function(){
jcomments.showForm(".$this->item->id.",'com_flexicontent', 'comments-form-link');
});
";
$document
$document->addScriptDeclaration($opencomments_js);
?>

The comments are not displayed in category view, the setting you say is meant to be inherited by items for their item view.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.143 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline