- Posts: 1
- Thank you received: 0
OS Property support center
Increase 12 photo limit
- Gabi Giulusan
- Topic Author
- Offline
- New Member
-
Less
More
12 years 7 months ago #19214
by Gabi Giulusan
Increase 12 photo limit was created by Gabi Giulusan
Is there any way of increasing the limit for uploading photos/property? I would need 20 insteda of 12
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 7 months ago #19215
by Mr. Dam
Replied by Mr. Dam on topic Re: Increase 12 photo limit
Currently, OS Property doesn't have option to increase the number of photo upload. But you can edit the in the source code
there are 2 files:
1. backend : classes > property.php and classes > property.html.php
2 frontend : classes > listng.php and classes > listing.html.php
Thanks
Dam
there are 2 files:
1. backend : classes > property.php and classes > property.html.php
2 frontend : classes > listng.php and classes > listing.html.php
Thanks
Dam
The following user(s) said Thank You: Gabi Giulusan
Please Log in or Create an account to join the conversation.
- Patrik
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 1
12 years 5 months ago #20294
by Patrik
Replied by Patrik on topic Re: Increase 12 photo limit
Sorry,
i dont understand why gabi said thank u.
i have changend the property.php an property.html.php in root>administrator>components>com_osproperty>classes
and changend listing.php and listing.html.php in root>components>com_osproperty>classes.
In front and backend i have changed these values up to 50, because in need to upload in the frontend and beackend 50 Images!
Now i can add up to 50 images for each property in front and backend.
But it does not save the images!
It only saves 19 Images in Front AND Backend!
Please help anybody! Do i have to change any other file to upload more images?
thx Patrik
i dont understand why gabi said thank u.
i have changend the property.php an property.html.php in root>administrator>components>com_osproperty>classes
and changend listing.php and listing.html.php in root>components>com_osproperty>classes.
In front and backend i have changed these values up to 50, because in need to upload in the frontend and beackend 50 Images!
Now i can add up to 50 images for each property in front and backend.
But it does not save the images!
It only saves 19 Images in Front AND Backend!
Please help anybody! Do i have to change any other file to upload more images?
thx Patrik
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 5 months ago #20296
by Mr. Dam
Replied by Mr. Dam on topic Re: Increase 12 photo limit
Hi Patrik,
You need to edit in the save function also, not only increase the number of html tags.
Thanks
Dam
You need to edit in the save function also, not only increase the number of html tags.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Patrik
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 1
12 years 5 months ago - 12 years 5 months ago #20299
by Patrik
Replied by Patrik on topic Re: Increase 12 photo limit
Hi Dam,
ok, and where can i do this?
thx Patrik
ok, and where can i do this?
thx Patrik
Last edit: 12 years 5 months ago by Patrik.
Please Log in or Create an account to join the conversation.
- Patrik
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 1
12 years 5 months ago - 12 years 5 months ago #20311
by Patrik
^^ Thats not a help for me. ^^
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Spend the last seven hours to search where i can change it.
Please tell me exactly where i have to change which files!
I have changed this:
in file administrator/components/com_osproperty/classes/property.html.php:
if(intval($row->id) > 0){
$j = $i;
}else{
$j = 0;
}
for($i=$j;$i<=24;$i++){
?>
to
if(intval($row->id) > 0){
$j = $i;
}else{
$j = 0;
}
for($i=$j;$i<=50;$i++){
?>
in file administrator/components/com_osproperty/classes/property.php:
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=24;$i++){
$j = $i + 1;
to
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=50;$i++){
$j = $i + 1;
in file components/com_osproperty/classes/listing.php
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=24;$i++){
to
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=50;$i++){
in file components/com_osproperty/classes/listing.html.php
if(intval($row->id) == 0){
//isNew
$total = 12;
}else{
if($row->isFeatured == 1){
$total = 24;
}else{
$total = 12;
to
if(intval($row->id) == 0){
//isNew
$total = 50;
}else{
if($row->isFeatured == 1){
$total = 50;
}else{
$total = 50;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
But in all of these files and in other files i can't find anything to edit the save function.
It is really necessary to enable upload 50 images function in frontend and backend.
Please help anybody. And please tell me where and what i have to change.
thx Patrik
Replied by Patrik on topic Re: Increase 12 photo limit
damdt wrote: Hi Patrik,
You need to edit in the save function also, not only increase the number of html tags.
Thanks
Dam
^^ Thats not a help for me. ^^
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Spend the last seven hours to search where i can change it.
Please tell me exactly where i have to change which files!
I have changed this:
in file administrator/components/com_osproperty/classes/property.html.php:
if(intval($row->id) > 0){
$j = $i;
}else{
$j = 0;
}
for($i=$j;$i<=24;$i++){
?>
to
if(intval($row->id) > 0){
$j = $i;
}else{
$j = 0;
}
for($i=$j;$i<=50;$i++){
?>
in file administrator/components/com_osproperty/classes/property.php:
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=24;$i++){
$j = $i + 1;
to
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=50;$i++){
$j = $i + 1;
in file components/com_osproperty/classes/listing.php
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=24;$i++){
to
//with new photos of the property
$newphoto = JRequest::getVar('newphoto',0);
for($i=$newphoto;$i<=50;$i++){
in file components/com_osproperty/classes/listing.html.php
if(intval($row->id) == 0){
//isNew
$total = 12;
}else{
if($row->isFeatured == 1){
$total = 24;
}else{
$total = 12;
to
if(intval($row->id) == 0){
//isNew
$total = 50;
}else{
if($row->isFeatured == 1){
$total = 50;
}else{
$total = 50;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
But in all of these files and in other files i can't find anything to edit the save function.
It is really necessary to enable upload 50 images function in frontend and backend.
Please help anybody. And please tell me where and what i have to change.
thx Patrik
Last edit: 12 years 5 months ago by Patrik.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 5 months ago #20317
by Mr. Dam
Replied by Mr. Dam on topic Re: Increase 12 photo limit
Hi,
You need to edit in the file
classes > listing.php
Function save($option,$save)
find
for($i=$newphoto;$i<=24;$i++){
and change 24 to 50
the same with backend
classes > property.php
Function save and change number photos
Good luck
Dam
You need to edit in the file
classes > listing.php
Function save($option,$save)
find
for($i=$newphoto;$i<=24;$i++){
and change 24 to 50
the same with backend
classes > property.php
Function save and change number photos
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Patrik
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 1
12 years 5 months ago - 12 years 5 months ago #20325
by Patrik
Replied by Patrik on topic Re: Increase 12 photo limit
Hi Dam,
if you have a look to my message before, i have allready done this!
I have allready changed the function and lines you worte!
But i am not able to save more than 19 images!
There must be an other problem with the component!
thx
Patrik
if you have a look to my message before, i have allready done this!
I have allready changed the function and lines you worte!
But i am not able to save more than 19 images!
There must be an other problem with the component!
thx
Patrik
Last edit: 12 years 5 months ago by Patrik.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 5 months ago #20326
by Mr. Dam
Replied by Mr. Dam on topic Re: Increase 12 photo limit
Please send me your site information with backend account to : damdt@joomservices.com. I will check the problem for you.
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Patrik
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 1
12 years 5 months ago #20328
by Patrik
Replied by Patrik on topic Re: Increase 12 photo limit
done
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.