Raspored Registracija Plus plug problemi nakon preseljenja u WordPress 2,7
Mi smo svi vjerojatno upoznati s dodatkom vrlo korisno - Registracija Plus .
Nakon prelaska na inačicu 2.7 WordPress, nekoliko problema su aditiva;
- Registracija lozinku ispitivanje snaga ne radi.
- Common.js file problem (s imenik wp-admin/js). GetAllUserSettings funkcija (): userSettings varijabla nije definirana.
- Nakon što učitate prilagođenu sliku - osobno povezivanje / Lharsh datoteka ne radi više.
Mod programeri vjerojatno "zaboravili" da se serije patch verziju 2.7, iako je nekoliko mjeseci prošlo dobro.
Zahvaljujući WordPress zajednice je rješenje za ove probleme (da Credit MarQ_ZA Val - Mdvaldosta rješenje).
Izmjene i dopune lozinku snaga provjeru problem -
Otvorite datoteku registar-plus.php u direktorij / wp-content/plugins/register-plus /, i tražiti na sljedećem odlomku:
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.










































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