PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How do I 'trigger' post fields to activate review options from MyReviewPlugin

  1. georgef
    Member

    I'm using the post fields to gather reviews which I want to set to published. I'm using these with My Review Plugin.

    My Review Plugin has the options to tick in a post to have the review options added to a post.

    So what I'm trying to do is use the post fields to get published reviews from my members which can be voted on with the My Review Plugin.

    The post fields option works fine and the reviews get published, but the My Review Plugin options dont get added in the post.

    Has anyone here tried to do something similar?

    Not sure if this is a better topic for the My Review Plugin forum. Thanks! :)

    Posted 7 years ago on Saturday November 5, 2011 | Permalink
  2. Do you know how the review options are being added to each post? If they are post meta custom fields, you can configure them by adding custom fields to your form.

    We first need to know where the information is being stored, then we can figure out if the fields can be added in the form builder, or if they need to be added with one of the developer hooks in your theme's functions.php

    Posted 7 years ago on Saturday November 5, 2011 | Permalink
  3. georgef
    Member

    Hey Chris! Thanks for your quick response and apologies for mine.

    I've been chatting to Mark at MyReviewPlugin and he has helped me with some info.

    This won't work for me right now due to another problem, although it's a great solution for others.

    I'm pasting the feedback here if anyone wants / needs to do this. You would need the add-on plugin as mentioned, here goes:

    As you may have seen on the MyRP blog, along with version 6 of MyRP I built some auxillary plugins that do exactly what you describe. Unfortunately, the GravityForms forums won't help you much, as attaching rating categories in MyRP is slightly more complicated than just creating a custom field -- well, it isn't, and you could go that approach if you want (the field name is _myrp_rating_categories -- but it is stored as a serialized array).

    For many users, that might actually be the best approach. If you want to do that, go ahead and copy the field _myrp_rating_categories from an existing configured post and put it as a hidden Post Field > Custom Field in GravityForms. This will turn on the rating categories for that post, like magic.

    Alternatively, I've attached the auxiliary plugin I've made. Its a bit trickier to use, but it gives you a bit more flexibility in accepting *editor's ratings* from submitted users. If this isn't what you want, you probably want the above method.

    --

    Alright, so here's (attached, you may need to go straight to the ticket at tickets.myreviewplugin.com to receive it) what I've built as an addon plugin. It makes it very easy on the part of GravityForms for integration.

    Step 1. Download this ZIP, it is a standalone plugin that works with MyReviewPlugin. It requires MyRP to be activated to use.

    Step 2. Unzip.

    Step 3. Open myrpcff.php and edit it appropriately. At the top of the file is an array that is defined, right now, to contain two elements:
    $myrpcff_cfs = array(
    "myrp_Price" => array("editors", "Price"),
    "myrp_Features" => array("editors", "Features")
    );

    This array maps custom fields in WordPress (and GravityForms) to MyReviewPlugin elements. For example, if you want to have an element called myrp_Price that maps to the editors rating for the category called Price, you'd enter:

    "myrp_Price" => array("editors", "Price"),

    Customize this as necessary. Your programmer will be able to figure out how is necessary, but basically, you're going to want to create a custom field entry for each rating category you want users to submit via GravityForms. Then, set up GravityForms to write to that custom field.

    Step 4. Upload to your wp-content/plugins/ directory and activate.

    Posted 7 years ago on Friday November 11, 2011 | Permalink
  4. Thank you for that update. Hopefully that will help someone.

    Posted 7 years ago on Friday November 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.