1
defwind77
Phpads in custom blocks
  • 2005/12/15 23:15

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Ok I've been struggling with this and I need a hand from a clever soul.

I've set up phpads in XOOPS following the instructions on a site (I forget the link! It's in here somewhere!) Everything's hunkydory and i've uploaded banners and replaced the standard XOOPS banner and it works great, however...

I'm trying to follow the instructions to set up a banner ad in a custom block - the only reason I've installed php and I follow the instructions to the letter and nothing appears...

My banners are loading at the top of the page in the theme banner slot, however custom block shows, however is empty...

I've converted the code as per the instructions so it's:

echo"<center>"; require(getenv('DOCUMENT_ROOT').'/xoops2/modules/phpads/phpadsnew.inc.php');
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_id = view ('', 2, '', '', '0', $phpAds_context);
echo"</center>";

To go in the custom block and I've set it to content type: php script etc...

However nothing appears?!

Can anyone spot the glaring mistake or offer any advice?!

Many thanks!

2
davidthomas1
Re: Phpads in custom blocks

Try turning on PHP debug and see if you get an error at the bottom of the screen when you view the problem block.

An error message would be helpful.

Admin>Preferences>Debug = PHP Debug
みんなちがってみんないい。

XOOPS 2.0.13.2

3
defwind77
Re: Phpads in custom blocks
  • 2005/12/16 10:12

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


good idea! you can tell I was trying this late at night!

The error is:

Warning [Xoops]: Smarty error: unable to read resource: "db:system_block_dummy.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "db:system_block_dummy.html" in file class/smarty/Smarty.class.php line 1084

4
defwind77
Re: Phpads in custom blocks
  • 2005/12/17 6:08

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


no ideas?! I'd really like to get this working?!

5
jdseymour
Re: Phpads in custom blocks

Go to system admin - Templates, check your system templates that "system_block_dummy.html" is there and does not need generating. If it is not there update the system module in the modules administration page, then check your templates again.

6
defwind77
Re: Phpads in custom blocks
  • 2005/12/17 6:51

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


simple as that!

Worked perfectly - thanks jd!

Login

Who's Online

195 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 195


more...

Donat-O-Meter

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

Latest GitHub Commits