Page 1 of 1
External php plugin in footer?
Posted: Tue Jul 29, 2008 1:22 am
by JACOBKELL
Is that possible?
Re: External php plugin in footer?
Posted: Tue Jul 29, 2008 10:38 am
by garvinhicking
Hi!
Yes, either through Smarty, a custom PHP event plugin or code in your config.inc.php template file. Depends on what exactly you want to do.
Regards,
Garvin
Posted: Tue Jul 29, 2008 6:18 pm
by JACOBKELL
What exactly what i want?Nothing special,i just want to include php script and show it in footer instead sidebar.
File which i want to include is in includes folder.
I added <?php include("/includes/counter.php") ?> in config.php.inc but it seems that doesnt work
Posted: Tue Jul 29, 2008 7:29 pm
by garvinhicking
Hi!
This should work. Does your webspace really have a path /includes in the root?
Usually it should rather be something like /var/www/html/mydomain.com/htdocs/includes -- using /includes as a full absolute path is VERY VERY rare. So, look up the real, right absolute path and it should work.
Maybe something like include $_SERVER['DOCUMENT_ROOT'] . '/includes/counter.php' will, depending on your directory structure.
Regards,
Garvin
Posted: Tue Jul 29, 2008 8:22 pm
by JACOBKELL
Before i puted on footer on config,and that caused blank output.Now i puted on first line of config and it shows normaly on footer.But now there is new problem-script also shows in admin panel,and admin panel is totaly messed.Neither it should show there neither it should do what it do.How to exclude script showing from admin panel?
Posted: Wed Jul 30, 2008 10:23 am
by garvinhicking
Hi!
You can change your config.inc.php to:
Code: Select all
if (!defined('IN_serendipity_admin')) {
include '/path/to/footer.php';
}
Regards,
GArvin
Posted: Thu Jul 31, 2008 4:11 am
by JACOBKELL
It works,thanks.