Ads Manager 2 by Siropu

Ads Manager 2 by Siropu [Paid] 2.5.8

No permission to buy (€49.99)
@Siropu I am loving Ad Manager and the other two add-ons I just purchased from you. You rock! Can you please help me though? I cannot have "Ads Manager" display on my main navigation bar, I really must move it to beneath the Member Profile card and within the member profile for control. Can you please tell me how to do this or perhaps, if you'd be so kind, push an update that allows for navigation placement options? It would be the best!! Thank you so much, because I really cannot utilize it until I have it off the main navbar, so for now I must disable it :(
 
Help me out, what's the code I need to ad to actemplate to create a sticky ad in the sidebar? 2.x

Not sure if I can be of much help but you'd likely need to go to ACP -> Appearance -> Widget and then find that widget from the top drop down menu and place it where you'd like it to show in the sidebar, once you have it enabled to display.

I know I've seen options for featured resource and thread...if that helps at all
 
@Siropu Opera browser default adblock Detector are not working.
Will look into it.

Help me out, what's the code I need to ad to actemplate to create a sticky ad in the sidebar? 2.x
Try this code just below you actual ad code (for position "Sidebar below"):
Code:
<xf:js>
$(function()
{
     var unit = $('.samCodeUnit[data-position="container_sidebar_below"]');

     if (unit.length)
     {
          var unitOffset = unit.offset().top;

          $(window).scroll(function()
          {
               var unitScrollOffset = unit.offset().top;
               var scrollTop = $(document).scrollTop();

               if (unitScrollOffset - scrollTop <= 0)
               {
                    unit.css({position: 'fixed', top: $('.p-nav').height() + 10, width: 'auto'});
               }
               else if (scrollTop <= unitOffset)
               {
                    unit.css({position: '', top: '', width: ''});
               }
          });
     }
});
</xf:js>

@Drunken, you don't need a widget unless you want to have more control over the order of the ad in the sidebar in relation to the other widgets.
 
Will look into it.


Try this code just below you actual ad code (for position "Sidebar below"):
Code:
<xf:js>
$(function()
{
     var unit = $('.samCodeUnit[data-position="container_sidebar_below"]');

     if (unit.length)
     {
          var unitOffset = unit.offset().top;

          $(window).scroll(function()
          {
               var unitScrollOffset = unit.offset().top;
               var scrollTop = $(document).scrollTop();

               if (unitScrollOffset - scrollTop <= 0)
               {
                    unit.css({position: 'fixed', top: $('.p-nav').height() + 10, width: 'auto'});
               }
               else if (scrollTop <= unitOffset)
               {
                    unit.css({position: '', top: '', width: ''});
               }
          });
     }
});
</xf:js>

@Drunken, you don't need a widget unless you want to have more control over the order of the ad in the sidebar in relation to the other widgets.

Any reported problems of that setting off a users malware program?
 
Will look into it.


Try this code just below you actual ad code (for position "Sidebar below"):
Code:
<xf:js>
$(function()
{
     var unit = $('.samCodeUnit[data-position="container_sidebar_below"]');

     if (unit.length)
     {
          var unitOffset = unit.offset().top;

          $(window).scroll(function()
          {
               var unitScrollOffset = unit.offset().top;
               var scrollTop = $(document).scrollTop();

               if (unitScrollOffset - scrollTop <= 0)
               {
                    unit.css({position: 'fixed', top: $('.p-nav').height() + 10, width: 'auto'});
               }
               else if (scrollTop <= unitOffset)
               {
                    unit.css({position: '', top: '', width: ''});
               }
          });
     }
});
</xf:js>

@Drunken, you don't need a widget unless you want to have more control over the order of the ad in the sidebar in relation to the other widgets.


Which template would I use to put an ad above the one that sticks, but not have the first one stick.
 
Any reported problems of that setting off a users malware program?
What do you mean?

@Drunken, Ads Manager has nothing to do with donations so I don't want to go in that direction.

Which template would I use to put an ad above the one that sticks, but not have the first one stick.
You have more than 1 ad in the sidebar bottom position and want to stick only one? If so, in ad settings, CSS class option, add a custom class name and then in the code posted above, replace this part: .samCodeUnit[data-position="container_sidebar_below"] with .customClassName
 
What do you mean?

@Drunken, Ads Manager has nothing to do with donations so I don't want to go in that direction.


You have more than 1 ad in the sidebar bottom position and want to stick only one? If so, in ad settings, CSS class option, add a custom class name and then in the code posted above, replace this part: .samCodeUnit[data-position="container_sidebar_below"] with .customClassName

@Siropu ignore that, totally wrong thread. It's been removed.
 
Bug Report:

When I visit admin.php?ads-manager/packages/top-performing I get this error:
Template admin:siropu_ads_manager_package_top_performing: Division by zero (src/addons/Siropu/AdsManager/Listener.php:185)
The only package has 0 views.

Question:

How is the performance impact with stats turned on on a big board (1+ million page impressions per day)?

Suggestion:

We don't want to use the payment feature (users have to pay on another page). But we want the users to able to manage their own ads. So my suggestions:
  • Ability to turn off payment related features in frontend.
  • Ability to assign packages to individual users + limit how may ads a user can create within the package.
Also a question regarding displaying banners from different packages in 1 spot: is it possible to display them in a row?
 
Last edited:
How is the performance impact with stats turned on on a big board (1+ million page impressions per day)?
I haven't done such a test, but by default, views and clicks count once every 24 hours from the same user to minimize performance impact. You can also set admin option "View count method" to "When ad is loaded" to improve performance.

Also a question regarding displaying banners from different packages in 1 spot: is it possible to display them in a row?
If you use different packages with the same position(s), you can do that.
 
@Siropu thanks again for an awesome Ads manager... I do have one (more :D) question.... my ad package for site global at end of content does not seem to be centering properly with my themes. Is there anyway (I don't see it in positions to add in any alignment HTML code) I can force a <center> command somewhere for that ad package? Let me add to this.... the banner seems to center when my theme is not full width but the commands under the banner and the "buy this" link stay left aligned it seems.
 
If you use different packages with the same position(s), you can do that.
What settings are needed for the packages? If I don't use carousel, then the ads are not displayed in a row. And a carousel seems to contain only ads form 1 package.
 
Is there anyway (I don't see it in positions to add in any alignment HTML code) I can force a <center> command somewhere for that ad package?
Packages and ads have a setting where you can set the unit alignment.
What settings are needed for the packages?
If you want to display ads from different packages, inline, on the same position, you can use display: inline-block; in the Unit style package setting.

How to set add only in home pages?
Use a global position with Page criteria option "Content template is:" forum_list

Sorry for the late response guys, I've been away a couple of days.
 
I wanted to have some banner-ads from different packages in a line and responsive (no line-breaks; banner get smaller on small screens). This is what I did (added to extra.less):

CSS:
.bannerWrapper {
    display: table;
    margin: 5px auto;
}
.samBannerUnit {
    display: contents;
}
.samBannerUnit .samItem {
    display: table-cell;
    padding: 0 3px;
}

Seems to work good so far. Any Ideas how to improve it are welcome :)

Edit: For this to work I had to make a Template Modification for siropu_ads_manager_ad_macros that adds the div.bannerWrapper element around the banners.
 
Last edited:
Seems to work good so far.
not perfect: With this CSS the banners don't show up when there is an anchor in the URL - until I scroll up to the top :confused: - must be a JS problem. Reason is the display: contents; of div.samBannerUnit

Edit: found a solution
CSS:
.bannerWrapper {
    display: flex;
    margin: 5px auto;
    justify-content: center;
}
.samBannerUnit {
    display: flex;
}
.samBannerUnit .samItem {
    padding: 0 3px;
}
 
Last edited:
Back
Top Bottom