ホーム > WordPressのModim >アレンジメント·レジスタプラスプラグインの問題ワードプレス2.7への移行後

ワードプレス2.7への移行後の配置登録Plusのプラグインの問題

非常に便利なプラグインは、おそらく馴染みの我々のすべて- プラスを登録します

WordPressのバージョン2.7への移行後、いくつかの問題は、添加剤であった。

  1. 登録パスワードの強度テストでは動作しません。
  2. Common.jsファイルの問題(のディレクトリwp-admin/js)。 GetAllUserSettings関数():userSettings変数が定義されていません。
  3. カスタムイメージをアップロードした後に - 個人的にLharsh接続/ファイルには、もはや動作しません。

Modの開発者は、おそらく数ヶ月は良い経過したが、バージョン2.7シリーズのパッチを取得するには、 "忘れてしまった"。

WordPressのコミュニティのおかげで、これらの問題(の功績へのソリューションですMarQ_ZA -ヴァルMdvaldostaソリューション)。

問題をチェックして修正パスワードの強度-

ディレクトリ/ wp-content/plugins/register-plus /内のファイルレジスタplus.phpを開き、次のセクションを探します。

if ( strength == pwsL10n.bad ) {
jQuery(res).addClass('bad');
jQuery(res).html( pwsL10n.bad );
}
else if ( strength == pwsL10n.good ) {
jQuery(res).addClass('good');
jQuery(res).html( pwsL10n.good );
}
else if ( strength == pwsL10n.strong ) {
jQuery(res).addClass('strong');
jQuery(res).html( pwsL10n.strong );
}
else {
// this catches 'Too short' and the off chance anything else comes along
jQuery(res).addClass('short');
jQuery(res).html( pwsL10n.short );
}

לאחר שמצאתם את המקטע, החליפו אותו בקוד הבא:

if ( strength == 2 ) {
jQuery(res).addClass('bad');
jQuery(res).html( pwsL10n.bad );
}
else if ( strength == 3 ) {
jQuery(res).addClass('good');
jQuery(res).html( pwsL10n.good );
}
else if ( strength == 4 ) {
jQuery(res).addClass('strong');
jQuery(res).html( pwsL10n.strong );
}
else {
// this catches 'Too short' and the off chance anything else comes along
jQuery(res).addClass('short');
jQuery(res).html( pwsL10n.short );
}

תיקון הבעיה בקובץ commen.js -

פתחו את הקובץ commen.js הנמצא בתקייה /wp-admin/js/ , וחפשו את המקטע הבא:

// Returns all settings as js object.
function getAllUserSettings() {
return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
}

והחליפו אותו בקוד הבא:

// Returns all settings as js object.
function getAllUserSettings() {
if (typeof(userSettings) == 'undefined')
{
return {};
}
else
{
return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
}
}

תיקון בעיית העלאת לוגו מותאם-אישית -

פתחו את הקובץ register-plus.php הנמצא בתקייה /wp-content/plugins/register-plus/ , וחפשו את השורה הבאה:

$upload_dir = ABSPATH . get_option('upload_path');

והחליפו בשורה הבאה:

$upload_dir = get_option('upload_path');

בהצלחה :)

No related posts.

קטגוריות: WordPress Modim תגיות: , , , , ,
  1. 1 יוני, 2009 מתוך 06:47 | #1

    תודה :]
    מדריך שימושי ותקין לחלוטין.

  1. אין הפניות עדיין.