Sticky First Post 1.0

Discussion in 'PC Hardware and Software' started by MOZ, Feb 27, 2013.

Share This Page

  1. MOZ

    MOZ RAID Leader Staff Member

    Messages:
    2,362
    Likes Received:
    1,064
    Reputation:
    4,403
    Please consider donating if you find this add-on useful. Contact:moz@raid101.com
    This release can be upgraded using the Add-On Installer by Chris Deeming
    [​IMG]

    [accordion=bcenter|85%]
    {slide=Description|open}This addon allows you to sticky the first post in a thread so that it appears on top on all pages. This is permission controlled, so only allowed users can sticky the first post. Also, you can choose to make it a default for a particular node of your choice.

    2013-02-27_152146.png

    {/slide}
    {slide=Features}
    -Stick first on post so it appears on all pages
    -Permission controlled
    2013-02-27_150702.png

    -Choose default nodes where addon is enabled by default
    -Fully integrated in the XenForo system, options appear wherever XenForo system moderation actions appear
    2013-02-27_151330.png
    2013-02-27_151709 copy.png
    2013-02-27_151127.png

    -Comes with 4 preset layouts to format first post to differentiate threads with stuck post
    -Can apply above formatting for threads without stuck posts
    -Icon in threads list to show threads that have the first post stuck
    2013-02-27_152253.png

    {/slide}
    {slide=Admin Options}
    Once installed, there are a number of options and customisations available for you.
    -First go into the options, here you can choose in which threads you want to enable sticking the first post as default. Users with permissions to stick/unstick posts will not see this option but post will be stuck, those with adequate permissions can alter the state.
    -You can choose to stylize first post in threads with stuck and/or threads without stuck posts, along with the layout to use.
    -Choose to show the first post stuck status icon in thread list
    -Enable TMS. If you have TMS itis recommended to use it although not necessary., If you don't, no need to worry, read the usage section.
    2013-02-27_150740.png

    {/slide}
    {slide=Installation}Use Add-On Installer by Chris Deeming or the following:
    1. The zip file contains an "upload" folder. Upload the contents of the folder in the root XF folder, thereby creating a library/StickyFirstPost directory & a styles/StickyFirstPost directory on your server.
    2. The zip file contains a "addon-StickyFirstPost.xml" file. Import the appropriate XML in your Admin CP.
    {/slide}
    {slide=Usage}
    Once installed the first thing you have to do is give permissions to the users you wish to allow to stick posts.

    If you chose manual layout head to 'Style Properties'. You will see two new groups here, namely:
    1. Sticky First Post - Message Elements
    2013-02-27_153818.png

    2. Sticky First Post - Message Layout
    2013-02-27_163218.png

    You can set the properties for individual elements here and produce a first post style of your own. If you wish, you can also edit certain elements of the preset layouts by overriding them with your own style options.

    If you have TMS installed, it is recommended to turn on the option although it is not require for the most part. TMS will be required {b]only[/b] if you wish to show user info elements besides username and title in the manual or preset layouts. If you have TMS this will be installed by itself. If you don't you will have to do the below modification:

    In the message_user_info template:
    1. Wherever you see "@messageShowSomeField"
    2. Right below in <dl class="pairsInline"> add SomeField next to pairlnLine

    Eg:
    Code:
    <xen:if is="@messageShowRegisterDate">
    <dl class="pairsInline">
    
    Becomes
    Code:
    <xen:if is="@messageShowRegisterDate">
    <dl class="pairsInline RegisterDate">
    You will have to do this in around 8 places in this template for these fields:
    @messageShowRegisterDate
    @messageShowMessageCount
    @messageShowTotalLikes
    @messageShowTrophyPoints
    @messageShowGender
    @messageShowOccupation
    @messageShowLocation
    @messageShowHomepage
    Do not do it for this field: @messageShowCustomFields

    Finally, all users of XenPorta, you will have to edit on one file, library\EWRporta\ControllerPublic\Thread and inthe function actionIndex. You have to remove the below line.
    PHP:
    if (!empty($response->params['page']) && $response->params['page'] > 1)
    {
    unset(
    $response->params['posts'][$response->params['thread']['first_post_id']]);
    }
    The developer of XenPorta (Jaxel) has been consulted on this and this is safe to be removed, the next update of XenPorta will remove this be default.
    {/slide}
    {slide=Technical details}
    • This addon adds a column to xf_thread which will be removed on uninstall and has no permanent effect.
    • As such, this addon can be disabled or uninstalled very easily without any lasting effects
    • If you have Template Modification System, this addon will install 1 modifications.
    {/slide}
    {slide=Support/Enhancements}To report any bugs please feel free to contact the developer and also submit the bugs at Sticky First Post | RAID101
    To suggest new features/more sorting options please feel free to contact the developer or submit your requests at Sticky First Post | RAID101
    {/slide}{slide=Acknowledgements}Thank you to all the members over at xfShowcase for assisting in the testing of this addon.
    {/slide}
    [/accordion]
    [​IMG]
     
    JD666 likes this.
  2. BANHAMMER

    BANHAMMER Teh Almighty BanHammer Staff Member

    Messages:
    5,046
    Likes Received:
    1,434
    Reputation:
    2,993
    This is indeed amazing.
     
  3. MOZ

    MOZ RAID Leader Staff Member

    Messages:
    2,362
    Likes Received:
    1,064
    Reputation:
    4,403
    Thank you.
     
  4. dbg

    dbg RAID Staff Staff Member

    Messages:
    3,111
    Likes Received:
    1,144
    Reputation:
    2,952
    Do we get this?? :D
     
  5. JD666

    JD666 RAID Leader Staff Member

    Messages:
    6,584
    Likes Received:
    1,801
    Reputation:
    5,403
    Yes we do. Wait for it ;)
     
  6. JD666

    JD666 RAID Leader Staff Member

    Messages:
    6,584
    Likes Received:
    1,801
    Reputation:
    5,403
    Great work Mohit!! Fabulous!
     

Share This Page