أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

مشكلة عند انشاء موضوع

مشكلة عند انشاء موضوع بالنسخة PBBoard 2.0.4 »اضافة موضوع جديد ');} if(isOpera||isIE){r(/ /gi,' ');r(//gi,'');}


موضوع مغلق


24-12-2009 09:07 مساءً
معلومات الكاتب ▼
انضم في : 24-12-2009
رقم العضوية : 287
المشاركات : 4
الجنس :
قوة السمعة : 0


[color=#545a83] مشكلة عند انشاء موضوع بالنسخة PBBoard 2.0.4

»اضافة موضوع جديد



');} if(isOpera||isIE){r(/
[*]/gi,'
[*]');r(/<\/(ol|ul)>/gi,'');} return a; }, // erase white spaces from the text inside the editor _erase : function (a) { if(typeof a!="string")return a; var b=a; var c=b.substring(0,1); while(c==" ") { b=b.substring(1,b.length); c=b.substring(0,1) } c=b.substring(b.length-1,b.length); while(c==" ") { b=b.substring(0,b.length-1); c=b.substring(b.length-1,b.length) } while(b.indexOf(" ")!=-1) { b=b.substring(0,b.indexOf(" "))+b.substring(b.indexOf(" ")+1,b.length) } return b ; }, // convert HTML to bb when submit bbcode _HTMLtoBBcode : function (a) { function r(re, str) { a = a.replace(re, str); }; if (isIE) { r(/<\/li>/gi, ""); r(/
[*]/gi, "
[*]"); } r(/

<\/div>/gi, ""); r(/
]*>/gi, "
"); r(/[\n\r]/gi, ""); r(/

'; iframeContent += ''; Editor.open(); Editor.write(iframeContent); Editor.close(); this._viewmode = 1; // WYSIWYG } }, //submit BBcode HTML _submit : function (colour) { var Editor = **.getElementById('box').contentWindow.**; if(this._viewmode == 1) { var source = **.getElementById('box_text'); var editor = **.getElementById('box'); var ceditor = bbcode._HTMLtoBBcode(bbcode._erase(Editor.body.innerHTML)); source.value = ceditor; this._viewmode = 2; // Code } }, // print colour palette in a table [PBB2.0.3] _palette : function (dir, width, height) { var r = 0, g = 0, b = 0; var numberlist = new Array(6); var color = ''; numberlist[0] = '00'; numberlist[1] = '40'; numberlist[2] = '80'; numberlist[3] = 'BF'; numberlist[4] = 'FF'; **.writeln('
محتوى الموضوع
عنوان الموضوع : وصف الموضوع (إختياري) :
'); r(/\n+\[tr\]/gi,''); r(/\n+\[td\]/gi,''); r(/\n+\[\/table\]/gi,'
'; iframeContent += ''; Editor.open(); Editor.write(iframeContent); Editor.close(); Editor.designMode = "on"; // disable CSS in Geko ,IE and opera try { // Try new Gecko method Editor.execCommand("styleWithCSS", 0, false); } catch (e) { // Use old method try {Editor.execCommand("useCSS", 0, true);} catch (e) {}; } }, // convert BBcode to HTML code _BBcodetoHTML : function (a) { function r(re, str) { a = a.replace(re, str); }; r(/\n+(\[\/list\])/gi,''); r(/\[list\]\n+/gi,'
  • '); r(/\[list=1\]\n+/gi,'
    1. '); r(/\[list=a\]\n+/gi,'
      1. '); r(/\n+\[\/tr\]/gi,'
'); r(/\n+\[\/td\]/gi,'
'); r(/\[\/table\]$/gi,"
\n"); r(/&/g,'&'); r(//g,'>'); r(/ /g,' '); r(/\t/g,' '); r(/\n/g,'
'); r(/\[hr\]/gi,'
'); r(/\[\/hr]/gi,''); r(/\[table\]/gi,''); r(/\[\/table\]/gi,'
'); r(/\[(\/|)tr\]/gi,'<$1tr>'); r(/\[(\/|)td\]/gi,'<$1td style="font-size: 20px; border: 1px solid #789DB3; background-color: #F4F4F4">'); r(/\[(sub|sup|strike|s|b|i|u)\]/gi,'<$1>'); r(/\[\/(sub|sup|strike|s|b|i|u)\]/gi,''); r(/\/gi,'[font=]'); r(/\/gi,''); r(/\[size=(.*?)\]/gi,''); r(/\[\/(font|color|size)\]/gi,''); r(/\[(center|left|right|justify)\]/gi,'[]'); r(/\[\/(center|left|right|justify)\]/gi,'[/]'); r(/\/gi,'[url=http://www.al7laam.hostwq.net/Upload/$1]'); r(/\[url\](.*?)\[\/url\]/gi,'$1'); r(/\[\/url\]/gi,'[/url]'); r(/\/gi,''); r(/\[Email\](.*?)\[\/Email\]/gi,'$1'); r(/\[\/Email\]/gi,''); r(/\[img\](.*?)\[\/img\]/gi,''); var b=a.match(/\[(list|list=1|list=a)\]/gi); r(/\[list=1\]/gi,'
  1. '); r(/\[list=a\]/gi,'
    1. '); r(/\[list\]/gi,'
      • '); r(/\[\*\]/gi,'
      • '); r(/
        ]*>
      • /gi,'
      • '); r(/
        ]*>
      • /gi,'
      • '); r(/
        ]*><\/li>/gi,''); r(/\[h([1-6])?\]/gi,""); r(/\[\/h([1-6])?\]/gi,""); if(b){for(var i=0;i
      ');}else if(b[i].toLowerCase()=="
      1. "||b[i].toLowerCase()=="
        1. "){r(/\[\/list\]/i,'
        ');}}} if(isOpera){r(/<\/table>/gi,'
      ');r(/<\/tr>/gi,'
'); for (r = 0; r < 5; r++) { if (dir == 'h') { **.writeln(''); } for (g = 0; g < 5; g++) { if (dir == 'v') { **.writeln(''); } for (b = 0; b < cpaletc; b++) { color = String(numberlist[r]) + String(numberlist[g]) + String(numberlist[b]); **.write(''); } if (dir == 'v') { **.writeln(''); } } if (dir == 'h') { **.writeln(''); } } **.writeln('
'); **.write('spacer'); **.writeln('
'); } }; //------- golbal functions -------- // // gettext into textarea html or bbcode function Gettext(value,bb) { if (bb){ var text = **.getElementById(value); if (comm._viewmode == 2){ var source = **.getElementById('box_text'); text.value = source.value; comm._viewmode = 1; // WYSIWYG }else { Editor = **.getElementById('box').contentWindow.**; var ceditor = bbcode._HTMLtoBBcode(bbcode._erase(Editor.body.innerHTML)); text.value = ceditor; } }else{ var text = **.getElementById(value); Editor = **.getElementById('box').contentWindow.**; var ceditor = Editor.body.innerHTML; text.value = ceditor; } }; // increase and decrease size of the iframe function textbox_resize(pix) { var box = **.getElementById('box'); var new_height = (parseInt(box.style.height) ? parseInt(box.style.height) : 200) + pix; if (new_height > 0) { box.style.height = new_height + 'px'; } return false; }; //visibility of the color pallette function toggle_visibility(id) { var e = **.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; }; // adding quote in topic revision function addquote(post_id, username){ var message_name = 'message_' + post_id; divarea = **.getElementById(message_name).innerHTML; comm._HTML('
المشاركة الأصلية كتبت بواسطة: ' + username + ' ','
',divarea); }; // add smiley through path as image function AddSmileyIcon(imagePath,theme){ // removing dot from URL if (comm._viewmode == 1){ imagePath = imagePath.replace(/.\/images\/smilies/gi,"/images/smilies"); comm._focus(); comm._HTML('','',''+ imagePath +''); comm._focus(); }else{ bbfontstyle(' ' + imagePath,' '); } }; //Function to hover button icon function overIcon(iconItem){ iconItem.className='oover'; }; //Function to moving off button icon function outIcon(iconItem){ iconItem.className='button'; }; /** * Caret Position object */ function caretPosition() { var start = null; var end = null; } /** * Get the caret position in an textarea */ function getCaretPosition(txtarea) { var caretPos = new caretPosition(); // simple Gecko/Opera way if(txtarea.selectionStart || txtarea.selectionStart == 0) { caretPos.start = txtarea.selectionStart; caretPos.end = txtarea.selectionEnd; } // dirty and slow IE way else if(**.selection) { // get current selection var range = **.selection.createRange(); // a new selection of the whole textarea var range_all = **.body.createTextRange(); range_all.moveToElementText(txtarea); // calculate selection start point by moving beginning of range_all to beginning of range var sel_start; for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++) { range_all.moveStart('character', 1); } txtarea.sel_start = sel_start; // we ignore the end value for IE, this is already dirty enough and we don't need it caretPos.start = txtarea.sel_start; caretPos.end = txtarea.sel_start; } return caretPos; } /** * Apply bbcodes */ function bbfontstyle(bbopen, bbclose) { theSelection = false; var textarea = **.getElementById('box_text'); textarea.focus(); if (isIE) { // Get text selection theSelection = **.selection.createRange().text; var sel = **.selection.createRange(); if (theSelection) { // Add tags around selection **.selection.createRange().text = bbopen + theSelection + bbclose; textarea.focus(); sel.moveStart('character', bbopen.length); sel.moveEnd('character', theSelection.length); sel.select(); theSelection = ''; return; } } else if (textarea.selectionEnd && (textarea.selectionEnd - textarea.selectionStart > 0)) { mozWrap(textarea, bbopen, bbclose); textarea.focus(); theSelection = ''; return; } //The new position for the cursor after adding the bbcode var caret_pos = getCaretPosition(textarea).start; var new_pos = caret_pos + bbopen.length; // Open tag insert_text(bbopen + bbclose); // Center the cursor when we don't have a selection // Gecko and proper browsers if (!isNaN(textarea.selectionStart)) { textarea.selectionStart = new_pos; textarea.selectionEnd = new_pos; } // IE else if (**.selection) { var range = textarea.createTextRange(); range.move("character", new_pos); range.select(); storeCaret(textarea); } textarea.focus(); return; }; function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; var scrollTop = txtarea.scrollTop; if (selEnd == 1 || selEnd == 2) { selEnd = selLength; } var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; txtarea.selectionStart = selStart + open.length; txtarea.selectionEnd = selEnd + open.length; txtarea.focus(); txtarea.scrollTop = scrollTop; return; }; function insert_text(text, spaces, popup) { var textarea; if (!popup) { textarea = **.getElementById('box_text'); } else { textarea = opener.**.getElementById('box_text'); } if (spaces) { text = ' ' + text + ' '; } if (!isNaN(textarea.selectionStart)) { var sel_start = textarea.selectionStart; var sel_end = textarea.selectionEnd; mozWrap(textarea, text, '') textarea.selectionStart = sel_start + text.length; textarea.selectionEnd = sel_end + text.length; } else if (textarea.createTextRange && textarea.caretPos) { if (baseHeight != textarea.caretPos.boundingHeight) { textarea.focus(); storeCaret(textarea); } var caret_pos = textarea.caretPos; caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text; } else { textarea.value = textarea.value + text; } if (!popup) { textarea.focus(); } } wino = function(){ var box_text = **.getElementById("box_text"); var Sub = **.getElementById("sub"); if(Check.checked==true){ txtArea.readOnly = false }else{ txtArea.readOnly = true } } function storeCaret(textEl) { if (textEl.createTextRange) { textEl.caretPos = **.selection.createRange().duplicate(); } } //Iframe top offset function getOffsetTop(elm){ var mOffsetTop = elm.offsetTop; var mOffsetParent = elm.offsetParent; while(mOffsetParent){ mOffsetTop += mOffsetParent.offsetTop; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetTop; }; //Iframe left offset function getOffsetLeft(elm){ var mOffsetLeft = elm.offsetLeft; var mOffsetParent = elm.offsetParent; while(mOffsetParent){ mOffsetLeft += mOffsetParent.offsetLeft; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetLeft; }; //Run Editor Events function editorEvents(evt){ var keyCode = evt.keyCode ? evt.keyCode : evt.charCode; var keyCodeChar = String.fromCharCode(keyCode).toLowerCase(); if(isIE){ //run if enter key is pressed if (evt.type=='keypress' && keyCode==13){ var editor = **.getElementById('box'); var selectedRange = editor.contentWindow.**.selection.createRange(); var parentElement = selectedRange.parentElement(); var tagName = parentElement.tagName; while((/^(a|abbr|acronym|b|bdo|big|cite|code|dfn|em|font|i|kbd|label|q|s|samp|select|small|span|strike|strong|sub|sup|textarea|tt|u|var)$/i.test(tagName)) && (tagName!='HTML')){ parentElement = parentElement.parentElement; tagName = parentElement.tagName; } //Insert

instead ofif (parentElement.tagName == 'P'||parentElement.tagName=='BODY'||parentElement.tagName=='HTML'||parentElement.tagName=='TD'||parentElement.tagName=='THEAD'||parentElement.tagName=='TFOOT'){ selectedRange.pasteHTML('

'); selectedRange.select(); return false; } } hideall(); return true; }else{ //Keyboard shortcuts if (evt.type=='keypress' && evt.ctrlKey){ var kbShortcut; switch (keyCodeChar){ case 'b': kbShortcut = 'bold'; break; case 'i': kbShortcut = 'italic'; break; case 'u': kbShortcut = 'underline'; break; case 's': kbShortcut = 'strikethrough'; break; } if (kbShortcut){ comm._focus(); **.getElementById('box').contentWindow.**.queryCommandEnabled(kbShortcut); **.getElementById('box').contentWindow.**.execCommand(kbShortcut, false, null); comm._focus(); evt.preventDefault(); evt.stopPropagation(); } } hideall(); return true; } };





look/images/icons/i1.gif مشكلة عند انشاء موضوع
  24-12-2009 10:46 مساءً   [1]
معلومات الكاتب ▼
انضم في : 20-07-2009
رقم العضوية : 13
المشاركات : 298
الدولة : (( E.G.Y.P.T - مصـــر ))
الجنس :
قوة السمعة : 158
موقعي : زيارة موقعي
العضو غائب ادعوا لي بالتوفيق :)
:hmm::hmm::hmm::hmm::hmm::hmm:

look/images/icons/i1.gif مشكلة عند انشاء موضوع
  24-12-2009 11:34 مساءً   [2]
معلومات الكاتب ▼
انضم في : 20-07-2009
رقم العضوية : 30
المشاركات : 412
الجنس :
الإنذارات : 1
قوة السمعة : 188
غر يبه فعلا :@@:

look/images/icons/i1.gif مشكلة عند انشاء موضوع
  25-12-2009 01:03 صباحاً   [3]
معلومات الكاتب ▼
انضم في : 24-12-2009
رقم العضوية : 287
المشاركات : 4
الجنس :
قوة السمعة : 0
اتمنى من الخبراء بالنسخة يشرحولى المشكلة دى والحل
ولهم جزيل الشكر

look/images/icons/i1.gif مشكلة عند انشاء موضوع
  25-12-2009 04:06 صباحاً   [4]
معلومات الكاتب ▼
انضم في : 18-07-2009
رقم العضوية : 1
المشاركات : 12,565
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 74,196
موقعي : زيارة موقعي
يبدو انك تستخدم استضافة مجانية لاتدعم الجافا سكربت ..
سبق وردينا على مشكلة مشابههة في هذا الموضوع
https://pbboard.info/forums/index.php?page=topic&show=1&id=412



المواضيع المتشابهه
عنوان الموضوع الكاتب الردود الزوار آخر رد
تسجيل الدخول او انشاء حساب abodehima
1 34 abodehima
اريد انشاء اضافه giftearnpro
0 269 giftearnpro
شرح انشاء نافبار اسفل الهيدر mc nabulsy
0 359 mc nabulsy
عرض انشاء شبكة تواصل مثل الفيس بوك تمام بكل المميزات بتعتها ب 5 دولار الحق العرض BlackCat2014
1 316 BlackCat2014
شرح جديد بالفيديو لعمل وانشاء وتركيب منتدى PBBoard الإصدار 3.0.3 ابو شيماء
29 4468 محى ابو العز

الكلمات الدلالية
لا يوجد كلمات دلالية ..









الساعة الآن 09:28 PM