Maybe I am reading the documentation wrong; however, none of my ads include proper div tags for css/theme control.
I thought they should contain <div id="advertisement" class=.... > or some other generalized advertisement id/class. They just contain specific node numbers which aren't as useful in regards to future expansion.
They are in blocks and have associated group/channels in most cases.
I get the following output:
<div id="node-8" class="node">
<h2><a href="/vip/content/sponsor-5" title="Sponsor #5">Sponsor #5</a></h2>
<div class="content clear-block">
<div class="image-advertisement" id="ad-8"><a href="http://www.theslamnetwork.com/vip/ad/redirect/8/0"><img src="http://www.theslamnetwork.com/vip/files/blank234x60_5.jpg" alt="Sponsor #5" title="Sponsor #5" width="234" height="60" /></a></div>
<div class="links-to">Links to http://www.google.com.</div>
<div class="box">
<h2>Premiere</h2>
<div class="content">This is a premiere advertisement.</div>
</div>
</div>
<div class="clear-block">
<div class="meta">
<div class="terms">
<ul class="links inline">
<li class="taxonomy_term_4 first last"><a href="/vip/category/ad-groups/sponsored-advertisements" rel="tag" title="Ads from SLAM Network Sponsors">Sponsored Advertisements</a></li>
</ul>
</div>
</div>
<div class="links">
<ul class="links inline">
<li class="comment_add first"><a href="/vip/comment/reply/8#comment-form" title="Add a new comment to this page.">Add new comment</a></li>
<li class="upload_attachments"><a href="/vip/content/sponsor-5#attachments" title="Read full article to view attachments.">1 attachment</a></li>
<li class="contact-node"><a href="/vip/user/1/contact">Contact</a></li>
<li class="node_spam last"><a href="/vip/mollom/node/8">Delete post</a></li>
</ul>
</div>
</div>
</div>
I can't even figure out which ad module file is spitting out those particular DIV tags... I've been trying to figure it out for about an hour. I could recode it myself if I could figure it out.
Does anyone know what I'm missing?
Comments
Comment #1
jeremy commentedHow are you displaying the advertisements?
In your example, you'd have to use the ad-type div, which is as follows:
<div class="image-advertisement" id="ad-8"></div>Take a look at the CSS examples in documentation/README.txt. Though you'd have to replace .advertisement with .image-advertisement.
Comment #2
jyme commentedi am trying to display the ads in groups whose blocks are positioned one in the content section and one on the right nav bar.
per the documentation:
i was under the impression that blocks/groups had a div encompassing that group's ads or that grouped ads at least have the same class/id.
right now it appears that all the ads have their own div with an associated id (node-8, node-7,etc)... which would require me to edit the style of every ad as it gets created. the ads are in the same group/channel as well.
all actual image in the ads have a generic id/class (image-advertisements) but you can't style the surrounding content with that.
if it makes any difference: attached is a picture of how they are showing up now. my objective is to display -only- the linked ad image and remove all surrounding text.
Comment #3
jyme commentedI went to take another look at the perceived issue today and voila, it is gone.
I now get the following output:
I think it was a settings page issue. It said javascript initially but was outputting RAW. I clicked save settings and it changed to the proper javascript output above. When I went back and set it to RAW to see if it would repeat the issue, I got the following output:
That looks right to me... all the ads are in a uniquely ID'd block and include the image-advertisement class.
Attached picture shows them displaying properly as well.
I'd sum it up to a settings issue... unless you see something I'm missing this thread can probably be closed.
Comment #4
jeremy commentedI'm glad it's working for you now, and have no theories as to why it didn't work for you before. Closing issue.