The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

View previous topic View next topic Go down

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

Post by Chelly on March 21st 2017, 10:02 pm

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:

http://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 March 22nd 2017, 11:20 pm; edited 1 time in total
avatar
Chelly
Forumember

Posts : 43
Reputation : 1
Language : English

http://www.gasrforum.com/

Back to top Go down

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

Post by Ange Tuteur on March 22nd 2017, 3:54 pm

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().
avatar
Ange Tuteur
Forumaster

Male Posts : 13174
Reputation : 2872
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

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

Post by Chelly on March 22nd 2017, 11:13 pm

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!
avatar
Chelly
Forumember

Posts : 43
Reputation : 1
Language : English

http://www.gasrforum.com/

Back to top Go down

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

Post by SLGray on March 22nd 2017, 11:34 pm

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39578
Reputation : 2655
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum