Ads Manager 2 by Siropu

Ads Manager 2 by Siropu [Paid] 2.4.22

No permission to buy (€49.99)
Thanks for a great plugin! One quick question, I have just installed this plugin:
... and my email ads are not showing up. Do I need to add any code to his template for the ads to show up?

Thanks!
 
I turn them off, press save, but nothing happens. After refreshing the page, the options remain enabled.
Which ad type? I've been able to reproduce this with promo threads.

Advertisers complain that they receive about 1000 messages per day.
That's not possible. Cron jobs run 4 times a day and after the first notification, they are not sent anymore. How can they get 1000 per day?

Do I need to add any code to his template for the ads to show up?
My add-on adds a template modification to MAIL_CONTAINER email template. Is that add-on working with that template or using its own?
 
My add-on adds a template modification to MAIL_CONTAINER email template. Is that add-on working with that template or using its own?
Hmm... not sure (how do I check this?)... the email template I am interested in is called: dbtech_mail_digest

...and has this code:

Code:
<mail:subject>{$digest.title}</mail:subject>

<xf:if is="$digest.introduction"><p>{$digest.introduction|raw}</p></xf:if>

<xf:if is="$content is not empty">
    <xf:foreach loop="$content" value="$templateParams">
        <xf:include template="{$templateParams.template}">
            <xf:set var="$settings" value="{$templateParams.settings}" />
            <xf:set var="$content" value="{$templateParams.content}" />
        </xf:include>
        
        <hr />
    </xf:foreach>
<xf:else />
    <p>{{ phrase('dbtech_mail_digest_no_content') }}</p>
</xf:if>

<xf:if is="{$user.dbtech_mail_newsletter_frequency} > 1">
    {{ phrase('dbtech_mail_newsletter_reducefrequency_further_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/reduce-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}

    {{ phrase('dbtech_mail_newsletter_increasefrequency_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/increase-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}
<xf:else />
    {{ phrase('dbtech_mail_newsletter_reducefrequency_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/reduce-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}
</xf:if>

<p class="minorText"><a href="{{ link('canonical:dbtech-mail/digests/settings', $digest) }}">{{ phrase('dbtech_mail_configure_digest_content_settings') }}</a></p>

<p class="minorText"><a href="{{ link('canonical:email-stop/content', $user, {'t': 'dbtech_mail_digest', 'id': $digest.digest_id}) }}">{{ phrase('dbtech_mail_newsletter_unsubscribe_link') }}</a></p>

<xf:if is="$brandingVariables">
<p class="footer p-footer-copyright">{$brandingVariables.flavour}
    <a rel="nofollow noopener" href="https://www.dragonbyte-tech.com/store/{$brandingVariables.productid}/?utm_source={$brandingVariables.utm_source}&utm_campaign=product&utm_medium={$brandingVariables.utm_medium}&utm_content={$brandingVariables.utm_content}" target="_blank">{$brandingVariables.title}</a>.
    <br />
    <a rel="nofollow noopener" href="https://www.dragonbyte-tech.com/?utm_source={$brandingVariables.utm_source|raw}&utm_campaign=site&utm_medium={$brandingVariables.utm_medium}&utm_content={$brandingVariables.utm_content}" target="_blank">Copyright &copy; {$brandingVariables.date} DragonByte Technologies Ltd.</a>
</p>
</xf:if>

<xf:page option="template"></xf:page>
 
and has this code:
Try this:

Code:
<mail:subject>{$digest.title}</mail:subject>

<xf:if is="$digest.introduction"><p>{$digest.introduction|raw}</p></xf:if>

<xf:if is="$content is not empty">
     <xf:set var="$samAds" value="{{ sam_mail_ads($xf.toUser) }}" />
     <xf:macro template="siropu_ads_manager_ad_macros" name="ad_unit" arg-ads="{{ sam_mail_position_ads($samAds, 'mail_above_content') }}" arg-position="mail_above_content" />

    <xf:foreach loop="$content" value="$templateParams">
        <xf:include template="{$templateParams.template}">
            <xf:set var="$settings" value="{$templateParams.settings}" />
            <xf:set var="$content" value="{$templateParams.content}" />
        </xf:include>
        
        <hr />
    </xf:foreach>

    <xf:macro template="siropu_ads_manager_ad_macros" name="ad_unit" arg-ads="{{ sam_mail_position_ads($samAds, 'mail_below_content') }}" arg-position="mail_below_content" />
<xf:else />
    <p>{{ phrase('dbtech_mail_digest_no_content') }}</p>
</xf:if>

<xf:if is="{$user.dbtech_mail_newsletter_frequency} > 1">
    {{ phrase('dbtech_mail_newsletter_reducefrequency_further_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/reduce-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}

    {{ phrase('dbtech_mail_newsletter_increasefrequency_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/increase-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}
<xf:else />
    {{ phrase('dbtech_mail_newsletter_reducefrequency_link', {
        'param1': '<a href="' . link('canonical:dbtech-mail/digests/reduce-frequency', $digest, {'c': $user.email_confirm_key, 'user_id': $user.user_id}) . '">' . phrase('dbtech_mail_click_here') . '</a>'
    }) }}
</xf:if>

<p class="minorText"><a href="{{ link('canonical:dbtech-mail/digests/settings', $digest) }}">{{ phrase('dbtech_mail_configure_digest_content_settings') }}</a></p>

<p class="minorText"><a href="{{ link('canonical:email-stop/content', $user, {'t': 'dbtech_mail_digest', 'id': $digest.digest_id}) }}">{{ phrase('dbtech_mail_newsletter_unsubscribe_link') }}</a></p>

<xf:if is="$brandingVariables">
<p class="footer p-footer-copyright">{$brandingVariables.flavour}
    <a rel="nofollow noopener" href="https://www.dragonbyte-tech.com/store/{$brandingVariables.productid}/?utm_source={$brandingVariables.utm_source}&utm_campaign=product&utm_medium={$brandingVariables.utm_medium}&utm_content={$brandingVariables.utm_content}" target="_blank">{$brandingVariables.title}</a>.
    <br />
    <a rel="nofollow noopener" href="https://www.dragonbyte-tech.com/?utm_source={$brandingVariables.utm_source|raw}&utm_campaign=site&utm_medium={$brandingVariables.utm_medium}&utm_content={$brandingVariables.utm_content}" target="_blank">Copyright &copy; {$brandingVariables.date} DragonByte Technologies Ltd.</a>
</p>
</xf:if>

<xf:page option="template"></xf:page>
If it doesn't work, you have to check with them how you can integrate the part I added to this code.
 
Hi...
I have this problem.Maybe it's something I did.

1684350253811.png

Code:
LogicException: Cannot save with validation errors. Use validate() to ensure there are no errors. (First error: Sorry! You have reached your limit <b>0</b> links per post. There are <b>1</b> link in your post, please remove them to submit.) src/XF/Service/ValidateAndSavableTrait.php:36
Generated by: Unknown account 17.05.2023 at 21:00

Stack trace
#0 src/addons/Siropu/AdsManager/Entity/AdExtra.php(89): XF\Service\Thread\Editor->save()
#1 src/addons/Siropu/AdsManager/Service/Ad/PromoThreadManager.php(55): Siropu\AdsManager\Entity\AdExtra->togglePromoThreadOptions()
#2 src/addons/Siropu/AdsManager/Entity/AdExtra.php(177): Siropu\AdsManager\Service\Ad\PromoThreadManager->save()
#3 src/XF/Mvc/Entity/Entity.php(1277): Siropu\AdsManager\Entity\AdExtra->_postSave()
#4 src/XF/Mvc/Entity/Entity.php(1323): XF\Mvc\Entity\Entity->save(false, true)
#5 src/addons/Siropu/AdsManager/Service/AdExtra/Manager.php(104): XF\Mvc\Entity\Entity->saveIfChanged(true, false)
#6 src/addons/Siropu/AdsManager/Behavior/ExtraUpdatable.php(51): Siropu\AdsManager\Service\AdExtra\Manager->save()
#7 src/XF/Mvc/Entity/Entity.php(1280): Siropu\AdsManager\Behavior\ExtraUpdatable->postSave()
#8 src/addons/Siropu/AdsManager/Entity/Invoice.php(177): XF\Mvc\Entity\Entity->save()
#9 src/XF/Mvc/Entity/Entity.php(1277): Siropu\AdsManager\Entity\Invoice->_postSave()
#10 src/addons/Siropu/AdsManager/Cron/Invoice.php(23): XF\Mvc\Entity\Entity->save()
#11 src/XF/Job/Cron.php(37): Siropu\AdsManager\Cron\Invoice::processExpiredInvoices(Object(XF\Entity\CronEntry))
#12 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#13 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#14 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#15 job.php(43): XF\Job\Manager->runQueue(false, 8)
#16 {main}



Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(41) "https://www.domain.com/forums/new/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hi...
I have this problem.Maybe it's something I did.

View attachment 286120
In reading your error, it appears to me that you have some other setting with another addon that restricts the amount of links that a user can post. Do you have another addon or setting in Xenforo that controls the number a links a user or usergroup can post?

(First error: Sorry! You have reached your limit <b>0</b> links per post. There are <b>1</b> link in your post, please remove them to submit.)

I've never seen such an error with the Ads Manager, so I'd check for other conflicts with anything that controls link posting.
 
There isn't.
Hi

One of our advertisers sent us a zip file containing a few images and an html file.
It's basically an animated ad but based on html rather than a gif file (thus making it lighter).
I can't use it as an html ad as it's too long.
will you add support to this in the next release?

Thanks!
 
Apologies if I'm posting this in the wrong place. If this is the wrong place, maybe someone can tell me where I should have posted it?

I created to Ads using Ads Manger Lite but they both show up on the same page - stacked one on top of the other.

See here,


Can someone tell me what I'm doing wrong and how to make it so I can place multiple ads/banners but only have ONE banner ad show up at a time.


Thank you,

Mike Phillips
 
Apologies if I'm posting this in the wrong place. If this is the wrong place, maybe someone can tell me where I should have posted it?

I created to Ads using Ads Manger Lite but they both show up on the same page - stacked one on top of the other.

See here,


Can someone tell me what I'm doing wrong and how to make it so I can place multiple ads/banners but only have ONE banner ad show up at a time.


Thank you,

Mike Phillips
Is this two seperate ads in one location or two seperate locations merging both ads? If its the former then it would be a custom template issue from my previous experience.
 
Is this two seperate ads in one location or two seperate locations merging both ads? If its the former then it would be a custom template issue from my previous experience.

It's 2 separate ads - and I only want one to appear at a time at the top of the forum.

As a person clicks to a different page or refreshes their screen, I was hoping the ads would change/rotate.

It would seem to me that this software is capable of doing what I want it to do - I just don't know how to set it up.


Mike
 
It's 2 separate ads - and I only want one to appear at a time at the top of the forum.

As a person clicks to a different page or refreshes their screen, I was hoping the ads would change/rotate.

It would seem to me that this software is capable of doing what I want it to do - I just don't know how to set it up.


Mike
I had the same issue, I think the ad location was being called twice in the template. I had had the themer resolve it at the time as he was paid to sort issues. I would review the code.
 
You have to use a package in order to manage/rotate multiple ads.

Thank you. 🍻

After trying a few times to figure it out without success, I hired my Xenforo Mechanic Russ Goodwin to do it for me.

Working perfect now and with Russ's help, I think I figured out how to work inside the Package function of Ads Manager Lite moving forward.

Check it out... one banner ad per page that rotates. Victory is mine!

TheMikePhillipsForum.com


p.s.


FWIW

I've run vBulletin forums since at least 2002 - MeguiarsOnline.com, ShowCarGarage.com and AutogeekOnline.net and Xenforo forum software is the BEST.

Just the thoughts of a car guy...

-Mike
 
Top Bottom