Jump to content

Banner Link in Generic HTML Banner doesn't render


Recommended Posts

in documentation: http://documentation.revive-adserver.com/display/DOCS/Generic+HTML+banners

it views banner link:

Banner link

There are two Banner link fields for Generic HTML banners:

  • Destination URL: The URL that the user viewing the banner should be sent to when they click on the banner, if the banner HTML does not already contain one or more links. If the HTML banner already contains at least one link, then leave this field unchanged - otherwise, set the destination URL, and the entire HTML banner will be made clickable using this link.
  • Target: An optional HTML link target. Valid options are _blank_self_parent and _top. By default, Revive Adserver will use _blank.

but in my local ad revive server it doesn't render . . . 

why?

and this is the screen:

 

rsz_screenshot_from_2016-05-11_121135.png

 

Link to comment
Share on other sites

In a release of Revive Adserver after this documentation page was last edited, the Destination URL field was removed for newly created HTML banners. The reason is that it resulted in partly invalid HTML code.

You can just include the landing page URL inside the HTML code using the ordinary <a> HTML tag.

Link to comment
Share on other sites

hm, i need: <a href="{clickurl}">…, <a href="{clickurl}http://example.com"> — ugly hack, and it uncomfortably

Go lib/OX/Extension/bannerTypeHtml/bannerTypeHtml.php

find  if ($row['bannerid'] && ($row['url'] || $row['target'])) {

and comment if block

        /* if ($row['bannerid'] && ($row['url'] || $row['target'])) { */
            // The "url" and "target" elements remain as part of the form definition
            // for HTML banners only for existing banners that have either
            // url or target already set.
            $form->addElement('header', 'header_b_links', $GLOBALS['strBannerLink']);
            $form->addElement('text', 'url', $GLOBALS['strURL']);
            $form->addElement('text', 'target', $GLOBALS['strTarget']);
        /* } */

 

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...