Mr Lucky
Well-known member
Hmmm... could it be me doing something wrong then?Just done a test on the latest version and I don't see any issues.
Hmmm... could it be me doing something wrong then?Just done a test on the latest version and I don't see any issues.
Can I take a look?
You are already a member, have just given you the admin permssions I think you should needDo you mean admin access?
There are a number of types. Is there an inherent order among them i.e. their position in the tab set? Or is it just that multiple ads of any given type will be ordered together before any ads of another type. i.e. One cannot insert an ad of a different type in a sequence of ads of any given type.The ads are grouped by position, type and package, in that order.
It is based on the ad display order. The ad with the lowest display order value no meter the type will be displayed first and the other ads of the same type will follow. You cannot display a code ad type between banner ads type on the same position. You can however, use the banner ad type to display a code ad so it's not an issue since you can then order them how you want.Is there an inherent order among them i.e. their position in the tab set?
I think the biggest difference for me is that I get to keep all the money for the ad stock that is directly purchased. It is also a community service for our community.
XF\Db\Exception: MySQL fetch error [2014]: Commands out of sync; you can't run this command now src/XF/Db/AbstractStatement.php:228
Generado por: sergitgna 7 Nov 2020 a las 19:13
Seguimiento
SELECT `xf_siropu_ads_manager_ad`.*, `xf_siropu_ads_manager_package_Package_1`.*
FROM `xf_siropu_ads_manager_ad`
LEFT JOIN `xf_siropu_ads_manager_package` AS `xf_siropu_ads_manager_package_Package_1` ON (`xf_siropu_ads_manager_package_Package_1`.`package_id` = `xf_siropu_ads_manager_ad`.`package_id`)
WHERE (`xf_siropu_ads_manager_ad`.`type` IN ('keyword', 'affiliate')) AND (`xf_siropu_ads_manager_ad`.`status` = 'active')
ORDER BY RAND() ASC
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(134): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/AbstractStatement.php(93): XF\Db\Mysqli\Statement->fetchRowValues()
#3 src/XF/Mvc/Entity/Finder.php(1381): XF\Db\AbstractStatement->fetchAliasGrouped()
#4 src/addons/Siropu/AdsManager/Template/Ad.php(606): XF\Mvc\Entity\Finder->fetch()
#5 src/addons/Siropu/AdsManager/Template/Ad.php(340): Siropu\AdsManager\Template\Ad->loadFilterAds()
#6 src/addons/Siropu/AdsManager/Template/Ad.php(331): Siropu\AdsManager\Template\Ad->setFilterAds()
#7 src/addons/Siropu/AdsManager/Listener.php(38): Siropu\AdsManager\Template\Ad->__construct()
#8 [internal function]: Siropu\AdsManager\Listener::templaterGlobalData()
#9 src/XF/Extension.php(67): call_user_func_array()
#10 src/XF/App.php(2797): XF\Extension->fire()
#11 src/XF/App.php(2032): XF\App->fire()
#12 src/XF/App.php(1903): XF\App->getGlobalTemplateData()
#13 src/XF/Pub/App.php(448): XF\App->preRender()
#14 src/XF/Mvc/Dispatcher.php(395): XF\Pub\App->preRender()
#15 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
#16 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#17 src/XF.php(465): XF\App->run()
#18 index.php(20): XF::runApp()
#19 {main}
Estado de la solicitud
array(4) {
["url"] => string(578) "/foro/index.php?chat/update&users%5B1%5D=2763%2C1503%2C754%2C1497%2C3554%2C1252%2C557%2C3010%2C3241%2C3800%2C4782%2C3484%2C2751%2C3394%2C1294%2C4780%2C4897%2C3375%2C3523%2C1880%2C4691%2C4982%2C4225%2C4993%2C2082%2C4832%2C673%2C3613%2C532%2C190%2C4638%2C4175%2C4764&channel=room&room_id=1&last_id%5B1%5D=321&conv_id=0&conv_only=0&conv_items=&conv_last_active=1604690785&conv_last_update=1604690785&user_last_update=1604772790&is_chat_page=0&_xfRequestUri=%2Fforo%2Findex.php%3Fproductos%2F&_xfWithData=1&_xfToken=1604690785%2C3221a5e5c66f3c03703af5d1a595b61b&_xfResponseType=json"
["referrer"] => string(45) "https://cloudbit.es/foro/index.php?productos/"
["_GET"] => array(16) {
["chat/update"] => string(0) ""
["users"] => array(1) {
[1] => string(159) "2763,1503,754,1497,3554,1252,557,3010,3241,3800,4782,3484,2751,3394,1294,4780,4897,3375,3523,1880,4691,4982,4225,4993,2082,4832,673,3613,532,190,4638,4175,4764"
}
["channel"] => string(4) "room"
["room_id"] => string(1) "1"
["last_id"] => array(1) {
[1] => string(3) "321"
}
["conv_id"] => string(1) "0"
["conv_only"] => string(1) "0"
["conv_items"] => string(0) ""
["conv_last_active"] => string(10) "1604690785"
["conv_last_update"] => string(10) "1604690785"
["user_last_update"] => string(10) "1604772790"
["is_chat_page"] => string(1) "0"
["_xfRequestUri"] => string(26) "/foro/index.php?productos/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1604690785,3221a5e5c66f3c03703af5d1a595b61b"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
Add that as html under the ad script?Just wondering if there's an option to add a caption underneath the ads that says something like: "Become a Pro Member to Remove Ads". With the option to add a link to my account upgrade page.
Yep, that works! Thank you! A global option might be useful as well to save me adding it to each add.Ad that as html under the ad script?
<xf:if is="$xf.visitor.is_admin AND $xf.options.siropuAdsManagerPositionVisualization AND {$xf.samPositions.{$position}}">
<div class="samPositionPreview">{$xf.samPositions.{$position}|raw}</div>
</xf:if>
Just go on Users Criteria, inside the ad you are creating and select on Visible Usergroup: visible only to administratorI would like to preview the ad positions on my site which is live. We have lots of moderators and admins and I would like to restrict the preview to only my userid. I found the code in the template that restricts the view to admins but I need to make that just me with userid=1. Do I need to set a variable to do this? If anyone else ever wanted this ability, it could be included in the permission set.
I suppose if I understood the xf syntax well enough that would be obvious, but it is not. I would like to change this to from admin to user 1
Code:<xf:if is="$xf.visitor.is_admin AND $xf.options.siropuAdsManagerPositionVisualization AND {$xf.samPositions.{$position}}"> <div class="samPositionPreview">{$xf.samPositions.{$position}|raw}</div> </xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.