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.

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

3 posters

Go down

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

Post by Chelly 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:

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

Posts : 48
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 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().
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Chelly 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!
Chelly
Chelly
Forumember

Posts : 48
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 March 22nd 2017, 11:34 pm

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51528
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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