- Posts: 363
- Thank you received: 25
OS Property support center
Need visitors to make more than one comment
- Stephen
-
Topic Author
- Offline
- Platinum Member
-
Less
More
9 years 11 months ago #63190
by Stephen
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Need visitors to make more than one comment was created 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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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
and replace by
Thanks
Dam
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
-
Less
More
- Posts: 363
- Thank you received: 25
9 years 11 months ago #63252
by Stephen
If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
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.
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
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 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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.