• 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

Jeremy

Well-known member
#2
You will most likely need to edit the templates, I do not believe (haven't looked) there are as templates in the resource manager.
 

Brogan

XenForo moderator
Staff member
#10
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.
 

Robby

Well-known member
#11
So i make a new template with my adsense code and then?
How do i put this into the description, just the template name?
 

Robby

Well-known member
#13
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.
 

Attachments

Brogan

XenForo moderator
Staff member
#14
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>
 

Robby

Well-known member
#15
Great, just one problem, it's all to the right. How can i move it a little bit to the middle? Something with px?