New Feature: Global latest posts

Started by Oldboy, Jul 31, 2016, in Announcements Add to Reading List

  1. Mano
    Posts: 5,964
    Likes: 16,052
    Joined: Feb 15, 2011

    Aug 3, 2016
    Can you add this to New Posts as well? :khaled:
     
    #61
    2
    Loyalty and Ordinary Joel like this.
    2
    Loyalty and Ordinary Joel like this.
    Apr 26, 2024
  2. Loyalty
    Posts: 5,281
    Likes: 22,209
    Joined: Dec 1, 2014
    Location: PHX

    Loyalty we go hard on earth

    Aug 3, 2016
    Good idea - I just tried to do it but couldn't figure it out since it uses the same thread list template as all the forums do.

    @Slyk - do you know a <xen:if> that would allow us to just change the /find-new/ page to add a "open link in new tab" icon at the end of each thread title, like the sidebar?
     
    #62
    2
    Ordinary Joel and Mano like this.
    2
    Ordinary Joel and Mano like this.
    Apr 26, 2024
  3. Oldboy
    Posts: 50,757
    Likes: 158,100
    Joined: Feb 14, 2011

    Oldboy Administrator

    Aug 3, 2016
    @theg @Mano @Slyk and whoever else asked for it...now it remembers if you hide or not
     
    #63
    6
    Ordinary Joel, theg, Mano and 3 others like this.
    6
    Ordinary Joel, theg, Mano and 3 others like this.
    Apr 26, 2024
  4. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    which page we talking about? this: ? https://forum.sectioneighty.com/find-new/posts
     
    #64
    1
    Loyalty likes this.
    1
    Loyalty likes this.
    Apr 26, 2024
  5. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    the difference there is that that page allows you to open individual page numbers... so you'd essentially need to have a 2ndary "open in new tab" option for every page number. would be weird. unless we talking about just opening the thread as a whole in a new tab. but then, that's not gonna get you to the latest posts and it'll take you to the first page of the thread...which isn't really the purpose of that page.
     
    #65
    1
    Loyalty likes this.
    1
    Loyalty likes this.
    Apr 26, 2024
  6. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    you sure mate?
    hid the sidebar, went to page 3 here, and the sidebar was showing again.
     
    #66
    0 0
    Apr 26, 2024
  7. Oldboy
    Posts: 50,757
    Likes: 158,100
    Joined: Feb 14, 2011

    Oldboy Administrator

    Aug 3, 2016
    yes im sure, clear your cache
     
    #67
    0 0
    Apr 26, 2024
  8. Loyalty
    Posts: 5,281
    Likes: 22,209
    Joined: Dec 1, 2014
    Location: PHX

    Loyalty we go hard on earth

    Aug 3, 2016
    If you click on the thread title, it goes to threadname/unread which I think is what he means, so it will go to the newest post for him
     
    #68
    0 0
    Apr 26, 2024
  9. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    ah word. lemme see what i can come up with.
     
    #69
    0 0
    Apr 26, 2024
  10. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    weird. cleared cache. still doing it. chrome, windows. lemme try a few other things.
     
    #70
    0 0
    Apr 26, 2024
  11. Oldboy
    Posts: 50,757
    Likes: 158,100
    Joined: Feb 14, 2011

    Oldboy Administrator

    Aug 3, 2016
    wtf

    it works for you right @Loyalty ?
     
    #71
    0 0
    Apr 26, 2024
  12. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    we gucci now. maybe it was cookies? i only cleared cache at first and did nothing. second time i did "cookies and other site and plugin data". workded.
     
    #72
    0 0
    Apr 26, 2024
  13. Oldboy
    Posts: 50,757
    Likes: 158,100
    Joined: Feb 14, 2011

    Oldboy Administrator

    Aug 3, 2016
    the fix actually was coding cookies recognition into the mod so yea lol
     
    #73
    0 0
    Apr 26, 2024
  14. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 3, 2016
    :emoji_punch::emoji_anger:
     
    #74
    0 0
    Apr 26, 2024
  15. theg
    Posts: 11,956
    Likes: 27,201
    Joined: Feb 17, 2011

    theg got that pma

    Aug 3, 2016
    just cleared my cache and cookies and its still not remembering :sip:
    on chrome btw
     
    #75
    0 0
    Apr 26, 2024
  16. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 4, 2016
    holla atchur boy
    upload_2016-8-4_1-21-30.png

    on hover, you'll get the similar thing to open in new window on New Posts page.

    ^ @Koolo @Mike Tyson

    ...loyalty, i did it via:
    Code:
    template = thread_list_item
    
                    <xen:if is="({$controllerName} == 'XenForo_ControllerPublic_FindNew')">
                        &nbsp;
                        <a href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}" title='Open in new tab' target='_blank'><i class="fa fa-external-link"></i></a
                    </xen:if>
    
    Code:
    template = extra.css
    .find_new_posts .fa-external-link {
    visibility: hidden;
    }
    
    .find_new_posts .titleText:hover .fa-external-link {
    visibility: visible !important;
    }
    
    ...essentially, every page type has a unique "controllerName", so i identified that (did a {$controllerName} output on the template i found for the new posts page, and got "XenForo_ControllerPublic_FindNew"
    and then localized the change to just that.
     
    #76
    5
    Mike Tyson, Loyalty, Mano and 2 others like this.
    5
    Mike Tyson, Loyalty, Mano and 2 others like this.
    Apr 26, 2024
  17. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 4, 2016
    kinda high rn tho tbh... someone holla if i f----- something else up in the process. also, loyalty...i'm pretty f---ing done doing anything in extra.css until we figure that s--- out. literally took like 8 minutes to enter those 2 blocks and save it. was refreshing as one character at a time when typing. what the f---.
     
    #77
    1
    Loyalty likes this.
    1
    Loyalty likes this.
    Apr 26, 2024
  18. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 4, 2016
    f---. only problem now is that on mobile it requires a double tap. f--- me running...
     
    #78
    1
    Loyalty likes this.
    1
    Loyalty likes this.
    Apr 26, 2024
  19. Slyk
    Posts: 8,532
    Likes: 29,701
    Joined: Feb 15, 2011
    Location: Detroit -> Cali

    Slyk God made a prophet.

    Aug 4, 2016
    okiee. just made it a responsive thing. holla.
     
    #79
    2
    Loyalty and Ordinary Joel like this.
    2
    Loyalty and Ordinary Joel like this.
    Apr 26, 2024
  20. Loyalty
    Posts: 5,281
    Likes: 22,209
    Joined: Dec 1, 2014
    Location: PHX

    Loyalty we go hard on earth

    Aug 4, 2016
    :tybg: niiiiiiice

    yeah I usually just copy extra.css to a notepad doc, make the changes, then copy it back. way quicker than doing it in admin cp until we clean it up
     
    #80
    0 0
    Apr 26, 2024