ntoqiakt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error 500 with remove_meta_boxSo, it seems it was a fluke that the above code worked!!
Here’s what actually works (and added a couple of metaboxes too):
function my_remove_meta_boxes() { if(!current_user_can('administrator')) { remove_meta_box( 'tagsdiv-post_tag', 'post', 'normal' ); remove_meta_box( 'formatdiv', 'post', 'normal' ); remove_meta_box( 'authordiv', 'post', 'normal' ); remove_meta_box( 'postcustom', 'post', 'normal' ); remove_meta_box( 'trackbacksdiv', 'post', 'normal' ); remove_meta_box( 'linkxfndiv', 'link', 'normal'); remove_meta_box( 'linkadvanceddiv', 'link', 'normal'); } } add_action( 'admin_menu', 'my_remove_meta_boxes' );
Forum: Fixing WordPress
In reply to: Prevent a post's author from commentingI guess my title wasn’t very accurate… however after lots of a searching I managed to find the solution. All credit goes to housebg for posting the solution here:
Comment Moderation Issue – need help
I’ll add it here just in case it helps anyone:
add_filter('pre_comment_approved', 'xko_pre_comment_approved', null, 2); function xko_pre_comment_approved($approved, $commentdata) { $approved = 0; return $approved; }
Forum: Fixing WordPress
In reply to: Comment Moderation Issue – need helpHousebg, you’re my hero! ??
I spent quite a while searching for a solution for this and I posted question here but never got a reply.
Anyways, thanks for doing the hard work! I just tried it on a website I’m developing for a school it works great!!
Hey Michel!!
Thanks very much for that!
Thanks for the fix. It’s working fine albeit without ajax.
Midopicture, would you care to share your fix?
Thanks.
Forum: Networking WordPress
In reply to: WP Multisite- Domain mapped pretty permalinks not workingOk… after some more tinkering (read: stabbing in the dark!) I’ve cracked it!
Just FYI, the whole set up is on a VPS running Debian 6.0.4 with Webmin/Virtualmin
To set up the WP Multisite subdomains, I set the default site to the WP installation and to fix the problem with the pretty permalinks and images I had to comment out the AllowOverride None in the / and public_html directories.
(actually, something similar was suggested among other things in a another thread)
So, basically, I edited the /etc/apache2/sites-available/default to make the above changes and now it’s working just fine!
Perhaps I missed something in the instructions… but anyway, hopefully this might help someone else too!
Forum: Networking WordPress
In reply to: WP Multisite- Domain mapped pretty permalinks not workingHey Mikka,
Thanks for your reply.
My .htaccess (in the root of my home site) is the one that WP tells me I should have in the Settings/Network Setup, ie:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]