ปัญหาของธีม itheme ใน drupal
ปัญหาของธีม 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();
}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;
}
?>