The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    "Recent topics of a specific sub-forum" issue.

    Chelly
    Chelly
    Forumember


    Posts : 48
    Reputation : 1
    Language : English

    Solved "Recent topics of a specific sub-forum" issue.

    Post by Chelly Tue 21 Mar - 22:02

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari
    Who the problem concerns : All members
    Forum link : http://www.gasrforum.com

    Description of problem

    I've recently taken over the technician duties of our forum, and there are some things I'm trying to fix that were not resolved with the previous staff, so because I was not the one who added the script, I'm not 100% sure on how to fix it.

    We use the "Recent topics of a specific sub-forum" widget coding by @Ange Tuteur located here:

    https://help.forumotion.com/t129060-widget-recent-topics-of-a-specific-sub-forum

    We've modified it from the original to work as a staff update widget.

    In the sub-forum we have it assigned to, we had two global announcements. When we removed those two announcements, the script decided to ignore the last two recently updated threads.

    If you click the link of the forum, the first staff member that shows up under staff updates is user Fervent. However, if you go to the "Staff Updates" sub-forum, the section it pulls the threads from, there are two threads recently updated above Fervent's that should be showing, but aren't.

    When I go into the Staff Updates section and add two threads, whether they be normal, stickies, announcements, or global announcements, the last two staff member threads do show up, but I don't see why we would have to keep two threads in there that aren't being used.

    [Coding Removed - Seriously]


    Last edited by Seriously on Wed 22 Mar - 23:20; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: "Recent topics of a specific sub-forum" issue.

    Post by Ange Tuteur Wed 22 Mar - 15:54

    Hey @Seriously,

    I believe the issue is coming from the :gt() jQuery selector. It's pretty much used to skip X number of elements, where X is the starting node index. The script you're using also uses the :lt() jQuery selector, which selects the specified number of elements. When you combine these two selectors you can create a range to choose where your selection starts and how many elements you want to select.

    For example, if you want to select the starting topics on the page, try removing :gt() completely, and if you want to increase the number of topics simply increment the number in :lt().
    Chelly
    Chelly
    Forumember


    Posts : 48
    Reputation : 1
    Language : English

    Solved Re: "Recent topics of a specific sub-forum" issue.

    Post by Chelly Wed 22 Mar - 23:13

    Hey @Ange Tuteur,

    Thanks so much for responding! I'll go ahead and try out your suggestions and see if I can get a change. I'm not an expert with scripts but I think I understand what you explained. If not, I'll be back. (Sorry to bother you. The previous technician didn't really explain any of the customization she did.)


    Edit: Yes! It worked! Thanks so much for explaining it to me!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Recent topics of a specific sub-forum" issue.

    Post by SLGray Wed 22 Mar - 23:34

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    "Recent topics of a specific sub-forum" issue.  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Sun 22 Sep - 19:27