I am trying to write a mod that inputs certain infromation about new subcategories (each new subcategory is a new night out) into a phpbb post. I have based the 4images part on a modified category_bit.html and would like 2 different photos be displayed as shown below:
The code i have at the moment is:
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="">
<A class="maincat" href="{cat_url}">{cat_name}</A> ({num_images})
{if cat_is_new}<SUP class="new">{lang_new}</SUP>{endif cat_is_new}</P>
<P>
<TABLE id="Table1" cellSpacing="1" cellPadding="1" border="0">
<TR>
<TD>{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif
random_cat_image_file}</TD>
<TD>{if cat_description}<span class="smalltext">{cat_description}{endif cat_description}</span></TD>
</TR>
<TR>
<TD>{if random_cat_image_file}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif
random_cat_image_file}</TD>
<TD></TD>
</TR>
</TABLE></P>
I ideally would like random images however ive had problems loading these from subcategories using the random_cat_image_file as no image is displayed (is not a constants problem as works on main categories). Two different images would also be good, using the ran cat image twice obviously loads same image 2 times. Even after reading the forums I cannot find a way of doing what i need as i am no expert coder!, can anybody help me?? thanks,
ps)If random images will not work, the first and second images in the subcategory would also be good.