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

Does anyone know how to install SkimLinks on XF?

Rho Delta

Well-known member
#1
They do not have a add on yet, and you are supposed to insert the code before </body> I think. Anyone install this on their forum?
 

Chris D

XenForo developer
Staff member
#4
They do not have a add on yet, and you are supposed to insert the code before </body> I think. Anyone install this on their forum?
If it needs to go before </body> the best place for it would probably be the PAGE_CONTAINER template as this is where the </body> tag lives.

There's actually a template hook, so if you wanted this to be an add on, it looks pretty straight forward. I could make that for you.

All I'd need is for you to provide the code (maybe best in a private message so as not to reveal your client ID or anything).

Then I can get the code inserted into the appropriate hook, and have an options page where you can configure your client ID. A bit like how the Google Analytics feature built in works.
 

MattW

Well-known member
#6
From the ACP. Go to your style templates and find the footer template.
^^ This

I added mine between the final </div> and </xen:hook>

Code:
</div>
<xen:if is="!{$visitor.user_id}">
<script type="text/javascript" src="http://s.skimresources.com/js/DETAILS.skimlinks.js"></script>
</xen:if>
</xen:hook>