Hi,
I have created few ads. I have set them as active, but non them is being displayed in block.
I have set display method as javascript.
You can check at
http://healthatcontrol.manageserver3.info/

The block is featured ads.
--
Sharique

Comments

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

To begin, try following the instructions found in DEBUG.txt within the documentation directory.

sharique’s picture

I run this
http://healthatcontrol.manageserver3.info/sites/all/modules/ad/serve.php...
and got this errot
output

ad_dir: /public_html/projectsites/medical/sites/all/modules/ad'
debug: '2'
cache: 'none'
nids: ''
tids: '2'
hostid: ''
quantity: '1'
aid: '0'
method: 'javascript'

Fatal error: Call to a member function query_first_slave() on a non-object in /public_html/projectsites/medical/vb/includes/functions.php on line 1194

vb folder contains Vbulletin. I'm using VbDrupal.
It is conflicting with Vbulletin
site is using php 5.2.4 and mysql 5.0.45.
--
Sharique

jeremy’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, but this appears to be outside of the scope of the ad module. I've no ideas for you.

sharique’s picture

Status: Closed (won't fix) » Active

I have tested this module in local system without Vbulletine.
Ads are not showing up here also. But it is counting viewing details properly.

It show following in debug output

ad_dir: '/var/www/html/dtesting/sites/all/modules/ad'
debug: '2'
cache: 'none'
nids: ''
tids: '0'
hostid: ''
quantity: '1'
aid: '0'
method: 'javascript'
Root drupal directory detected as '/var/www/html/dtesting'.

/var/www/html/dtesting/sites/all/modules/ad/serve.php: // $Id: serve.php,v 1.1.2.2 2007/10/19 02:46:40 jeremy Exp $
/var/www/html/dtesting/sites/all/modules/ad/ad.module: // $Id: ad.module,v 1.2.2.29.2.59 2008/01/11 19:37:33 jeremy Exp $

No cache enabled.
Drupal bootstrap '7'.
Ads previously served: 0
Searching for ads with no tids.
Query: "SELECT a.aid, a.adtype, a.redirect, a.activated, a.maxviews, a.maxclicks FROM {ads} a LEFT JOIN {term_node} n ON a.aid = n.nid WHERE a.adstatus = 'active' AND n.tid IS NULL ORDER BY RAND() LIMIT 1;"
ad:

stdClass Object
(
    [aid] => 5
    [adtype] => text
    [redirect] => http://localhost/dtesting/?q=ad/redirect/5
    [activated] => 1206290976
    [maxviews] => 0
    [maxclicks] => 0
)

Loading module 'sites/all/modules/ad/text/ad_text.module'.
Ads displayed: 1
document.write('\x3cdiv class=\"text-advertisement\" id=\"ad-5\"\x3e\x3cdiv class=\"ad-header\"\x3e\x3ca href=\"http://localhost/dtesting/?q=ad/redirect/5/\" target=\"_self\"\x3emanagefolio\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"ad-body\"\x3emanagefolio\x3c/div\x3e\x3c/div\x3e');

---
Sharique

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

Based on the debug output you've shared, this is working fine...?

sharique’s picture

sorry, permission issue.

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

Glad you've resolved the problem. Updating issue status.

sharique’s picture

Status: Fixed » Closed (won't fix)

Module is still not working with vbDrupal. But it is working with other vb and drupal integrations.
I have posted an issue with vb drupal.
http://sourceforge.net/tracker/index.php?func=detail&atid=808380&aid=192...

---
Sharique