Forum Replies Created

Viewing 15 replies - 1 through 15 (of 204 total)
  • Thread Starter Kir 2012

    (@kir-2012)

    Hi, thank you but it’s not live, so I can’t – could you give me a push in the right direction and I’ll manage it myself? I checked with the inspector but couldn’t drill down re the CSS to find it.
    What am I looking for?
    Thanks 🙂

    Thread Starter Kir 2012

    (@kir-2012)

    Additional feedback: It’s not possible for me to have repeated events working properly unless I have recurring events. If I remove recurring events the drop down for the event type diseappers off the screen front end, so there’s no way to pick single or repeat. If I have both recurring and repeat, there it is again back in place.

    I won’t want recurring events and repeated events as it’s overkill and confusing in my use case, so to keep things how they were, I need only repeated events. For now I will have to have both active and then just try to hide the option in the front end submission form.

    Kind regards

    Hi there @uptonines I’m editing this last query as I put it in the wrong place by accident, my apologies! Please ignore 🙂

    Hi there, I see this was a month a go, was there a solution to this? I’ve just updated and have the same issue, along with some other stuff
    All the best
    K

    Thread Starter Kir 2012

    (@kir-2012)

    I came across this but think maybe it must be out of date?

    <?php

    // Change User Profile Browser Page Title.
    function yz_change_buddypress_browser_tab_title( $bp_title_parts ) {

    if ( bp_is_user() ) {
    return "Sports File";
    }

    return $bp_title_parts;

    }

    add_filter( 'bp_get_title_parts', 'yz_change_buddypress_browser_tab_title', 999 );
    Thread Starter Kir 2012

    (@kir-2012)

    It’s smooth scroll in the performance section I think, turning it off seems to have fixed it….

    Thread Starter Kir 2012

    (@kir-2012)

    Hi again 🙂 Ok thanks I will check it out – but doesn’t that version still have an issue with image upload?

    Thread Starter Kir 2012

    (@kir-2012)

    Hi again, I tried to upload this version, unfortunately it says plugin couldn’t be activated as it triggered a fatal error

    Thread Starter Kir 2012

    (@kir-2012)

    Hi thanks very much for this, and ok great thanks I’ll give it a go 🙂

    Thread Starter Kir 2012

    (@kir-2012)

    This seems to be resolved now! Here’s what worked for me 🙂
    Thank you!

    $pods = pods( 'product', $product->ID );
    // Specify which fields to show.
    $params = array( 'fields_only' => true, 'fields' => array('whats_onz') );
    // Output the form.
    echo $pods->form( $params );
    
    
    Thread Starter Kir 2012

    (@kir-2012)

    I looked at this thread about similar:
    https://github.com/pods-framework/pods/issues/2295

    ….and I wonder should I be adding into the mix some other fields, but hidden somehow, if there’s a need to submit a post title, excerpt or content in a form?

    Thread Starter Kir 2012

    (@kir-2012)

    I”m also now trying to add the form by using do_shortcode, like this:

    echo do_shortcode( ‘ [pods template=”form”] ‘ );?>

    – in my php template for the dashboard that my users use to edit products, calling a pods template, in which I have a form shortcode:

    [pods form=”1″ name=”product” fields=”whats_onz” not_found=”Nothing saved here yet…”]

    But unfortunately I’m still getting the same result, the form is appearing as I would expect to see it, and I can choose from users, but there is a perpetual spinning loader and error message which comes up from the start (ie before I submit anything, in this case) above the form, to say: “Content, title, and excerpt are empty.”

    I can select options but they do not save. It works fine in the back end though.

    Can you think of anything that could be causing this? I’d love to get it working!

    Kind regards
    K

    Thread Starter Kir 2012

    (@kir-2012)

    Update! I’ve cracked ‘job 2’, which was the display of a vendor’s selections of other users as links with avatars on the single product page, using templates, turns out I was completely misunderstanding how it worked. Apologies!

    I was able to create a new pods template, add the code into my template and then select that template using the auto templating tab in the pods admin for product, so that’s done!

    Now I just need to firm up the code for making my form appear, in order to choose the users, and then save each time a product is created or edited, so that they can appear in my template!

    Thread Starter Kir 2012

    (@kir-2012)

    Hi, I apologise in advance, but unfortunately I think I’m making more of a mess the longer I look at this, because I’m coming up with some strange behaviours!

    I’m thinking I should try to explain from the start, and then you might spot something I’ve missed or that I’m doing wrong 🙂

    I will also show my settings in the product field in pods admin, in case I’ve done something obvious incorrectly!

    So here goes: the aim is to make it possible for user role ‘vendor’ to choose in a form, from other users, and select them to appear on the product page.

    I have my CPT ‘product’ (thanks to woocommerce) and then I’ve extended this in pods admin with some fields, i’ve got this working fine for date fields, and an image field, but not for this relationship field.

    My relationship field is called whats_onz and I am trying to use it to relate products to users. Using this field, the idea is that my front end user can enter their front end ‘edit product’ form, and I will have added to that form, the facility to select from a multi-select form, some users to display on their product page. I am trying to achieve this with pods’ own forms.

    So I’ve got two jobs –
    Job 1 – To add a form to my edit product page via which the vendor can choose from any user to display (I know I can limit the roles in the field GUI in pods admin). The form should save selections from Add New and future Edits, and display those as selected options in the multi select field

    Job 2 – To display selections on the front end of the product single page as links to the chosen author pages with the name and avatar.

    Job 1, adding the form…. I’ve done this with the following code (below) and the form appears exactly as I would expect, as a multi select box, and the user roles I want vendors to choose from can be selected, by their user_nicename as I have set in product pods admin for the field. However, there is a loading spinner that starts as soon as the page renders, before you’ve touched into the multi select to select something. The spinner appears and just stays on. You can select your users, and they appear in the form with the little cross next to them as chosen options in the multi select, but then after saving, it’s all gone again front end, the multi select form is blank again. Although not back end, the changes always appear fine there. I thought of a workaround to just list the existing chosen options below the form if I couldn’t get the form to open in ‘edit’ as populated, but I realise that would of course be a bit clumsy, I couldn’t get it working anyway (see below).

    Also, after saving, an error message appears at the bottom of the page to say “Content, title, and excerpt are empty.”

    
              <?php
    
    $pod = pods( 'product', $id );
    
    
    $fields = array( 'whats_onz');
    
    echo $pod->form( $fields );
    
        ?>

    I wonder if I have something wrong in my settings because even a basic code to display just linked avatars (Job 2 above) isn’t working, as follows: (The result I get for this code on the page is just two bullet points).

    $terms = wp_get_post_terms( $post->ID, 'whats_onz', array( 'fields' => 'all' ) );
    $count = count( $terms );
    
    if ( $count > 0 ) {
        echo '<h3>What\'s On:</h3><ul>';
    
        foreach ( $terms as $term ) {
            printf(
                '<li><a href="%s" title="%s" alt="%s">%s</a></li>',
                esc_url( get_term_link( $term ) ),
                esc_attr( sprintf( __( 'View all listings with the category %s', 'use_a_real_domain_or_dont_localize' ), $term->name ) ),
                esc_attr( sprintf( __( 'View all listings with the category %s', 'use_a_real_domain_or_dont_localize' ), $term->name ) ),
                esc_html( $term->name )
            );
        }
    
        echo '</ul><br/>';
    }


    In my settings for the whats_onz field in product pods admin I’ve got:

    FIELD DETAILS
    Name = whats_onz
    Field Type = relationship
    Related Type = users
    Bi Directional field = whats_on1 [pod: user]

    RELATIONSHIP OPTIONS
    Selection Type = Multiple Select
    Input Type = Auto Complete
    Display Format = Item 1, Item 2 and Item 3
    Allow Add New = Yes
    Taggable = Yes
    Show Edit Links = Yes
    Show View Links = Yes
    Selection Limits = 0
    Display Field In Selection List = {@user_nicename}
    Limit List By Roles = Yes I’ve selected some roles
    The rest is empty …

    ADVANCED
    All left empty

    CONDITIONAL LOGIC
    All left empty

    REST API
    All left empty

    Thanks

    Thread Starter Kir 2012

    (@kir-2012)

    Hi, I’m making some progress, but can I check the default behaviour of a multi select form front end when you use pods form set up? Should it show the existing terms?
    Because when I check in admin, the data is saving, and it overwrites fine each time you save, but the saved items do not show up in the form to indicate what’s there, would expect the multi select to open prepopulated with the items already selected. I think that’s the bit I’m finding hard to sort. Can you show me a code example that might help me?
    Kind thanks

Viewing 15 replies - 1 through 15 (of 204 total)