שלום רב גולשי Modim.co.il .
היום אני מביא לכם את המוד FCKeditor – עורך WYSIWYG מקצועי למערכת הפורומים החופשית, phpBB 3(אולימפוס).
מוד זה מאפשר להפוך את איזור עריכת ההודעות ל"מין עורך Word", אשר מקל על כתיבת ההודעות ומוריד את הצורך בשימוש בתגי BBcode מסורבלים.
היום תרגמתי לכם את המוד FCKeditor, אשר מוריד את תגי הBBcode מההודעה(במקום שאתם צריכים להראות את תגי ההדגשה(B), בעת הדגשת טקטסט, אתם יכולים לראות כבר את הטקסט מודגש עוד לפני ששלחתם את ההודעה).
קישור לאשכול המוד בפורום phpBB העולמי:
http://www.phpbb.com/community/viewtopi … 0&t=589975
גרסאת המוד:
0.1.0 אלפא.
הורדה :
FCKeditor - WYSIWYG Editor
(2,342 הורדות, 1.5 MiB)
הערות:
הוספתי למוד זה את FCKeditor 2.6.4.1(ובכך, לא תצטרכו להוריד את חבילה זו מהאתר של הרשמי של יוצר המוד ולהוסיף אותה לתקייה הנבחרת).
העברתי את המוד לModX בגרסה 1.2.2 והוספתי הערות שימושיות בעברית.
קרדיט התרגום שמור ליונתן לוי(yonatan.l [at] modim.co.il) מצוות Modim
אסור לעשות בתרגום זה שימוש כלשהו ללא אישור เปิดแฟ้มทะเบียน plus.php ในไดเรกทอรี / wp-content/plugins/register-plus / และมองหาส่วนต่อไปนี้:
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');
בהצלחה