adyp
Forum Replies Created
-
AuthorPosts
-
August 21, 2017 at 2:27 pm in reply to: Add Listing page text getting truncated on 1 CPT only #392177This reply has been marked as private.
Hi Guust,
yes I did. I have managed to use widget logic to target slideshow widgets by country for search results based on country when using Location Selector, but this does not work on search result pages using geo-location (e.g., the /me page). (nor can location country be used to set widget logic on non gd pages).
I have discussed this on another thread – it is 3 pages long, but the last page sets out the issue:
https://wpgeodirectory.com/support/topic/the-me-location-page-from-near-me-button/page/3/It is because it is not a support issue that I am putting it ‘out there’ to see if any other gd users have an idea how to do this.
Thanks,
Adrian
August 17, 2017 at 9:14 am in reply to: Highlight/Colour for active tab in Location Selector #391634That worked fantastically well – I doubled it to 16px and now it looks great, even the most squinty-eyed will be able to see that!
Thanks Paolo
August 16, 2017 at 5:29 pm in reply to: Highlight/Colour for active tab in Location Selector #391499Thanks Paolo – that makes it a little more distinctive.
I’d like it to be about twice the size ideally – though that would mean enlarging the gap between the Country/Region/City box and the Selector box below – would that be straightforward?
August 16, 2017 at 4:45 pm in reply to: Highlight/Colour for active tab in Location Selector #391493I can only see an image ‘down-arrow.png’ in the images folder of the geodir_location_manager plugin – not an image called ‘downarrow-img.png’ – is that what I need to replace?
Is this sourced from a gallery somewhere of different coloured down arrows, where I can find a yellow one? And if so, won’t it just be over-written when Location Manager is next updated?
Thanks,
AdrianAugust 16, 2017 at 10:24 am in reply to: Highlight/Colour for active tab in Location Selector #391430… I put that in custom CSS
August 16, 2017 at 10:23 am in reply to: Highlight/Colour for active tab in Location Selector #391429Thanks Paolo,
I have tried adding
color: yellow;
to that CSS but it makes no change:
.geodir_location_tabs_head .geodir_location_tabs.gd-tab-active { color: yellow; }
Any ideas?
… and it is precisely the fact that you and the rest of the team do offer code snippets that makes GD such an attractive plugin for people like me who are not experts but willing to ‘have a go’ – hiring a developer is not an option for non-profits like me who do not have a budget, and so I (and many others I am sure) would be disappointed if the current policy did change.
Hi Stiofan,
I genuinely am sorry this is causing friction – and do not want you to feel I am ‘punishing’ GD for not resolving this (my WP GD plugin review is the full 5 stars).
For me, an expectation is set in GD Documentation that is not delivered: the page https://wpgeodirectory.com/docs/useful-plugins/#logic sets out how to use the plugin Widget Logic to target widgets (and therefore functionality/content) based on location:
Will show the widget if the location is Queensland:
1strtolower(geodir_get_current_location(array('echo' => false)))==strtolower('queensland')
… but this targeting based on location will not work with if the search is based on geolocation. It is therefore not correct to state in that documentation that “we know the [plugins] listed here all work without any conflict with GD” in the case of location logic.
This means I am unable to target widget functionality or content based on location if I want to make use of one of the main functions (geolocation) of a location-based directory. This is not an irrelevant issue with a multi-location based directory: it prohibits location-based advertisement slideshows/content unless you are willing to live without geolocation.
Now, perhaps if my expectation hadn’t been raised by the promise (location-based widgets) made in the documentation I might not have pursued this issue (although now location-based widgets is something that I want to achieve).
I realise that there are reasons for you wanting the ‘Near Me’ functionality to work the way it does, but I would have thought it could carry on working the way it does while also returning a variable/value for geolocated country location of the searcher that can be used in Widget Logic.
We differ in where we see the boundary between paid-for-customization and support to tidy up existing functionality – if I my expectations are too high that only reflects the high level of assistance that is usually provided on the forum (and you might want to add a caveat or two on the GD documentation on using location in Widget Logic – so as to avoid others traveling the frustrating path I am on with this).
Best wishes,
AdrianI am sorry you feel that Stiofan – we obviously have different pictures of the specification of the request:
1.
There is no location set when doing this kind of search
I agree, there is not at present – I was asking that the Near Me/geolocation search be augmented to return the Country in which the geolocation is located;
2.
The search results page might include results from several countries and you want to just specify one, logically what you want will not work, its nothing to do with the product
what I have requested is the one country that the searcher is geolocated in that I require – that is perfectly logical – and I have explained that it is not a problem if results from nearby countries are included..
– I am sorry to have to come back on this thread again – but I will do so again if my request is mis-represented!
It is not a 100% customisation – just for me. This would benefit many – I have noticed several similar requests – e.g., for session locations set even after visiting non-gd pages, and for location to be stored in a cookie between sessions. Clearly other members have issues working with location of visitors.
I don’t want this to degenerate into a perceived knocking of GD – I still maintain that GD is the best on the market with excellent support – it’s just that this issue is proving a real nuisance.
Adrian
For anyone who finds this thread looking to address this issue, here is how I resolved it:
Forced to choose between looking to grow/monetize my directory with country specific cross-promotions and adds using Widget Logic to display slideshows in appropriate country search results OR having geolocation (i.e., Search Near Me – in search bar or widget) – I had to ‘bite the bullet’ and stop visitors being geolocated and accessing geolocation search results.
To do this, I removed the Near Me widget fro my site and used the following additional css to remove the ‘Near Me’ option from search bar:
div.gd-advanced-s-menu-near {display: none;}
I had to do this because GD support does not stretch to showing how to display country specific widgets using Widget Logic on geolocated (Near Me) search result pages. It’s a shame doing without a key function like geolocation/Near Me searches, but promoting and monetizing the directory have to come first – and there is no way I can strike advertising or cross-promotion deals on a country-by-country basis when I cannot ensure the country-specific adds show for all searches relating to that country.
🙁If anyone figures how to work Widget Logic to display widgets on geolocated search result pages (maybe with a Code Snippet), then perhaps they could post here?
ThanksHi,
I am struggling with this: I tried putting that code (reply
#389928, above) in a code snippet, but it led to a problem, described in a screen:Don’t Panic
The code snippet you are trying to save produced a fatal error on line 1:
Uncaught Error: Call to a member function get_results() on unknown in /var/sites/l/loopyfood.net/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(180) : eval()’d code:1 Stack trace: #0 /var/sites/l/loopyfood.net/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(180): eval() #1 /var/sites/l/loopyfood.net/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(216): Code_Snippets_Edit_Menu->validate_code(Object(Snippet)) #2 /var/sites/l/loopyfood.net/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(97): Code_Snippets_Edit_Menu->save_posted_snippet() #3 /var/sites/l/loopyfood.net/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(83): Code_Snippets_Edit_Menu->process_actions() #4 /var/sites/l/loopyfood.net/public_html/wp-includes/class-wp-hook.php(298): Code_Snippets_Edit_Menu->load(”) #5 /var/sites/l/loopyfood.net/public_html/wp-includes/class-wp-hook.php(323): W
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.
Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.Should it be edited somehow – ideally to allow me to use the same widget logic that is working for locations selected using the Location Selector:
(in_array('united-kingdom', geodir_get_current_location_terms('query_vars'))) or (strtolower(geodir_get_current_location(array('echo' => false)))==strtolower('united-kingdom'))
Thanks,
AdrianThanks Stiofan,
I will spend some time looking at this, although I think it is a little outside my capabilities at the moment.
Adrian
Thanks for debating this Stiofan – I do appreciate it.
I am only planning on using this to select bespoke slide-show widgets for a very small number of most popular countries – all of which will be in the database (e.g., US, UK, Aus, Canada, NZ and maybe eventually half a dozen more. There is a default/global slideshow widget that will run otherwise. Given that, the issues of non-database countries and close-to-border errors do not concern me overly.
With those caveats, shouldn’t it be reasonably straightforward to achieve what I want?
Adrian
Hi Stiofan,
There is no way i can think of that this would work with widget logic.
Please be patient with me, but this is the situation as I see it – please point out the flaw in my reasoning and I will leave it for now:
1. GD contains the coding to have the click of a button return visitor’s country based on geolocation data (if shared) – as happens with the cross-hairs button on the add-listing page DEMONSTRABLY TRUE;
2. Widget Logic is able to use country location to display or not display a widget based on country – this is what I am doing at the moment with widgets on the location pages displayed as a result of using the Location Selector (I have just coded Australia and UK when selected from Location Selector so far as a ‘proof of concept’ – the code for doing this is in GD documentation) DEMONSTRABLY TRUE;
3. If the same functionality (returning geolocated country) that the cross-hairs button demonstrated in 1. is added to the Near Me widget button (in addition to what it currently does) then Widget Logic will be able use that country data (as in 2.) to determine whether a widget appears on the /me page that the Near Me button loads. LOGICALLY TRUE).
I believe that this logic is water-tight. I would be happy to be shown otherwise – or where either of my first 2 premises are false!
Thanks,
Adrian
-
AuthorPosts