1
castortroy
add advertising banner in block
  • 2004/7/26 5:23

  • castortroy

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 1


i've tried to put an advertisng script in one of the blocks i created, the readme tells me this

Quote:



To include the adcode itself:
(this assumes your files are in http://www.yoursite.com/ledads/)
- For html pages, put where you want
the ad to show
- For php pages, put
require('path/to/ledads/ad_class.php');
echo $pla_class->adcode( );
?>
where you want the ad to show up




i tried using
but it still doesn't work when i use the block for html,
same for the php script when i use that type.

my XOOPS is installed in domain.com/main
and my advertising script in domain.com/ledads

if anyone can help thanks.

2
Mithrandir
Re: add advertising banner in block

If you set the block type to "PHP" the code in the field should only be this
require(XOOPS_ROOT_PATH.'/../ledads/ad_class.php');
echo 
$pla_class->adcode( );

so without the tags

You may have to tweak the path to the ad_class.php a little to get it working and put on php debug BEFORE you try this


I hate it when people doublepost! hate wasting my time

3
castortroy
Re: add advertising banner in block
  • 2004/7/26 8:42

  • castortroy

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 1


thanks, and sorry for posting twice, i didn't know if i should've posted in general usage or Q & As, anyway, i did that, and still, nothing shows up.

4
JMorris
Re: add advertising banner in block
  • 2004/7/26 12:52

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Try placing your ad script in a sub directory under your XOOPS root, not your domain root, then add the php script as directed by Mithradir.

Friendly tip: If you don't know where to post something, just post it in Q and A. Never double post.

Best of Luck!

Login

Who's Online

308 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 308


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