1
castortroy
problem with block
  • 2004/7/26 5:25

  • 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 www.yoursite.com/ledads/)
- For html pages, put <!--#include virtual="/ledads/ledad.php"--> 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 <!--#include virtual="/ledads/ledad.php"-->
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
tjnemez
Re: problem with block
  • 2004/7/26 6:08

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


<?
require('path/to/ledads/ad_class.php');
echo $pla_class->adcode( );
?>


try the above without <? and ?> and make sure to check php at bottom of custom block form.

3
castortroy
Re: problem with block
  • 2004/7/26 7:29

  • castortroy

  • Just popping in

  • Posts: 23

  • Since: 2004/7/7 1


thanks man, but when i do that, my whole page goes blank. what about that html one? can i use that?

Login

Who's Online

159 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

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

Latest GitHub Commits