Plugin Planet

Premium WordPress Plugins

This forum is for advanced questions about USP Pro. This includes but is not limited to development, implementation, customization, extensions, and so forth. For general questions, check out the General Topics.

Post questions about Advanced Topics using the form below.

Forum : Advanced Topics

  1. Melissa SharpMarch 1, 2014

    Hi Jeff, awesome plugin. Error (?usp_error_7a=usp_error_7a) is giving me huge trouble, keeping users from posting successfully. Any tips?

    Thanks!

    • Jeff Starr

      Jeff StarrMarch 10, 2014

      Hi Melissa,

      The error is because of the “Minimum number of characters not met in content field”, which is a setting available in either the General settings. Just change that to whatever number makes sense and you should be good.

  2. Lone JensenMarch 26, 2014

    Hi again,

    I am using a form with a custom post type which is working great. Would it be possible to make another form and let that use a different custom post type or just regular WP Posts?

  3. Vernon SmithApril 1, 2014

    Hey there,

    I’m using your plugin as a Nomination Form – ie anybody can nominate someone and it’s held as a pending custom post type until it’s reviewed and categorized by a moderator. It’s working great for this except for the fact that I can’t figure out how to display the custom fields in the Admin area of the Custom Post Type.

    I need the moderator to see all of the information in the admin area so the can categorize each nomination accordingly. I tried creating customs fields that use similar meta names as each custom field that usp creates, but it’s not pulling the information.

    Any help would be greatly appreciated!

  4. Dana LoganApril 19, 2014

    Jeff, is there a way to output the post submitters email as a link on their posts? Would like it to say email me and when clicked on, it opens their email program? Or possibly have their name link to their submitted email? Thanks

  5. Paula Carlson

    Paula CarlsonOctober 7, 2015

    Is it possible to enable fields to include basic html markup tags, such as em and strong?

  6. LaurenOctober 8, 2015

    Is there any way to replace the “USP:Name” shortcode with WordPress’ “Author” dropdown menu, so people can choose from a list of registered users instead of just typing in a name?

    The objective of this is to allow users who submit new posts to tag a different user as the author.

    Is there a simpler way to do this?

    Thanks!

  7. EndaOctober 27, 2015

    Hi Jeff,

    I want to add in some extra post information on the emails sent to users. For example, I’d like to include the date of when the post is going to go live… using something like : get_the_time('l, F jS, Y', $post->ID) and also the permalink of the post so they can click on it from the email.

    Can I add it into your outgoing emails through usp-process.php? by modifying public function send_email_alert($user) ? Am I on the right track there?

    • Jeff Starr

      Jeff StarrDecember 19, 2015

      No need to hack any core files, just visit the Admin settings, locate the message setting for the email alert that you want to send, and add any of the available shortcut variables, as explained here. There are variables for things like Post Date, Post URL, Post Title, and more.

  8. New UserDecember 19, 2015

    Just wanted to share my experience with W3 Total Cache and USP Pro. I was experiencing high CPU loads and some slowness, performance issues, etc. Could not figure it out until I tried replacing W3 Total Cache with WP Super Cache Plugin. With Super Cache all is working fast and smooth. Other caching plugins may yield similar results.

  9. Terry EllisAugust 10, 2016

    Hi Guys,

    Has anyone implemented any form of PayPal integration?

    Step 1)

    User fills out form, dropdown selection with option value=“£10.00”, value=“£20.00” for example, submit post > post goes to draft > redirected to PayPal – not sure how best to handle the redirection, the passing of £ value and post ID.

    Step 2)

    PayPal payment made > PayPal IPN sets usp post to Publish – Have built IPNs before, but if anyone has a sample IPN code with WP database updates, that would be great. Just something to point me in the right direction.

    Thanks in advance!

    • Jeff Starr

      Jeff StarrAugust 10, 2016

      Not sure about that specific implementation, but here is an article that I wrote that may be useful:

      https://plugin-planet.com/usp-pro-integrate-membership-plugin/

      Hopefully it gives you some ideas.

      • Terry EllisAugust 11, 2016

        Hi Jeff,

        Thanks for that. Going back to step 1)…

        The user is already logged in, so thats fine.

        The user fills out a form with a field that has a currency value. If the value is “0”, then the form is submitted as normal. If the value is greater than 0, then the form is submitted, but then the user is redirected to paypal.

        Is there a hook we can use in our function.php to handle the (possible) redirection, following form submission? USP_after_form_submission or similar…

        Thanks
        Terry.

      • Jeff Starr

        Jeff StarrAugust 11, 2016

        Hi Terry, yes there are lots of hooks available for the form submission process, but it might be easier to apply a bit of JavaScript to either submit the form or redirect depending on the value of whatever. It would probably be much easier that way, depending on your experience with JavaScript.

  10. Terry EllisAugust 11, 2016

    Hi Jeff,

    JS is no problem, however, we still need to submit the form either way,

    IF value=0
    {submit the form}
    elseif value>0
    {submit the form AND then redirect to PayPal}

    which I think will need a hook?

    Cheers
    Terry.

    • Jeff Starr

      Jeff StarrAugust 11, 2016

      Yeah you’ll probably need a hook, which you’ll probably find in /inc/usp-process.php. There’s also a list of hooks available here:

      https://plugin-planet.com/usp-pro-action-and-filter-hooks/

      • Terry EllisAugust 14, 2016

        Sorry, newbie question here….

        Trying to get the $post_id below, but nothing is returned. Am I missing something here?

        // REDIRECT?
        function my_usp_insert_post_after($errors_display, $redirect_type, $usp_redirect, $post_id) {
             echo "p=".$post_id;
             //some other stuff here.
        }
        add_action('usp_insert_post_after', 'my_usp_insert_post_after', 10, 4);

      • Jeff Starr

        Jeff StarrAugust 14, 2016

        The first thing to understand is that you are echoing or printing the post id, not returning it. So it’s going to be difficult to see the id on the screen when the redirect happens. Your function works as expected, but you’re gonna want to do something other than echo in order to actually “see” any of the variables. For example, you can send an email, die, etc.

  11. Terry EllisAugust 14, 2016

    Thanks Jeff, that helped, all sorted now.

Please log in to post a new forum topic.