* User

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

19 Mar 10, 20:49:38

Login with username, password and session length

Select language:

* Recent Topics



Donate

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

* Stats

  • *Total Members: 1991
  • *Latest: Newbster

  • *Total Posts: 9255
  • *Total Topics: 1343
  • *Online Today: 34
  • *Most Online: 157
(27 Aug 09, 03:54:53)
  • *Users: 3
  • *Guests: 13
  • *Spiders: 0
  • *Total: 16

* Themes

*

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

0 Members and 1 Guest are viewing this topic.

Offline Cool

  • Free Tibet
  • Charter Member
  • *
  • Posts: 576
  • 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
Site:FikaGuide(Sv)|I Use:V0.971-2|SMF 2.0 RC2
Q: What do you do when you see a bear in the woods?
A: Play Dead!

EEE-PC:1000H-1TB_WD-2GB-Xp&Win7-BT_Gps-BT_Mouse-USB_Huawei_Hsdp

Offline codebirth

  • PortaMx Supporter
  • *
  • Posts: 222
  • 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: 13
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>";