January 4, 201214 yr A little question for you genius's that rock Wordpress... Is it possible to have say 150 users on word press and each user, then when they log in they can only see one page, and one page only, so I'm restricting them from the whole site, no settings, no posts, no admin bar if possible, just the one page? Is that possible?
January 4, 201214 yr Author but wouldn't buddy press ruin my current integral word press design? Or can I use buddy press to allow users to alter one page? Isn't buddy press front end editing? Edited January 4, 201214 yr by OwenONeill
January 4, 201214 yr First of all, when you mean one page.. Do you mean they can edit it? Or just view it? No wordpress genuis, however I found these the otherday while I was looking around.... A wordpress plugin that restrics access.. Plugin If you want them to only edit 1 page... read this thread..
January 4, 201214 yr Author First of all, when you mean one page.. Do you mean they can edit it? Or just view it? No wordpress genuis, however I found these the otherday while I was looking around.... A wordpress plugin that restrics access.. Plugin If you want them to only edit 1 page... read this thread.. Jack this seems along the right lines ( the edit link, which Thank you! ) However the code: $role = get_role('editor'); $role->remove_cap('edit_others_pages'); is good, by putting this into my functions.php file, can I instead of do remove_cap..etc could I just select that individual page and assign it to an individual user?
January 4, 201214 yr Author I've now found this: user_can( $user, $capability ); but don't really know where to put it, because I want each individual user to only have the ability to edit one page, i.e making them the author to get around it, (think that would work?) Edited January 4, 201214 yr by OwenONeill
January 7, 201214 yr Pretty unique usecase scenario you have here, and while I don't know how to go about it at the moment, I'll do some fiddling and see if I can come up with a way.
January 7, 201214 yr Author Pretty unique usecase scenario you have here, and while I don't know how to go about it at the moment, I'll do some fiddling and see if I can come up with a way. I've actually got it where I can add each user now and each user can only have a one way role, which is to edit one page only. I have removed also removed all the other tabs, except pages and profile. and when they click pages, only the pages they authored are editable, (within their own tab at the top). And the rest, are stored in an area, which says pages you don't own. Then them pages, when clicked revert to the web page of it, not the back end. So they can see that other pages in list view, but not the actual back-end of the page. So I think, I'll be happy with that. But I do have another question; I now want to edit the core files of wordpress and tweak the back-end look, anyone know where I can start? With colours and maybe an adittional extra bit of HTML/CSS/Jquery at the top of every editable page? Edited January 7, 201214 yr by OwenONeill
January 7, 201214 yr But I do have another question; I now want to edit the core files of wordpress and tweak the back-end look, anyone know where I can start? With colours and maybe an adittional extra bit of HTML/CSS/Jquery at the top of every editable page? Don't edit core files. They will get over-written every time you update and maintaining changes would be a headache, as well as it being a security risk. You can change the appearance of the dashboard using the following hook in your function.php. However, I'd advise you create it as a plugin instead, as it's functionality you probably don't want to mix up with your theme. function my_admin_head() { echo '<link rel="stylesheet" type="text/css" href="' .template_url('wp-admin.css', __FILE__). '">'; } add_action('admin_head', 'my_admin_head'); Edited January 7, 201214 yr by brightonmike
January 7, 201214 yr Author Don't edit core files. They will get over-written every time you update and maintaining changes would be a headache, as well as it being a security risk. You can change the appearance of the dashboard using the following hook in your function.php. However, I'd advise you create it as a plugin instead, as it's functionality you probably don't want to mix up with your theme. function my_admin_head() { echo '<link rel="stylesheet" type="text/css" href="' .template_url('wp-admin.css', __FILE__). '">'; } add_action('admin_head', 'my_admin_head'); Thanks for the advice! - I'm guessing this allows me to change coloring, etc... Creating this s a plug-in? Obviously would be extremely useful, but I have no idea where to start? Is this a good place: http://codex.wordpress.org/Writing_a_Plugin
January 7, 201214 yr All you need to do to make it a plugin is create a folder in your plugins folder and add a index.php file. Inside your index.php, add the following: <?php /* Plugin Name: Name Of The Plugin Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A brief description of the Plugin. Version: The Plugin's Version Number, e.g.: 1.0 Author: Name Of The Plugin Author Author URI: http://URI_Of_The_Plugin_Author License: A "Slug" license name e.g. GPL2 */ ?> And add your code from above, but changing template url tag to plugin url: function my_admin_head() { echo '<link rel="stylesheet" type="text/css" href="' .plugin_url('wp-admin.css', __FILE__). '">'; } add_action('admin_head', 'my_admin_head'); Make sure you wrap in php tags of course. Then put your wp-admin.css in the same folder. Use developer tools in either Chrome or Firefox to identify elements of the dashboard, and make your adjustments accordingly. Experiment and test until you're satisfied Just one word of advice, maintain the CSS structure. For example, if Wordpress styles a set of classes the same, then if you change them, change all of them - don't split things up. That should set you on the road...and the great thing is, if it all goes tits up, you can just deactivate the plugin or wipe the CSS file.
January 8, 201214 yr Author All you need to do to make it a plugin is create a folder in your plugins folder and add a index.php file. Inside your index.php, add the following: <?php /* Plugin Name: Name Of The Plugin Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A brief description of the Plugin. Version: The Plugin's Version Number, e.g.: 1.0 Author: Name Of The Plugin Author Author URI: http://URI_Of_The_Plugin_Author License: A "Slug" license name e.g. GPL2 */ ?> And add your code from above, but changing template url tag to plugin url: function my_admin_head() { echo '<link rel="stylesheet" type="text/css" href="' .plugin_url('wp-admin.css', __FILE__). '">'; } add_action('admin_head', 'my_admin_head'); Make sure you wrap in php tags of course. Then put your wp-admin.css in the same folder. Use developer tools in either Chrome or Firefox to identify elements of the dashboard, and make your adjustments accordingly. Experiment and test until you're satisfied Just one word of advice, maintain the CSS structure. For example, if Wordpress styles a set of classes the same, then if you change them, change all of them - don't split things up. That should set you on the road...and the great thing is, if it all goes tits up, you can just deactivate the plugin or wipe the CSS file. Cracking Advice there BM! Really is! I wont have time to get on to this until at least next Thursday, bet I'll post screenshots on here of how it goes. How hard is to make an interface, would be good if I could just change it from drop downs, etc I'm definitely 'coding above my weight' but he who tries, wins!
January 8, 201214 yr Cracking Advice there BM! Really is! I wont have time to get on to this until at least next Thursday, bet I'll post screenshots on here of how it goes. How hard is to make an interface, would be good if I could just change it from drop downs, etc I'm definitely 'coding above my weight' but he who tries, wins! I code above my weight all the time. But it's fun, and it's how you learn, and when you get it right and it works the feeling is immense, one of the main reasons I do this job!
January 8, 201214 yr Author I code above my weight all the time. But it's fun, and it's how you learn, and when you get it right and it works the feeling is immense, one of the main reasons I do this job! Mike, why I have you here; one last question! Could I create a Plug-in that maybe contained HTML to have at the top of every page; would be nice to show how many page hits the page is getting in some sort of line graph, would be good to use, if not create. I was wondering If I could use google analytics code and show it at the top? Definitely tweaking wordpress now lol
January 8, 201214 yr http://codex.wordpress.org/Function_Reference/wp_add_dashboard_widget Something like this? You'll need to learn how to use Analytics data feeds too, if you haven't already.
January 8, 201214 yr Author http://codex.wordpress.org/Function_Reference/wp_add_dashboard_widget Something like this? You'll need to learn how to use Analytics data feeds too, if you haven't already. Yeah, like that but just at the top of every admin page. I suppose I can set restrictions for it to only appear as a child of a certain page. I've definitely got a busy week! I'll search the Internet and YouTube for analytic feeds,.. Massive thank you for all you help mike! Greatly appreciate it, +1s all round lol...
Create an account or sign in to comment