• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn thêm chức năng đính kèm trên style mobile vbb

Admin

Well-Known Member
Staff member
Administrator
Thấy nhiều người hỏi quá nên mình hướng dẫn
Đầu tiên các bạn vào
Admincp > Styles & Templates > Style Manager > Style Mobile > Edit Templates > New Posting Templates >>
Click đúp chuột hoặc chọn sửa
Vào newreply xoá hết đi và thay bằng
PHP:
 {vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
	{vb:raw headinclude}
	<title>{vb:raw threadinfo.prefix_plain_html} {vb:raw threadinfo.title} - {vb:raw phrase reply_to_topic}</title>
</head>
<body>
<div class="bodywrapping">
{vb:raw header}
{vb:raw navbar}
<div class="titlebg">{vb:rawphrase reply_to_thread}: {vb:raw threadinfo.title}</div>
<form action="newreply.php" method="post">
<div>
{vb:rawphrase message}:<br />
<vb:comment><textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:99%; height:100px">{vb:raw newpost.message}</textarea></vb:comment>
{vb:raw messagearea}
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="postreply" />
<input type="hidden" name="t" value="{vb:raw threadid}" />
<input type="hidden" name="p" value="{vb:raw postid}" />
<input type="hidden" name="specifiedpost" value="{vb:raw specifiedpost}" />
<input type="hidden" name="posthash" value="{vb:raw posthash}" />
<input type="hidden" name="poststarttime" value="{vb:raw poststarttime}" />
<input type="hidden" name="loggedinuser" value="{vb:raw bbuserinfo.userid}" />
<input type="submit" id="btn" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase submit_reply}" accesskey="s" tabindex="2" />
{vb:raw attachmentoption}
</div>
</form>
{vb:raw footer}
</div>
</body>
</html>
Vào newthread xoá hết đi và thay bằng
PHP:
 {vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
	{vb:raw headinclude}
	<title>{vb:raw foruminfo.title_clean} - {vb:rawphrase post_new_thread}</title>
</head>
<body>
<div class="bodywrapping">
{vb:raw header}
{vb:raw navbar}
<div class="titlebg">{vb:rawphrase post_new_thread}</div>
<form action="newthread.php" method="post">
<div>
<strong>{vb:rawphrase forum}</strong>: <a href="forumdisplay.php?{vb:raw session.sessionurl}f={vb:raw foruminfo.forumid}">{vb:raw foruminfo.title}</a><br />
            <vb:if condition="$prefix_options">
                {vb:rawphrase prefix}:<br />
                    <select name="prefixid" class="bginput">
                        <option value="">{vb:rawphrase no_prefix_meta}</option>
                        {vb:raw prefix_options}
                    </select><br />
                {vb:rawphrase title}:<br />
                <input type="text" class="bginput" name="subject" value="{vb:raw subject}" size="20" maxlength="85" style="width:99%"/><br />
            <vb:else />
                {vb:rawphrase title}:<br />
                <input type="text" class="bginput" name="subject" value="{vb:raw subject}" size="20" maxlength="85" style="width:99%"/><br />
            </vb:if>
{vb:rawphrase message}:<br />
<textarea name="message" rows="10" cols="15" style="width:99%; height:100px"></textarea>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="f" value="{vb:raw forumid}" />
<input type="hidden" name="do" value="postthread" />
<input type="hidden" name="posthash" value="{vb:raw posthash}" />
<input type="hidden" name="poststarttime" value="{vb:raw poststarttime}" />
<input type="hidden" name="loggedinuser" value="{vb:raw bbuserinfo.userid}" />
<input type="submit" id="btn" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase submit_new_thread}" accesskey="s" tabindex="4" />
{vb:raw attachmentoption}
</div>
</form>
{vb:raw footer}
</div>
</body>
</html>
Nếu ai không có thì
Add New Template nhé
Ai leech đi đâu nhớ ghi rõ nguồn
Hướng dẫn thêm chức năng đính kèm trên style mobile vbb
http://tuoitreit.vn thanks
 

Facebook Comments

New posts New threads New resources

Back
Top