ไฟล์ Themes/default/Post.template.php
เพิ่ม
<script type="text/javascript" src="http://upic.me/js/embedupload.js "></script> <script type="text/javascript"> upic_target = document.postmodify.message; upic_type = "bbfull"; upic_buttoncss = "color:#000000;"; </script>
สังเกตุว่า ถ้าแยก code ออกไปต่างหากจะมี echo ‘ ปิดด้วย ‘;
echo ' <script type="text/javascript" src="http://upic.me/js/embedupload.js "></script> <script type="text/javascript"> upic_target = document.postmodify.message; upic_type = "bbfull"; upic_buttoncss = "color:#000000;"; </script>';
เสร็จเเล้วเป็นแบบนี้
// Finally, the submit buttons. echo ' <script type="text/javascript" src="http://upic.me/js/embedupload.js "></script> <script type="text/javascript"> upic_target = document.postmodify.message; upic_type = "bbfull"; upic_buttoncss = "color:#000000;"; </script> <p class="smalltext" id="shortcuts"> ', $context['browser']['is_firefox'] ? $txt['shortcuts_firefox'] : $txt['shortcuts'], ' </p> <p id="post_confirm_buttons" class="righttext"> ', template_control_richedit_buttons($context['post_box_name']);
ฉบับเต็ม
-http://www.icez.net/blog/721/quick-upic-me-upload-button