|
View previous topic :: View next topic |
| Author |
Message |
piraja Nice poster


Offline Joined: Apr 28, 2006 Posts: 63 Location: Finland
|
Posted: Sat Feb 16, 2008 8:25 pm Post subject: Probanner not working after update |
|
After update ProBanner module is not working right. Cannot see the banner in header...
Tried to change the code in theme.php:
| Code:: |
'S_BANNER' => ($banners) ? viewbanner() : '', |
to:
| Quote:: |
//'S_BANNER' => ($banners) ? viewbanner() : '',
'S_BANNER' => ($banners) ? pbbanner() : '', |
But after that I get error:
| Quote:: |
Fatal error: Call to undefined function pbbanner() in /var/www/pereklubi/themes/default/theme.php on line 78 |
What I need to do?
piraja's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Sat Feb 16, 2008 8:30 pm Post subject: Re: Probanner not working after update |
|
You need to contact the author of ProBanner.
Moved to the add-ons forum.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
piraja Nice poster


Offline Joined: Apr 28, 2006 Posts: 63 Location: Finland
|
Posted: Sat Feb 16, 2008 8:35 pm Post subject: Re: Probanner not working after update |
|
Thank you, will do that
piraja's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Sat Feb 16, 2008 8:48 pm Post subject: Re: Probanner not working after update |
|
Good - the reason we always insist on that is because,
a) it is our policy for 3rd party (active) mods to be supported on the author's site
b) it gives the author the chance to fix an issue for all users of that mod.
(applies to themes too)
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
scetter Nice poster


Offline Joined: Oct 12, 2005 Posts: 127
|
Posted: Tue Feb 19, 2008 10:47 am Post subject: Re: Probanner not working after update |
|
In case anyone runs into the same problem.
When ever you upgrade DF to a new version always make sure you place the edits back into the files that are overwritten.
In this past case the index.php and admin.php files needed this line put back into them.
| Code:: |
require_once('includes/ProBanner/pbfuncs.php'); |
ProBanner works fine with the latest release, just need to remember that you need to edit the core files for it to work properly.
cheers
_________________ Scetter.com
scetter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.20/5.1.61-log/5.3.8/9.3.3.1
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue Feb 19, 2008 11:12 am Post subject: Re: Probanner not working after update |
|
Will it work with just one addition, to the footer?
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
scetter Nice poster


Offline Joined: Oct 12, 2005 Posts: 127
|
Posted: Tue Feb 19, 2008 2:22 pm Post subject: Re: Probanner not working after update |
|
| Phoenix wrote: |
| Will it work with just one addition, to the footer? |
Might work, never tried it. Would it make a difference if footer.php was called after the theme.php? Or does it?
If it does ok, then one edit is better than two.
_________________ Scetter.com
scetter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.20/5.1.61-log/5.3.8/9.3.3.1
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue Feb 19, 2008 3:04 pm Post subject: Re: Probanner not working after update |
|
Actually, instead of playing with even 1 core file, and since you already require a theme.php edit, simply add your include near the top of function themeheader() - that way you have included the file with the function you want to call within themeheader().
Much better to avoid core
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
scetter Nice poster


Offline Joined: Oct 12, 2005 Posts: 127
|
Posted: Tue Feb 19, 2008 5:05 pm Post subject: Re: Probanner not working after update |
|
But then it would require an edit to every theme.php file. That would be many for some sites.
_________________ Scetter.com
scetter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.20/5.1.61-log/5.3.8/9.3.3.1
|
|
| Back to top |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: Tue Feb 19, 2008 5:37 pm Post subject: Re: Probanner not working after update |
|
It does anyway, doesn't it?
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1
|
|
| Back to top |
|
 |
scetter Nice poster


Offline Joined: Oct 12, 2005 Posts: 127
|
Posted: Thu Feb 21, 2008 12:10 pm Post subject: Re: Probanner not working after update |
|
| Eestlane wrote: |
| It does anyway, doesn't it? |
Good point
_________________ Scetter.com
scetter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.20/5.1.61-log/5.3.8/9.3.3.1
|
|
| Back to top |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: Thu Feb 21, 2008 2:05 pm Post subject: Re: Probanner not working after update |
|
Offtopic: You know, I actually wanted to give exact same reply as you did, scetter, but then the light went on above my head aswell.
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1
|
|
| Back to top |
|
 |
alyssa Diamond Supporter


Offline Joined: Nov 15, 2004 Posts: 773
|
Posted: Thu Jun 19, 2008 7:50 am Post subject: Re: Probanner not working after update |
|
THANK YOU. I knew I was forgetting to edit something!
alyssa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) [ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.2.1.7]
|
|
| Back to top |
|
 |
noair Nice poster


Offline Joined: May 31, 2005 Posts: 90
|
Posted: Fri May 28, 2010 5:50 pm Post subject: Re: Probanner not working after update |
|
Anyone have the Probanner module working with DF 9.2.1. In the event you have it working can you provide me with your copy?
Thanks
noair's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) linux,apache,5.0.92,5.2.9,9.2.3.2
|
|
| Back to top |
|
 |
scetter Nice poster


Offline Joined: Oct 12, 2005 Posts: 127
|
Posted: Fri May 28, 2010 8:02 pm Post subject: Re: Probanner not working after update |
|
As far as I know it should still work. If you recently did an upgrade to your DF install you will need to re-edit the files.
_________________ Scetter.com
scetter's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.20/5.1.61-log/5.3.8/9.3.3.1
|
|
| Back to top |
|
 |
|
|