Resource icon

[bd] Rotating Ads 2.0

No permission to download
Ok stupid noob question.

I am working on figuring out how to place ads on my forum myself and downloaded this add on.

I went to the style properties and clicked "add new item" under rotating ads

what do I put for the HTML ? is it the html of the ad banner? and if it is where do I get that?
thanks

rotating ad.webp
 
The html is the actual stuff you'll display in that location.

Save the below in a text file and save it as ".html" it'll display in the browser. All of that below isn't necessary for a simple image with a link either.

HTML:
<style>
body {
    background-color:black;
}

.header h1 {
color: red;
text-align: center;
font-size: 250%;
}

p { color: white;
    text-align:center;
    font-size:125%;
}

.p2 p {
    color:white;
    text-align:left;
}

.p2 h2 {
    color:red;
}
</style>

<div class ="header"><h1>Sweet Baby Jesus</h1></div>
<p>Below is demonstrating an image linking to a website.</p><center>
<a href="https://xenforo.com/community/threads/bd-rotating-ads.27967/page-21#post-874544" target="_blank"> 
<img src="http://i.imgur.com/BcAfnux.gif"></a></center>                                                     
<p>This isn't very tasteful...</p>

<!--The only actual html you'll need though is: 

<a href=link to site><img src="image url"></a> --> 

<div class ="p2">
<h2>Actual code to display advertisement</h2>
<p>&lt;a href=&quot;link to site&quot;&gt;&lt;img src=&quot;image url&quot;&gt;&lt;/a&gt;</p>
</div>

Edit: Too much?
 
Last edited:
The html is the actual stuff you'll display in that location.

Save the below in a text file and save it as ".html" it'll display in the browser. All of that below isn't necessary for a simple image with a link either.

HTML:
<style>
body {
    background-color:black;
}

.header h1 {
color: red;
text-align: center;
font-size: 250%;
}

p { color: white;
    text-align:center;
    font-size:125%;
}

.p2 p {
    color:white;
    text-align:left;
}

.p2 h2 {
    color:red;
}
</style>

<div class ="header"><h1>Sweet Baby Jesus</h1></div>
<p>Below is demonstrating an image linking to a website.</p><center>
<a href="https://xenforo.com/community/threads/bd-rotating-ads.27967/page-21#post-874544" target="_blank">
<img src="http://i.imgur.com/BcAfnux.gif"></a></center>                                                   
<p>This isn't very tasteful...</p>

<!--The only actual html you'll need though is:

<a href=link to site><img src="image url"></a> -->

<div class ="p2">
<h2>Actual code to display advertisement</h2>
<p>&lt;a href=&quot;link to site&quot;&gt;&lt;img src=&quot;image url&quot;&gt;&lt;/a&gt;</p>
</div>

Edit: Too much?


thanks for all that. A little confusing though to me. I guess at first all I need will be a simple image with a link. for instance
here is a test image I would like to use to place in a add:

jignpop.webp




What would I put in the HTML section for this one ?
it is from this site : www.jignpop.com

thanks for all your help!
 
thanks for all that. A little confusing though to me. I guess at first all I need will be a simple image with a link. for instance
here is a test image I would like to use to place in a add:

View attachment 93270




What would I put in the HTML section for this one ?
it is from this site : www.jignpop.com

thanks for all your help!

HTML:
<a href="http://www.jignpop.com"><img src="https://xenforo.com/community/attachments/jignpop-png.93270/"></a>
 
Does anyone know how to place an add in a specific node topic only?
Because I don't really know code yet :) , I will need some cut and paste options(examples: so I can cut and paste them) . I have widget framework also

thanks

Andre
 
Alright, figured out how to get advertisements to only display under the first post.
Since rotating ads is hooking into the existing templates, you're able to edit the template from displaying unless certain parameters have been met.

On the rotating ads select 'message below' as the display location.

Then, go to templates for your current style and edit ad_message_below like so:

HTML:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
<xen:hook name="ad_message_below" />
</xen:if>
The above xen:if statement says if the post position is the first one it'll display it but no other ones. This also prevents the advertisement from displaying in the Conversations.

I've tried your code, it works fine but the avatar from the second post goes over the ads
 
I've tried your code, it works fine but the avatar from the second post goes over the ads

You might need to add styling to the html. Try wrapping the code with <center> at the beginning of the code and </center> at the end. Like so:

HTML:
<center>
<a href="http://www.jignpop.com"><img src="https://xenforo.com/community/attachments/jignpop-png.93270/"></a>
</center>

If it still goes over, add padding to the bottom which is CSS. So you would add a div tag to the code and then add padding in the <style>.
 
I think I am beginning to figure out how to put the ad in specific nodes only.

The only thing I need help :
In this specific example I am putting this "ballyhood ad " in nodes 405,406

I used widget framework and put in this info:
bally 2.webp


I then created a rotating ad where I put in this info:


bally 1.webp


where do I put the position code from widget frameworks in pic 1(ads_position_1) into the rotating ad in pic 2?

thanks
 
I think I am beginning to figure out how to put the ad in specific nodes only.

The only thing I need help :
In this specific example I am putting this "ballyhood ad " in nodes 405,406

I used widget framework and put in this info:
View attachment 93781


I then created a rotating ad where I put in this info:


View attachment 93779


where do I put the position code from widget frameworks in pic 1(ads_position_1) into the rotating ad in pic 2?

thanks


Hi Guys anyone know the answer to this?

thanks
 
@xfrocks

I got a small question..
How can I disable the slider on specific pages if the position is set to 'Above breadcrump'
Please take a look at this page, it's also the page were I want to use the slider of CTA featured threads (@Brogan)

If I try to set the slider on 'forum view etc.' it won't even show up.

Please advice!

Regards,
 
I don't know what options there are for this add-on but the template name of the page is cta_featuredthreads_featured.
 
Hey, is it normal ads to show 1 block PER slider on the special position i crated?

It isn't supposed to randomly display one slider per time on the same position? O_o
 
@xfrocks Please help, i have used this with no problem for a while but i have just added another banner below content and both are showing at the same time. I have both these banners also set to above content and they rotate fine in just one placement. The footer however seems to want to show both images at the same time rather than rotating in one placement. Check my signature for website and see footer ads as explained. also here is a screen of the setup.
screen.webp
 
Last edited:
Its odd as i have this setup running fine in the header as i always have done but for some reason its just not doing the same in the footer.
 
@xfrocks

@Blue chummer - did you get this sorted ?

Please can you help me - probably a simple answer so sorry in advance.

I will have multiple forum sponsors and want to have banners on separate forums for separate sponsors.

How do I set a link to only show on one specific node and not the whole forum ?

Thanks in advance

Martin
 
Top Bottom