Kiran
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.This reply has been marked as private.
Hello,
Please remove previous changes and add following code in same file at the last.
function geodir_validate_package() { global $preview, $post; if ( isset( $_POST['geodir_spamblocker'] ) && $_POST['geodir_spamblocker'] == '64' && isset( $_POST['geodir_filled_by_spam_bot'] ) && $_POST['geodir_filled_by_spam_bot'] == '' ) { $req_package_id = isset( $_REQUEST['package_id'] ) ? (int)$_REQUEST['package_id'] : ''; $pid = isset( $_REQUEST['pid'] ) ? (int)$_REQUEST['pid'] : ''; $listing_type = isset( $_REQUEST['listing_type'] ) ? (int)$_REQUEST['listing_type'] : ''; $error = false; if ( empty( $pid ) && empty( $req_package_id ) ) { $error = true; } if ( ! $error ) { if ( ! $req_package_id && $pid ) { $req_package_id = geodir_get_post_meta( $pid, 'package_id', true ); } $package_price_info = geodir_get_post_package_info( $req_package_id ); if ( ! ( ! empty( $package_price_info['post_type'] ) && $package_price_info['post_type'] == $listing_type ) ) { $error = true; } } if ( $error ) { wp_die( __( 'Save failed due to invalid package! Cheating huh?', 'geodir_payments' ) ); exit; } } } add_action( 'init', 'geodir_validate_package', 9 );Let us know how it goes.
Kiran
This reply has been marked as private.This reply has been marked as private.Hi Derek,
I checked and it happening from front end only.
Please provide us FTP credentials in a private reply, i need to do some debugging why this happening.
Kiran
Hello,
Try category values without space. ex:
[gd_listings post_type="gd_place" layout="4" category="442,484" post_number="12"]How can I change “Enquiry” for the Email Field (I need it to spell as “Inquiry” or “Send Email”)?
That text can be changed using translation. Please see:
https://wpgeodirectory.com/docs/translating-addons/Thanks,
KiranHello,
Use following pattern in CPT Setting > Custom Field:
.{3,} 3 characters minimum .{5,10} 5 to 10 characters .{0}|.{5,10} Either 0 OR (5 to 10 chars) .{0}|.{8,} Either 0 OR (8 chars minimum) .{0}|.{0,40} Either 0 OR (40 chars maximum)Kiran
Hello,
The pending listing doesn’t appear on the My Listings > CPT though; it says no post
I have selected GeoDirectory post type listings to show in UsersWP profile (Selected post types from UsersWP > GeoDirectory & selected post types from UsersWP > Profile > Choose the tabs to display in Profile). So now listings appears in UsersWP profile (Profile > Listings > Businesses).
But it not showing pending listings seems it is bug. We will investigate and fix it in next release.similarly, how can a logged in user edit their listings they have added previously? I’ve tried using the [gd_dashboard title=”Your Dashboard”] shortcode but that doesn’t show their listings they have added.
I have added widget “GD > Author Actions” from WP Admin > Widgets and now it shows actions like edit/delete on listing detail page sidebar.
I can’t see that option. I’m using v2 if that helps.
In v2 you can enable/disable html editor from CPT > Settings > Custom Fields > Field > Show advanced editor and it extended by CPT > Packages > Package > Click on “Show Advanced” > Disable HTML Editor?
Let us know.
Thanks,
KiranHello @amweb,
Please open your own topic and post Admin & FTP credentials there in private reply.
I will update patch on your site.
Kiran
Hello Philip,
how can users view their pending listings? There doesn’t seem to be an easy way for them to see it?
Users can see pending listings at My Listings page. Choose My Listings > CPT from my dashboard widget.
All invoices will be listed under Invoice History page. To view pending invoices add Invoice History page to admin menu from Menus.similarly, how can a logged in user edit their listings they have added previously? I’ve tried using the [gd_dashboard title=”Your Dashboard”] shortcode but that doesn’t show their listings they have added.
Edit link available for user at view detail page(in sidebar actions) & on My Listings page (under each listing). Please provide admin credentials if you have issue with this.
how do we remove the link ability for fields that are TextArea?
Have you enabled HTML editor with textarea field? If so try to disable HTML editor for textarea field from back end setting. You can disable HTML editor from GeoDirectory > Design > Listings > Untick post type from “Show description field as editor”. Or disable HTML editor via price package setting.
Let us know.
Thanks,
KiranHello,
I don’t see an easy way to distinguish the two calls so to show something only at the page body.. any ideas?
Use any one of following conditions to distinguish
if ( isset( $widget_listings ) ) { // geodirectory-templates/widget-listing-listview.php } else { // geodirectory-templates/listing-listview.php }OR
global $geodir_is_widget_listing; if ( $geodir_is_widget_listing ) { // geodirectory-templates/widget-listing-listview.php } else { // geodirectory-templates/listing-listview.php }Is there an action to add content only in the page body before the listings (preferably even BEFORE the dropdown to chose the view type – list/grid 2/grid 3 etc).
Use hook do_action( ‘geodir_before_listing’ ); and use priority 99. Ex: add_action( ‘geodir_before_listing’, ‘gd_snippet_before_list_view_select’, 99 );
Do you have some kind of documentation/reference for the useful actions (I saw the full list of all functions in the php files which is not very useful).
Please check this: https://wpgeodirectory.com/codex/codex/
Thanks,
KiranHello,
We have release GeoDirectory v2.0.0.39, please update and let us know how it goes.
Please follow this https://wpgeodirectory.com/docs-v2/integrations/font-awesome/#settings
Kiran
Hello Ann,
In url custom field “|” is used to separate link & link label. For example if you use
https://www.mysite.com|My Sitethen on frontend it will use “My Site” as a link label.
If you are using “|” in urls for the purpose other then link label, use “%7C” instead of “|”. Ex:
https://twitter.com/Coppermines?ref_src=twsrc^google%7Ctwcamp^serp%7Ctwgr^authorThanks,
KiranIt looks ok 🙂
-
AuthorPosts