gpspake
Forum Replies Created
-
Can you elaborate?
You don’t need to change anything, you should be adding the above exactly as is. When you add the style in your theme’s ,style.css, it will override the plugin css. You should be able to add it exactly as it was above; just copy and paste it.
I can’t stress the importance of creating a child theme but that can come later. If add your css changes in your child theme, you will be able to update your theme and the plugin without losing any changes.
You will need to add this to style.css
.wpuf-post-form li div { width:100%; }
You should make a child theme if you haven’t already(Use this guide) so your changes aren’t lost when you update.
Also I highly recommend codecademy’s free web fundamentals course for a quick way to learn css and html. If you finish that course and that child theme tutorial you’ll be able to fix this kind of thing easily.
By the way, I used firebug to do this. see pic.
Ah, you have it set to require login, so I can’t see it. your style.css would be located in wp-content/themes/’your-theme’/style.css make sure you can get to that first.
You shouldn’t have to mess with the plug in. In the folder that your theme is in there should be a file called style.css. Usually you would use a browser add in like firebug to find the class of the item you want to change and then add the changes to your style sheet. Can you provide a link to the page that your form is on?
Um, that doesn’t sound like the right way to be doing this. This should be handled in your themes stylesheet (style.css).
Images can be added directly to. posts if rich text editor is enabled but there are some issues. The image is not only associated with the post but the add post page as well. So any image you upload will appear below the add post form on the page (I’m going to start a separate thread about this.
I used the user role editor plugin to allow contributors permission to add media but not edit or delete it.Got it. I would want to save them all to a custom post type but I’d like to specify what the post type will be when I create the form in the dashboard.
I’m going to try to avoid hardcoding the custom post type as I will probably want to specify the post type for each form.
Thanks, I’ll see what I can do.
This would be a really useful feature. @Reigel, could you share how you did this or at least which files you modified? I’m interested in handling this outside of the plugin core as much as possible so that it doesn’t prevent use of custom fields and won’t be affected by updates. Of course, from what Tareq mentioned, it may be built in soon.
@ Tareq, looking forward to the next update, This is a really great plugin and I’ve seen a bunch of good suggestions and requests for features in the support forums. Keep up the good work!
P.S. I’m working on multiple form functionality, hopefully with some inspiration from Reigel, so if you have any suggestions that would be cool. Thanks.Professor99 Thanks, I’ll check it as soon as I get a chance.
You may have fixed this, but I should probably note that, with my code, even after a post is published and the edit/delete links have disappeared, it can still be accessed directly through the url. The nonce probably prevents this to some extent but I will revisit this before we go live.
Fixed!
To prevent the edit and delete links from appearing in the dashboard for published posts, you only need to amend two lines in wpuf-dashboard.php…
Change line 154 from
<?php if ( wpuf_get_option( ‘enable_post_edit’ ) == ‘yes’ ) { ?>
to
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ && !in_array( $post->post_status, array(‘publish’) ) ) { ?>and change line 164 from
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ ) { ?>
to
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ && !in_array( $post->post_status, array(‘publish’) ) ) { ?>Now, this prevents the edit and delete buttons from appearing for published posts for all users. If you would like admins to be able to see the links you would have to alter it some more but anyone who needs to be editing published posts most likely already has back end access.
I hope this helps someone out there and gets more people to download this great plugin.
Thanks Tareq and I’ll hope you’ll consider this issue in future updates.
Fixed!
To prevent the edit and delete links from appearing in the dashboard for published posts, you only need to amend two lines in wpuf-dashboard.php…
Change line 154 from
<?php if ( wpuf_get_option( ‘enable_post_edit’ ) == ‘yes’ ) { ?>
to
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ && !in_array( $post->post_status, array(‘publish’) ) ) { ?>and change line 164 from
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ ) { ?>
to
<?php if ( wpuf_get_option( ‘enable_post_del’ ) == ‘yes’ && !in_array( $post->post_status, array(‘publish’) ) ) { ?>Now, this prevents the edit and delete buttons from appearing for published posts for all users. If you would like admins to be able to see the links you would have to alter it some more but anyone who needs to be editing published posts most likely already has back end access.
I hope this helps someone out there and gets more people to download this great plugin.
Thanks Tareq and I’ll hope you’ll consider this issue in future updates.
I Fixed It! And I’d like to take a sec to bask in my accomplishment as I am new to php and this, while simple, is probably my greatest coding feat to date. quite rewarding. So…drumroll please.
To prevent the edit and delete links from appearing in the dashboard for published posts, you only need to amend two lines in wpuf-dashboard.php…
Change line 154 from
<?php if ( wpuf_get_option( 'enable_post_edit' ) == 'yes' ) { ?>
to
<?php if ( wpuf_get_option( 'enable_post_del' ) == 'yes' && !in_array( $post->post_status, array('publish') ) ) { ?>
and change line 164 from
<?php if ( wpuf_get_option( 'enable_post_del' ) == 'yes' ) { ?>
to
<?php if ( wpuf_get_option( 'enable_post_del' ) == 'yes' && !in_array( $post->post_status, array('publish') ) ) { ?>
Now, this prevents the edit and delete buttons from appearing for published posts for all users. If you would like admins to be able to see the links you would have to alter it some more but anyone who needs to be editing published posts most likely already has back end access.
I hope this helps someone out there and gets more people to download this great plugin.
Thanks Tareq and I’ll hope you’ll consider this issue in future updates.