View Full Version : Vị trí module thông tin dưới footer
Xin chào BQT và các mem 4rum ITVnn
Mình đang dùng bản vbb 4.0.3, phần thông tin dưới footer (cuối trang) như Copyright ©... mặc định ở giữa giống nhiều 4rum khác.
Mình muốn đưa nó lệch hẳn sang 1 phía trái (như diễn đàn này) hoặc phải nhưng chưa biết cách edit.
Mong BQT và anh em nào biết xin chỉ giáo, hướng dẫn giùm.
Cảm ơn :MatCuoi (21):
HTT.itvn
27-08-2010, 12:16 AM
Bạn gửi toàn bộ code trong temp footer cho mình nhé vì mỗi style có cách đặt thẻ <div>...</div> khác nhau .
{vb:raw ad_location.ad_footer_start}
{vb:raw ad_location.global_above_footer}
<div id="footer" class="floatcontainer footer">
<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select" class="footer_select">
<vb:if condition="$show['quickchooser']">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="{vb:rawphrase quick_style_chooser}">
{vb:raw quickchooserbits}
</optgroup>
</select>
</vb:if>
<vb:if condition="$show['languagechooser']">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="{vb:rawphrase quick_language_chooser}">
{vb:raw languagechooserbits}
</optgroup>
</select>
</vb:if>
</form>
<ul id="footer_links" class="footer_links">
<vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
<vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
<vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
{vb:raw template_hook.footer_links}
<vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
<vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
<vb:if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<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="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</vb:if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
{vb:raw template_hook.footer_javascript}
</div>
</div> <!-- closing div for body_wrapper -->
<p align="right"><div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
{vb:rawphrase powered_by_vbulletin}
<!-- Do not remove this copyright notice -->
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw cronimage}
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw vboptions.copyrighttext}
</div>
{vb:raw ad_location.ad_footer_end}
</div></p>
HTT.itvn
27-08-2010, 07:15 PM
- Đầu tiên vào AdminCP >> Styles & Templates >> Style Manager >> Chọn skin cần chỉnh >> Edit Templates >> CSS templates >> additional.css , chèn vào cuối cùng code sau :
.copyright {
float:left;
padding:16px 0 0 20px;
}
- Sau đó vào footer tìm đoạn code sau ( nằm cuối cùng ) :
<p align="right"><div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
{vb:rawphrase powered_by_vbulletin}
<!-- Do not remove this copyright notice -->
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw cronimage}
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw vboptions.copyrighttext}
</div>
{vb:raw ad_location.ad_footer_end}
</div></p>
chỉnh sửa thành :
<div class="copyright">
<div id="footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
<div id="footer_copyright">
<!-- Do not remove this copyright notice -->
{vb:rawphrase powered_by_vbulletin}
<!-- Do not remove this copyright notice -->
</div>
<div id="footer_morecopyright">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw cronimage}
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw vboptions.copyrighttext}
</div>
{vb:raw ad_location.ad_footer_end}
</div>
thank. để mình thử xem :MatCuoi (58):
- Đầu tiên vào AdminCP >> Styles & Templates >> Style Manager >> Chọn skin cần chỉnh >> Edit Templates >> CSS templates >> additional.css , chèn vào cuối cùng code sau :
- Sau đó vào footer tìm đoạn code sau ( nằm cuối cùng ) :
chỉnh sửa thành :
Mình làm y như vậy, nhưng nó báo như sau :|
The following error occurred when attempting to evaluate this template:
Unclosed Tag
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
HTT.itvn
29-08-2010, 09:03 PM
Mình làm y như vậy, nhưng nó báo như sau :|
The following error occurred when attempting to evaluate this template:
Unclosed Tag
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Bạn thử bỏ đoạn code sau của đoạn code trên :
<div id="footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.