PDA

View Full Version : Hỏi - Giúp em về vấn đề khi post ảnh vào vbb4.1.4



hthetrung
31-07-2011, 07:03 AM
Mọi người xem ảnh vào giúp e nhá ! làm sao để khi nhập link ảnh vào cái dấu tích không xuất hiện nữa ạ

3977


tiện đấy em muốn hỏi luôn cái dòng đấy có ý nghĩa j ak ! sao nếu em chọn lại ko up đuọc ảnh ạ !
thanks

nghebao.vn
31-07-2011, 08:09 AM
Settings => Options => Message Attachment Options => Advanced Insert Image Popup - Enable chọn Không
hoặc vào
AdminCP >> Template option >> Editor Template >> editor_upload_overlay
Tìm:







<label for="urlretrieve"><input type="checkbox" value="1" name="urlretrieve" id="urlretrieve" checked="checked" tabindex="1" /> {vb:rawphrase retrieve_remote_file_and_ref_local}</label>




Nếu muốn chuyển mặc định là dấu kiểm ko check thì bạn thay bằng đoạn code dưới đây:




<label for="urlretrieve">
<input type="checkbox" value="1" name="urlretrieve" id="urlretrieve" tabindex="1" /> {vb:rawphrase retrieve_remote_file_and_ref_local}
</label>




Còn nếu nó biến luôn thì chèn đoạn dưới đây:





<label class="hidden" for="urlretrieve"><input type="checkbox" value="1" name="urlretrieve" id="urlretrieve" tabindex="1" /> {vb:rawphrase retrieve_remote_file_and_ref_local}








ý nghĩa thì bạn thử cái biết ngay, cái hoình nó nhỏ xíu như attach vậ

Dunglx
31-07-2011, 09:18 AM
Đọc bài này cũng được cậu nhé
http://itvnn.net/showthread.php?32238-H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-x%E1%BB%AD-l%C3%BD-l%E1%BB%97-ch%C3%A8n-%E1%BA%A3nhi-Retrieve-remote-file-and-reference-locally-%E1%BB%9F-vbb-4.1.4

hthetrung
31-07-2011, 10:10 AM
Settings => Options => Message Attachment Options => Advanced Insert Image Popup - Enable chọn Không
hoặc vào
AdminCP >> Template option >> Editor Template >> editor_upload_overlay
Tìm:
Nếu muốn chuyển mặc định là dấu kiểm ko check thì bạn thay bằng đoạn code dưới đây:Còn nếu nó biến luôn thì chèn đoạn dưới đây:










ý nghĩa thì bạn thử cái biết ngay, cái hoình nó nhỏ xíu như attach vậ




<div id="uploadtabs0"> <h2>{vb:rawphrase add_an_image_from_computer}</h2>
<p>{vb:rawphrase allowed_filetypes}: jpg, jpeg, png, gif</p>


<div id="fileupload" class="hidden">
<input id="fileupload1" class="textbox" type="file" size="30" name="attachment[]" tabindex="1" />
<div class="foot">
<button type="button" id="uploadbutton" class="button" tabindex="1">{vb:rawphrase upload_file}</button>
</div>
</div>
<div id="upload_controls_container" class="hidden">
<div id="upload_controls_yui">
<div class="upload_controls">
<div class="floatcontainer">
<div id="fileheader">{vb:rawphrase file}</div>
<div id="sizeheader">{vb:rawphrase size}</div>
</div>
<div class="cleardiv"></div>
<div id="uploadprogress_container">
<ul id="uploadprogress_ul">
<li id="sampleli" class="hidden">
<div class="name"></div>
<div class="size"></div>
<div class="delete">
<button title="{vb:rawphrase delete}">X</button><img src="{vb:stylevar imgdir_misc}/accept.png" class="acceptimg hidden" alt="" title="" /><img src="{vb:stylevar imgdir_misc}/exclamation.png" class="exclamationimg hidden" alt="" title="" />
</div>
</li>
</ul>
</div>
<div class="uploadprogress_footer">
<div class="totalsize">{vb:rawphrase total_size}: <span id="yui_totalsize">0</span></div>
{vb:rawphrase files}: <span id="yui_totalfiles">0</span>
</div>
<div class="yui_controls">
<div id="yui_progressbar_container" class="hidden"><div id="yui_progressbar"></div></div>
<img src="{vb:stylevar imgdir_misc}/progress.gif" alt="" border="0" id="progressimage2" class="inlineimg hidden" />
<div id="yui_basicupload">{vb:rawphrase basic_uploader}</div>
<div id="yui_selectfilestext" class="displayinline button">{vb:rawphrase select_files}</div>
<div id="yui_uploadfiles" class="hidden button">{vb:rawphrase upload_file}</div>
<div id="yui_clearlist" class="hidden button">{vb:rawphrase clear_list}</div>
</div>
</div>
</div>
</div>
<input type="hidden" name="do" value="manageattach" />
<input type="hidden" name="flash" value="1" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="poststarttime" value="{vb:raw poststarttime}" />
<input type="hidden" name="posthash" value="{vb:raw posthash}" />
<input type="hidden" name="contenttypeid" value="{vb:raw contenttypeid}" />
<input type="hidden" name="MAX_FILE_SIZE" value="{vb:raw inimaxattach}" />
<input id="uploadinput" type="file" name="attachment[]" size="30" style="display:none" />
{vb:raw hiddenvalues}
</div>

tìm mãi ko thấy bạn ơi ! của mình như thế này !

nghebao.vn
31-07-2011, 12:01 PM
ohooo, nó không đúng với 4.1.4 vì ở bản này checked đã được di chuyển vào file js , để check lại file js phát đã
Bạn sử dụng cách theo link dunglx giới thiệu cũng hay lắm
trong cái mod đó, muốn bỏ check thì mở file:
image.js

dòng 247




this.setValue(true);
with:




this.setValue(false);