Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 2023|Trả lời: 2
Thu gọn cột thông tin

Tạo ô Up load ảnh lên host ZingPhoto

[Lấy địa chỉ]
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

    Đăng lúc 29-10-2008 03:59 PM | Xem tất |Chế độ đọc

    Mời bạn đăng ký để giao lưu kết bạn nhé <3

    Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký

    x
    Cái mod này giúp upload ảnh lên host của ZingPhoto, rất tiện khi viết bài mới trong forum, sau khi up lên sẽ có đoạn BBCode để chèn vào bài viết. Không cần phải đặt từng link ảnh trong thẻ [IMG][/IMG] vì nó đã hỗ trợ sẵn cho bạn!
    Các template cần Edit:
    newthread
    newreply
    showthread_quickreply
    (Nếu bạn muốn chèn luôn nó vào khung trả lời nhanh!)
    Edit template newthread và newreply
    Tìm
    1. [color=#000000][color=#007700]<!-- / [/color][color=#0000bb]message area [/color][color=#007700]-->  [/color][/color]
    Sao chép mã
    Thêm vào bên dưới:
    <fieldset class="fieldset" style="margin-top: 6px;"> <legend>Upload Ảnh</legend> <div align="center"> <iframe src="http://photo.zing.vn/zingphoto.php?part=#" style="border: 0px none ; overflow: hidden;" scrolling="no" width="335" frameborder="0" height="140"></iframe> </div> </fieldset>
    Nếu bạn muốn chèn luôn nó vào khung trả lời nhanh thì vào template showthread_quickreply thêm vào dưới cùng:
    <fieldset class="fieldset" style="margin-top: 6px;"> <legend>Upload Ảnh</legend> <div align="center"> <iframe src="http://photo.zing.vn/zingphoto.php?part=#" style="border: 0px none ; overflow: hidden;" scrolling="no" width="335" frameborder="0" height="140"></iframe> </div> </fieldset>

    Chú ý: # là các kiểu style, # chạy từ 1 đến 12
    Bảng mã

    Cảm ơn

    Số người tham gia 1Danh vọng +2 Tiền +1 Thu lại Lý do
    windowse7en123 + 2 + 1

    Xem tất cả

  • Tâm trạng hàng ngày
    Ngủ
    29-11-2011 11:07 AM
  • Đã viết: 3 ngày

    [LV.2]Spam 2

    Đăng lúc 29-10-2008 06:02 PM | Xem tất
    Mấy kái này em ko khoái mấy, nhưng cũng có lúc cần đến, dù sao cũng thak bác. hay phết
    Đăng lúc 11-5-2009 09:50 AM | Xem tất
    Cái mod này giúp upload ảnh lên host của ZingPhoto, rất tiện khi viết bài mới trong forum, sau khi up lên sẽ có đoạn BBCode để chèn vào bài viết. Không cần phải đặt từng li ...
    Trích dẫn bài viết của WindBows vào lúc 29-10-2008 03:59 PM

    Anh ơi sao em thay vào trong showthread_quickreply mà nó ko đc .

    Anh xem code dùm Em nha :


    <if condition="$show['editor_toolbar']">
    <div id="{$editorid}_controls" class="controlbar">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
      <td><div class="imagebutton" id="{$editorid}_cmd_removeformat"><img src="$stylevar[imgdir_editor]/removeformat.gif" width="21" height="20" alt="$vbphrase[remove_text_formatting]" /></div></td>
    <if condition="$show['basic_bbcode']">
      <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
      <td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase[bold]" /></div></td>
      <td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
      <td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td>
    </if>
    <if condition="$show['color_bbcode']">
      <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
      <td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
       <table cellpadding="0" cellspacing="0" border="0">
       <tr>
        <td id="{$editorid}_color_out"><img src="$stylevar[imgdir_editor]/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
        <td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" alt="" width="11" height="16" /></td>
       </tr>
       </table>
      </div></td>
    </if>
    <if condition="$show['url_bbcode'] OR $show['img_bbcode']">
      <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
    </if>
    <if condition="$show['url_bbcode']">
      <td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
    </if>
    <if condition="$show['img_bbcode']">
      <td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
    </if>
    <if condition="$show['quote_bbcode']">
      <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
      <td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
    </if>
    <if condition="!is_browser('opera')">
      <td width="100%">&nbsp;</td>
    </if>
    <if condition="is_browser('ie')">
      <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
      <td><div class="imagebutton" id="{$editorid}_cmd_spelling"><img src="$stylevar[imgdir_editor]/spelling.gif" width="21" height="20" alt="$vbphrase[check_spelling]" /></div></td>
    </if>
      <td>
       <div class="imagebutton" id="{$editorid}_cmd_resize_0_99"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
       <div class="imagebutton" id="{$editorid}_cmd_resize_1_99"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
      </td>
    <if condition="$show['wysiwyg_compatible']">
      <td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
    </if>
    </tr>
    </table>
    </div>
    </if>
    <div class="controlbar" style="padding-$stylevar[right]:8px">
    <fieldset style="border:0px; padding:0px; margin:0px">
    <if condition="$show['qr_require_click']">
    <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
    <else />
    <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
    </if>
    </fieldset>
    <!--width:$stylevar[messagewidth]-->
    </div>
    <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />
    <input type="hidden" name="styleid" value="$session[styleid]" />
    <script type="text/javascript">
    <!--
    vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie');
    var QR_EditorID = '$editorid';
    //-->
    </script>
    <fieldset class="fieldset" style="margin-top: 6px;"> <legend>Upload Ảnh</legend> <div align="center"> <iframe src="http://photo.zing.vn/zingphoto.php?part=2" style="border: 0px none ; overflow: hidden;" scrolling="no" width="335" frameborder="0" height="140"></iframe> </div> </fieldset>
    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 6-12-2026 06:43 AM , Processed in 0.027956 second(s), 19 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách