View Full Version : Getting rid of MLS field. How?!
webmonkey8
05-26-2005, 07:58 AM
Hello, I've tried to search for this with no avail. How do I get rid of the MLS field in the admin listing template? I do not need it. Any help will be appreciated! :)
mamboindo
05-26-2005, 10:18 AM
Hello, I've tried to search for this with no avail. How do I get rid of the MLS field in the admin listing template? I do not need it. Any help will be appreciated! :)
Hi,
BEFORE YOU DO ANYTHING ON CHANGES!!!!!
SEE MY POST BELOW >>>>
The better question than "HOW?" is "WHY?"
So you don't need the field... then just don't use it
If you go through the software and start editing the code you will end up with a software that is not easily upgraded to new versions of Open-Realty. You will then have to make your changes to every file again. Also, if only some of the files are upgraded you'll probably end up with a slew of errors and start making posts of "OMFG This software sucks I'm getting tons of errors after upgrading" :D
mamboindo
05-26-2005, 12:15 PM
The better question than "HOW?" is "WHY?"
So you don't need the field... then just don't use it
If you go through the software and start editing the code you will end up with a software that is not easily upgraded to new versions of Open-Realty. You will then have to make your changes to every file again. Also, if only some of the files are upgraded you'll probably end up with a slew of errors and start making posts of "OMFG This software sucks I'm getting tons of errors after upgrading" :D
because of the learning process....see below.......and especially: http://support.open-realty.org/showthread.php?t=5922 Fully agree! ;)
mamboindo
05-26-2005, 12:19 PM
Here is your easy solution::
Buy glasses or if you have them upgrade them! :D
Goto :: Edit listing profile template
Choose the field:: MLS + Edit
Scroll down and click at buttom the magic word!!!!! (delete)
(What the heck is MLS anyhow????)
webmonkey8
05-26-2005, 11:24 PM
Thanks for your advice, mamboindo :D I did go to the Edit listing profile template and deleted the MLS field, but the "export to MLS" field is still showing up when I try to add or edit a listing.
Mick - I may try your advice but it's risky since I've messed up before editing the code ;)
mamboindo
05-26-2005, 11:33 PM
Thanks for your advice, mamboindo :D I did go to the Edit listing profile template and deleted the MLS field, but the "export to MLS" field is still showing up when I try to add or edit a listing.
Mick - I may try your advice but it's risky since I've messed up before editing the code ;)
S***, you are right......same happens with this dumbo....I come back at you within a couple of minutes.....bear with me.......I wanna get rit of this too!
OK I am back:: This is a bug! All fields disappear when you delete (just deleted garage size and it does not show up again in edit listing) except for this MLS-whatsoever. It seems to be an important issue so it seems to be code and not a variable which it should be!
Temporary solution till bug fixed (tested and works without head-ache)
goto: ../include/listing_editor.inc.php
find: line 363 - 371
$display .= '<tr>';
$display .= '<td align="right" class="row_main"><b>'.$lang['admin_listings_editor_mlsexport'].'</b><br><div class="small">('.$lang['admin_listings_editor_mlsexport'].')</div></td>';
$display .= '<td align="left" class="row_main">';
$display .= '<select size="1" name="mlsexport">';
$display .= '<option value="no" selected>'.$lang['no'].'</option>';
$display .= '<option value="yes">'.$lang['yes'].'</option>';
$display .= '</select>';
$display .= '</td>';
$display .= '</tr>';
delete those lines and save....done! ;) Please note that Mick is right in the remark about the maintenance as I described as well. You need to make a note that if the next relase is out and the bug is not fixed (?) you need to do it again.
Luck :cool:
webmonkey8
05-27-2005, 12:41 AM
Wow awesome, it worked! Thank you so much! :D
jaredwein
06-08-2005, 08:07 PM
MLS stands for the Multiple Listing Service. It is used by real estate agencys to be able to look up listings from other agencys. It is a sort of large filing cabinet with history of listings and properties and such.
halyfax
08-30-2005, 06:41 PM
someone had asked why anyone would ever want this field to not show.
I think this software is so great I was tring it as a business directory, so when users sign up to add their business (listing) I didn't want the MLS option to be there.
I also think it would be a benifit to be able to delete the field under the template editor
halyfax
08-30-2005, 08:07 PM
I commented out the lines suggested but get this error now
Notice: Undefined index: mlsexport in /home/church/public_html/search/include/listing_editor.inc.php on line 172
this is line 172
$mlsexport = $misc->make_db_safe($_POST['mlsexport']);
annab
08-30-2005, 11:41 PM
There are 3 instances of mlsexport that you need to comment out. There's a similar post somewhere on these forums about it. But make sure to comment out all 3.
halyfax
08-31-2005, 08:11 AM
*Notice*: Undefined variable: mlsexport in */home/user/public_html/OR/include/listing_editor.inc.php* on line *201*
-----------
This may be the third instance, I will keep working on it.
bobsmith
08-31-2005, 12:09 PM
There are 3 instances of the mlsexport codeblock in listing_editor.inc.php -- one for the initial "add listing" form, one for the agent "edit listing form", and one for the admin "edit listing form".
In each case, the form is expected to pass a value for the variable $mlsexport to be processed and saved in the database, so simple commenting out (or deleting) these 3 instances of the code block will produce an error.
What you need instead is to create a hidden field in each of 3 sections that will hidden from the view of the user, while passing the value for $mlsexport to the form parser.
Replace the previously mentioned codes with something like this:
// hack to hide mlsexport select form from users
$display .= '<tr>';
//$display .= '<td align="right" class="row_main"><b>'.$lang['admin_listings_editor_mlsexport'].'</b><br><div class="small">('.$lang['admin_listings_editor_mlsexport'].')</div></td>';
$display .= '<td align="right" class="row_main"></td>';
$display .= '<td align="left" class="row_main">';
//$display .= '<select size="1" name="mlsexport">';
$display .= '<input type="hidden" name="mlsexport" value="no">';
//select size="1" name="mlsexport">';
//$display .= '<option value="no" selected>'.$lang['no'].'</option>';
//$display .= '<option value="yes">'.$lang['yes'].'</option>';
//$display .= '</select>';
$display .= '</td>';
$display .= '</tr>';
MjrGaelic
09-01-2005, 11:03 PM
Just to address the "why use MLS" feature.
While it's not in OR 2.x yet Export to MLS is a very very awesome and powerful feature.
We'll use the following Example.
Joe Realtor works with City Realty. City Realty has a Website, and abouit 50 other agents.
Joe Realtor logs into his website and adds a listing then selects "Export to MLS" and with some database magic his listing is exported to the City Realty site. giving his listing double exposure.
(Assuming of course that both sites are running OR)..
I personally, can't wait for MLS Export in OR 2.x =).
Regards,
Ryan
annab
09-02-2005, 03:51 AM
MLS isn't applicable for all countries. Also, alot of people use OR for other purposes (cars, boats, etc).
In case people are wondering why some people don't want the ML feature on their site.
Joe Realtor works with City Realty. City Realty has a Website, and abouit 50 other agents.
Joe Realtor logs into his website...
You forgot to mention that Joe Realtor has his own website and so does City Realty, both sites being OR sites. ;)
greengiant
09-10-2005, 11:21 PM
I will add a site config option to hide this box if you will create a feature request to remind me. Just mark the request as critical. :)
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.