paulzero Posted August 23, 2018 Report Share Posted August 23, 2018 Hi ! Trying to save the following in Revive-Adserver v4.1.4 > default manager > inventory > banners > banner > advanced (Tab) > "Always append the following HTML code to this banner" : <style type="text/css"> @media only screen and (min-width: 1px) and (max-width: 414px) {.show-ad-copy {display:block;}} @media only screen and (min-width: 415px) and (max-width: 5000px) {.show-ad-copy {display:none;}} </style> <div class="show-ad-copy" style="margin: 3px 0px 0px 0px;">This is the ad copy to show on small screen only</div> Above works fine in Revive-v3.2.0, but doesn't work in Revive-Adserver v4.1.4. If you : 1) Try to 'save' you get a 'Error 403' message & no save. 2) If you remove the left brackets "(" & the right brackets ")" in 'style' it will save but obviously no use. 3) If you goto 'www/admin/banner-advanced.php L113' & change 'class='code' to anything else it saves but does not show on target website. L113 | echo "<textarea class='code' name='append' rows='6' cols='55' style='width: 100%;' tabindex='".($tabindex++)."'>".htmlspecialchars($banner['append'])."</textarea>"; Somewhere validation for class 'code' must have been changed - urgent help needed please to fix after upgrade, thank you. Cheers - Paulzero Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.