Page 1 of 1

Admin Banner end date only to 2010?

PostPosted: Thu Jan 07, 2010 4:16 pm
Author: Angelus
Hi,

in ACP -> Styles Admin -> Banner the End Time of Banners can only be set to 2010 and than to 2099. How can I insert e.g. 2011, 2012 etc.?

Regards
Thorsten

Re: Admin Banner end date only to 2010?

PostPosted: Thu Jan 07, 2010 11:31 pm
Author: obiku
I saw this year selection is hardcoded in the admin_banner.php.

Search for this piece of code:
Code: Select all
        $s_time_year_begin =' <option>-               <option>2002               <option>2003               <option>2004               <option>2005               <option>2006               <option>2007               <option>2008               <option>2009               <option>2010               <option>2099';    


You can add or remove some of the options. Yes I know this isn't the way we would like it to be, but for now it will do. If the release of the new portal for phpBB 3 is taking to long, then I will check if I can change this.

Re: Admin Banner end date only to 2010?

PostPosted: Thu Jan 07, 2010 11:51 pm
Author: Helter
OPEN root/admin/admin_banner.php

FIND

Code: Select all
            <option>2002             <option>2003             <option>2004             <option>2005             <option>2006             <option>2007             <option>2008             <option>2009             <option>2010             <option>2099';


REPLACE WITH

Code: Select all
              <option>2010             <option>2011             <option>2012             <option>2013             <option>2014             <option>2015             <option>2016             <option>2017             <option>2018             <option>2019             <option>2020             <option>2099';

Re: Admin Banner end date only to 2010?

PostPosted: Fri Jan 08, 2010 2:35 am
Author: Angelus
Thank you both very much. Works fine!

Regards
Thorsten

Re: Admin Banner end date only to 2010?

PostPosted: Fri Jan 08, 2010 3:04 am
Author: Helter
<img> I didnt know obiku had posted while I was working out a fix...lol