User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4010
  • *Latest: kuki78

  • *Total Posts: 15656
  • *Total Topics: 2322
  • *Online Today: 23
  • *Most Online: 157
(27 Aug 09, 03:54:53)
  • *Users: 0
  • *Guests: 19
  • *Total: 19

Author Topic: how to get this to work in a pmx-php block  (Read 1931 times)

0 Members and 1 Guest are viewing this topic.

Offline Cool

  • Free Tibet
  • Charter Member
  • *
  • Posts: 714
  • Gender: Male
  • I Hate Chinas Authority
how to get this to work in a pmx-php block
« on: 26 Jan 10, 17:58:58 »

this is the code i try:
Code: [Select]
include_once("/public_html/Forum/tools/banner/banner_ads.php");
echo "<div align='center'>$bannerAd</div>";

it is not more then a banner rotator
|I Use: SMF 2.0 | PortaMx 1.4
Q: What do you do when you see a bear in the woods?
A: Play Dead!

H-A-H-L = Happy Admins Have Linux

Offline codebirth

  • PortaMx Supporter
  • *
  • Posts: 263
  • Gender: Male
  • Dark Knight
    • My SMF 2.0 related site
Re: how to get this to work in a pmx-php block
« Reply #1 on: 26 Jan 10, 18:58:58 »
It works for me.

Maybe the path is incorrect ? Something like /home/account/public_html/Forum/tools/banner/banner_ads.php ?

c o d e b i r t h
http://codebirth.com/smf

Offline nend

  • Newbie
  • *
  • Posts: 21
Re: how to get this to work in a pmx-php block
« Reply #2 on: 27 Jan 10, 18:35:36 »

this is the code i try:
Code: [Select]
include_once("/public_html/Forum/tools/banner/banner_ads.php");
echo "<div align='center'>$bannerAd</div>";

it is not more then a banner rotator

Try this.
this is the code i try:
Code: [Select]
include_once("./tools/banner/banner_ads.php");
echo "<div align='center'>$bannerAd</div>";