PDA

View Full Version : Mấy anh giúp đỡ em dùm vài câu hỏi nha!



nguyenkhackhoi
18-05-2010, 04:51 PM
1/ Làm sao để khi dùng bbcode thì link nằm ở chính giữa? forum của em nó cứ nằm ở cuối thì mình phải rê chuột vào giữa! Ví dụ như link thì nó không tự đưa link vào giữa, mà nó ở ngoài cùng link

2/ Hỏi cách sử dụng mod Love Mesage
3/ làm sao để đưa bbcode và smile vào khung trả lời nhanh
4/ Không biết sao mà Forum của em khi đăng link ảnh lên thì nó hiện ra khung như thế này, chế độ tùy chọn [B]Retrieve remote file and reference locally nó tự động check vào đấy, làm cho khi mình đưa link ảnh lên thì nó tự động Attachment luôn. Có cách nào để uncheck nó tự động mỗi khi mình đưa ảnh lên không nhỉ?
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/18/04/60221274175962.jpg
Hoặc có cách nào để nó hiện ra như thê này không?
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/18/04/74741274176496.jpg


5/ Làm sao để hiện subforum ra cột bên ngoài luôn chứ không phải là nhấp chuột vô nó mới hiện ra trang chứa các forum con!
Em Rất chân thành cảm ơn mấy anh đã giúp đỡ em làm 1 forum cho lớp!

HTT.itvn
18-05-2010, 07:57 PM
3. Bạn phải đóng khung cho smiles box đã :
Thay toàn bộ đoạn html trong editor_smiliebox template bằng đoạn này :


<if condition="$show['smiliebox']">
<fieldset id="{$editorid}_smiliebox" title="$vbphrase[smilies]">
<legend>$vbphrase[smilies]</legend>
<div style="height: 200px; width: 100px; overflow: scroll;">
<table cellpadding="4" cellspacing="0" border="0" align="center">
$smiliebits
<if condition="$show['moresmilieslink']">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">[<a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]</td>
</tr>
</if>
</table>
</fieldset>
<else />
<div id="smiliebox" style="display:none"></div>
</if>


Tạo thêm BBcode :
BB Code glow : chữ đậm
+ Chủ đề : Chử đậm
+ Tag : glow
+ Replacement :


<table style="filter:glow(color={plum}, strength={option})">{param}</table>

+ Button Image : images/bbcode/glow.gif
Các mục khác để nguyên & Save lại.

- BB Code Shadow : chữ mờ ảo
+ Chủ đề :Chử mờ ảo
+ Tag : shadow
+ Replacement :

<table style="filter:shadow(color={option}, direction=225)">{param}</table>

Button Image : images/bbcode/shadow.gif
Các mục khác để nguyên & Save lại.


4/ BB Code post nhạc media : play tất cả các đuôi nhạc
+ Chủ đề : Play nhạc
+ Tag : music
+ Replacement :


standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<param name="Filename" value="{param}">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<param name="AudioStream" value="-1">

<param name="AutoStart" value="-1">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>

<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="4">

<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="false">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="5">

<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">

<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowAudioControls" value="-1">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">

<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-180">
<param name="WindowlessVideo" value="0">
<EMBED Name="Mediaplayer" file={param}
src={param}
ShowControls=1
ShowDisplay=0
ShowStatusBar=1
width=320
height=320> </embed></OBJECT> Button Image : images/bbcode/media.gif
Các mục khác để nguyên & Save lại.


- BB Code post flash : dùng post file flash .swf
+ Chủ đề : Code nhạc Flash
+ Tag : flash
+ Replacement :


<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
WIDTH="500" HEIGHT="300" id="{param}" ALIGN="">
<PARAM NAME=movie VALUE="{param}"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="{param}" quality=high bgcolor=#FFFFFF WIDTH="400" HEIGHT="250" NAME="{param}" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT> Button Image : images/bbcode/flash.gif
Các mục khác để nguyên & Save lại.

HTT.itvn
18-05-2010, 08:11 PM
Mod Quickreply đầy đủ trong khung trả lời nhanh :


http://img190.imageshack.us/img190/3750/94835828.jpg

UpLoad clientscript\vbulletin_smilies_qreply.js lên host
. Đăng nhập vào Admin CP
Sửa templates: showthread_quickreply
. Mở showthread_quickreply template, thay thể tất cả bằng:


<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>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<if condition="$show['basic_bbcode']">
<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>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['align_bbcode']">
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>
<if condition="$show['color_bbcode']">
<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>
<!-- wysiwyg smilies -->
<script type="text/javascript" src="clientscript/vbulletin_smilies_qreply.js?v=$vboptions[simpleversion]"></script>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_smilie" title="$vbphrase[smilies]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_editor]/smilie.gif" alt="" width="21" height="20" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
<!-- / wysiwyg smilies -->
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<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>
<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>
<td width="100%">&nbsp;</td>
<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><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<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">
<if condition="$show['qr_require_click']">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; 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:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
</if>
</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>

Tải về và up lên host tại đây (http://www.mediafire.com/?yjbft1qzzjz) . Bạn có thể tìm smilie thay thế trên mạng nhé , cho phần thêm đẹp :)

HTT.itvn
18-05-2010, 08:27 PM
Hiện thị Submod ra ngoài :


http://img36.imageshack.us/img36/7267/51691127.jpg

Vào Templates > forumhome_forumbit_level1_post :


<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td>
Thay thế bằng code :

<td>

<table border=0><tr><td>
<if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"><else /><img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if></if>
</td><td>

<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

</td></tr></table>

</td>

Tương tự với template forumhome_forumbit_level2_post
Tải về và up lên host tại đây . (http://www.mediafire.com/?kjnjmtxomjy)

nguyenkhackhoi
19-05-2010, 07:21 AM
hic.mấy cái anh chỉ em làm hok đc cái nào.xém tí nữa die cái forum, làm xong lỗi ko ah.hjx

anhtuanctk32
19-05-2010, 04:38 PM
Làm gì một topic mà hỏi nhiều dữ vậy ?Bạn gì đó làm được chưa ?Làm không được gì thì cứ hỏi tại đây ,mình chỉ .

HTT.itvn
19-05-2010, 05:33 PM
hic.mấy cái anh chỉ em làm hok đc cái nào.xém tí nữa die cái forum, làm xong lỗi ko ah.hjx
Mình làm đều thành công hết mà , từ phiên bản 3.6.5 đến phiên bản 4.0.x . Bạn nên làm từng phần một , khi đã thành công phần nào mới làm phần tiếp theo . Bạn cho mình xem trang web của bạn nhé :)

Bạn nên lập topic mới chỉ 1 câu hỏi thôi , để dễ dàng thảo luận :)

HTT.itvn
19-05-2010, 09:53 PM
Bạn có thể vào đây (http://itvnn.net/showthread.php?11174-Đưa-Sub-Mod-ra-ngoài-trang-chính-(-áp-dụng-được-với-VBB-3.x-đến-4.x-))thảo luận về các mod VBB .