ปัญหาของธีม itheme ใน drupal
By supatkul เมื่อ อังคาร, 02/06/2009 - 21:59 | แก้ไขล่าสุด อังคาร, 02/06/2009 - 22:04

ปัญหาของธีม 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;
}
?>
»
- บล็อกของ supatkul
- ล็อกอิน หรือ ลงทะเบียน เพื่อแสดงความคิดเห็น
- อ่าน 195 ครั้ง








