PDA

View Full Version : Realty nova map and Realty nova teaser



Wei Hong
August 18, 2020, 06:34 AM
So I downloaded the realty nova and have no idea how to change to realty nova map like one in demo
https://realty.demoflynax.com/

It show the layout of Realty Nova Teaser, any idea?

Rudi
August 18, 2020, 07:45 AM
Hello Wei,

You can enable it in Basic Settings > Maps/Geocoding

Wei Hong
January 13, 2021, 08:45 AM
Hello Wei,

You can enable it in Basic Settings > Maps/Geocoding

Hi Rudi,

I did went there but there is only setting for map module. How do I make it show map search on home page like this?
4006

Rudi
January 13, 2021, 08:58 AM
Hi Wei,

check this setting also in General section

or try to download realty_nova template again from your customer area and upload it to your site package

Wei Hong
January 26, 2021, 07:30 AM
Hi Wei,

check this setting also in General section

or try to download realty_nova template again from your customer area and upload it to your site package

Hi Rudi,

So after scratching my head a few times I realized that it doesnt show the options to turn on Realty Nova Map is because my default scripts is classified ads. My other site is realty script and it has that option in admincp. Is there anyway if I can turn it on on my classified ads by editing setting in template folder or scripts?

Thanks

Rudi
January 26, 2021, 09:29 AM
Try to switch to some other template via Basic Settings > Template

and set realty_nova template back

to activate the settings from templates > realty_nova > settings.tpl.php

Wei Hong
January 26, 2021, 05:01 PM
Try to switch to some other template via Basic Settings > Template

and set realty_nova template back

to activate the settings from templates > realty_nova > settings.tpl.php

Hi Rudi,

I did try 3 templates from realty script: realty_map, realty_wide, then I switch back to realty_nova. Still no option as show in my other realty script. In my 4.8.1 fresh installed realty script under Maps/Geocoding tab there is the option:
Map search on homepage
4028

In my classified script, the tab Maps/Geocoding is instead show Google Maps, this is because I have been using this script since 4.6 and just updated to 4.8.1 steps by steps of course. I have been doing updates many times before. Changing template from Realty_map, realty_wide then back to realty_nova wont show that option:
4029

So I think may be the realty script has some configuration that the classified ads dont have. I tried to look into the realty_nova template: settings.tpl.php


array(
'Group_ID' => 14,
'Position' => 10,
'Key' => 'home_map_search',
'Default' => '0', <--- I changed this to 1
'Type' => 'bool',
'Plugin' => 'nova_template'
)
Change the default value to 1 was not working also. Is there anything else I should try?

Rudi
January 27, 2021, 12:36 PM
Ok, run these sql commands:



INSERT INTO `fl_lang_keys` (`Module`, `Code`, `Key`, `Value`) VALUES
('admin', 'en', 'config+name+home_map_search', 'Map search on home page');




INSERT INTO `fl_config` (`Group_ID`, `Position`, `Key`, `Default`, `Type`, `Plugin`) VALUES
(14, 10, 'home_map_search', '0', 'bool', 'nova_template');




DELETE FROM `fl_hooks` WHERE `Name` = 'apTplContentBottom' AND `Plugin` = 'nova_template';

INSERT INTO `fl_hooks` (`Name`, `Plugin`, `Class`, `Code`, `Status`) VALUES
('apTplContentBottom', 'nova_template', '', 'global \$controller, \$config;\r\n\r\nif (\$controller != ''settings'') return;\r\n\r\n\$out = <<< JAVASCRIPT\r\n<script>\r\n(function(){\r\n var option = function(){\r\n var row = \$(''#home_map_search_1'').closest(''tr'');\r\n var name = \$(''select[name=\"post_config[template][value]\"]'').val();\r\n\r\n if (name == ''realty_nova'') {\r\n row.show();\r\n } else {\r\n row.hide();\r\n }\r\n }\r\n\r\n option();\r\n\r\n \$(''select[name=\"post_config[template][value]\"]'').change(function(){\r\n option();\r\n });\r\n})();\r\n</script>\r\nJAVASCRIPT;\r\n\r\necho \$out;', 'active');
`