I would like to add a page where users can submit content (not just a comment, but a specific 'content type' including the relevant fields). I could use the regular admin link but that would require alternating the admin theme a lot and also would need to hide/disable things i otherwise need.
Is there a good way to display a submission form to the users through which they can submit content? I was looking for a solution via 'Views' but didn't get far.
I hope i managed to get my point across.
drupal 6 or drupal 7?
in drupal 7 you have the field API that is very helpfull to get the fields of an entity.
in drupal 6 you can create your own form with forms API and run node_save() in the submit function.
If the only problem with using the usual node/add/node-type page is that you don't want users to see the admin theme, then you don't have a problem. You can disable the admin theme for non-admin users - on the permissions page, look for "System / View the administration theme". It's already unchecked by default, I think. Any adminny-type pages they access will use your default public-facing theme.
Related
I've made a custom post type, where I want different users to only edit their posts. I've made some restrictions regarding their capabilities on the site and the posts - I don't want them to be able to edit anything other than a few textinputs and such.
For some reason I can't find a way to disable the Yoast SEO metabox on the posts - I've checked Yoast's own doc, but I haven't been able find anything regarding this besides using a plugin called User Role Editor, which doesn't work the way I need.
I've tried the snippet from this place, but it doesn't seem to work either.
TL;DR: Remove Yoast SEO on custom post type for a specific user.
You can use ADMIN MENU EDITOR PRO Plugin
With this plugin, you can choose every parts you want to display by user role in the admin.
This si the simple method.
I have a site in Wordpress.
The functionality I need is such that, I can create 'users' of the site. These users have no purpose editing the Wordpress site in any way, and don't need to know we're even using the wordpress platform.
These users need to be able to edit their contact info and upload/view/swap out their own resume, using a page that I will build for them (not the wp-admin dashboard in any way). This resume will be PDFs and WordDocs.
At first I thought I'd just use the built in Wordpress Users and Roles that Wordpress offers. However, I'm not sure how I would attach resumes to that user, and let that user edit their own resume. I know I can use the 'user_contactmethods' hook to attach basic fields. However, I'd be trying to attach a link to a file that Wordpress hosts, and would need to be able to replace that file on a whim, in php. Also, my goal is to prevent them from ever using the Wordpress dashboard or editing tools.
Next, I thought I could create a custom post type for a 'SiteUser'. That would make it easy to manage a PDF/WordDoc attached to that post type. Also, that user wouldn't have any way to access the Wordpress stuff. Before I do that though, I wanted to ask on here if this really is the right way to do this.
This solution feels hacky.
Can I get some proposed solutions to this problem that could be perceived as 'the proper way'?
Thanks
Here is a rough idea of what you are looking to do.
Step 1
Create the user role for these new users
Step 2
Set the permission for them and disable backend access and redirect all access of those roles to a custom page /account/
Step 3
Use Advance custom fields plugin to create some custom fields on the user meta. (text, file, image)
Step 4
Apply some login logic/form and Link to a /account/edit-info/ custom page with the acf frontend form. https://www.advancedcustomfields.com/resources/create-a-front-end-form/
Step 5
Use these info to display somewhere on the /account/ page
Optional
Using gravity forms instead to manage user data entry gives better control but requires more coding, and a better user experience.
Front-end Admin Steps
Repeat Step 1-2
Loop site user and list them and their custom field files Have a button that opens a Gravity form with the user ID text field pre-populated and hidden, and have a file uploader element.
Add backend hooks after validation directly replace the user meta
containing the file path or ID (however you choice to store it in
Advance custom fields)
I need to create form for users for submiting posts and I need add custom fields to form. I already have bought http://wpdemo.web-dorado.com/ plugin, but now I see that this plugin can't show in frontend users submitted posts.. Maybe you can say what plugin or which file I need to edit?
If you are looking for a plugin specific for posts creation via front end, then you can use https://wordpress.org/plugins/wp-user-frontend/ plugin. Its PRO version is also available with more features.
There are many other form builder plugins available for posts creation from front end. Gravity Forms plugin is a good example for it.
Halo , you can use User Submiter Post , you can get it here : https://wordpress.org/plugins/user-submitted-posts/
I have used it for long time and never get problem, here is the sample i have made :
http://jogjarentalmobil.info/submit
With this plugin you also can modify the form , text tools etc. cool plugin. Hope its can help you
I need to make a Wordpress website having lots of recipes.User will be allowed to read and click on "Cooked" button associated with that particular Article. I would like to store who all user have Cooked that recipe and show it when I am showing the Recipe.
Is there any plugin available which can store User Activities on content(like we have comments plugin) or else what should be the best way to do this?
Take a look at WP Favorite Posts plugin which allows visitors to add favorite posts.
and set the label as "Cooked" instead of "add to favorites" , this will be the easiest way to do it but if you are up for some custom coding then it's simply a matter of saving the recipe post id in the user meta using update_user_meta
I dont know if im asking the impossible, but i want to have a tab in my user edit area that houses all blog related items (ie blog theme, blog info, user blogroll) as opposed to them being inside the user/%/edit and user/%/edit profile.
Im putting together a multi-user site and this is crucial for user-friendliness.
Thanks for any ideas!
Nothing is impossible with Drupal, but doing this would be a challenge.
With hook_form_alter you can alter any form you want. The code for this would have to go to a custom module. Then you would have to recreate the form, with a page callback, and handle the validation and submission. You can probably recreate the code from the modules that create the forms in the first place.
Alternative, you can just leave the settings at user/%/edit and other places, and just create a special form with all blog relevant info. That way the users choose where to edit their info. It will probably be a better choice, since the "blog settings" that's location at user/%/edit, will be more tied to the user, than to the blog. So when a user wants to edit some of his personal details, that's when he would want to edit those blog settings as well.
Your specific might be different, but the default setup is usually a very good default.