What is the changes? Will it also reduce the requests on the page?It is expected when you have iframes loading external content. I can make some changes to the embed code and add the option to use JS to load it after the page has loaded.
Cool. Can you let me know the change I need to do?Requests will be the same, only loading speed would increase.
Added a new position criteria called "Page number is". This option allow you to display the ad only if the page number matches.
Made some changes to the lazy load method to load the ad before getting into the view when you scroll up/down.
YesWhat's the issue? You can't see the iframe on the front-end?
ErrorException: [E_NOTICE] Trying to access array offset on value of type null src/addons/Siropu/AdsManagerLite/Vendor/MobileDetect/Mobile_Detect.php:1056
#0 src/addons/Siropu/AdsManagerLite/Vendor/MobileDetect/Mobile_Detect.php(1056): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/technopa/...', 1056, Array)
#1 src/addons/Siropu/AdsManagerLite/Vendor/MobileDetect/Mobile_Detect.php(1177): Mobile_Detect->checkHttpHeadersForMobile()
#2 src/addons/Siropu/AdsManagerLite/Criteria/Device.php(178): Mobile_Detect->isMobile()
#3 src/addons/Siropu/AdsManagerLite/Criteria/Device.php(22): Siropu\AdsManagerLite\Criteria\Device->setDeviceType()
#4 src/XF/Container.php(270): Siropu\AdsManagerLite\Criteria\Device->__construct(Object(XF\Pub\App), Array)
#5 src/XF/App.php(760): XF\Container->createObject('Siropu\\AdsManag...', Array)
#6 src/XF/Container.php(228): XF\App->XF\{closure}('Siropu\\AdsManag...', Array, Object(XF\Container))
#7 src/XF/App.php(2833): XF\Container->create('criteria', 'Siropu\\AdsManag...', Array)
#8 src/addons/Siropu/AdsManagerLite/Entity/Ad.php(304): XF\App->criteria('Siropu\\AdsManag...', Array)
#9 src/addons/Siropu/AdsManagerLite/Template/Ad.php(440): Siropu\AdsManagerLite\Entity\Ad->matchesDeviceCriteria()
#10 [internal function]: Siropu\AdsManagerLite\Template\Ad->Siropu\AdsManagerLite\Template\{closure}(Object(Siropu\AdsManagerLite\Entity\Ad))
#11 src/XF/Mvc/Entity/AbstractCollection.php(189): array_filter(Array, Object(Closure))
#12 src/addons/Siropu/AdsManagerLite/Template/Ad.php(442): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#13 src/addons/Siropu/AdsManagerLite/Template/Ad.php(311): Siropu\AdsManagerLite\Template\Ad->prepareAdsForDisplay()
#14 src/addons/Siropu/AdsManagerLite/Template/Ad.php(302): Siropu\AdsManagerLite\Template\Ad->setAds()
#15 src/addons/Siropu/AdsManagerLite/Listener.php(38): Siropu\AdsManagerLite\Template\Ad->__construct(Object(XF\Pub\App), Object(XF\Mvc\Reply\View))
#16 [internal function]: Siropu\AdsManagerLite\Listener::templaterGlobalData(Object(XF\Pub\App), Array, Object(XF\Mvc\Reply\View))
#17 src/XF/Extension.php(67): call_user_func_array(Array, Array)
#18 src/XF/App.php(2660): XF\Extension->fire('templater_globa...', Array, NULL)
#19 src/XF/App.php(1928): XF\App->fire('templater_globa...', Array)
#20 src/XF/App.php(1806): XF\App->getGlobalTemplateData(Object(XF\Mvc\Reply\View))
#21 src/XF/Pub/App.php(435): XF\App->preRender(Object(XF\Mvc\Reply\View), 'raw')
#22 src/XF/Mvc/Dispatcher.php(395): XF\Pub\App->preRender(Object(XF\Mvc\Reply\View), 'raw')
#23 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'raw')
#24 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#25 src/XF.php(391): XF\App->run()
#26 index.php(20): XF::runApp('XF\\Pub\\App')
#27 {main}
array(4) {
["url"] => string(65) "/sosyal/eklenti/0e0a6da7-6187-4d98-ab57-98ee8aa1fb0e-jpeg.433742/"
["referrer"] => string(74) "https://www.technopat.net/sosyal/konu/en-iyi-sakiz-markasi-hangisi.752033/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.