Kiran

Forum Replies Created

Viewing 15 posts - 3,031 through 3,045 (of 6,022 total)
  • Author
    Posts
  • in reply to: "add a franchise" #468428

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Add following code snippet to display “Add Franchise” link above the user dashboard links.

    
    
    /**
     * Display add franchise link under user dashboard widget.
     */
    function gd_snippet_190212_dashboard_links( $dashboard_links ) {
    	global $gd_post;
    
    	if ( ! ( function_exists( 'geodir_franchise_add_franchise_link' ) && ! empty( $gd_post->ID ) && is_user_logged_in() && geodir_is_page( 'detail' ) ) ) {
    		return $dashboard_links;
    	}
    
    	$franchise_link = geodir_franchise_add_franchise_link( $gd_post->ID );
    	if ( ! $franchise_link ) {
    		return $dashboard_links;
    	}
    	$franchise_link = '<li>' . $franchise_link . '</li>';
    
    	$dashboard_links = $franchise_link . $dashboard_links; // Display before dashboard links
    	//$dashboard_links .= $franchise_link; // Display after dashboard links
    
    	return $dashboard_links;
    }
    add_filter( 'geodir_dashboard_links', 'gd_snippet_190212_dashboard_links', 20, 2 );

    Kiran

    in reply to: Lost lots of custom fields and images and tables dissapeared! #468420

    Kiran
    Moderator
    Post count: 7069

    Hello Riki,

    GeoDirectory plugins database tables are deleted during plugin uninstall when “Uninstall data” ticked under Uninstall settings. There is no other way to delete database tables from GeoDirectory plugin.

    Please provide site link and admin, FTP credentials so i can check there. Also provide phpMyAdmin database access so i can check database structure & data as well.

    Kiran

    in reply to: myCRED hook… #468415

    Kiran
    Moderator
    Post count: 7069

    Hello Rodney,

    I need to know what action fires when users leave ratings and how can I get that rating value to assign points based on the rating.

    Use following code snippet to get rating stars value on save review.

    
    
    function gd_snippet_190212_after_save_review( $request, $text ) {
    	$rating = (float) $request['geodir_overallrating']; // rating
    	$post_id = (int) $request['comment_post_ID'];       // post id
    
    	// Do stuff here
    }
    add_action( 'geodir_after_save_comment', 'gd_snippet_190212_after_save_review', 10, 2 );

    Thanks,
    Kiran

    in reply to: Details of listing not saving #468405

    Kiran
    Moderator
    Post count: 7069

    Hello Kendra,

    Let us know which CPT has a problem in saving post data? I have successfully created one listing Day Camps.

    Thanks,
    Kiran

    in reply to: Remove 'Tag' from title #468400

    Kiran
    Moderator
    Post count: 7069

    Hello @eic2010,

    Are you using GeoDirectory v1 or v2? Please provide site link & admin credentials, so i can take a look.

    Kiran

    in reply to: Internet Explorer gives popups on edit pages #468399

    Kiran
    Moderator
    Post count: 7069

    Hello Benjamin,

    I tried the website to load with IE, but it shows message “Internet Explorer cannot display the webpage”.

    Kiran

    in reply to: "add a franchise" #468385

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Add Franchise action is displaced under author actions(Edit, Delete) widget etc(see screenshot) which has actions for the viewing listing. User dashboard contains links for users’s listings page, favorites page, profile etc.

    If you add Author Actions widget then it will display “Add Franchise” action on the listing page and under author actions.

    If you still want to display “Add Franchise” under User Dashboard widget, then let me know i will provide snippet for that.

    Kiran

    in reply to: Search submits on category selection #468384

    Kiran
    Moderator
    Post count: 7069

    Hello Gavin,

    Autocomplete finds and shows exact matching results for categories/listings. Choosing that result will takes you to a page depends on that result is a category or a listing.

    There is no easy way to disable redirect on selecting the result. You can use separate category selection box in the search form to search results within particular category or categories.

    Let us know.

    Thanks,
    Kiran

    in reply to: Search Bar not working #468383

    Kiran
    Moderator
    Post count: 7069

    Hello Alphonso,

    I have done some debugging with SEOPress plugin and found that one of feature “Social Networks” conflicts with search functionality. I have tried after disabling this feature from SEO > Social Networks and it worked fine as expected.

    I am checking if it can be fixed from our side. I will update here asap.

    Kiran

    in reply to: Backend language #468374

    Kiran
    Moderator
    Post count: 7069

    Hello There,

    Please provide us a site link and FTP credentials in a private reply. I will take a look how languages are setup.

    Kiran

    in reply to: Translate Near: in the homepage #468373

    Kiran
    Moderator
    Post count: 7069

    Hello Tour,

    This has been fixed already, it will be in next release.

    If you want to fix it now, please provide us FTP credentials to update patch.

    Kiran

    in reply to: Prices and Payment #468372

    Kiran
    Moderator
    Post count: 7069

    Hello Carlos,

    This could be PHP session issue.

    Please add following lines in wp-config.php file in your WordPress root directory. If adding these lines fix the issue then it is sure that problem due to PHP session not supported. To fix session ask your server admin to enable PHP session support.

    
    
    /* PHP SESSION TEMPORARY FIX */
    if ( !defined( 'GEODIR_USE_PHP_SESSIONS' ) ) {
       define( 'GEODIR_USE_PHP_SESSIONS', false );
    }
    if ( !defined( 'WPINV_USE_PHP_SESSIONS' ) ) {
       define( 'WPINV_USE_PHP_SESSIONS', false );
    }
    /* PHP SESSION TEMPORARY FIX */

    If this not resolves issue then provides us FTP credentials to look into more.

    Also i can’t access admin area /wp-admin/, it shows me “The page isn’t redirecting properly”.

    Thanks,
    Kiran

    in reply to: Default image resists to show #467819

    Kiran
    Moderator
    Post count: 7069

    Hello Kai,

    Zip file you attached has no csv file. But i found sample csv file from cache folder from /wp-content/uploads/geodir_temp

    I created category with instructions you provided and imported listing with that category, tried to edit listing/delete listing but can’t replicate issue. See https://unltd.directory/beauty-health/category/test-cat/

    I have asked one of my team member if he can success.

    Thanks,
    Kiran

    in reply to: Social Importer problems #467813

    Kiran
    Moderator
    Post count: 7069

    Hello Katie,

    Actually date are imported with the timezone of the event location. So we have to decide whether to convert it to website site time zone or to as it is displayed on the FB page.

    I will let you know once we fix with this.

    Kiran

    in reply to: Past Events are being counted in gd_categories #467804

    Kiran
    Moderator
    Post count: 7069

    Hello Scott,

    This has been fixed, it will be available in next release of Location Manager & Events.

    Kiran

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