Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorrandomtheo
    • CommentTimeOct 22nd 2015
     

    I am using the text based ads. Currently they are showing like this:

    Anchor Text

    Description below.

    I would like it to be: Anchor Text: And now the description

    Is there an easy way to do that?

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 25th 2015
     
    Project Admin

    By default there is a <div> that wraps around the description. You can remove it, which should cause the text to flow straight on from the link.

    If using php ad code:

    oiopub_banner_zone(1, array(
    'align' => 'center',
    'markup_desc_tag' => '',
    ));

    If using javascript ad code:

    <script src="/path/to/oio/js.php?type=link&zone=1&align=center&markup_desc_tag="></script>

    If you want to put the colon in, then the alternative is to edit the output code itself (in OIO's "include/output.php" file):

    FROM

    $_content = '<a' . $nofollow . (stripos($url, 'http') === 0 ? $new_window : '') . ' href="' . $url . '" title="' . stripslashes($ad->item_tooltip) . '">' . stripslashes($ad->item_page) . '</a>' . $_desc;

    TO

    $_content = '<a' . $nofollow . (stripos($url, 'http') === 0 ? $new_window : '') . ' href="' . $url . '" title="' . stripslashes($ad->item_tooltip) . '">' . stripslashes($ad->item_page) . '</a>:' . oiopub_strlimit($ad->item_notes, $this->settings->{$this->zn}['desc_length']);

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorrandomtheo
    • CommentTimeOct 25th 2015
     

    Thanks, worked great

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeOct 31st 2015
     
    Project Admin

    No problem, glad that did the trick.

    Need help?  Quick start guide | Troubleshooting | All help topics