11
Quest
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 14:28

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


The include code in your post is commented out with //
Not sure if that's it but it might be. Hard to say with what I am seeing. Plus I know very little about php.

Quest

12
fishspon
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 14:43

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


indeed it is, but that was the first bit of code.

the code i'm currently using is as below:


      td>

      <{/if}>

    tr>
  table>

  <
table cellspacing="0">
    <
tr id="hobbsadvertbar">
      <
td align='center'>
        <{
php}>
          include(
"test.php");
          include(
"../../advertising/intelliLink/adverts.php");
        <{/
php}>
      td>
    tr>
  table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" />a>td>
    tr>
  table>
body>
html>


any clues?
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

13
Quest
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 14:50

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


It's probablly in the path. Where is the test.php? Where is the other one?

If test.php is in the xoops_root then it might need to be:

include(XOOPS_ROOT_PATH."/test.php");

Not sure where the other one is... Is advertising a directory in the modules directory?

Quest

14
fishspon
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 15:11

  • fishspon

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/11/23


perfect! thank you
[size=x-small]><> fishsponge <><
[HiFi Forum] [UNIX/Linux Forum] [Richard Hobbs][/size]

15
Quest
Re: Executing custom PHP script at bottom of every page
  • 2006/11/18 15:14

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


It worked? Wow!

Best of Luck,
Quest

Login

Who's Online

335 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 335


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits