Jump to content

Revive v4.1.4. | Banner 'Advanced' Tab | Save Problem


paulzero

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...