PunBB-Hosting Support Forum

The official support forum for all things related to PunBB-Hosting

You are not logged in.

Adverts

Adverts

#1 2008-09-25 11:08:19

worrioz
Junior Member
Registered: 2008-09-22
Posts: 14
Reputation :   

HOWTO: Add a banner by editing the template

Go into the Administration panel (admin_index.php) and select Edit Templates (admin_loader.php?plugin=AP_Edit_Templates.php) and click main.tpl (admin_loader.php?plugin=AP_Edit_Templates.php&template=main.tpl). This should pop up:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<div id="brdfooter" class="block">
    <h2><span>Board footer</span></h2>
    <div class="box">
        <div class="inbox">
            <p class="conr">Powered by <a href="http://fluxbb.org/">FluxBB</a><br />Hosted by <a href="http://www.punbb-hosting.com/">PunBB-Hosting</a></p>
            <div class="clearer"></div>
        </div>
    </div>
</div>

</div>
</div>

</body>
</html>

Find in the code where it says

Code:

<pun_title>
<pun_desc>

and replace it with

Code:

<img src="IMAGELOCATION">

where it says IMAGELOCATION replace that with the URL of your image. Your final code should look like:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <img src="IMAGELOCATION">
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<div id="brdfooter" class="block">
    <h2><span>Board footer</span></h2>
    <div class="box">
        <div class="inbox">
            <p class="conr">Powered by <a href="http://fluxbb.org/">FluxBB</a><br />Hosted by <a href="http://www.punbb-hosting.com/">PunBB-Hosting</a></p>
            <div class="clearer"></div>
        </div>
    </div>
</div>

</div>
</div>

</body>
</html>

Offline

 

2008-09-25 11:08:19

AdBot
Advertisements

#2 2013-10-08 03:33:06

Smartys
PunBB-Hosting Owner
Registered: 2006-08-18
Posts: 3543
Reputation :   118 
Website

Re: HOWTO: Add a banner by editing the template

curiouscrab has rewritten this How-To guide to be more clear.

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting