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

RM 1.1 How can I show "watch this resource" to non-members?

HenrikHansen

Well-known member
#1
How can I show "watch this resource" to non-members also.

I guess when clicked it should show the usual popup "you are not signed in" etc.

This way I can encourage more people to sign up, as I can show some of the features members have.
 

Chris D

XenForo developer
Staff member
#2
In the template 'resource_view_tabs' find:

HTML:
    <xen:if is="{$resource.canWatch}">
        <div class="extraLinks">
            <a href="{xen:link resources/watch, $resource}" class="OverlayTrigger watchLink" data-cacheoverlay="false"><xen:if is="{$resource.is_watched}">{xen:phrase unwatch_this_resource}<xen:else />{xen:phrase watch_this_resource}</xen:if></a>
        </div>
    </xen:if>
Replace with:

HTML:
        <div class="extraLinks">
            <a href="{xen:link resources/watch, $resource}" class="OverlayTrigger watchLink" data-cacheoverlay="false"><xen:if is="{$resource.is_watched}">{xen:phrase unwatch_this_resource}<xen:else />{xen:phrase watch_this_resource}</xen:if></a>
        </div>