Forum Replies Created

Viewing 15 replies - 31 through 45 (of 54 total)
  • Thread Starter Chris

    (@osiak)

    I did the above for my custom UM user role and it didn’t hide any fields on the profile page of this user when viewing as admin…

    Thread Starter Chris

    (@osiak)

    I’ve tried but this can only grant permission based on role of current user. What I need is to edit the profile page (remove fields) based on the role of the user being viewed.

    Thread Starter Chris

    (@osiak)

    Not sure how to use this to target a specific role being viewed. Could you please elaborate a little on that. Thx.

    • This reply was modified 5 years, 3 months ago by Chris.
    Thread Starter Chris

    (@osiak)

    Ok, I expanded on the code using the Advanced loop described here: https://www.advancedcustomfields.com/resources/repeater/

    I wanted to have the output as a nice table, similar to the backend.
    This is what I used which worked beautifly (in my code I added classes to the table to style it):

    function acf_repeater() {
    
       $user_id = get_current_user_id();
       ob_start(); ?>
       <?php if( have_rows('repeater-name',"user_{$user_id}" ) ): ?>
    
    	<table>
    	   <tr>
    	   	<td>Header1:</td><td">Header2:</td><td>Header3:</td><td>Header4:</td>
    		</tr>
    
    	<?php while ( have_rows('repeater-name', "user_{$user_id}" ) ) : the_row(); 
    
    		// vars
    		$subfieldname1 = get_sub_field('sub-field-name-1');
    		$subfieldname2 = get_sub_field('sub-field-name-2');
    		$subfieldname3 = get_sub_field('sub-field-name-3');
    		$subfieldname4 = get_sub_field('sub-field-name-3');
    
    	?>
    	   <tr>
    	      <td><?php echo $subfieldname1; ?></td><td><?php echo $subfieldname2; ?></td><td><?php echo $subfieldname3; ?></td><td><?php echo $subfieldname4; ?></td>
    	   </tr>
    		
    
    	<?php endwhile; ?>
    
    	</table>
    
    <?php endif; ?>
    <?php $output = ob_get_clean();
        return $output;
    }
    add_shortcode('acf_repeater_shortcode', 'acf_repeater');
    Thread Starter Chris

    (@osiak)

    This showed the output on top of the page. This modification puts it in the right place:

    function acf_repeater() {
    
       $user_id = get_current_user_id();
    ob_start();
       if( have_rows('repeater-name',"user_{$user_id}" ) ):
        while ( have_rows('repeater-name', "user_{$user_id}" ) ) : the_row();
         the_sub_field('sub-field-name');
        endwhile;
       else :
      endif;
    $output = ob_get_clean();
        return $output;
    }
    add_shortcode('acf_repeater_shortcode', 'acf_repeater');

    However when I have more than one row in the repeater, the subfields appear one ofter another. Now I have a problem with making it somehow appear as a table, especially that I want to output more subfields.

    Thread Starter Chris

    (@osiak)

    Thanks! Worked beaufifly ??

    I have the same issue – plugin breaks page and displays 503 error. Disabled all plugins, enabled SiM – works. Enabled BB – doesn’t work.
    PHP 7.3, WP 5.2.2, BB 2.2.3.3, SiM 3.5

    Thread Starter Chris

    (@osiak)

    OMG, thanks. Looked through the CSS but must have omitted this. Thanks!

    Thread Starter Chris

    (@osiak)

    Hi,
    this is my status report:

    
    ### WordPress Environment ###
    
    Home URL: ***
    Site URL: ***
    WC Version: 3.5.4
    Log Directory Writable: ?
    WP Version: 5.0.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: pl_PL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.2.15
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.62.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.39-83.1-cll-lve
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.5.4
    WC Database Prefix: intel_
    Total Database Size: 254.19MB
    Database Data Size: 234.61MB
    Database Index Size: 19.58MB
    intel_woocommerce_sessions: Data: 0.06MB + Index: 0.03MB
    intel_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    intel_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    intel_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    intel_woocommerce_order_items: Data: 0.14MB + Index: 0.06MB
    intel_woocommerce_order_itemmeta: Data: 1.45MB + Index: 1.89MB
    intel_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    intel_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    intel_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    intel_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    intel_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    intel_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    intel_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    intel_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    intel_commentmeta: Data: 0.02MB + Index: 0.03MB
    intel_comments: Data: 1.52MB + Index: 0.53MB
    intel_email_user: Data: 0.02MB + Index: 0.00MB
    intel_failed_jobs: Data: 0.02MB + Index: 0.00MB
    intel_fb3d_pages: Data: 0.02MB + Index: 0.05MB
    intel_fca_eoi_activity: Data: 0.02MB + Index: 0.05MB
    intel_fca_eoi_subscribers: Data: 0.02MB + Index: 0.00MB
    intel_links: Data: 0.02MB + Index: 0.02MB
    intel_mailchimp_carts: Data: 0.02MB + Index: 0.00MB
    intel_mclean_refs: Data: 0.02MB + Index: 0.00MB
    intel_mclean_scan: Data: 0.02MB + Index: 0.00MB
    intel_ms_snippets: Data: 0.02MB + Index: 0.00MB
    intel_options: Data: 3.31MB + Index: 0.09MB
    intel_postmeta: Data: 96.14MB + Index: 5.78MB
    intel_posts: Data: 7.05MB + Index: 0.44MB
    intel_queue: Data: 0.02MB + Index: 0.00MB
    intel_snippets: Data: 0.02MB + Index: 0.00MB
    intel_termmeta: Data: 0.02MB + Index: 0.03MB
    intel_terms: Data: 0.02MB + Index: 0.03MB
    intel_term_relationships: Data: 0.08MB + Index: 0.05MB
    intel_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    intel_usermeta: Data: 1.48MB + Index: 0.86MB
    intel_users: Data: 0.08MB + Index: 0.05MB
    intel_wc_download_log: Data: 0.02MB + Index: 0.03MB
    intel_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    intel_weu_group27: Data: 0.02MB + Index: 0.00MB
    intel_weu_sent_email: Data: 22.52MB + Index: 0.00MB
    intel_weu_smtp_conf: Data: 0.02MB + Index: 0.00MB
    intel_weu_subscribers: Data: 0.02MB + Index: 0.00MB
    intel_weu_unsubscriber: Data: 0.02MB + Index: 0.00MB
    intel_weu_user_notification: Data: 0.02MB + Index: 0.00MB
    intel_wsal_metadata: Data: 6.52MB + Index: 2.52MB
    intel_wsal_occurrences: Data: 1.52MB + Index: 0.52MB
    intel_wsal_options: Data: 3.52MB + Index: 0.00MB
    intel_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB
    intel_yoast_seo_links: Data: 0.02MB + Index: 0.02MB
    intel_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB
    intel_yumpu_documents: Data: 0.02MB + Index: 0.00MB
    wpstg0_commentmeta: Data: 0.02MB + Index: 0.03MB
    wpstg0_comments: Data: 0.25MB + Index: 0.31MB
    wpstg0_email_user: Data: 0.02MB + Index: 0.00MB
    wpstg0_failed_jobs: Data: 0.02MB + Index: 0.00MB
    wpstg0_fb3d_pages: Data: 0.02MB + Index: 0.05MB
    wpstg0_fca_eoi_activity: Data: 0.02MB + Index: 0.05MB
    wpstg0_fca_eoi_subscribers: Data: 0.02MB + Index: 0.00MB
    wpstg0_links: Data: 0.02MB + Index: 0.02MB
    wpstg0_mailchimp_carts: Data: 0.02MB + Index: 0.00MB
    wpstg0_mclean_refs: Data: 0.02MB + Index: 0.00MB
    wpstg0_mclean_scan: Data: 0.02MB + Index: 0.00MB
    wpstg0_options: Data: 1.52MB + Index: 0.14MB
    wpstg0_postmeta: Data: 71.52MB + Index: 3.03MB
    wpstg0_posts: Data: 5.52MB + Index: 0.25MB
    wpstg0_queue: Data: 0.02MB + Index: 0.00MB
    wpstg0_snippets: Data: 0.02MB + Index: 0.00MB
    wpstg0_termmeta: Data: 0.02MB + Index: 0.03MB
    wpstg0_terms: Data: 0.02MB + Index: 0.03MB
    wpstg0_term_relationships: Data: 0.02MB + Index: 0.02MB
    wpstg0_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wpstg0_usermeta: Data: 1.52MB + Index: 0.95MB
    wpstg0_users: Data: 0.08MB + Index: 0.05MB
    wpstg0_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wpstg0_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wpstg0_weu_group27: Data: 0.02MB + Index: 0.00MB
    wpstg0_weu_sent_email: Data: 1.52MB + Index: 0.00MB
    wpstg0_weu_smtp_conf: Data: 0.02MB + Index: 0.00MB
    wpstg0_weu_subscribers: Data: 0.02MB + Index: 0.00MB
    wpstg0_weu_unsubscriber: Data: 0.02MB + Index: 0.00MB
    wpstg0_weu_user_notification: Data: 0.02MB + Index: 0.00MB
    wpstg0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wpstg0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wpstg0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wpstg0_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wpstg0_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.63MB
    wpstg0_woocommerce_order_items: Data: 0.11MB + Index: 0.06MB
    wpstg0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wpstg0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wpstg0_woocommerce_sessions: Data: 0.38MB + Index: 0.02MB
    wpstg0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wpstg0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wpstg0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wpstg0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wpstg0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wpstg0_wsal_metadata: Data: 0.16MB + Index: 0.08MB
    wpstg0_wsal_occurrences: Data: 0.02MB + Index: 0.02MB
    wpstg0_wsal_options: Data: 3.52MB + Index: 0.00MB
    wpstg0_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB
    wpstg0_yoast_seo_links: Data: 0.02MB + Index: 0.02MB
    wpstg0_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB
    wpstg0_yumpu_documents: Data: 0.02MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    3d-flip-book: 1
    attachment: 160
    cmreg_invitcode: 802
    cmreg_profile_field: 3
    easy-opt-ins: 1
    fl-builder-template: 17
    fl-theme-layout: 6
    ml-slide: 6
    ml-slider: 1
    nav_menu_item: 51
    page: 13
    pdf_lv: 1
    post: 2
    product: 8
    revision: 277
    shop_order: 756
    wafs: 2
    woocustomemails: 2
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (40) ###
    
    Beaver Builder Plugin (Standard Version): by The Beaver Builder Team – 2.2.0.7
    Beaver Themer: by The Beaver Builder Team – 1.2.2.1
    Ultimate Addons for Beaver Builder: by Brainstorm Force – 1.14.4
    PowerPack for Beaver Builder: by IdeaBox Creations – 2.6.8.5
    CM Registration Bulk Invitation Addon: by CreativeMindsSolutions – 1.2.3
    CM Registration Pro: by CreativeMindsSolutions – 2.7.5
    Code Snippets: by Shea Bunge – 2.13.2
    Colorlib Login Customizer: by Colorlib – 1.2.7
    Contact Form 7 MailChimp Extension: by Renzo Johnson – 0.4.51
    Contact Form 7: by Takayuki Miyoshi – 5.1.1
    Custom Classes: by Justin Tadlock – 1.0.0
    Duplicate Page: by mndpsingh287 – 3.2
    Easy FancyBox: by RavanH – 1.8.13
    Flexible Shipping: by WP Desk – 3.1.6
    GP Premium: by Tom Usborne – 1.7.7
    Head & Footer Code: by Aleksandar Urosevic – 1.0.7
    Manage Notification E-mails: by Virgial Berveling – 1.4.1
    WooCommerce Przelewy24 Payment Gateway: by DialCom24 Sp. z o.o. – 1.0.0 – Not tested with the active version of WooCommerce
    reSmush.it Image Optimizer: by reSmush.it – 0.1.22
    Shortcode in Menus: by Gagan Deep Singh – 3.4
    Sticky Menu (or Anything!) on Scroll: by Mark Senff – 2.1.1
    Checkout Field Editor for WooCommerce: by ThemeHiGH – 1.3.1
    Woo Custom Emails Per Product: by Alex Mustin – 2.2.2
    Woo Custom Emails: by wp3sixty – 2.2 – Not tested with the active version of WooCommerce
    Advanced Order Export For WooCommerce: by AlgolPlus – 2.1.0
    WPC Product Bundles for WooCommerce: by WPclever.net – 3.4.1
    Woocommerce Add-to-Cart Custom Redirect: by Ren Ventura – 1.2.3 – Not tested with the active version of WooCommerce
    WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.3 – Not tested with the active version of WooCommerce
    WooCommerce Email Test: by RaiserWeb – 1.10 – Not tested with the active version of WooCommerce
    WooCommerce eNadawca Poczta Polska: by WP Desk – 1.5.17
    Booster for WooCommerce: by Algoritmika Ltd – 4.2.0
    WooCommerce Product Dependencies: by SomewhereWarm – 1.2.1 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.5.4
    WooCommerce iFirma: by WP Desk – 2.5.10
    Yoast SEO: by Team Yoast – 9.5
    WP Email Users: by techspawn1 – 1.6.6
    WP Media folder: by Joomunited – 4.7.5
    WP Security Audit Log: by WP White Security – 3.3.1.1
    WP Desk Helper: by WP Desk – 1.6.4
    Easy Forms for MailChimp: by YIKES
    Inc. – 6.5.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: PLN (z?)
    Currency Position: right_space
    Thousand Separator: 
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    woosb (woosb)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: ? Page not set
    Cart: #188 - /koszyk/
    Checkout: #189 - /zamowienie/
    My account: #190 - /moje-konto/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: GeneratePress Child
    Version: 0.1
    Author URL: https://www.imprero.com
    Child Theme: ?
    Parent Theme Name: GeneratePress
    Parent Theme Version: 2.2.2
    Parent Theme Author URL: https://tomusborne.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: generatepress_child/woocommerce/emails/admin-cancelled-order.php
    generatepress_child/woocommerce/emails/admin-failed-order.php
    generatepress_child/woocommerce/emails/admin-new-order.php
    generatepress_child/woocommerce/emails/customer-completed-order.php
    generatepress_child/woocommerce/emails/customer-invoice.php
    generatepress_child/woocommerce/emails/customer-note.php version 2.5.0 is out of date. The core version is 3.5.0
    generatepress_child/woocommerce/emails/customer-on-hold-order.php version 2.5.0 is out of date. The core version is 3.5.0
    generatepress_child/woocommerce/emails/customer-processing-order.php version 2.5.0 is out of date. The core version is 3.5.4
    generatepress_child/woocommerce/emails/customer-refunded-order.php version 2.5.0 is out of date. The core version is 3.5.0
    generatepress_child/woocommerce/emails/customer-reset-password.php
    generatepress_child/woocommerce/emails/email-addresses.php version 2.4.0 is out of date. The core version is 3.5.4
    generatepress_child/woocommerce/emails/email-customer-details.php
    generatepress_child/woocommerce/emails/email-footer.php
    generatepress_child/woocommerce/emails/email-header.php
    generatepress_child/woocommerce/emails/email-order-details.php version 2.5.0 is out of date. The core version is 3.3.1
    generatepress_child/woocommerce/emails/email-order-items.php version 2.1.2 is out of date. The core version is 3.5.0
    generatepress_child/woocommerce/emails/email-styles.php version 2.3.0 is out of date. The core version is 3.3.0
    
    Outdated Templates: ?
    
    • This reply was modified 6 years ago by Jan Dembowski.
    • This reply was modified 6 years ago by Jan Dembowski. Reason: Fixed formatting
    Thread Starter Chris

    (@osiak)

    The date column does not show now…

    Thread Starter Chris

    (@osiak)

    Works great! However my publish date column is now in the middle, right after the name. Any chance to make it go back as the last column?

    Thread Starter Chris

    (@osiak)

    I’m not a great JS guy – can you help me redefine the whole code and how/where to cut/paste your insert?

    Thread Starter Chris

    (@osiak)

    Ok, I’ll submit there as ‘Other’…

    • This reply was modified 6 years, 9 months ago by Chris.
    Thread Starter Chris

    (@osiak)

    Strange. Now it’s ok. But when I was doing it – changing the background color on the original language – the change didn’t sync (I cleared all caches, incl. browser). Perhaps it needed time to contemplate on it… I’ll do more testing and see what happens ??

    Thread Starter Chris

    (@osiak)

    My test environment:
    – original (Polish) example page: https://securatest.stronazen.pl/wp/strona1/
    – translated (English) example page: https://securatest.stronazen.pl/wp/en/page/
    I played with the Multilingual Content Setup/System Fields options regarding Beaver Builder (setting Copy/Copy Once), but could not achieve a proper result – the page either didn’t sync or dissapeared at all.
    I can PM you the WP login credentials if you want to see for yourself…

Viewing 15 replies - 31 through 45 (of 54 total)