vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Pls Help Me Style Problem (https://vborg.vbsupport.ru/showthread.php?t=230376)

twista46 12-21-2009 05:29 PM

This is my announcements Template. The Forum Style is 900px

PHP Code:

$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
    
<title>$vboptions[bbtitle] - $vbphrase[announcements_in_forum] : $foruminfo[title_clean]</title>
</
head>
<
body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="900" align="center" style="border-bottom-width: 0px">
<
tr>
    <
td class="tcat">
        <if 
condition="$show['viewall']">
            <
span class="smallfont" style="float:$stylevar[right]">
                <
a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[view_all_announcements]</a> ($anncount[total])
            </
span>
        </if>

        <if 
condition="$show['global']">
        
$vbphrase[global_announcement]
        <else />
        
$vbphrase[announcements_in_forum]<span class="normal"> : <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
        </if>
    </
td>
</
tr>
</
table>

<!-- 
end content table -->
$spacer_close
<!-- / end content table -->

<
div id="posts">$announcebits</div>

<!-- 
start content table -->
$spacer_open
<!-- / start content table -->

<
br />

<
table cellpadding="0" cellspacing="0" border="0" width="900">
<
tr>
    <
td width="900">&nbsp;</td>
    <
td>$forumjump</td>
</
tr>
</
table>

$footer

</body>
</
html


Hell Bomb 12-21-2009 11:06 PM

You to put px at the end of 900 but instead try and use the code i posted below. It will auro adjust every time you change your forum width.

HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
        <title>$vboptions[bbtitle] - $vbphrase[announcements_in_forum] : $foruminfo[title_clean]</title>
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" align="center" style="border-bottom-width: 0px">
<tr>
        <td class="tcat">
                <if condition="$show['viewall']">
                        <span class="smallfont" style="float:$stylevar[right]">
                                <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[view_all_announcements]</a> ($anncount[total])
                        </span>
                </if>

                <if condition="$show['global']">
                $vbphrase[global_announcement]
                <else />
                $vbphrase[announcements_in_forum]<span class="normal"> : <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
                </if>
        </td>
</tr>
</table>

<!-- end content table -->
$spacer_close
<!-- / end content table -->

<div id="posts">$announcebits</div>

<!-- start content table -->
$spacer_open
<!-- / start content table -->

<br />

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
        <td width="100%">&nbsp;</td>
        <td>$forumjump</td>
</tr>
</table>

$footer

</body>
</html>


twista46 12-22-2009 07:55 AM

If, unfortunately, still do not. The announcement is still Wider than the actual width forums

http://www.imgload.eu/?v=desk4.png


All times are GMT. The time now is 09:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01063 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete