HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

URL Redirect Link and Add Thumbnail

This discussion is related to the Category Ads addon.

This would be a really great plugin for adding targetted ads if it were to have a field for adding a redirect link so you could direct users to another page of the site or an external website, and if you could add an image thumbnail.

Tagged:

Comments

  • hgtonighthgtonight ∞ · New Moderator

    Thanks for trying my addon!

    You can place any html in the ads, including anchors (<a> tags) and images (<img> tags).

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Thanks @hgtonight i don't really know HTML but it's good to know that's possible out of the box.

    It would be great to have a 'choose image' button allowing you to choose an image from your desktop which could be positioned next to the text, a bit like the sponsored ads on facebook.

    What would the HTML be to turn the text or headline into a redirect link?

  • hgtonighthgtonight ∞ · New Moderator
    edited March 2015

    E.g.

    <h2><a href="https://www.google.com" title="Hover Text - Google.com">Here Be Google</a></h2>
    <p>This is a standard paragraph.</p>
    <p>This is the second paragraph</p>
    <img src="http://vanillaforums.org/themes/vforg/design/images/logo-vanilla.png" alt="Alternative Text - Vanilla.org Logo" title="Hover Text - Cool Stuff!"/>
    

    Will look something like:

    Here Be Google

    This is a standard paragraph.

    This is the second paragraph

    Alternative Text - Vanilla.org Logo

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

    Bleistivtjackmaessen
  • Hi. Love the addon but is there any way of having ads show up in the 'All Discussions' page and the All categories page too please?

  • hgtonighthgtonight ∞ · New Moderator

    @SammySwift said:
    Hi. Love the addon but is there any way of having ads show up in the 'All Discussions' page and the All categories page too please?

    That is outside the scope of this addon as it is called CategoryAds.

    That said, it could be modified to work that way.

    1. Modify the view to show a Null choice.
    2. Update the structure to default category id to 0 or -1.
    3. Add a hook to the discussions controller to ad the module.
    4. Modify the AttachAdModule method to default to the 0 or -1 category id if the category id isn't set.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Thanks for your prompt reply. Sadly it's all gone a bit over my head I'm afraid. I've just taken a look in 'view edit' and 'view settings' but I cannot find any part that refers to your comments above but maybe you mean in the categories section of Vanilla. Maybe I need to find a different plugin that is more suited my needs. I used to use 'stuff displayer' and the 'sidepanel' addons on version 1 but they seem to have not survived to upgrade to version 2.

  • hgtonighthgtonight ∞ · New Moderator

    @SammySwift said:
    Thanks for your prompt reply. Sadly it's all gone a bit over my head I'm afraid. I've just taken a look in 'view edit' and 'view settings' but I cannot find any part that refers to your comments above but maybe you mean in the categories section of Vanilla. Maybe I need to find a different plugin that is more suited my needs. I used to use 'stuff displayer' and the 'sidepanel' addons on version 1 but they seem to have not survived to upgrade to version 2.

    You might want to check out Pockets or the built in Messages.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.