- Posts: 18
- Thank you received: 0
All popular questions related to OS Property will be posted here
How to change OS Property captcha to numbers only
- Marty
- Topic Author
- Offline
- New Member
Less
More
10 years 5 months ago #46178
by Marty
How to change OS Property captcha to numbers only was created by Marty
I am trying to change the current component captcha from letters/numbers mix to numbers only.
I looked in the component files and it has a folder named .../components/com_osproperty/captcha. But this folder only has 2 files (background image and index.html file).
Where can I find the path to the file that allows me to change captcha configuration?
Thanks.
I looked in the component files and it has a folder named .../components/com_osproperty/captcha. But this folder only has 2 files (background image and index.html file).
Where can I find the path to the file that allows me to change captcha configuration?
Thanks.
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12815
- Thank you received: 1659
10 years 5 months ago #46187
by Mr. Dam
Replied by Mr. Dam on topic How to change OS Property captcha to numbers only
Hi,
To change the captcha from letters to numbers only. Please follow these steps
1. Open file: components > com_osproperty > classes > listing.html.php
2. find
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
$row->ResultStr = $ResultStr;
and replace by
$row->ResultStr = rand(10000,99999);
Good luck
Dam
To change the captcha from letters to numbers only. Please follow these steps
1. Open file: components > com_osproperty > classes > listing.html.php
2. find
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
$row->ResultStr = $ResultStr;
and replace by
$row->ResultStr = rand(10000,99999);
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Marty
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
10 years 5 months ago #46190
by Marty
Replied by Marty on topic How to change OS Property captcha to numbers only
Thank you, this changed the captcha in "Request More Detail" in individual listing view.
How about captcha for company and agent registration?
(P.S.: The code to change captcha for individual listing is in line 1794 of the file)
How about captcha for company and agent registration?
(P.S.: The code to change captcha for individual listing is in line 1794 of the file)
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12815
- Thank you received: 1659
10 years 5 months ago #46191
by Mr. Dam
Replied by Mr. Dam on topic How to change OS Property captcha to numbers only
Hi,
With agent registration, please follow these steps
Open file : components > com_osproperty > helpers > agentregistration.php
find
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
and replace by
$ResultStr = rand(10000,99999);
With company registration, please follow these steps
find
//Random string
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
and replace by
$ResultStr = rand(10000,99999);
Good luck
Dam
With agent registration, please follow these steps
Open file : components > com_osproperty > helpers > agentregistration.php
find
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
and replace by
$ResultStr = rand(10000,99999);
With company registration, please follow these steps
find
//Random string
$RandomStr = md5(microtime());// md5 to generate the random string
$ResultStr = substr($RandomStr,0,5);//trim 5 digit
and replace by
$ResultStr = rand(10000,99999);
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Marty
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
10 years 5 months ago #46227
by Marty
Replied by Marty on topic How to change OS Property captcha to numbers only
The correct location to change the captcha code is:
Agent Registration: components > com_osproperty > helpers > layouts >agentregistration.php
Line: 217
Company Registration: components > com_osproperty > helpers > layouts >companyregistration.php
Line: 163
Request More Detail (Listing View): components > com_osproperty > classes > listing.html.php
Line: 1794
Thank you.
Agent Registration: components > com_osproperty > helpers > layouts >agentregistration.php
Line: 217
Company Registration: components > com_osproperty > helpers > layouts >companyregistration.php
Line: 163
Request More Detail (Listing View): components > com_osproperty > classes > listing.html.php
Line: 1794
Thank you.
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2024 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.