Yak39 Posted June 27, 2014 Share Posted June 27, 2014 You just need to set the $vendors_id globally. If your Admin Access names are stored in a database table, add a vendors_id column to that, then add some code to pull that value and set $vendors_id -- maybe in the session. Then you may need to modify the vendor-specific Admin pages to get that value at the top of the page, and remove any means of selecting a different value on the page. Regards Jim Jim, thank you for the suggestion. This is definitely the direction. I was actually thinking to replace vendors_id with admin_id (from that specific contrib), but I sense that in your way probably I would need to edit less files, and especially mess less with categories.php. On that matter: I noticed that the vendors_id values are pulled from the database with a query, stored into the vendors_array and then pushed into a select. Any suggestion on how to hide the field and replace it with a fixed value input depending on the session? No need to give me the full code, I just a sample to be directed to! Thanks again for your time and effort. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.