dizzystreak
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Valid subdomain namesThanks for the plugin link.
I’ll look into it. Maybe there’s hope for those dashes yet ??
But I’m not giving them underscores or other funky characters.Forum: Networking WordPress
In reply to: Valid subdomain namesDon’t Edit Core.
That’s what I’m tryin to avoid as a rule so our production site remains unchanged.
Do you think I could use a plugin to manage that?
I never even tried to write one, so I’m not sure what’s possible and what not.Forum: Networking WordPress
In reply to: Valid subdomain namesI may have left out, that our users can create new sites on their own.
The proposed sollution requires the admin to do that for every user that wants to create a site with a dash in the name.
So, no beer ??I kept poking through the sources and I found a little piece of code in wp-includes/ms-functions.php:651 that validates the entered name.
$maybe = array(); preg_match( '/[a-z0-9]+/', $blogname, $maybe ); if ( $blogname != $maybe[0] ) $errors->add('blogname', __('Only lowercase letters and numbers allowed'));
I added a dash (-) into the regex (‘/[a-z0-9\-]+/’) and voila, users can now create sites with dashes in the name.
There are two things that concern me though.
First, I’ll forget to redo this little trick after upgrading WordPress to a newer version. To avoid this, do you know of a plugin I could use to manage this?
Second, are you certain that using dashes won’t break anything? Are there other name validity checks elsewhere in the code?Forum: Themes and Templates
In reply to: Translating the Theme/Plugin descriptionIf I understand the info here https://codex.www.ads-software.com/File_Header correctly then plugin descriptions CAN be translated by adding “Text Domain and Domain Path” into the file header block.
I could not find anything on how to do the same thing for themes.
Is it actually possible to translate the description in themes?Forum: Plugins
In reply to: [simpleSAMLphp Authentication] Setting up simpleSAMLphp Authentication plugin0.5.1 with brkt’s fix seems to resolve our problem.
Go to the Network Admin dashboard and click on Users.
Clicking on a username will open the profile page for that user.
Check the box for Super Admin (Grant this user super admin privileges for the Network.).
Save the changes.
The user can now log in via the simpleSAMLphp Authentication plugin and he/she will be granted Super Admin privileges.Forum: Plugins
In reply to: [WP YouTube Lyte] [Plugin: WP YouTube Lyte] TranslationOK, I’ll bite ??
I’ve changed the code to accomodate translation and added a Slovenian translation file.
Now, where do I send this, so it can get included in the next release?Forum: Networking WordPress
In reply to: How can I hide ONLY certain plugins options to admins?Hiding options for selected network activated plugins from the site admins, is this feature available in WP 3.1?
If not, can it be done manually?Forum: Plugins
In reply to: [simpleSAMLphp Authentication] Setting up simpleSAMLphp Authentication pluginThanks brkt.
I tried it with WP 3.0.5 and SimpleSAML 1.6.3.
It worked, after I removed the ampersands from
function authenticate(&$username, &$password) {
Forum: Themes and Templates
In reply to: Code errorThe errors posted were produced using WP 3.0.4 and a freshly downloaded package of Picture Perfect, which at the time was at version 1.3.3 and is also the last version available. The theme was last updated on 2010-01-28 which is about a year ago. ??
So, any similar experiences or suggestions on how to fix it ?