Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    I’ve enabled recaptcha – if i turn it off then cf7 says its not secure and doesnt work, so ive got to use that.
    I can send emails from the server so its got to be cf7 with the issue?

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    That is what is happening.

    Any idea what I would need to put so that

    /shop/cat1/subcat1/subsubcat1/ 
    
    becomes
    
    /shop/cat1/subcat1/
    
    and
    
    /shop/cat1/subcat2/subsubcat1/
    
    becomes
    
    /shop/cat1/subcat2/

    basically I want it to remove whatever the subsubcat is on the url so that no matter what the end of the url shows – it would redirect to

    /shop/maincategory/subcategory/

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Ah! so I’ve tried:

    Source:  ^/shop/(.+)/(.+)/
    Target:  /shop/$1/$2/

    but that doesn’t seem to redirect – /shop/cat1/subcat1/subsubcat1/ to /shop/cat1/subcat1/

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Hi,
    Thanks for that – I was thinking I could use

    /shop/$1/$2/.* -> /shop/$1/$2/

    but I’m not sure about the $1/$2 options?

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Hi
    Okay, is there a way to add the current signed in username to the purchase details? This system will only be used by registered members so I want a way to show which username made the order?

    Is that possible?

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    oh, no idea with if it makes a difference but I’m using stripe – however this doesn’t need to be sent to stripe.

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Hi @tonyrobins

    Thank you for that, I’m only using the free version. The issue is when I log in the admin panel, I select WP Vivid -> Backup & Restore, then I select Remote Storage from the top tabs. I select Microsoft OneDrive, then authenticate with OneDrive.

    It switches to Microsoft for me to log in and once I’m logged in, it redirects back to the admin panel with a different url, however at this point it then bounces me and redirects me to the home page of the website so it never gets the authentication.

    I’ve checked all over but I can’t see anything saying cloud storage, so am I missing something?

    I think this is something to do with Rank Math redirects, but even when I disable that it still doesnt authenticate.

    Any ideas?

    Thanks
    Drew

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    @jarryd-long

    Ah! Sorry, I’ve emailed Kim to see what sort of level of support is offered with the paid for support – I was thinking this would be a paid support question. Can you just confirm if the paid for support would be able to resolve this issue for me? (I’m sure there will be many more)

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    @jarryd-long

    Thanks for replying. I was thinking of using pods with Panda Pods Repeater Fields but it seems to be fighting me. I might have to try and look at some custom code.

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Ah ok, thank you for pointing me to them, I guess I’ve asked the wrong question – I’m trying to understand how the WP Query works – I’ve just written this

    function featured_property_function( $query ) {
    
    	// Get current meta Query
    	$meta_query = $query->get( 'meta_query' );
    
    	// If there is no meta query when this filter runs, it should be initialized as an empty array.
    	if ( ! $meta_query ) {
    		$meta_query = [];
    	}
    
    	// Append our meta query
    	$meta_query[] = array([
    		array(
    		'key' => '_featured',
    		'value' => [ 'yes' ],
    		'compare' => 'in',
    			),
    		array(
    		'key' => '_on_market',
    		'value' => [ 'yes' ],
    		'compare' => 'in',
    			),
    		]);
    
    	$query->set( 'meta_query', $meta_query );
    
    }
    add_action( 'elementor/query/featured_filter', 'featured_property_function' );

    And Its worked – so I’m trying to work out how I can make a query that takes a url for a search query – such as ‘?minimum_rent=&maximum_rent=&minimum_bedrooms=0&maximum_bedrooms=5&furnished=&department=residential-lettings’ and then lets me query my posts using the information in that url.

    Hi @addonmaster
    Has this been added yet? This would be exactly what I needed ??

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    perfect thank you ??

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    Hi there,

    I added your code and by changing the field names etc I managed to get it working.
    I’ve stripped out a lot of the code as I simply want a page that looks to see if I’m editing the page or not – if im not then display the profile, if I am then display the form.

    My current code is:

    <?php if ( ! defined( 'ABSPATH' ) ) exit;
    /* Template: FSA Profile Page */
    ?>
    
    <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?> um-role-<?php echo esc_attr( um_user( 'role' ) ); ?> ">
    
    	<div class="um-form" data-mode="<?php echo esc_attr( $mode ) ?>">
    
    		<?php
    		do_action( 'um_profile_before_header', $args );
    		if ( um_is_on_edit_profile() ) { ?>
    			<form method="post" action="">
    		<?php }
    		do_action( 'um_profile_header_cover_area', $args );
    		do_action( 'um_profile_header', $args );
    
    		 $classes = apply_filters( 'um_profile_navbar_classes', '' ); ?>
    
    	<div class="um-profile-navbar <?php echo esc_attr( $classes ); ?>">
    		<?php
    		do_action( 'um_profile_navbar', $args ); ?>
    			<div class="um-clear"></div>
    	</div>
    		<?php
    		do_action( 'um_profile_menu', $args );
    
    		if ( um_is_on_edit_profile() || UM()->user()->preview ) {
    
    			$nav = 'main';
    			$subnav = UM()->profile()->active_subnav();
    			$subnav = ! empty( $subnav ) ? $subnav : 'default'; ?>
    
    			<div class="um-profile-body <?php echo esc_attr( $nav . ' ' . $nav . '-' . $subnav ); ?>">
    
    		<?php
    				do_action("um_profile_content_{$nav}", $args);
    				do_action( "um_profile_content_{$nav}_{$subnav}", $args ); ?>
    				<div class="clear"></div>
    			</div>
    
    		<?php if ( ! UM()->user()->preview ) { ?>
    
    		</form>
    
    		<?php }
    			
    		} else {
    
    			$menu_enabled = UM()->options()->get( 'profile_menu' );
    			$tabs = UM()->profile()->tabs_active();
    			$nav = UM()->profile()->active_tab();
    			$subnav = UM()->profile()->active_subnav();
    			$subnav = ! empty( $subnav ) ? $subnav : 'default';
    			if ( $menu_enabled || ! empty( $tabs[ $nav ]['hidden'] ) ) { ?>
    
    			<div class="um-profile-body <?php echo esc_attr( $nav . ' ' . $nav . '-' . $subnav ); ?>">
    		<?php
    				do_action("um_profile_content_{$nav}", $args);
    				do_action( "um_profile_content_{$nav}_{$subnav}", $args ); ?>
    			<div class="clear"></div>
    			</div>
    
    		<?php }
    		}
    ?>
    
    <div>
    <?
    //	if ( um_is_on_edit_profile() ) { } else {
    	
    add_action( 'um_profile_footer', function( $args ){
    	$profile_id = um_profile_id();
    	$company_name = get_field('company_name', 'user_'. $profile_id );
    	$company_details = get_field('company_details', 'user_'. $profile_id );
    	$company_phone = get_field('company_phone', 'user_'. $profile_id );
    	$company_email = get_field('company_email', 'user_'. $profile_id );
    	$company_website = get_field('company_website', 'user_'. $profile_id );
    	$company_address = get_field('company_address', 'user_'. $profile_id );
    	$company_postcode = get_field('company_postcode', 'user_'. $profile_id );
    	$company_category = get_field('company_category', 'user_'. $profile_id );
    	$company_logo = get_avatar( $profile_id, 32 );
    });
    ?>
    
    	<div class="um-header no-cover">
    		<div class="um-profile-photo" data-user_id="<?php echo $profile_id; ?>">
    			<img src="<?php echo $company_logo; ?>" class="gravatar avatar avatar-190 um-avatar um-avatar-uploaded" width="190" height="190" alt="<?php echo $company_name; ?>" />
    		</div>
    		<div class="um-profile-meta">
    			<div class="um-main-meta">				
    				<div class="um-clear"></div>
    			</div>
    			<div class="um-meta">
    				<span><p><?php echo $company_details; ?></p></span>
    			</div>		
    		</div>
    		<div class="um-clear"></div>
    	</div>
    
    	<div class="um-profile-body main main-default">
    
    				<div class="um-row _um_row_1 " style="margin: 0 0 30px 0;">
    					<div class="um-col-121">
    						<div  id="um_field" class="um-field">Address</div>
    						<div class="um-field-area"><?php echo $company_address; ?></div>
    						<div  id="um_field" class="um-field">Postcode</div>
    						<div class="um-field-area"><?php echo $company_postcode; ?></div>
    					</div>
    					<div class="um-col-122">
    						<div  id="um_field" class="um-field ">Phone</div>
    						<div class="um-field-area"><a href="tel:<?php echo $company_phone; ?>"><?php echo $company_phone; ?></a></div>
    						<div  id="um_field" class="um-field">Email</div>
    						<div class="um-field-area"><a href="mailto:<?php echo $company_email; ?>"><?php echo $company_email; ?></a></div>
    						<div  id="um_field" class="um-field">Website</div>
    						<div class="um-field-area"><a href="<?php echo $company_website; ?>"><?php echo $company_website; ?></a></div>
    						<div  id="um_field" class="um-field">Category</div>
    						<div class="um-field-area"><?php echo $company_category; ?></div>
    					</div>
    				</div>
    	</div>
    </div>
    
    <?php
    	//	}
    		do_action( 'um_profile_footer', $args ); ?>
    
    	</div>
    
    </div>

    However its now broken and not displaying the fields.
    Any ideas?

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    @aswingiri
    Thank you,

    So the acf field is called company_logo – it is set to return output to image URL within acf. I added your code above direct to my function code but its still not showing the right info.

    If I inspect the code it shows@
    <img src="https://gravatar.com/avatar/c4fb7d97da67b28595533e24f769b7a1?s=400&r=G&d=mm" class="gravatar avatar avatar-190 um-avatar um-avatar-gravatar" width="190" height="190" alt="Trident Marketing Anglia Ltd " data-default="https://tridentmarketinguk.com/funeral/wp-content/plugins/ultimate-member/assets/img/default_avatar.jpg" onerror="if ( ! this.getAttribute('data-load-error') ){ this.setAttribute('data-load-error', '1');this.setAttribute('src', this.getAttribute('data-default'));}">

    but doesn’t show the company logo instead – I’ve tried all sorts of things to get it to display the right logo, I even tried just displaying the php code within a shortcode but that didn’t show it either.

Viewing 14 replies - 1 through 14 (of 14 total)