Ads Manager 2 by Siropu

Ads Manager 2 by Siropu [Paid] 2.5.7

No permission to buy (€49.99)
Before my settings was

Display: Block
Unit alignment: Center
Unit size: 468x60
with this settings the Banner have been on the right side of the header.
This is how it looks now with this settings
screenshot-test.pattayaforum.net-2019.11.03-15_47_04.png

I changed now to
Display: Block
Unit alignment: Auto
Unit size: Auto
with this it goes a little more to the right side but not much

screenshot-test.pattayaforum.net-2019.11.03-15_48_45.png

If i use
Display: Block
Unit alignment: Center
Unit size: Auto
i have an half Banner on the right and another half on the left side of the header.

screenshot-test.pattayaforum.net-2019.11.03-15_53_30.png

Use right or left looks like there is not change at all
 
Last edited:
Like Youtube does?

Yes. We really need this if we want to switch back to using XF as our main script.

Right now we display an ad code on top of all uploaded videos. Under it, there's a button to close the ad. If the user pauses it, they will see the ad again.

The video is blacked out a bit, the ad appears, the close ad button is there, and it works really well.
 

Attachments

  • Screenshot_3.webp
    Screenshot_3.webp
    20.4 KB · Views: 13
@Siropu , is this intended behaviour, that guests can view this page?

adsmanager_guest_view.webp

I´ld like to prevent that but none of the usergroup settings for unregistered visitors seems to work. All they have set to yes is "Can see ads". Am I doing something wrong here?
 
Add:
PHP:
protected function preDispatchController($action, \XF\Mvc\ParameterBag $params)
{
    if (!\XF::visitor()->canCreateAdsSiropuAdsManager())
    {
        throw $this->exception($this->noPermission());
    }
}
In Siropu\AdsManager\Pub\Controller\AbstractController.php before this line:
PHP:
public static function getActivityDetails(array $activities)
 
Hi! What is the diference between
7. Promo Threads
Create/sell promo threads in the forums you want.
and
8. Sticky Threads
Create/sell sticky threads in the forums you want.
?


Also I have a suggetion for the next release. To make i new adv package - "auto bump" for threads. Like in https://xenforo.com/community/threads/vnnet-up-thread-for-xf2-paid.136668/page-6
4AJpGrd.png
In options - to make time selection, group permission, price, link to auto bumping thread and so on.
Finally, Advertiser can buy "auto bump" for his thread in each 12h for $3, for example. Or in each 24h for $5.
 
Last edited:
Promo threads are threads that get created when the ad it enabled.
Sticky threads are current threads that become sticky when the ad is enabled.
 
rebuild add-on data

@Siropu Upgrading add-on will be happen Server error logs?

Code:
ErrorException: Template error: Filter sam_keyword_ads is unknown src/XF/Template/Templater.php:867

Generated by: mesourav Nov 5, 2019 at 11:21 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Filter sam_keyw...', '/home/nadda/pub...', 867, Array)
#1 src/XF/Template/Templater.php(867): trigger_error('Filter sam_keyw...', 512)
#2 internal_data/code_cache/templates/l1/s6/public/post_macros.php(221): XF\Template\Templater->filter('<div class="bbW...', Array, false)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s6/public/thread_view.php(654): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array)
#6 src/addons/AddonsLab/LinkChecker/XF/Template/Templater.php(89): XF\Template\Templater->renderTemplate('thread_view', Array, true)
#7 src/XF/Template/Template.php(24): AddonsLab\LinkChecker\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#8 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#13 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#14 src/XF.php(390): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(15) "/threads/12865/"
  ["referrer"] => string(46) "/threads/12865/page-5314"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
ErrorException: Template error: Function sam_counter is unknown src/XF/Template/Templater.php:914
 
If you get those errors during the upgrade/rebuild process, you should probably address it to XF. That error means that a template filter/function used in a template modification has not been added to the templater yet.
 
I think this is a general issue with Google ads but I too would like to find a way to collapse the whitespace when no ad is served in a particular spot.
So today I found out you can do it with this add-on and thanks to Siropu I now have that working.
Simply go into the add-ons General options and select Replace ad with its backup for When AdBlock is detected.
If that doesn't work then it's because you have set a Unit size for your ad, set that back to Auto and add max-width/max-height in inline css style setting instead.

Hope that helps!
 
Last edited:
Siropu, is it possible to have AdBlock dismissible notice displayed only once per visitor session?
The way it works now is quite aggressive, it is present on every page reload.
 
Google changed their responsive ads:

On August 21, 2019, we made some improvements to responsive ad unit sizing to allow for better performance on desktop. We also increased the flexibility of responsive ad units by enabling additional size combinations for all device types.

As a result of these changes, responsive ad units can now resize the HTML parent container (e.g., <div>) that they're within. This allows them to automatically adapt to all the different ad sizes on publishers' pages.

Note that for responsive ad units to work properly, they must not be placed inside a container with a fixed or limited height. (See our technical considerations for more details.) If you're experiencing issues with your responsive ad units appearing taller on some devices or browsers, it might be because they're within a container with a fixed or limited height.

What does this mean for those of us using the addon? Is setting size to Auto and alignment to Center okay?
 
I'm unable to upgrade to 2.3.13

After uploading the files I see it as an agradeable addon at the top of the addons list, but when I click on the upgrade button nothimng happens. If I hover over the cogwheel I just see loading...

Screenshot 2019-11-14 at 14.16.29.webp

I have tried a couple of time. This happened after successfully upgrading about 10 other addons.
 
Back
Top Bottom