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-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.

  12. New UserMay 22, 2017

    I am getting the following PHP warning on a Pantheon server:

    Warning: session_start(): user session functions not defined in /.../usp-shortcodes.php on line 5 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /.../usp-shortcodes.php on line 5

    How to resolve?

    • Jeff Starr

      Jeff StarrMay 22, 2017

      This is a common issue with Pantheon hosting. Another user reported that that Pantheon advised to install “Native PHP Sessions for WordPress”, which resolves the issue.

  13. Stanfield GrayAugust 2, 2017

    Hi Jeff,

    We just purchased USP Pro. We need to assign specific post categories to specific forms without the user needing to choose the category themselves. How can we achieve this?

    Thank you!

    • Jeff Starr

      Jeff StarrAugust 2, 2017

      Hi Stanfield,

      No prob, here is a complete guide :)

      • Stanfield GrayAugust 3, 2017

        Ahh fantastic! Thanks so much, Jeff!

      • Jason GresalfiJune 7, 2018

        This was also exactly what I was looking for. Thanks Jeff! This plugin is really solid – I can’t believe how many features and settings you offer. Well worth the money, many times over.

      • Jeff Starr

        Jeff StarrJune 8, 2018

        Thank you Jason! I appreciate the great feedback. Do you mind if I add yours to the Testimonials page?

      • Jason GresalfiJune 8, 2018

        You can definitely add me to the testimonials. Cheers, Jason

  14. Pavol VavroFebruary 10, 2018

    Hi Jeff,

    great plugin. Is there a simple way to create a “Day” and “Time” fields in the form?

    Thanks!

    Palo

  15. Mark SargentMay 17, 2018

    All looking good with my first time configuration of USP, very elegant and comprehensive so far. Cool.

    Has anyone figured out a form for user registration/user login alternating between the two respectively?

    A form that can be displayed on one line in the menu /header…

  16. New UserMay 17, 2018

    Hi there. i just bought te plugin. Now i made a test form to let users make a post and a page to list there posts. If i insert the code : [usp_pro_display_posts userid="current" modlinks"true"] the site keeps loading. so i think ther is somting not wrong Please advice..

    • Jeff Starr

      Jeff StarrMay 17, 2018

      Glad to help. Here are some things that would be helpful to know:

      1. Are you getting any PHP warnings or errors when you try that code?
      2. If you are getting errors/warnings, what do they say?
      3. Does the shortcode work with any other combination of attributes? Maybe try changing values et al to see if the issue is with a specific attribute, etc.?
      4. Have you tried troubleshooting your plugins and theme?

      Basically you will need to do some basic troubleshooting in order to determine more precisely what is happening (because it’s pretty much impossible to just “guess”).

      Also, there is a missing equals sign = between the modlinks and true. There needs to be one. Syntax is important when it comes to building websites, etc.

      Let me know if I can provide any further infos.

      • New UserMay 17, 2018

        Ops! You are right it was the missing equals sign. Working fine now, thank you.

Please log in to post a new forum topic.