ปัญหาของธีม itheme ใน drupal


รูปภาพของ supatkul

ปัญหาของธีม itheme ใน drupal http://drupal.org/project/itheme
บนเว็บไซต์ www.suriyothai.ac.th

  • ปัญหาที่ 1 มีอยู่ว่า ไม่มีปุ่ม browse เวลาจต้องการแทรกรูปโดยใช้ TinyMCE วิธีแก้ไขคือ
    เปิดไฟล์ template.php แล้วเพิ่มโค้ดนี้ไป เป็นอันเรียบร้อย 555

    <?php
    function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
      static
    $access, $integrated;

      if (!isset($access)) {
       
    $access = function_exists('imce_access') && imce_access();
      }

      $init = theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);

      if ($init && $access) {
       
    $init['file_browser_callback'] = 'imceImageBrowser';
        if (!isset(
    $integrated)) {
         
    $integrated = TRUE;
         
    drupal_add_js("function imceImageBrowser(fid, url, type, win) {win.open(Drupal.settings.basePath +'?q=imce&app=TinyMCE|url@'+ fid, '', 'width=760,height=560,resizable=1');}", 'inline');
        }
      }

      return $init;
    }
    ?>

Creative Commons Licenseสงวนสิทธิ์ภายใต้สัญญาอนุญาต Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
ท่านสามารถนำเนื้อหาไปใช้ แสดง ดัดแปลง เผยแพร่ โดยต้องอ้างอิงที่มา ห้ามใช้เพื่อการค้า และต้องใช้สัญญาอนุญาตชนิดเดียวกันนี้ไปกับงานดัดแปลงต่อยอดที่เผยเผยแพร่ต่อ

                                         

Copyright © 2000-2010 thaigoodview.com | ออกแบบและพัฒนาระบบโดย ไทยกู๊ดวิวดอทคอม