vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding a page break (https://vborg.vbsupport.ru/showthread.php?t=216744)

j1mmy 06-21-2009 05:27 PM

Adding a page break
 
Take a look at this: http://img2.pict.com/99/e4/27/fe9639...q8/capture.png

I am basically trying to add a page break or some form of line separation from the top line of the vBulletin Message header and the navbar, as you can see they're touching.

But looking at the templates, I'm having difficulty in identifying where to put it.

Dismounted 06-22-2009 06:26 AM

One of the STANDARD_ERROR templates.

j1mmy 06-22-2009 12:42 PM

I've put a </p> in the STANDARD_ERROR template but nothing is happening, is this right

HTML Code:

        <title>$pagetitle</title>
$headinsert
</head>
<body>
$header
<if condition="$navbar">
$navbar
<else />
<br /><br /><br />
</p>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
        <td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">

                <if condition="$show['permission_error']">
                        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">


Lynne 06-22-2009 03:46 PM

Adding </p> into some html is not proper html at all. And, you added it to the <else /> part of your statement which would not be correct either since it is obvious the navbar is showing. So, if you want a break after your navbar, you would need to add it into the part of your if statement that resolves to the $navbar

j1mmy 06-22-2009 05:19 PM

What do you mean by a statement that resolves to the $navbar?

HTML Code:

        <title>$pagetitle</title>
$headinsert
</head>
<body>
$header
<if condition="$navbar">
$navbar
<else />
<br /><br /><br />
<p></p>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
        <td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">

                <if condition="$show['permission_error']">
                        <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                        <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">


Lynne 06-22-2009 05:36 PM

Quote:

Originally Posted by j1mmy (Post 1834931)
What do you mean by a statement that resolves to the $navbar?

It looks to me like the navbar code is showing on that page - is it not? That means that this if statement is showing the navbar:
HTML Code:

<if condition="$navbar">
$navbar
<else />
<br /><br /><br />
<p></p>
</if>

And yet you are adding a space to the <else /> part which is not resolved if the navbar is present. You need to add the break to the true part of the statement.

j1mmy 06-22-2009 06:07 PM

HTML Code:

<if condition="$navbar">
$navbar
<p></p>
<else />
<br /><br /><br />
</if>

This correct?

--------------- Added [DATE]1245704285[/DATE] at [TIME]1245704285[/TIME] ---------------

Okay, that appeared to have worked. Thanks. But I don't know if I have to do it to all the other standard error templates?

Lynne 06-22-2009 08:02 PM

Quote:

Originally Posted by j1mmy (Post 1834983)
Okay, that appeared to have worked. Thanks. But I don't know if I have to do it to all the other standard error templates?

If the space isn't there and you want it to be, then yes you do. The other option would be to add it to the bottom of the navbar template.


All times are GMT. The time now is 07:16 PM.

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.01177 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete