1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[RC2] Change What's New Time Limit

Discussion in 'Add-on Releases [Archive]' started by James, Feb 28, 2011.

  1. James

    James Well-Known Member

    Template modification version available here

    This simple add-on will add an admin CP group and require a template modification. It changes how many days it fetches unread posts for the What's New page, without diving into code. It's changeable with a simple number scroller.

    Installation

    Install the attached add-on, then:

    Find in the navigation template (Line 59 default template):
    Code:
    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
    Replace:
    Code:
    <li><a href="{xen:link 'find-new/threads', '', 'days={$xenOptions.whatsNewFetchDuration}'}">{xen:phrase whats_new}</a></li>
    Uninstallation

    Uninstall the add-on

    Find:
    Code:
    <li><a href="{xen:link 'find-new/threads', '', 'days={$xenOptions.whatsNewFetchDuration}'}">{xen:phrase whats_new}</a></li>
    Replace:
    Code:
    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
    Your templates will not be affected if you do not perform the above template modifications during the uninstall process.

    Notices
    This should work for all versions of XenForo.
    This will be (more than likely) available by default within the next couple of versions.
     

    Attached Files:

    gib likes this.

Share This Page