1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RM 1.0 Resource manager and adsense

Discussion in 'Resource Manager Support' started by Robby, Jul 31, 2013.

  1. Robby

    Robby Well-Known Member

    Hello,

    Does anyone know how to put adsense in the Resource manager?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You will most likely need to edit the templates, I do not believe (haven't looked) there are as templates in the resource manager.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Use the ad_ templates.
     
    Jeremy likes this.
  4. Robby

    Robby Well-Known Member

    Thanks and where to put it plz for above or below the content?
     
  5. Robby

    Robby Well-Known Member

    No one uses ads with the resource manager?:)
     
  6. RoldanLT

    RoldanLT Well-Known Member

    Me, using BD Widget of @xfrocks
     
  7. Robby

    Robby Well-Known Member

    Looking more to do it manually, just dont know where to put the code...
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Where do you want the ads to appear exactly?

    Can you do a mockup?
     
    RoldanLT likes this.
  9. Robby

    Robby Well-Known Member

    Above, under or on the right side. I would like to test the best position. Thanks in advance
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    That's a bit too vague.

    Try creating your own ad_ templates and including them in the resource_description template where you want them to show.
     
  11. Robby

    Robby Well-Known Member

    So i make a new template with my adsense code and then?
    How do i put this into the description, just the template name?
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

  13. Robby

    Robby Well-Known Member

    I'm trying but i'm doing something wrong. Can somebody help me with one ad location so i can see the steps.
    Let's say i want to put an ad next to the title of a resource when it's opened? See attachement plz.
     

    Attached Files:

    • ad.png
      ad.png
      File size:
      1,008.8 KB
      Views:
      24
  14. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the resource_view_header template and add this:
    HTML:
    <xen:include template="ad_resource_view_header" />
    Before this:
    HTML:
    <h1><xen:if is="{$titleHtml}">{xen:raw $titleHtml}<xen:else />{$resource.title}</xen:if> <xen:if is="!{$resource.isFilelessNoExternal}"><span class="muted">{$resource.version_string}</span></xen:if></h1>
        <xen:if is="{$resource.tag_line} OR {$extraDescriptionHtml}"><p class="tagLine muted">{$resource.tag_line}<xen:if is="{$resource.tag_line} AND {$extraDescriptionHtml}"><br /></xen:if>{xen:raw $extraDescriptionHtml}</p></xen:if>
    Then create the ad_resource_view_header template and add your code, floated right:
    Code:
    <div style="float: right">Ad code here</div>
     
    wickedstangs and Robby like this.
  15. Robby

    Robby Well-Known Member

    Great, just one problem, it's all to the right. How can i move it a little bit to the middle? Something with px?
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    HTML:
    <div style="float: right; margin-right: 20px">Ad code here</div>
     
    wickedstangs and Robby like this.
  17. Robby

    Robby Well-Known Member

    Your the best, thankx:) Finally it works now.
    What should we do without you?(y)
     
  18. Robby

    Robby Well-Known Member

    Any idea how to put an ad under the resource?
     
  19. RoldanLT

    RoldanLT Well-Known Member

     
  20. Robby

    Robby Well-Known Member

    How exactly?
     

Share This Page