Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1619

phpBB Custom Coding • Board index: set a.subforum url to unread posts in board

$
0
0
A while back I did this: Board index: set a.row-item-link url to unread posts in board

Which is all cool and groovy, and works. So, obvious next step for UI consistency is to do the same with the subforums. Problem: how to get the equivalent of {{ forumrow.FORUM_ID }} for a subforum?

Nothing I try seems to work, and digging through functions_display.php gives me a nasty feeling that the variable I need for this is (you guessed it) not actually available in the template. I found things like this:

Code:

foreach ($subforums[$forum_id] as $subforum_id => $subforum_row)
But {{ forumrow.subforum.SUBFORUM_ID }} just turns up a blank in the template, as does {{ forumrow.subforum.FORUM_ID }} or, just for the hell of it, {{ forumrow.subforum.ID }}.

{{ forumrow.subforum.FORUM_ID }} turns up the ID of the parent forum, which makes sense but is not helpful.

These here subforums have ID's. I know this. I want one. How to get?
Kthnx.

ETA: I haz a suspicion I'm gonna have to get twiggy and haul the requisite ID out of U_SUBFORUM

Statistics: Posted by Gumboots — Tue Aug 20, 2024 1:02 am



Viewing all articles
Browse latest Browse all 1619

Trending Articles