OS Property support center

Need visitors to make more than one comment

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 11 months ago #63190 by Stephen
Hi
As far as I know it, visitors can only make one comment to each property.

I need that my visitors can make unlimited comments on properties (with OSP default commenting system).
This is because I like my visitors to also rate the properties.

In JComments there arn´t any ratingsystem, as far as I know about, so JComments isn´t an option for me.

Question: How can I make it so my visitors can write unlimited comments on properties and also use the rating system?

All help is appriciated.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

More
9 years 11 months ago #63202 by Mr. Dam
Replied by Mr. Dam on topic Need visitors to make more than one comment
Hi Stephen,
You can make the modification to allow Joomla registered user to be able to add more than one comment for property. Please follow these steps.
1. Open file: components > com_osproperty > classes > listing.html.php
2. find
Code:
$user = JFactory::getUser(); $can_add_cmt = 0; if($user->id > 0){ $db->setQuery("Select count(id) from #__osrs_comments where pro_id = '$row->id' and user_id = '$user->id'"); $already_add_comment = $db->loadResult(); if($already_add_comment > 0){ $can_add_cmt = 0; }else{ $can_add_cmt = 1; } }

and replace by
Code:
$user = JFactory::getUser(); $can_add_cmt = 0; if($user->id > 0){ $can_add_cmt = 1; }

Thanks
Dam

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 11 months ago #63252 by Stephen
Replied by Stephen on topic Need visitors to make more than one comment
Hi
I must have Done sametinget wrong here.
Arter doping the change's the comments form does not show up.
Any ideas why this hoppens?

If you need access to the site you already have the login credentials.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

More
9 years 11 months ago #63257 by Mr. Dam
Replied by Mr. Dam on topic Need visitors to make more than one comment
Hi Stephen,
Please submit ticket and resend your site information with super admin acc. We don't store customer's site information
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan