PDA

View Full Version : Location Finder position



Petrache Nicolae
October 17, 2014, 07:02 AM
In admin area we have the option to show this block below the fields. That works ok only if you use fields groups. If you do not use, the block will show on top of fields wich is wrong. How can we fix it so that it will show bellow all the fields like is set in admin area?

Curtis
October 17, 2014, 08:45 AM
In admin area we have the option to show this block below the fields. That works ok only if you use fields groups. If you do not use, the block will show on top of fields wich is wrong. How can we fix it so that it will show bellow all the fields like is set in admin area?

Hi Petrache,

I've fixed it in your site (http://www.vindeurgent.ro), you can check.
This solution can be used for responsive templates:

1. find file: /plugins/locationFinder/static/lib.js
2. find rows (~116):


if ( lfConfig['containerPosition'] == 'bottom' ) {
$('div#controller_area form table.submit:last').before($('#lf-container'));


3. and replace to:


if ( lfConfig['containerPosition'] == 'bottom' ) {
if ( rlConfig['template_type'] == 'responsive_42' ) {
$('#controller_area .content-padding .submit-cell:last').after($('#lf-container'));
} else {
$('div#controller_area form table.submit:last').before($('#lf-container'));
}

Petrache Nicolae
October 17, 2014, 11:35 AM
Hi Petrache,

I've fixed it in your site (http://www.vindeurgent.ro), you can check.
This solution can be used for responsive templates:

1. find file: /plugins/locationFinder/static/lib.js
2. find rows (~116):


if ( lfConfig['containerPosition'] == 'bottom' ) {
$('div#controller_area form table.submit:last').before($('#lf-container'));


3. and replace to:


if ( lfConfig['containerPosition'] == 'bottom' ) {
if ( rlConfig['template_type'] == 'responsive_42' ) {
$('#controller_area .content-padding .submit-cell:last').after($('#lf-container'));
} else {
$('div#controller_area form table.submit:last').before($('#lf-container'));
}


Hello Curtis. Fix confirmed. Please don't forget to integrate this fix in the next update of the script. Thanks

Curtis
October 17, 2014, 12:04 PM
Hello Curtis. Fix confirmed. Please don't forget to integrate this fix in the next update of the script. Thanks

OK. Thank you for request.

Petrache Nicolae
October 19, 2014, 07:45 PM
OK. Thank you for request.

Hello Curtis. Have found one small issues. When the user is logged in and he edits one of his listings, the block will show after the save button for the changes. That button should show the last one. How can we fix this?

Curtis
October 20, 2014, 03:03 AM
Hello Curtis. Have found one small issues. When the user is logged in and he edits one of his listings, the block will show after the save button for the changes. That button should show the last one. How can we fix this?

Can you give me a user access to check it?

Curtis
October 20, 2014, 09:22 AM
Hi Petrache,

I've updated it, you can check.

1. New changes:


if ( lfConfig['containerPosition'] == 'bottom' ) {
if ( rlConfig['template_type'] == 'responsive_42' ) {
if ( $('#controller_area .content-padding .submit-cell:last').hasClass('buttons') ) {
$('#controller_area .content-padding .submit-cell.buttons').before($('#lf-container'));
} else {
$('#controller_area .content-padding .submit-cell:last').after($('#lf-container'));
}
} else {
$('div#controller_area form table.submit:last').before($('#lf-container'));
}
}

Petrache Nicolae
October 20, 2014, 02:03 PM
Hi Petrache,

I've updated it, you can check.

1. New changes:


if ( lfConfig['containerPosition'] == 'bottom' ) {
if ( rlConfig['template_type'] == 'responsive_42' ) {
if ( $('#controller_area .content-padding .submit-cell:last').hasClass('buttons') ) {
$('#controller_area .content-padding .submit-cell.buttons').before($('#lf-container'));
} else {
$('#controller_area .content-padding .submit-cell:last').after($('#lf-container'));
}
} else {
$('div#controller_area form table.submit:last').before($('#lf-container'));
}
}


Fix confirmed. This is the fix that has to be included in next revision. Thank you Curtis.