• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Hook location for widget?

kontrabass

Member
AMS Premium
CAS Premium
RMS Premium
SC Premium
I'm looking for a way to add a javascript advert (from skimlinks) on my showcase_item pages. I can easily add a widget to the nflj_showcase_item template position, and it appears in the sidebar at the bottom.... but is there a different location I can specify to get it higher on the page and more visible?

Thanks!

Screenshot at Mar 21 09-49-07.png
 
You can edit the template and place the code exactly where you want it to display OR the best way IMO is to use a Template Modification.

Put your site into DEBUG mode so that you can create/edit TMs.

Create a TM like this:

Selection_880.png

Here is what the Test Modification looks like. You can see that the TM found the template syntax you placed in the FIND and inserted the replacement ABOVE it (because the $0 was at the end). If you put $0 at the top of the Replace Block, it will insert it BELOW it.

Selection_881.png

Here is the exact text for the FIND:
HTML:
<xen:if is="{$item.canViewComments} && {$category.allow_comments}">

If you don't want to do all the TM stuff, You can simply edit the template and add your code right about the comments section. Adding code to that area will merge with a breeze.
 
Back
Top