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

phpBB Custom Coding • Re: UCP menu logic issue.

$
0
0
Ok let's start with a simpler question.

In template/context.php the variables 'S_FIRST_ROW', 'S_LAST_ROW', 'S_BLOCK_NAME', 'S_NUM_ROWS', 'S_ROW_COUNT', 'S_ROW_NUM' are defined.

In ucp_header.html S_FIRST_ROW and S_LAST_ROW are used like this.

Code:

<!-- IF S_PRIVMSGS and not t_block2.S_LAST_ROW --><!-- IF (S_PRIVMSGS and t_block2.S_LAST_ROW) or not S_PRIVMSGS -->
And there is also this:

Code:

<!-- IF folder.UNREAD_MESSAGES > 0 -->
That all implies that S_ROW_COUNT and S_ROW_NUM should be able to be used like this (test case only):

Code:

<!-- IF (t_block1.S_ROW_COUNT = 4) --> style="background:red;"<!-- ENDIF -->
But that causes a white page (no body tag content). Does anyone know why?
Also, does anyone know if or how S_ROW_COUNT and/or S_ROW_NUM being equal to a defined integer could be used in a template?

ETA: Where is S_BLOCK_NAME recorded?

Statistics: Posted by Gumboots — Tue Sep 17, 2024 5:38 am



Viewing all articles
Browse latest Browse all 1314

Trending Articles