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.
Browse support forums for USP Pro »
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.
Browse support forums for USP Pro »
Please log in to post a new topic or reply.
Over 1 million happy users.
© 2014–2024 Plugin Planet • Subscribe • Sitemap • Privacy • Built with shapeSpace by Monzilla Media • John 3:16
Forum : Advanced Topics
There are 58 posts in this forum.
Hi Jeff, awesome plugin. Error (
?usp_error_7a=usp_error_7a
) is giving me huge trouble, keeping users from posting successfully. Any tips?Thanks!
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.
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?
Not yet, but that’s on the list for a future update :)
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!
Hi Vernon,
We had resolved this via email, but I wanted to post the solution for any others who may need help. As you had discovered, in order for custom fields to be supported by a custom post type, make sure to include
custom-fields
in thesupports
parameter for theregister_post_type()
function in your theme. More info:https://plugin-planet.com/usp-pro-unlimited-custom-post-types/
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
Yes, check out this tutorial: https://plugin-planet.com/usp-pro-display-submitted-email-address/
Is it possible to enable fields to include basic html markup tags, such as em and strong?
Yes for the content fields, you can enable via the plugin settings. More info:
https://plugin-planet.com/usp-pro-enable-post-formatting/
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!
As explained via email, something like this is not built-in to the plugin, but it’s possible to add a shortcode manually. Based on the example code that you sent, I wrote a shortcode function to display a list of all registered users.
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 functionsend_email_alert($user)
? Am I on the right track there?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.
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.
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!
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.
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.
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.
Hi Jeff,
JS is no problem, however, we still need to submit the form either way,
which I think will need a hook?
Cheers
Terry.
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/
Sorry, newbie question here….
Trying to get the
$post_id
below, but nothing is returned. Am I missing something here?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.
Thanks Jeff, that helped, all sorted now.
Terry. I am a complete newb with no coding knowledge so not getting technical but , I am needing to get paypal added to my form in a manner basically exactly as you originally asked about. Were you able to get this working?
I am getting the following PHP warning on a Pantheon server:
How to resolve?
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.
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!
Hi Stanfield,
No prob, here is a complete guide :)
Ahh fantastic! Thanks so much, Jeff!
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.
Thank you Jason! I appreciate the great feedback. Do you mind if I add yours to the Testimonials page?
You can definitely add me to the testimonials. Cheers, Jason
Hi Jeff,
great plugin. Is there a simple way to create a “Day” and “Time” fields in the form?
Thanks!
Palo
Hi Palo,
This tutorial should help!
Thanks a lot for quickly answer!
Palo
Another question – is there a tutorial for display the date and time from the form in the post before the content?
Yes, you can use the free Helper extension.
Here is a video tutorial that shows how to use it.
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…
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..Glad to help. Here are some things that would be helpful to know:
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 themodlinks
andtrue
. 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.
Ops! You are right it was the missing equals sign. Working fine now, thank you.
I have a custom field defined for my form. It is a color input field, as explained here. For the field, in order to define a default value, I try doing this:
..but it doesn’t work because of the pound sign
#
that precedes the hex color value.Is there a way to define the default color/value?
Thanks for bringing this to my attention. I will update the plugin with a way to add a pound sign to any custom field attribute. Until the next plugin update, you can workaround by copying the color input element, and pasting directly into your form. Then you can manually add the
value
attribute and define it with whatever color/value is required. So in the form, you will have something like this, for example:That’s just an example, you will want to make sure to copy/paste the actual input field that is generated for your form.
Hello,
Is it possible to put all the fields “email, name, url or custom fields” in the content of the article?
If yes, how ?
thank you so much
Absolutely you can use the free Helper addon to display custom fields on the front-end.
Hi,
I just bought your plugin USP Pro yesterday (without the SPRING22 sodcount ;-) ), and I think it is amazing.
1) I have a custom taxonomy select field on the form. This field is required. Now I want to let the users add a own term if he not found a suitable term in the select field. With your tuttorial in the chapter “LET USERS SPECIFY THEIR OWN TAXONOMY TERMS” it works fine.
But I have a little problem wth the required taxonomy select field. Is there a way to make the property “required” logically dependent?
“If the user don’t select a value from the required drop down, then make the “” require?
2) there is really no chance to make a edit post on frontend from? Will this feature come in the near future?
Kind regards,
Ole
Hi Ole, glad to help:
1) “Is there a way to make the property “required” logically dependent?”
It’s an interesting idea, but not a current feature of the plugin. The forms are very flexible though, so it’s always possible to add any custom code snippets, etc. as needed to customize things.
2) “there is really no chance to make a edit post on frontend from? Will this feature come in the near future?”
Correct, USP Pro does not include any front editing functionality.
The best way to do this is with dedicated plugins. USP Pro for the forms and submitted posts, and then any compatible plugin for the front-end editing. Using dedicated plugins gives you more control and flexibility going forward, and is the recommended way of building sites with WordPress. Here is a guide to some front editing plugins that are compatible with USP Pro. Note that I try to keep the article updated over the years according to user feedback, so it may not be current with the latest or what’s available etc. Hopefully it gives people some ideas and is useful in that regard.
Hi Jeff,
I’m having a hard time getting values from a custom field to the usp post. My native language is Danish which have æ,ø,å letters. A few of my custom fields have these letters in the value. Could this be an issue?
field#input_checkbox|checkboxes#Jeg er IKKE medlem af repræsentantskab, men er indstillet af følgende repræsentant
Best.
Lars
Glad to help:
“A few of my custom fields have these letters in the value. Could this be an issue?”
Not that I’m aware of. Are you noticing any related errors in your site’s error/debug logs?
Hey Jeff, iam looking for a workaround to delete (or replace) all email adresses (usp-email) and author names (usp-author) in the submitted posts (actual around 300 posts and 10 new per week) … after publishing, i dont need them any longer in the database (regarding security breaches and GDPR) … do you have an idea how to handle it?
Regards,
Dom
Not sure, but if it were me I would look at running an SQL query on the WordPress database. You would need a query to delete specific meta (custom) fields should do the trick.
Hi Jeff, is there a way to set up email alerts to the authors for new comments on their posts? (If this is a general WP setting, please forgive my ignorance!)
Correct, this is something that WordPress does natively. There also are plugins that enhance and customize the process.
Hi, I have a number of custom fields already created on my site via Advanced Custom Fields (ACF). Is it possible to use these existing custom fields in my form and allow users to post data to them?
USP Pro does support some basic fields as explained here, but you need to set them up to work together. Not all ACF fields have been tested so your mileage may vary.
Not sure if this is the right forum to post, but here it it:
The plug-in auto-upgrade to 4.5 in early December and the plug-in now fails to load with following error:
“An error of type E_PARSE was caused in line 62 of the file /home/drbaitnp/dr.dharmatech.us/wp-content/plugins/usp-pro/usp-pro.php. Error message: syntax error, unexpected ‘array’ (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)”
Looking at the code, it looks very innocent and I don’t see any problem.
line 60: private $settings_tabs = array();
line 61:
line 62: private array $admin_settings = array();
Any suggestion on how to debug? Thank you
WP 5.9.8, PHP 7.3.33
Glad to help. That error happens because the minimum requirements are not for WordPress to run properly. The solution is to upgrade WordPress to PHP version 7.4 or better, and the error no longer will happen. I hope this helps, let me know if I can provide any further information.