Like Youtube does?
protected function preDispatchController($action, \XF\Mvc\ParameterBag $params)
{
if (!\XF::visitor()->canCreateAdsSiropuAdsManager())
{
throw $this->exception($this->noPermission());
}
}
Siropu\AdsManager\Pub\Controller\AbstractController.php
before this line:public static function getActivityDetails(array $activities)
and7. Promo Threads
Create/sell promo threads in the forums you want.
?8. Sticky Threads
Create/sell sticky threads in the forums you want.
rebuild add-on data
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) {
}
}
ErrorException: Template error: Function sam_counter is unknown src/XF/Template/Templater.php:914
So today I found out you can do it with this add-on and thanks to Siropu I now have that working.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.
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.
Yes.Is setting size to Auto and alignment to Center okay?
It is blocked by AdBlock.I have tried a couple of time.
We use essential cookies to make this site work, and optional cookies to enhance your experience.