Ads Manager 2 by Siropu

Ads Manager 2 by Siropu [Paid] 2.5.4

No permission to buy (€49.99)
I never had a proper spacer when using the banner output with "Display in post layout" enabled, so I made some alterations;

1726592267692.webp

Likely not optimal but here is how I did it with my theme.

Edit Template "siropu_ads_manager_ad_macros".

Search:
Code:
<xf:set var="$userTitle" value="{$package.getPostLayoutSetting('title')|raw}" />

Below add:
Code:
<!-- Under First Post -->
    <header data-template-name="public:post_macros::post_attribution" class="message-attribution message-attribution--split">
        <ul class="message-attribution-main listInline ">
            <li class="u-concealed">
                Sponsor
            </li>
        </ul>
        <ul class="message-attribution-opposite message-attribution-opposite--list ">
            <li>
                <a href="https://google.com">#1½</a>
            </li>
        </ul>
    </header>
<!-- Under First Post -->

Search:
Code:
<div class="bbWrapper">{$content}</div>

Below add:
Code:
<!-- Under First Post -->
    <aside data-template-name="public:message_macros::signature" class="message-signature">
        <div class="bbWrapper">Signature here.</div>
    </aside>
<!-- Under First Post -->

DEMO.
 
When exporting ads, I don't get this on my live site (VB v2.2.16, AM2 v2.4.22), but after upgrading my dev site (VB v2.3.3, AM2 v2.5.2) I started seeing:
Screenshot 2024-09-20 at 1.08.50 PM.webp

Anybody else get this?
 
Not sure if I'm taking you too literally here, but is that ...jpg intentional?

If you mean urls like domain.com/data/siropu/am/user/pic.png and the rest of the images in there I can see those via the browser.
Right, so you're using Amazon R2, correct? You've upgraded but you are getting 404 on images. As per this image -->

1726859739425.webp

I would access this URL directly , if its 404ing then I would assume its a sync error or permission error post upgrade. If you check it via ssh/ftp or whatever, is it still in the data/siropu/am/user/* folder? If its there, good, but then it doesn't explain the 404.
 
Right, so you're using Amazon R2, correct? You've upgraded but you are getting 404 on images. As per this image -->

View attachment 311260

I would access this URL directly , if its 404ing then I would assume its a sync error or permission error post upgrade. If you check it via ssh/ftp or whatever, is it still in the data/siropu/am/user/* folder? If its there, good, but then it doesn't explain the 404.
Roger Roger.

Correct on the Amazon R2 usage, which is where the customer's uploaded image. It's not avail with a local link like the script is looking for.

Also, just noticed that the R2 URL drops the /data/ portion of the url where this doesn't

Thanks @MentaL
 
Is it possible that if one of the sidebar related positions is selected that the add-on will trigger the sidebar to be displayed? Only way I've been able to figure it out is to make a sidebar widget that essentially does nothing to get the sidebar to appear.

Also wondering if there could be an 'Advanced' option like the 'Display Condition' field in widgets. I find myself needing ads that, after enabling several diffrent criteria, basically set the ad space to never show. Something like:
  • Add an 'Advanced' section.
  • That section would always show the compiled display conditions based off what is selected in the criteria tabs. Could help cut back on 'Why is my ad not showing' questions.
  • Activating the Advanced Display Criteria would then ignore any criteria in other tabs and only use what the user enters in the field.
Just brainstorming out loud ... 🍻
 
Last edited:
When running Pagespeed Insights test, it returns the following errors.
Index page:
Code:
/index.php?sam-item/31/track-view:1:0  Failed to load resource: the server responded with a status of 400 (Bad Request)

What's new page:
Code:
/index.php?sam-item/31/track-view:1:0. Failed to load resource: the server responded with a status of 400 (Bad Request)
/index.php?sam-item/39/track-view:1:0. Failed to load resource: the server responded with a status of 400 (Bad Request)

Anything I can do or is this a bug?
 
Siropu updated Ads Manager 2 by Siropu with a new update entry:

Bug Fixes

Fixed an issue with Image lazy load when using carousel.
Fixed an issue with lazy loading when using it with banner ads.
Fixed an issue with ads.txt file not updating when XF is not installed in the root directory.
Fixed an issue with email ads not working when using external images.
Fixed an issue with carousel settings not working as expected.

Read the rest of this update entry...
 
Is there a shortcode to display a package? I see there is an embed iframe but I remember there was some shortcode that you can use.
I did use it in the past but forgot how to use it.
<xf:macro template="siropu_ads_manager_ad_macros" name="ad_unit" arg-position="">
Something like this where you can load the position.

EDIT: found this is working <xf:macro template="siropu_ads_manager_ad_macros" name="ad_unit" arg-position="container_header" />
 
Last edited:
Back
Top Bottom