Browse Source

Fixed banner dimensions

pull/40/head
Savetheinternet 13 years ago
parent
commit
ec772fb8ea
  1. 8
      inc/config.php
  2. 2
      templates/index.html
  3. 2
      templates/thread.html

8
inc/config.php

@ -726,9 +726,15 @@
// This can be good for load balancing across multiple servers or hostnames. // This can be good for load balancing across multiple servers or hostnames.
// $config['url_stylesheet'] = 'http://static.example.org/style.css'; // main/base stylesheet // $config['url_stylesheet'] = 'http://static.example.org/style.css'; // main/base stylesheet
// $config['url_javascript'] = 'http://static.example.org/main.js'; // $config['url_javascript'] = 'http://static.example.org/main.js';
// $config['url_banner'] = '/banner.php';
// $config['url_favicon'] = '/favicon.gif'; // $config['url_favicon'] = '/favicon.gif';
// Optional banner at the top of every page.
// $config['url_banner'] = '/banner.php';
// Banner dimensions are also optional. As the banner loads after the rest of the page, everything
// may be shifted down a few pixels when it does. Making the banner a fixed size will prevent this.
// $config['banner_width'] = 300;
// $config['banner_height'] = 100;
// Meta keywords. It's probably best to include these in per-board configurations. // Meta keywords. It's probably best to include these in per-board configurations.
//$config['meta_keywords'] = 'chan,anonymous discussion,imageboard,tinyboard'; //$config['meta_keywords'] = 'chan,anonymous discussion,imageboard,tinyboard';

2
templates/index.html

@ -29,7 +29,7 @@
<body> <body>
{boardlist[top]} {boardlist[top]}
{pm?<div class="top_notice">{pm}</div><hr/>} {pm?<div class="top_notice">{pm}</div><hr/>}
{config[url_banner]?<img class="banner" src="{config[url_banner]}" alt="" />} {config[url_banner]?<img class="banner" src="{config[url_banner]}" {config[banner_height]?style="width:{config[banner_width]px?{config[banner_width]}px};height:{config[banner_height]}px" }alt="" />}
<h1>{board[url]} - {board[name]}</h1> <h1>{board[url]} - {board[name]}</h1>
<div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div> <div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div>

2
templates/thread.html

@ -28,7 +28,7 @@
<body> <body>
{boardlist[top]} {boardlist[top]}
{pm?<div class="top_notice">{pm}</div><hr/>} {pm?<div class="top_notice">{pm}</div><hr/>}
{config[url_banner]?<img class="banner" src="{config[url_banner]}" alt="" />} {config[url_banner]?<img class="banner" src="{config[url_banner]}" {config[banner_height]?style="width:{config[banner_width]px?{config[banner_width]}px};height:{config[banner_height]}px" }alt="" />}
<h1>{board[url]} - {board[name]}</h1> <h1>{board[url]} - {board[name]}</h1>
<div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div> <div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div>

Loading…
Cancel
Save