S_FIRST_ROW
is the first post and S_LAST_ROW
is the last.Glad we sorted that, as a "script" can be both JavaScript and PHP.
<!-- BEGIN postrow -->
and the <!-- END postrow -->
tags for the S_LAST_ROW
to work."after last post" is the same as "after all posts"
<!-- IF postrow.S_LAST_ROW -->
<!-- IF postrow.S_LAST_ROW && postrow.S_LAST_PAGE -->
<!-- IF postrow.S_FIRST_ROW -->
under the <!-- BEGIN postrow -->
tag your script will show just above the first post.
Code: Select all
<!-- BEGIN postrow -->
<!-- IF postrow.S_FIRST_ROW -->
<!-- INCLUDE my_script.html -->
<!-- ENDIF -->
<!-- IF postrow.S_FIRST_ROW -->
above the <!-- END postrow -->
tag your script will show just below the first post.Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<!-- INCLUDE my_script.html -->
<!-- ENDIF -->
<!-- END postrow -->
<!-- IF postrow.S_LAST_ROW -->
above the <!-- END postrow -->
tag your script will show just below the last post.
Code: Select all
<!-- IF postrow.S_LAST_ROW -->
<!-- INCLUDE my_script.html -->
<!-- ENDIF -->
<!-- END postrow -->
<!-- IF postrow.S_LAST_ROW -->
under the <!-- BEGIN postrow -->
tag your script will show just above the last post.Code: Select all
<!-- BEGIN postrow -->
<!-- IF postrow.S_LAST_ROW -->
<!-- INCLUDE my_script.html -->
<!-- ENDIF -->
<!-- END postrow -->
. timeforhelp1 nowhere said in or at the beginning of the last post - there's no need for the loop to execute an IF for all posts at all.