Forums / Cotonti / Core Labs / Archive / add "item available" to list.php

ez
#21857 2009-12-31 17:02
I am buidling a community site for chessplayers in the Netherlands...
My demo site (still not live) is at http://schaaksite.2basix.nl/

I use this as follows:
<!-- BEGIN: LIST_ROW -->
	<!-- IF {LIST_ROW_IAMTHEOWNER}="1" OR {PAGE_AVAILABLE}="1" OR {PHP.usr.isadmin}="1" -->
	<tr>
		<td>
			<h4><a href="{LIST_ROW_URL}">{LIST_ROW_TITLE}</a></h4>
			<p class="small">{LIST_ROW_DESC}</p><br />
			<!-- IF {IMGR1_SRC} -->
				<a href="{LIST_ROW_URL}"><img width="{IMGR1_WIDTH}" height="{IMGR1_HEIGHT}" alt="Kunst" title="{LIST_ROW_TITLE}" src="{IMGR1_SRC}"/></a>
			<!-- ENDIF -->
		</td>
	</tr>
	<!-- ENDIF -->
<!-- END: LIST_ROW -->



there are a few tags in here that are mine:
{IMGR1_xxx} is a custom plugin I build for resizing imgs to different sizes in different places.
{PAGE_AVAILABLE} Code is in first post:
{LIST_ROW_IAMTHEOWNER} also a new tag i build:
     
"LIST_ROW_IAMTHEOWNER" => $usr['id']==$pag['page_ownerid'] ? '1' : '0',	

Anyway i think this could be usefull for the next version (maybe)???
==- I say: Keep it EZ -==

Dit bericht is bewerkt door ez (2009-12-31 17:28, 14 jaren ago)