Hi Miles,
I have created an advertisement view. I get my ads to be displayed when I choose the option "default" for the advertisement row.
However, if I try to implement a taxonomy filter ( for the ad groups), then the view result is empty.
Let me know if you need the export of my view.
Many thanks for the hard work :):)
JJ
Comments
Comment #1
milesgillham commentedHi JJ,
Firstly, make sure you're using alpha5 release so we're working from the same base. The present -dev release is stable, however, just with the addition of field support for Ad External and Ad HTML which shouldn't matter for what you're doing.
I'll make "Default" the actual display default then. For me personally Raw and Javascript work fine but not the others, but I need to clear out my dev environment in case there's some weirdness with other modules going on.
I need to know how you're accessing taxonomy, did you do something like this?
Do please provide a view export, that helps immensely in recreating what you're doing. I appreciate your feedback and patience, it really helps make this module useful!
Regards,
Miles
Comment #2
milesgillham commentedComment #3
Delta Bridges commentedHi Miles,
1)
In fact, iframe, default and javascript work fine for me. I have chosen javascript in my export view this time so you can visualize the ads.
2)
For taxonomy, yes, I follow the steps you mention above. If I don't select any specific group, it still works. But if I select, one, two or all groups, then the view result is empty.
3)
Here is the export of my view. Hope it helps :)
$view = new view;
$view->name = 'Ad_Zhuhai_Sponsors';
$view->description = 'Ad_Zhuhai_Sponsors';
$view->tag = 'Ads';
$view->view_php = '';
$view->base_table = 'ads';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('sorts', array(
'random' => array(
'id' => 'random',
'table' => 'views',
'field' => 'random',
),
));
$handler->override_option('filters', array(
'tid' => array(
'operator' => 'or',
'value' => array(
'417' => '417',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => 'tid_op',
'label' => 'Taxonomy: Term',
'use_operator' => 0,
'identifier' => 'tid',
'optional' => 1,
'single' => 1,
'remember' => 0,
'reduce' => 0,
),
'type' => 'select',
'limit' => TRUE,
'vid' => '62',
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
'hierarchy' => 0,
'relationship' => 'none',
'reduce_duplicates' => 0,
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('row_plugin', 'ad');
$handler->override_option('row_options', array(
'ad_display' => 'javascript',
));
Comment #4
Delta Bridges commentedSorry, I forgot to mention that I am back on alpha5, and you have a minor bug there: the default row style is advertisement, but if you set it to fields ( some users may do this when testing and trying this new plug in), then you cannot set it back to advertisement.
JJ
Comment #5
milesgillham commentedI reset my 6.x dev environment and an error came right up which I think explains the problem. I've committed a fix to the -dev branch just now (should come through in 12 to 24 hours). I think it's good now. Please try it out.
Not sure about the minor bug, whether it was a result of the main bug (the selection of Advertisemet or Fields is controlled by Views but if Views thought the Advertisemet display had an error perhaps it disallowed it). Let me know if it's still happening for you and if so is it coming from a new view you create or by using the default view?
Regards,
Miles
Comment #6
Delta Bridges commentedHI Miles,
I have downloaded and installed 6dev, and here is the feedback:
1)Taxonomy
Taxonomy filter is working perfectly, as well as Taxonomy argument :):)
2)Images
Images are displayed with Iframe,and javascript.
Raw option creates an error
Jquery gives me a link instead of an image:
http://www.mysite.com/sites/all/modules/ad/serve.php?m=jquery&q=1&n=3818...
3) Newsletter
The view renders the images on my website but when I insert the view in my E-newsletter, it doesn't work anymore (nor iframe, nor javascript). The only option that produces something is jquery, but as mentioned above, I get a series of links instead of images.
Could it be something wrong with the path?
Many thanks Miles :)
JJ
Comment #7
milesgillham commentedJJ,
It looks like Views is tamed, it's down to the Ad rendering mechanism. ad_views invokes Ad API (sorta) to do the rendering. Now I may not have done this in the best way possible. I'll look into fixing issue 2) (Raw and JQuery) first as I think they may be the underlying problem.
BTW, are you using any of the drupal modules to do the e-newsletter? If so, which one(s)?
I'll do some more work and get back to you.
Regards,
Miles
Comment #8
Delta Bridges commentedHi Miles,
Yes, I am using Simplenews to send my newsletters. I insert many other views without any problems, so I am not sure if there is a problem there.
Anyway, it is already great that the ad view is working on the website itself :):)
Thanks again for your help!!
JJ
Comment #9
milesgillham commentedJJ,
I assume you're embedding the ad view into your newsletter body, just how are you doing that - through an input filter? If you could paste a snippet that would be helpful. I don't think that's the problem, but it will help me in recreating the exact environment.
When you used Raw option you mentioned an error, are you able to paste more details of that error, please?
Also have you set user permissions correctly to allow users to view ads? (I assume you have, but just checking)
Regards,
Miles
Comment #10
Delta Bridges commentedHi Miles,
1)
Sorry, I forgot to tell you that for my newsletters, in addition to the simplenews module, I also use the Insert view module:
http://drupal.org/project/insert_view
2)
As for the error that I get when selecting the "raw" option, I get a white screen on the website with the following text:
document.write('\x3cdiv class=\"image-advertisement\" id=\"ad-3582\"\x3e\x3ca href=\"http://www.mysite.com/ad/redirect/3582/n3582\"\x3e\x3cimg src=\"http://www.mysite.com/files/mdt.jpg\" alt=\"\" title=\"\" width=\"202\" height=\"203\" /\x3e\x3c/a\x3e\x3c/div\x3e');
3)
No problem with permission settings :)
Many thanks,
JJ
Comment #11
milesgillham commentedSorry, just picking up again. Are there still issues with this? That is, did they magically go away or is further scrutiny required?
Regards, Miles
Comment #12
Delta Bridges commentedHi Miles,
I disabled the Ad Views module a while ago because several issues were not resolved.
Now that you are back, I will do some further testing and let you know :)
Thanks,
JJ
Comment #13
milesgillham commentedOkay, working off ad_views beta1. I've installed insert_view and I'm all ready to tackle this one, just let me know where you get with the testing and what bugs are left above. In the meantime I'll go look at some of the other outstanding issues.
Cheers, Miles
Comment #14
milesgillham commentedI'm going to close this as there's nothing further that I can do. Feel free to reopen if needed.