directodigital
Member
Yes it works, this is the best add-on of all time!
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Prepared statement needs to be re-prepared - library/Zend/Db/Statement/Mysqli.php:214
Generated By: Unknown Account, Today at 12:10 AM
Stack Trace
#0 /home/user/domains/domain.com/public_html/library/Zend/Db/Statement.php(317): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/user/domains/domain.com/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/user/domains/domain.com/public_html/library/Zend/Db/Adapter/Abstract.php(753): Zend_Db_Adapter_Abstract->query('\n\t\t\tSELECT *\n\t\t...', Array)
#3 /home/user/domains/domain.com/public_html/library/Siropu/AdsManager/Model/Ads.php(75): Zend_Db_Adapter_Abstract->fetchRow('\n\t\t\tSELECT *\n\t\t...', 10)
#4 /home/user/domains/domain.com/public_html/library/Siropu/AdsManager/DataWriter/Ads.php(83): Siropu_AdsManager_Model_Ads->getAdById(10)
#5 /home/user/domains/domain.com/public_html/library/XenForo/DataWriter.php(563): Siropu_AdsManager_DataWriter_Ads->_getExistingData(10)
#6 /home/user/domains/domain.com/public_html/library/Siropu/AdsManager/ControllerPublic/Ajax.php(163): XenForo_DataWriter->setExistingData(10)
#7 /home/user/domains/domain.com/public_html/library/XenForo/FrontController.php(351): Siropu_AdsManager_ControllerPublic_Ajax->actionCountImpressions()
#8 /home/user/domains/domain.com/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/user/domains/domain.com/public_html/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
["url"] => string(62) "https://www.domain.com/index.php?ajax/count-impressions"
["_GET"] => array(1) {
["ajax/count-impressions"] => string(0) ""
}
["_POST"] => array(4) {
["impressions"] => array(3) {
[0] => array(2) {
[0] => string(1) "1"
[1] => string(23) "ad_below_top_breadcrumb"
}
[1] => array(2) {
[0] => string(2) "10"
[1] => string(23) "ad_below_top_breadcrumb"
}
[2] => array(2) {
[0] => string(1) "2"
[1] => string(16) "ad_below_content"
}
}
["_xfRequestUri"] => string(243) "/threads/%D8%AF%D8%A7%D9%86%D9%84%D9%88%D8%AF-pdf-%D8%A7%DA%A9%D9%88%D8%B1%D8%AF-%D9%87%D8%A7-%D9%87%D9%85%D8%B1%D8%A7%D9%87-%D8%B9%DA%A9%D8%B3-%D8%A8%D8%B1%D8%A7%DB%8C-%D9%BE%DB%8C%D8%A7%D9%86%D9%88-%D9%88-%DA%AF%DB%8C%D8%AA%D8%A7%D8%B1.9790/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
I created a package for banners but then couldn't use for Adsense code.@Flightlevels, you have to use a package to use ads in rotation.
Ok so I set up a banner ad for above top breadcrumb then I set up an Adsense ad for the same location. They don't rotate, rather they both appear?You can however use a code ad with a banner ad and they will rotate randomly on each page load, without needing a package.
Pasting the script straight in to the code box doesn't work. What do I need to add?Place the Adsense code in the code area of the banner ad. Banners have an option to use code as well.
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- above top breadcrumb rotating responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-XXXXXXXXXXXXX"
data-ad-slot="2830646593"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
YesDo you get a blank space for adsense?
@media (max-width: 1000px) {
#header .samBannerUnit {
width: 600px !important;
}
}
@media (max-width: 900px) {
#header .samBannerUnit {
width: 500px !important;
}
}
@media (max-width: 800px) {
#header .samBannerUnit {
width: 400px !important;
}
}
Great, thanks a lot for your fast reply.To make it work as you want, you need to add multiple media queries based on the screen size. Add this in EXTRA.css
It's up to you to adjust the max-width and width accordingly.Code:@media (max-width: 1000px) { #header .samBannerUnit { width: 600px !important; } } @media (max-width: 900px) { #header .samBannerUnit { width: 500px !important; } } @media (max-width: 800px) { #header .samBannerUnit { width: 400px !important; } }
1. No
2. No
3. You need to use a package. It has all the options you need.
I think 1 & 2 could be added in position criteria in the future.
We use essential cookies to make this site work, and optional cookies to enhance your experience.