1. 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?

Discussion in 'Resource Manager Support' started by HenrikHansen, Feb 19, 2014.

  1. HenrikHansen

    HenrikHansen Well-Known Member

    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.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    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>
     
  3. HenrikHansen

    HenrikHansen Well-Known Member

    Thanks a lot Chris, works perfect :cool:
     

Share This Page