Posts Tagged ‘wpmu’
Want to use a WordPress plugins shorttag inside your template files?
Use this nifty php snippet to call the shorttag properly!
So, I know that many of you use shorttags for plugins, simply drop the short-tag onto a post or page and voila! the plugin function is included.
Some times you just want to paste a plugins short-tag directly into your wordpress template files.. If you have tried this before you’ll notice that it simply outputs the shorttag, and nothing is included..
IF however, you want that plugin function to be called somewhere else, like in your template files themselves, then you must use a php snippet to call the shorttag.
So, Use this code to call short tags/ short codes in your themes template files:
This will simply run the plugins shortag in your template files as if it was a real wordpress engine short code
I really like the Dashboard Content Management Plugin. Personally I have it auto activated on my wpmu2.9 sites and network activated on my wp3 installs. its big easy buttons really make the dashboard friendly for my clients.
Problem is its not wp3 compatible! ..Until now!
So I decided to update the Dashboard CMS Plugin for WP3 and legacy compatibility. So this plugin will handle WP2.9+, WPMU2.9, and WordPress 3! Enjoy!
*note: I found a wp3 version that does user privilege checks before showing each button. but this version was legacy unfriendly, so i merged the two files together using get_version().
So this version is 2.9 and 3 compatible, and it checks the users level to determine if it should display each button!
Limit Login Attempts WPMU Friendly + Optimized!
I use wordpress mu(3.3.1) and I just spent some time reworking the ‘Limit Login Attempts’ Plugin (1.6.2) by Johan Eenfeldt to be more WordPress MS friendly. I will mention that this plugin works FANTASTICLY with wordpress MS 3.3.1 + …. Other Mu users may find this usefull… A couple things…
first, I set the variables at the top of the plugins .php file i wanted to be global. The file is very well noted by the author, OMG thank you! Very easy to control what variables the plugin activates with thanks to great coding and thoughtful notation.
Then I used the plugin manager to auto-activate the plugin for all users sitewide.. that way any newly generated blogs will automatically activate the plugin with the settings I want, and having moved the menu, users cant modify them.
That is all
The settings I changed to my liking were;
login attempts set to 4,
lockout log settings changed to ‘log, email’
notify email after 1 lockout
changed individual settings pages to only be visible to admin
emails sent network contact email (pretty sure this is already built in)
Plugin Management vs Plugin Commander, With WordPress MU Or Multi-Site
Plugin Management is far superior to Plugin Commander,
– The Problem is, Plugin Management is not WordPress 3 compatible.. Until Now!
So, I was recently working on a clients site. They were using the new wp3 and total commander. I prefer the wpmu dev teams plugin management plugin as I can disable a user from being able to activate a certain plugin.
So this client had a plugin that allowed php to be accepted in text widgets. now this is obviously a large security hole, and should only be available to the super admin (i.e Me). But with wp3, or plugin commander, you cant disable it from the plugin menu! A sub-blog administrator can go to the plugins menu and choose to enable the php widget! BIG problem. So I looked on different threads and found the only advice was ‘disable the plugin menu’, but what if you want your users to be able to enable certain plugins but not others? my users can enable facebook connect, nextgen gallery, twitter connect, etc, etc, but cannot enable any php allowed widgets, or any other unsecure plugins because i am using plugin mangement on wp3!
If this is exciting to you its because the wpmu team says ‘its difficult to find time for things that are free..’ meaning they havnt updated the plugin for wp3 yet. So, i went ahead and did it myself.
basically, wpmu-admin.php was replaced with ms-admin.php. So i made some minor corrections to the php, and voila! WP3 Compatible Plugin Management Plugin!
Add the .php to /wp-content/mu-plugins/
Use the Older Version for anything under wordpress 3.0
- Pro -Sites Shortcodes, Functions, And Level Checks
- Automatic WP Photo Gallery From Facebook Page Photos!
- Analytics 360 For Editors
- Add nofollow rel tags to image widget
- Image Widget Alignment Fix
- Add GD Star Rating next to Post Title
- Change The Buddypress Admin Bar Logo And Link In WP3 & BP 1.2+!
- New Dashboard Lockdown & WordPress To Buddypress Profile Page Plugin!
- Hide The WordPress Dashboard and wp-admin COMPLETELY!
- Blogs & Members Directory, Strange Nav Spacing FIX