Jeff
Forum Replies Created
-
AuthorPosts
-
December 8, 2014 at 3:41 pm in reply to: Use shortcode to display search options for a non GD page #23830
Paolo indicated he’s about to put it into the beta bundle if you have access. I don’t know timing beyond that, hopefully Paolo will reply here.
December 2, 2014 at 2:20 pm in reply to: Use shortcode to display search options for a non GD page #23277There is a shortcode add-on that’s mostly complete. I’m about to give it over to Stiofan and Paolo for testing. I’m just documenting it.
Can I ask WHY you want users to login on this other site, rather than the main one? It seems like an over-complication for something that WordPress already handles.
You’re going to run into permissions/security issues possibly and problems with other plugins outside of GeoTheme.
Not yet, but the guys have me working on a shortcode bundle that will be available soon.
Are you thinking of one that acts like the widget?
It’s something I can fix, but actually kind of a bug in GeoDirectory.
The Popular Posts Widget (Generic for everything really), uses this code:
$template = apply_filters( "geodir_template_part-listing-listview", geodir_plugin_path() . '/geodirectory-templates/widget-listing-listview.php' );
And the function geodir_action_search_content_inside which controls the search uses this:
geodir_get_template_part('listing','listview');
, which will ultimately run:
$template = apply_filters( "geodir_template_part-{$slug}-{$name}", geodir_plugin_path() . '/geodirectory-templates/' . $template_name );
The important bit is that both call the filter “geodir_template_part-listing-listview” but with different parameters and no real way for the filter to have context without parsing the initial value. Should it return something for “listing-listview.php” or “widget-listing-listview.php”.
Ideally, they should be different filters.
I’ll be releasing a patch on my side that checks for the “widget” keyword, but ultimately I think it’s a problem in GeoDirectory.
Thanks Stiofan. I appreciate your looking at this.
PS: Not a real bug, but a friendly/frustrated rant about an undocumented change.
For your last point, there’s a function called
geodir_custom_field_save() in custom_fields_functions that you can run on the activation hook. It will permanently save your custom fields.
The structure of it’s array can be see in geodir_create_default_fields() in admin_db_install.php
Drop me an email at jeff at jeffrose dot ca if you need some help.
I’ve said before, the hooks & filters are not everywhere I want them yet, but for the most part I haven’t had to hack core. Except for overriding a template, but that’s built in too.
October 23, 2014 at 2:12 pm in reply to: Fatal error: Call to undefined function geodir_is_geodir_page() #19230I had the same problem everywhere yesterday. After I updated core, even my own plugins were throwing errors. I had to disable them all, let core finish it’s update, then re-enable them all.
I think it’s a timing problem somewhere in the update. Something hasn’t finished or core hasn’t re-activated when the other plugins try to run, and everything bombs.
Can I bump this up? Never saw a response for it.
So the text description is the filename, but stripped?
I’m not talking about the filenames.
Thanks for all the updates guys, it’s very cool.
Is it possible to rename the actual items on the download page to match your list here?
Multilocation = GeoDir Location Manager
Prices and Payments = GeoDir Payment ManagerJust a thought.
Hi Sam:
You can email jeff at jeffrose dot ca to reach me.
You likely won’t find anything much to do this pre-made. It’s custom work for sure.
That said, it’s easy. I can whip up a custom plugin in about 15-20 minutes to do it, IF it’s literally p4 = p1 + p2 + p3.
Cost: $20 for exactly the above. If it’s more complicated, the cost could shift.
I guess I missed the part about displaying “Who” favorited, instead of just a number. How would you want that? Names, avatars (images), or what?
What happens when there are hundreds?
-
AuthorPosts