إدراج صورة و ووصلة

Started by raedzaro, March 24, 2005, 09:04:33 AM

Previous topic - Next topic

raedzaro

ممكن حد يفيدني كيف أعمل لما حد يضيف وصلة تتطلعلو Popup للوصلة و كمان للصورة؟

A.M.A

#1
أسف على التأخير .. قم بمسح الخطوات التي كتبتها لك سابقا و استبدلها بالخطوات التالية:

في الملف Post.template.php
ابحث عن:
// Print a drop down list for all the colors we allow!
أضف قبلها:
    // Java script to handle IMG input boxes ...
    echo '<script language="JavaScript" type="text/javascript">
          <!--
          function imgINPT(){
          var urlLINK = prompt("اكتب الموقع:","http://");
          if (urlLINK == null )
  {
            }
          else if (urlLINK == "" || urlLINK == " ")
  {
                alert("لا شيء!");
            }
          else
            {
                surroundText(\'[img]\'+urlLINK+\'\', \'[/img]\', document.', $context['post_form'], '.', $context['post_box_name'], ');
              }
          }
          // -->
          </script>';

    // Java script to handle URL input boxes ...
    echo '<script language="JavaScript" type="text/javascript">
          <!--
          function urlINPT(){
          // Enter URL .........................................
          var urlLINK = prompt("الرجاء إدخال الموقع:","http://");
          if (urlLINK == null ){ //cancel pressed . . .
          }
          else if (urlLINK == "" || urlLINK == " "){ //ok pressed but with Notext . . .
                  alert("Sorry no text entered!");
          }
          else
          { //ok pressed and there is something :)
          // Enter Description ...................................
          var urlNAME = prompt("الرجاء إدخال اسم الموقع:","");
          if (urlNAME == null ){ //cancel pressed . . .
          }
          else if (urlNAME == "" || urlNAME == " "){  //ok pressed but with notext so use URL only!
                    surroundText(\'[url]\'+urlLINK+\'\', \'[/url]\', document.', $context['post_form'], '.', $context['post_box_name'], ');
          }
          else //ok pressed with text so use URL and Name!
                    surroundText(\'[url=\'+urlLINK+\']\'+urlNAME+\'\', \'[/url]\', document.', $context['post_form'], '.', $context['post_box_name'], ');
          }
          }
          // -->
          </script>';


ابحث عن: // Print the buttom row of buttons!
foreach ($context['bbc_tags'][1] as $image => $tag)
{

أضف بعدها:      // only replace the URL tag! . . . . . . . . . . .
      if ($tag['code'] == 'url')
          echo '<a href="javascript:void(0);" onclick="urlINPT(); return false;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
      elseif ($tag['code'] == 'img')
          echo '<a href="javascript:void(0);" onclick="imgINPT(); return false;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';

      else
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

raedzaro

مشكور أخي و لكن اكون ممنون لو أعطيتني الطريقة للصور

A.M.A

الرجاء مراجعة ردي السابق

تحياتي
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

raedzaro

مشكور أخي الكريم لكن حاولت اعدل و لم أفلح

A.M.A


هل حاولت التعديل على الملف Post.template.php الأصلي؟
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

raedzaro

نعم أخي الكريم و للأسف راحت النسخة التي قمت بتعديلها قبل يومين
Quote from: A.M.A on March 29, 2005, 05:11:07 AM

هل حاولت التعديل على الملف Post.template.php الأصلي؟

A.M.A


الملف المرفق يحتوي على التعديلات .. هذا الملف مأخوذ من القالب الإفتراضي من دون أي إضافات ما عدا ما طلبت.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

raedzaro

أخي عبد الله بارك الله فيك


سأقوم بتعديلها في موقع و سأقوم بإعلامك إن شاء الله

raedzaro

مشكور أخي عبد الله الأمور تمام

أعتقد اني بقدر اعملها لملفات الصوت و الصورة و الفلاش بعد تعديل الدالات؟

Advertisement: