Wordpress User restriction without any plugin - php

I'm currently stuck with a problem regarding user authentication in Wordpress, and i think i need some guidance in how you would solve this. So any feedback is much appreciated.
First of all, my setup is pretty basic and i create pages and posts with ACF - I try to minimize the use of Wordpress plugins since 99% it brings a messy experience and functionality.
My question:
I want to create a simple Wordpress "application", where a user that is signed in:
Belongs to a Company.
Can only read assigned Reports (CPT).
Every page and post are restricted to logged in users only.
The users reports (CPT) is only shown in the frontend - a user (company) should not have access to wp-admin
I believe the easiest way to do this would be to make a multisite, creating a subdomain:
company.website.com/reports
My concern is that this would eventually create a lot of WP installations and if i update one of my Custom fields (ACF), i would need to update this on each installation.
How would you solve this issue? Would the subdomain be the right solution?
Thank you for helping out.

Related

Any way to assign role to different users on the same single Wordpress page/post?

Hello I am working in WordPress CMS. I need to complete a project which requires different users to act on a same post/page because they will be able to access and modify only the sections of posts they can have access.
So needs some plugin or action in WordPress by which I can achieve this feature. Please help.
Thanks in Advanace :)
User Roles is a plugin that we use and it's great.
For what you need, try Capability Manager Enhanced, it is pretty intuitive once you install it.

Best Way To Merge My Existing Custom User Database With WordPress?

I'm sure this has been asked before though I can't seem to find a clear answer or clear direction on how to handle this. Would appreciate a point in the right direction.
I have an existing custom website/web app with about 7,500 current registered users in the database and I want to add a WordPress help forum. I have installed WordPress and a Q & A plugin in a help dir on my site. What's the best way to handle not having to use the wp databases?
I have played around a little and wrote a plugin that pulls my session/cookie data userinfo on the WordPress pages, can I somehow manually set or override the existing wp user_id and other vars so that when a new entry in entered it corresponds with my current database?
I'm also assuming I would need the register link to be changed to my site reg page as well as update WordPress somewhere so that it pulls names/emails of entries userid from my database.
Is this even the right way to handle this or is there a better way?

How to customize Plugins and Themes for WordPress

I am currently trying to build a website for a client using WordPress for a school project. The client requires a user system with a log in and storage of user permissions and information.I downloaded a plugin called Simple Membership because it had the best reviews for user membership plugins.
The biggest problem I am experiencing at the moment is the default contact information that comes with the plugin is not the information I wish to store. I need other fields to be stored. I am a developer so I first took a look at the code using FTP and made a few changes just to the registration form to show off to the client for the first iteration.
I have now been made aware that when updating the plugin all of my changes will be overridden. I am here to ask if there is an efficient way to make changes to a plugin without creating a new plugin(does not seem practical, I need to change the function of this plugin not just add to it). At the moment that is the only solution I am aware of. Can someone point me in the right direction?
It may not be the best solution but it's practical on your case.Take a backup of your formula plugin and re install it if a new update comes in.

Allow users to edit a Single page on Wordpress

i manage my company website which runs WordPress. There are several chapters across the USA. I have pages setup for them so that people can view our chapters content. I was wondering, instead of them emailing me the changes they want. Is there a way where i can allow the users to only be able to edit a single page, without giving them access to the entire WordPress admin page/ website.
I would be willing to pay for a commercial plug if this option exists. Thanks for reading this.
There are Various Free / Paid Solution will be available for this based on your Model You can Choose any one of the following or there could be many other ways to get this done these are some of the way
You Can make them Editor and The Owner of the Chapter which they blong so in this way they will not have any rights to Edit other Chapters they will be only able to edit the Chapters which they own.To restrict other access in this case you can use plugin like User Role Editor and many other available at Wordpress repo.
You can also customize plugin like WP User Frontend to achieve the front end edit possible.
A Complete Custom Solution where use need not to login they simply submit the Changes which will be logged as article draft and you can later review and approve.
i think there will be much more way but it will be completely based on your applications nature so hope this helps to you.

wordpress help... integrating existing PHP code to work side-by-side

I know very little of WP aside form it being a CMS geared towards (or started from) blogging, but may people have found the product capable of functioning as their sites CMS.
I was recently asked to write a PHP app to signup, (with email confirm and email notification to admin), login to make and manage orders. - so a user can register and get an email confirmation... once they are approved, they can log in, and place an order. and manage their information. There is also an admin section to manage the users and requests... ALL very straight ahead.
So I write it - and test it and everything is fine... Until the client tells me that it's going to be part of a WP site.
Problem, the client ONLY knows HTML, NOT PHP... I don't know WP.
When I upload a directory to the root - and try to run the app, I get redirect to /$url .. and a page not found displaying in the WP theme.
I have a feeling it has to do with the AUTH module I'm using... but there is a huge BIG PICTURE issue I need to conquer - how to integrate an existing PHP app into a WP site...
Q: how do I reference and use the WP emailing system?
thx - I know it's a broad question. but if someone can point me into a direction...
I have read the post regarding templates in WP and setting up a template with PHP code so it's executed... but it seems 'wrong' to have to create a template for each php page.
What your app is about ? If you got only the Auth module already coded you should only import user and password because WP does this out-of-the-box.
Wordpress can be twist up for your need but you need to do it in the WP way :).
If you want to add some functions to it check out the plugin library on wordpress.org. If you know wordpress and no plugin match your needs then the best way to go is writing your own plugin : https://codex.wordpress.org/Writing_a_Plugin
Or maybe just add your custom functions into functions.php, see https://codex.wordpress.org/Theme_Development#Functions_File
For pages, you basically have to type of it in WP : articles - i.e. blog posts - and the static pages. You can add some custom one check https://codex.wordpress.org/Post_Types
I know this answer is more a bunch of links but if you don't nothing about WP you should first learn how it works before try to hack it.
Hope it helps !

Categories