Topic: Copyright Fix

Simple new copyright for PunBB 1.3.

So, i was getting annoyed with the default PunBB footer looking through this forum to try and find a solution to solve my problem and that search was not successful. So i was trying to hide "Currently installed 5 official extensions. Copyright © 2003–2009 PunBB." Because i couldn't hide this HTML code in the CSS, which is where that part of the footer is located

<p style="clear: both; ">Currently installed <span id="extensions-used">5 official extensions</span>. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>

I decided to do a quick and simple fix myself, and create my own copyright, still including that its powered by PunBB. Follow these steps and you'll get the perfect simple footer/copyright.

In style.css find line 707:

/*----REPLACE

#brd-about #copyright {
    text-align: right;
    margin: 0;
    }


/*----WITH

#copy {
    text-align: right;
    float: right;
    margin: 0 2px 30px 0;
    }

#brd-about {
    display: none;
    }

Then open /include/template/main.tpl, find line 52:

/*----UNDER

<div id="brd-about" class="gen-content">
    <!-- forum_about -->
</div>


/*----PASTE 

<p id="copy"><b><a href="http://punbb.informer.com/">PunBB</a> 1.3.4</b></p>

This should give you a result like below, all nice and simple. Minus- The Oxygen v1.1  tongue
http://i45.tinypic.com/qyba55.png

Re: Copyright Fix

http://keydogbb.info/img/footerkeydog.png

I added (or modified) the below to some of the extensions, official or non official, on my board and
added  display: none;     to the copyright css

        <hook id="co_common"><![CDATA[
$pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));
        ]]></hook>
        <hook id="ft_about_end" priority="9"><![CDATA[
if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))
{
    define('PUN_EXTENSIONS_USED', 1);
    if (count($pun_extensions_used) == 1)
        echo '<p style="clear: both; ">The '.$pun_extensions_used[0].' official extension is installed. Copyright &copy; 2003&ndash;2009 <a href="http://punbb.informer.com/">PunBB</a>.</p>';
    else
        echo '<p style="clear: both; ">Currently installed: <span id="extensions-used" title="'.implode(', ', $pun_extensions_used).'.">'.count($pun_extensions_used).' extensions</span><br> Powered by <a href="http://punbb.informer.com/">PunBB</a></p>';
}
        ]]></hook>

What I don't know is: how do I change the code so that the currently installed  and powered by  can be manipulated via the css - no problem to add extra # .brd installed  - but in the code above I'm unsure...

3 (edited by inferno 2010-02-18 01:42)

Re: Copyright Fix

That's one of the problems i was having. I found no way of being able to style with CSS the property "clear: both;".

That's why i decided to do a simple fix where both can be done by the user. If there were a way to edit the source and change <p style="clear: both; ">Currently installed etc etc etc.</p> and replace it with a new piece of code> <div id="#">Currently installed etc etc etc.</div>

Then i think that would be the only way to do it. But I'm not 100% sure bro..  hmm

Re: Copyright Fix

To  Developers:
I propose following 2 new css id's are added to version 1.3.5 ! : extensions ,  extcopyright
i.e. oxygen.css
/* Footer
-------------------------------------------------------------*/

#brd-about #extensions {
    text-align: left;
    float: left;
    color: #000000;
    margin-left: 0em;
   /*    display: none;*/ 
       }
       
#brd-about #extcopyright {
    text-align: right;
    float: right;
    color: #000000;
    margin-left: 0em;
   /*    display: none;*/ 
       }       

so that for example in the hook about_ft_end such code can be added in future updates of extensions:

 echo '<p id="extensions">Currently installed: <span id="extensions-used" title="'.implode(', ', $pun_extensions_used).'.">'.count($pun_extensions_used).' extensions</span><br>
        <p id="extcopyright"> Powered by <a href="http://punbb.informer.com/">PunBB</a></p>';
}

to make it look like this footer (save colors):

http://punbb-exp.keydogbb.info/index.php

Re: Copyright Fix

Would be a nice addition to 1.3.5, great suggestion KeyDog smile

Re: Copyright Fix

Better idea, why is data on official extensions even placed down there anyway? I don't see half the WordPress extensions injecting credits like that. Why couldn't it just be in the debug information instead, like "Generated in 0.053 seconds, 6 queries executed, 3 extensions active" (and the 3 extensions active would list EVERY extension)?