Kiran

Forum Replies Created

Viewing 15 posts - 3,436 through 3,450 (of 6,022 total)
  • Author
    Posts
  • in reply to: Location Randomly Goes back to New York… #457289

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: [gd_listings] with multiple categories #457279

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Currency? #457210

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: [gd_listings] with multiple categories #457202

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Location Randomly Goes back to New York… #457201

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Location Randomly Goes back to New York… #457196

    Kiran
    Moderator
    Post count: 7069

    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

    in reply to: [gd_listings] with multiple categories #457193

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Text custom field #457192

    Kiran
    Moderator
    Post count: 7069

    Hello,

    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

    in reply to: Post has been submitted, preview broken #457191

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Calendar problems #457186

    Kiran
    Moderator
    Post count: 7069

    Hello @amweb,

    Please open your own topic and post Admin & FTP credentials there in private reply.

    I will update patch on your site.

    Kiran

    in reply to: Post has been submitted, preview broken #457179

    Kiran
    Moderator
    Post count: 7069

    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,
    Kiran

    in reply to: Banner on top #457178

    Kiran
    Moderator
    Post count: 7069

    Hello,

    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,
    Kiran

    in reply to: GD Version 1.6.32 update issue #457168

    Kiran
    Moderator
    Post count: 7069

    Hello,

    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

    in reply to: Special characters in the twitter URL #457167

    Kiran
    Moderator
    Post count: 7069

    Hello Ann,

    In url custom field “|” is used to separate link & link label. For example if you use

    https://www.mysite.com|My Site

    then 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^author

    Thanks,
    Kiran

    in reply to: Moving event dates – again! #457164

    Kiran
    Moderator
    Post count: 7069

    It looks ok 🙂

Viewing 15 posts - 3,436 through 3,450 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount