首頁 > WordPress的Modim >安排註冊加插件的問題後,過渡到WordPress 2.7

安排註冊加插件問題後移動到WordPress 2.7

我們所有可能與熟悉的插件非常有用- 註冊加

的WordPress 2.7版本的過渡後,有幾個問題是添加劑;

  1. 註冊密碼強度測試不起作用。
  2. common.js文件的問題(目錄wp-admin/js)。 GetAllUserSettings函數():userSettings變量沒有被定義。
  3. 後上傳自定義形象 - 個人連接/ Lharsh文件不起作用了。

國防部開發商可能“忘記”,採取了一系列補丁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. אין הפניות עדיין.