MyBB Community Forums

Full Version: My Advertisements
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
solved, disable mod_+security from cPanel, thanks all
anyone could help? only 2 rows and there is no place to put ads code?

[Image: myadvertisement.jpg]
You're in the add zones dialogue.  You need to set up zones, then add advertisements to them.  So zones first, then define ads.

Look over to the Advertisements tab.  That's where you'll add code.

Edit: From the readme.htm.  Had to go back and look - been a while: Wink

Features:

Admins can create zones.
Admins can create advertisements and assign them to zones.
Admins can set an expiration date for advertisements and exempt groups as well.
Clicks are logged via AJAX so the user doesn't notice that the advertisement has been clicked.
Advertisement views are logged.
Each zone has its own code which you can get by clicking Get Code in the Zones page.
A certain uid can be informed via PM once an ad expires
Zone codes can be used anywhere: posts, header, footer, index, etc
(2023-03-20, 09:15 AM)nixer55 Wrote: [ -> ]You're in the add zones dialogue.  You need to set up zones, then add advertisements to them.  So zones first, then define ads.

Look over to the Advertisements tab.  That's where you'll add code.

Edit: From the readme.htm.  Had to go back and look - been a while: Wink

Features:

Admins can create zones.
Admins can create advertisements and assign them to zones.
Admins can set an expiration date for advertisements and exempt groups as well.
Clicks are logged via AJAX so the user doesn't notice that the advertisement has been clicked.
Advertisement views are logged.
Each zone has its own code which you can get by clicking Get Code in the Zones page.
A certain uid can be informed via PM once an ad expires
Zone codes can be used anywhere: posts, header, footer, index, etc

Thanks for the replay and information
Hello everyone! I would like to ask, how could I make an advertisement using this plugin and how could I insert image and text into the advertisement for it to be display in the forum index.
You could put an ad in the index, but I've only put them in the header and footer, depends on your site I guess.  So I'd start there to get a feel for how it works.

Define the zone.  Then get the code, which is just {myadvertisements[zone_X]}.  That's what you place in the template of choice.  Should mention you may want to place code in your global.css to define how the advertisement will look.  Something like this:

/* Advertisements */

#ad-wrap {
  margin: 2px 0;
  text-align: center;
}

#ad-wrap img {
  max-width: 90% !important;
}

.ad-full-width {
  padding: 5px 0;
}

I'll use header as an example.  You'll need the zone code after you've defined the zone - like {myadvertisements[zone_1]}.  Then all I do in the advertisement - is html pointing to an image, and where you want a user redirected if the ad is clicked.  Any advertiser is bound to have a target in mind, so any text stuff can be placed on the target site.  My ad is just a banner.  Code for advertisement looks like this:

<a href = 'https://advertisers_page' target='_blank'><img src='https://link to_image' alt='text_for_failed_to_load_image'></a>

That's it!  You'll have to play with it to find exactly what you want and where. Wink

Edit:  Adding template code.  In this case, header template.  Added just before <navigation> <br /> at the end.

<div id="ad-wrap">
<div class="ad-full-width">
{myadvertisements[zone_1]}
</div>

<div style="clear: both" ></div>
</div>
Pages: 1 2