Today I am coming with a new WordPress plugin, named “WordPress User Frontend“. Some of us want something like that the subscriber/contributor will not be able to go in the WordPress backend and everything these user can control will be done from WordPress frontend.
Features:
So here is my plugin that solves your problem. This features of this plugin in it’s version 0.6 are follows:
- User can create a new post and edit from frontend
- They can view their page in the custom dashboard
- Users can edit their profile
- Administrator can restrict any user level to access the WordPress backend (/wp-admin)
- New posts status, submitted by users are configurable via admin panel. i.e. Published, Draft, Pending
- Admin can configure to receive notification mail when the users creates a new post.
- Configurable options if the user can edit or delete their posts.
- Users can upload attachments from the frontend
- Admins can manage their users from frontend
- Pay per post or subscription on posting is possible
Usage:
- Create a new Page “New Post” and insert shortcode [wpuf_addpost] or for custom post type [wpuf_addpost post_type="event"]
- Create a new Page “Edit” for editing posts and insert shortcode [wpuf_edit]
- Create a new Page “Profile” for editing profile and insert shortcode [wpuf_editprofile]
- Create a new Page “Dashboard” and insert shortcode [wpuf_dashboard] or for custom post types [wpuf_dashboard post_type="event"]
- Correct the permalink structure of your WordPress installation
- To show the subscription info, insert the shortcode `[wpuf_sub_info]`
- To show the subscription packs, insert the shortcode `[wpuf_sub_pack]`
- For subscription payment page, create a new page and insert the page ID in WP User frontend’s “PayPal Payment Page” option.
- To edit users, insert the shortcode `[wpuf-edit-users]`
- Done
Download:
Want to modify?
If you want to extend the plugin, there is a nice tutorial about how you can do that.
Screenshot:
Project is now in Github
The WP User Frontend plugin is now hosted in Github repository. You can always find the newest fix and updates from the Github page. You can also contribute to this project if have some cool idea and will be very helpful for me too.
Support Forum
For plugin support, please use this support forum.




I can not insert Packs.
Sorry, now it is ok.
Hi Tareq,
when I select the category to which I want to include post, the browser opens the page the archives of that category. I have to click the Back button and then set the category will be displayed correctly as it should be. Can you please advise how this problem? Thank you.
@josno Other plugins or your theme is conflicting I guess.
Hi Tareq,
Love the plugin; one problem, though — when trying to insert links in the rich text editor, it’s not possible to modify the URL and title fields; it’s almost like the fields are disabled. This is occurring in all current browsers; I’m not seeing any errors in the JS error console. I deactivated all other plugins to see if there was a conflict, and that made no difference.
@BobJamison I am not seeing any problem. Here is the screenshot on twenty eleven theme (http://www.diigo.com/item/image/1e14c/jkp5).
Hello, congratulations for the plugin is fantastic, I only have a small problem, when you publish a post does not take the date that I entered in the field, but that takes the time of publication!Is there a solution?
I hope so: D, because I’m waiting to solve this thing, to publish thesite!
thanks in advance
Seems that the form won’t submit if you try to attach a file!
@minkayj Make sure you’ve entered the max file upload size in the plugin configuration page.
@tareq @minkayj Worked like a charm! Thanks so much! Love the plugin.
@tareq Just wondering what I would need to do to have your plugin support my existing custom fields that are all managed with the More Fields plugin. This allows for many more field types which I need. Thanks.
Sorry, @lelandzaremba it will not support existing custom fields right now in this version. I am working on a new version, existing custom field support will be there. But can’t give you an ETA right now.
Hello,
because I use a large number of categories, so I’m interested if I can implement into your plugin function plugin Intuitive Category Checklist. Plugin can be found at http://wordpress.org/extend/plugins/intuitive-category-checklist/
Thank you for your reply.
Thanks a lot for the great plugin. We have been searching for the exact functionality of this for quite a long time and we feel we were late in finding this. Nevertheless, this will be helpful to us in lot more projects in the future. I believe this plugin deserved to be officially promoted by the WP guys or they should make you a payment and implement this functionality to WP core. Indeed, this is one big missing portion to WP.
Thanks a lot!
@Ranga Lakshitha You made me laugh about the *core* thing. Core should be clean and simple. Thats why they gave a very nice plugin API to extend the functionality as you want
Hello Tareq, you know how to solve the problem, which I asked you earlier? When you publish a post does not take the dates That I Entered in the field, but That takes the time of publication. thanks
@FabioMaske I’ll have to check on that, really passing some horrible time
am able to post from the front end but the editor is not working properly. If i upload an image, it does not show the image, instead it show’s it’s html code. The visual button does not work , so only html code is shown. Here is my image of the editor which shows on the front end post page : http://i45.tinypic.com/2i9mrgk.jpg
It is different from the one which is shown in your screenshot :http://s.wordpress.org/extend/plugins/wp-user-frontend/screenshot-3.png?r=552202
Any soultion for this ? Thanks in advance
@codegene Did you try by switching the visual and html mode of the editor? Or switching the theme?
@tareq @codegene The problem is that visual mode is not working. I am not able to switch in the visual mode. By default it is in html mode. I tried switching the theme but still i was not able to use the visual mode.
Hi Tareq,
This is a great plugin and im really thankfull for it, hovever i do have 1 question.
When logged in, and wanting to add a new post, the rich text editor, doesnt show all the button. Im using a plugin for recipes called hrecipe, and even if i have installed a Tinymce advanced editor, with more options and buttons, it still doesnt show.
If im posting from the backend, i see no problems, only fro tme front end.
Any ideas if possible to fix this.?
Bet regards fro Denmark,
Kristian
@Kokkekniven Can you try the latest version from github? https://github.com/tareq1988/WP-User-Frontend/zipball/master. There is a setting on backend to switch the textarea like normal/rich/full. Try setting the full textarea. There are other improvements though, a new attachment and featured image system has been added.
Thanks for the plugin. The trouble I have is that when I change the “Post Status” (from the Frontend Posting Options) to “draft”, any new post is still published instantly.How can I force this?Also, I allow posters to choose a category, but when they choose the category from the drop down menu, the pages reloads that category before allowing the post to be entered.
Tareq,
This plugin is cool. I like this a lot. I know this is going to help developers a lot. I have one thing to ask form you. I like to use set of custom fields and in the front end i like users be able to check some or all of the custom fields. Is that possible? right now i see text-box, drop-down and text-area to use collect custom fields.
@jwlakshitha yes, possible. But it’s not going to be added soon.
Can you make an option to disable front end posting. The new scripts that are now added to the head disrupted all the other jquery scripts I’m using on my site. I only use this plugin to allow users to edit/delete post and I thought there used to be an option to disable the front end posting part.
@PolluxKhafra What kind of jQuery problem are you having? To disable the frontend posting, just don’t create that “Add Post” page, that’s all.
@Tareq The wpuf script and inline script were added to the head which broke a number of scripts I was using like jquery masonry, infinite scroll, buddypress js, ajax comments script. For now I’ve just deregistered the ‘wpuf’ scripts from running which removed the inline script aswell that gets inserted into the head.
@PolluxKhafra can you give me the errors it’s generating?
@Tareq I don’t see actual errors. It’s just causing them not to work. Jquery Masonry stops applying. Infinite Scroll tops working. Buddypress js for the menu stops working.
Hello Tareq,
Is it possible to show all attachments in the posts except image type attachments? I would like to use this feature to show links to some documents and other files.
Also maybe it is possible to array them in rows instead of columns?
And regarding the images I’m showing them by adding the code directly in the theme (including the featured image).
@VaidasV These files or images are attachments to the post. I think you will find a way to get those attachment list from a post and filter them via MIME type.
@Tareq Thanks. Figured out some solution.
I turn of the option to show attachments in the post and insert such codes into single.php:
To show photos:
<?php echo do_shortcode(‘[gallery option1="value1"]‘); ?>
To show pdf and MS word type files:
<ul> <?php $args = array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘application/pdf,application/msword’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID, ‘orderby’ => ‘menu_order’, ‘order’ => ‘desc’ ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo ‘<li><a href=”‘.wp_get_attachment_url($attachment->ID).’”>’; echo $attachment->post_title; echo ‘</a></li>’; } } ?> </ul>
Hope that the code will be visible..
Hello @Tareq ,
one more question.
I found that after the last update category choosing on the front end is not always working properly (ajax powered option). The problem is that sometimes the subcategories selection box is not always appearing. Any suggestions..?
P.S. Other options (checklist and simple selection) are inappropriate because while using them and selecting some subcategory, the plugin is not selecting the main category (only selected subcategory).
@VaidasV There might be one cause, those categories have no posts. Otherwise I don’t find any reason why it shouldn’t work.
@Tareq Figured out when it’s not working. Subcategories are not appiering for selection if only I select plain text content editor type. With both variants of rich text editor types they are working properly.
Is it a bug or just problems in my project? Any ideas how to solve it..?
@VaidasV I don’t see any errors like that.
HOW CAN I INCLUDE CUSTOM FIELDS CheckBoxes WHY SHOULD MY USERS TO SELECT THE DIFFERENT OPTIONS MAY NOT DORPDOWN
@OscarCrolla There is no option for checklist right now.
@Tareq need your help on one more small (i hope so..:) ) issue.
My theme is overriding your plugin front end settings and while adding posts it is adding bullets on each line. For that I have deleted all the <li> and </li> in wpuf-add-post.php and attachment.php, but can not find where to change that for custom fields.
You can chenk how it looks like:
http://postimage.org/image/p614tcabd/
P.S. maybe it could be the reason why my ajax category selection is not working also? It was also not forking even before deleting all <li> and </li> in the code.
@Tareq The same problem with showing custom fields in posts. It also adds bullets and moves everything to right bellow the custom field..
Hi Tareq, there is news on the problem of the date of publication?
And I wanted to ask, I noticed that if I upload lots of photos, such as 100, by inserting multi-file, upon confirmation, reload the iframe, taking off thumbnails below, leaving them in the media library, I do not know if I are explained: D, but let me know if you is.
And last thing, insert images and published properly, visuallizzate in wp-admin – media are not attached in any post. Expect an answerthanks in advance
Pingback: WordPress Settings API PHP Class – It was never been easier « Tareq’s Planet
@FabioMaske I think the date publication issue should be fixed by now, did you tried? I am not sure about your other questions.
@Tareq the date of publication, it does not work yet, still takes the date of actual publication, not that I enter in forms. and then, I said that when viewing photos in wp-admin – media, all photos are (Unattached), and unrelated to their post. This does not allow me to see what photos you’ve entered in a particular post.
@FabioMaske I pushed a fix for publication date just now, should work fine. About the media attachment, I am not sure whats you problem, but at my end, it’s nicely attaching with the post and I can see it from media too.
It is possible that some subscription packs remained hidden for users? For example, the subscription pack with zero subscription price or promotional pack that could always use some time and then hide them again? Thanks for reply.
@josno no plan for now, may be will be come in a future release.
Tareq hello, thanks for the updates, now adding the date works perfectly!The last thing I want to fix, is that I wish I could change the date when I edit a post, because now, I see the form data, only when I create a new post, and not when I modify it.Can I fix it somehow?
@FabioMaske The date functions are in the wpuf-add-post.php. You could edit the wpuf-edit-post.php to make it work. I am not going to teach you how to edit codes, it’s beyond of this scope.
Is plugin include adding pages by users?
@PiotrKopera can you please clarify?
hi tareq
thanks for your great works. impressed, simple codes that I never seen before
hey could you give me some information about feautred image and attachment?
like accessing way, where the functions are, diagram etc
it doesn’t work well in Buddypress theme so need to be moderated.
hi tareq
thanks for your great works. impressed, simple codes that I never seen before
hey could you give me some information about feautred image and attachment?
like accessing way, where the functions are, diagram etc
it doesn’t work well in Buddypress theme so need to be fixed it up
hi tareq
thanks for your great works. impressed, simple codes that I never seen before
hey could you give me some information about feautred image and attachment?
like accessing way, where the functions are, diagram etc
it doesn’t work well in Buddypress theme so need to be fixed
@HoonJiByun featured image codes are in, wpuf-ajax.php for uploading and wpuf-add-post for setting the image as featured. The attachment handler is in /lib/attachment.php
Hi Tareq, I updated yesterday and now the image upload buttons are not working, including in the editor as well as the Featured Image button. Is there an issue with this from the update or coincidence? Thanks!
@DiaperDeal I am not sure what causing you problems, working fine on my end and I guess on others too.
I’m using this plugin right now, and honestly I love it! It does exactly what it says. The only thing I would like to add is the ability to allow people to add pictures to their profile if they want. Not sure how to do that. Other than that, it’s great!
Nevermind, I added DT Author Box and it adds that to it. Great Plugin though!
hi tareq
how to change permalink type?
and I hope to add “edit post” links on every single postings(or replace “edit this entry”) but I’m not sure how to do
editting links in wpuf dashboard doesn’t work. take a look at this :http://www.fffit.me/189/?pid=218&_wpnonce=acba43ff63
@HoonJiByun For editing posts, you have to set the edit page inside the plugin settings. Once that’s done, just click edit in the dashboard and it’s should work just fine.
@SeanBradbury Wow It worked like charm! thank you very very much.
hi
i want users to be able submit posts without having to register if the dont wish to. Currently where the form should be it says “This page is restricted. Please Log in to view this page.” Can you help? thanks
hi
i want users to be able submit posts without having to register on the site if they dont wish to. Currently where the form should be it says “This page is restricted. Please Log in to view this page.” Can you help? thanks
bnvnb
Hi I want the author of the submitted content to be the users name they enter in a field without having to login in to the site. Like how the “user submitted posts” plugin shows the users name as author withot having a registered profile on the site, whereas at the moment WP User Frontend reverts to admin if they arent logged in.
Really appreciate any help. thanks
@robynred sorry, it’s not supported currently.
Can I change default size of editor field? where should I fix?
@HoonJiByun you can only change the height. width can be set with css. find this line and change the textarea rows.
<?php wp_editor( $description, ‘new-post-desc’, array(‘textarea_name’ => ‘wpuf_post_content’, ‘editor_class’ => ‘requiredField’, ‘teeny’ => false, ‘textarea_rows’ => 8) ); ?>
Tareq. Thanks for the response Tareq, appreciate it. One more quick question sorry if its easy i’m so not a coder. The section here on the wpuf-editprofile.php …
printf( __( “This page is restricted. Please %s to view this page.”, ‘wpuf’ ), wp_loginout( ”, false ) ); }
Ok so the %s displays the word and link to “Log in” but i want it to say register with a link to the register page instead, so was looking for some help on where to change code for this to display. Thanks
Thanks for the response Tareq, appreciate it. One more quick question sorry if its easy i’m so not a coder. The section here on the wpuf-editprofile.php …
printf( __( “This page is restricted. Please %s to view this page.”, ‘wpuf’ ), wp_loginout( ”, false ) ); }
Ok so the %s displays the word and link to “Log in” but i want it to say register with a link to the register page instead, so was looking for some help on where to change code for this to display. Thanks
@robynred replace with this:
printf( __( ‘This page is restricted. Please %s to view this page.’, ‘wpuf’ ), wp_register( ”, ”, false ) );
@Tareq thanks you!
@Tareq thank you
@Tareq thanks for the reply, that didn’t work though, still says the word log in and links to login page after the above changes
@robynred there is no reason that it shouldn’t work. you must did something wrong :/
@Tareq i copied exactly what you put above. Did you mean to put the 2 quotation marks ? … ( ”, ”, false ) )…. in the original there was only 1 … ( ”, false ) )
@Tareq i copied it exactly as you have written above. is there anything else that needs to be changed somewhere?
@robynred I am not sure what came wrong.
@Tareq ok thanks for the reply. If i want to keep it the original of …
printf( __( “This page is restricted. Please %s to view this page.”, ‘wpuf’ ), wp_loginout( ”, false ) ); }
but also have it say register, how do i do that. I want it to display “this page is restricted. Please login or register to view this page”
@robynred the correct version would be printf( __( ‘This page is restricted. Please %s or %s to view this page.’, ‘wpuf’ ), wp_loginout( ”, false ), wp_register( ”, ”, false ) );
if this doesn’t work for you, try this:
echo ‘This page is restricted. Please <a href=”http://example.com/login”>Login</a> or <a href=”http://example.com/register”>Register</a> to view this page.’;
@Tareq when i add the first set of code you gave above it displays this …
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/public_html/site.com/wp-content/plugins/wp-user-frontend/wpuf-editprofile.php on line 30
when i go to line 30 its a blank line with no code. argh
@Tareq neither of those work
anyone else tried this?
@robynred@Tareq
GOT IT!!! Try this -> For anyone who happens to over look it like I did its under Settings, General, Membership (select anyone can register)…it should then allow you to add the coding
printf( __( ‘This page is restricted. Please %s to view this page.’, ‘wpuf’ ), wp_register( ”, ”, false ) );
@Tareq @robynred Having the same problem ….
where would “wpuf_customs” setting be? in what file… I think thats what is causing the problem and over writing the coding we are trying to add. (I dont know I could be wrong tho)
After I changed the coding in the edit profile_php is still being over ridden saying “This page is restricted. Please Log in to view this page.”
This is what the coding is showing even tho I changed it in the editprofit_php
“ <div></div>This page is restricted. Please <a href=”http://alovinggoodbye.org/wp-login.php?redirect_to=http%3A%2F%2Falovinggoodbye.org%2F%3Fpage_id%3D480″>Log in</a> to view this page.<ul><ul> </div> <!– end .entry –>”
I dont know If I am getting closer to figuring out why I cant get it to work
@DavidLHendrickson you are right it is being overridden by code elsewhere, i’ve been trying to figure out where to no avail yet. I asked Tareq if there was code elsewhere that had to be altered so hopefully he’ll get back to us
@robynred ok my friend try this. Go to wp-user-frontend/wpuf-edit-user.php
I think I found it there! –>} else { //user is not logged in printf( __( “This page is restricted. Please %s to view this page.”, ‘wpuf’ ), wp_loginout( ”, false ) ); }
I think you you copy and paste the correct doet here it should work
@robynred wait man I think that fucked up my site… did it work for you?
@DavidLHendrickson it just displayed as before showing login only. I’m going to find all instances of that code and replace it with the new register version and see how that goes. From what Tareq had said it seemed it was only in that one php file that it had to be changed, def not the case it seems
@robynred keep me posted man. Ill keep looking as well.
@DavidLHendrickson halle – freakin- lujah it worked finding every instance of it in the different php files
@robynred HA!!! Your a rockstar! Do you know which or how many files there were! Great work!
@DavidLHendrickson these wpuf-edit-profile, wpuf-dashboard, wpuf-add-post, wpuf-edit-user, wpuf-edit-post
@robynred Sweet got it man! Thank you!
I am having an issue with my home page after installing this app…. it pulling in photos on the home page and pushing the content down. Would you know why?
What i mean is the plugin is pulling photos and adding them to the end of every page on my site. Do you have a fix for this?
@DavidLHendrickson turn of the “Show attachments in the post” from “others” tab.
@Tareq Your a rock star man! Thank you ! Works perfectly! This is for my nonprofit to save animals! I really appreciate your help and great plugin!
@Tareq One last question how do I make is so user who are NOT logged in can leave a post. It says now “This page is restricted. Please Log in to view this page.” THANKYOU
@DavidLHendrickson This feature is not yet supported.
@Tareq is there anyway to make this work? Or do you know of a plugin to work with your to make the registration process automatic? Thank you for your help this is for saving animals for my nonprofit!
@DavidLHendrickson May be the “User Submitted Posts” post plugin has this feature, not sure though.
@Tareq thank you for the advice man I really appreciate it! keep me posted if you ever get it to work for people who are not logged in! It would work perfectly for my animal nonprofit! Thank you again!
@Tareq Hey Tareq can you explain how to redirect the user who wanted to leave a post to the “register” page rather than login that way its more automated?
@Tareq like do we need to dowload a register plugin in order to add this coding?
printf( __( ‘This page is restricted. Please %s to view this page.’, ‘wpuf’ ), wp_register( ”, ”, false ) );
when I tried adding it It took my site down. Do I need to add a Register plugin for this to work properly?
@DavidLHendrickson Hi David, it doesnt work for me either
its driving me up the wall lol
@robynred GOT IT!!! Try this ->For anyone who happens to over look it like I did its under Settings, General, Membership (select anyone can register)…it should then allow you to add the coding
printf( __( ‘This page is restricted. Please %s to view this page.’, ‘wpuf’ ), wp_register( ”, ”, false ) );
@DavidLHendrickson no thats not the problem for me as I already have that checked
@robynred Damn sorry man. It worked for me. Good luck with this! Ill keep my eye out!
@DavidLHendrickson i’m using the Genesis framework for wordpress so maybe that has something to do with it.
@Tareq
Having the same problem ….
where would “wpuf_customs” setting be? in what file… I think thats what is causing the problem and over writing the coding we are trying to add. (I dont know I could be wrong tho)
After I changed the coding in the edit profile_php is still being over ridden saying “This page is restricted. Please Log in to view this page.”
This is what the coding is showing even tho I changed it in the editprofit_php
“ <div></div>This page is restricted. Please <a href=”http://alovinggoodbye.org/wp-login.php?redirect_to=http%3A%2F%2Falovinggoodbye.org%2F%3Fpage_id%3D480″>Log in</a> to view this page.<ul><ul> </div> <!– end .entry –>”
I dont know If I am getting closer to figuring out why I cant get it to work
Pingback: What features would you love to see in “WP User Frontend” plugin? « Tareq's Planet