1
sdmacint
MyAlbum-P - Listing categories, one per line
  • 2005/6/13 12:43

  • sdmacint

  • Just popping in

  • Posts: 66

  • Since: 2003/11/9


Hi,

First let me say, I think that MyAlbum-P is a great module. I have one question and I'm hoping someone can suggest a solution. Please forgive my lack of knowledge, I'm not a programmer, just a XOOPS lover (shameless plug to elicit help).

I use MyAlbum-P and have many categories with many subcategories. When someone views the main page for the module, I would like to have each category and subcategory on its own line. The line would start with the image folder32.gif or folder16.gif and the text of the category name. Then a line break and the next would appear.

Is this simple to do? I've tried looking for where to modify it in the files but I'm not a programmer so I'm having difficulty. If you'd like to see how they're displayed now, you can check them out on my page:

http://www.freemasonry.pe.ca/modules/myalbum/

As you can see when you look at the link, the next category starts on the same line as the last one. I want to split those lines... Any and all assistance is greatly appreciated.

Thanks
Sean

2
V6-Maniac
Re: MyAlbum-P - Listing categories, one per line
  • 2005/6/13 13:43

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Did you search for this: MyAlbum - Demo...

Well goint your admin template section.
And go to your Myalbum template admin.
And search for the myalbum_categories.html

There you will find something listed here below.
Only this is my template file.(stripped)
You will find here below two colums and categories listed per row.

Quote:
<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<{foreach from=$subcategories item=cat key=count}>
<td valign="top" align="right">
<{if $cat.imgurl != ""}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
</a>
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$mod_url}>/images/folder32.gif" width="32" height="32" border="0" alt="" />
</a>
<{/if}>
</td>
<td valign="top" width="50%">
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><b><{$cat.title}></b></span></a>&nbsp;<{$lang_total}>&nbsp;<font color="#ff6600"><{$cat.photo_total_sum}></font>&nbsp;&nbsp; <br />
<{foreach from=$cat.subcategories item=subcat}>
<{if $subcat.number_of_subcat}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><img src="<{$mod_url}>/images/folder16.gif" width="16" height="16" alt="" /><{$subcat.title}><img src='<{$mod_url}>/images/subcat.gif' width='15' height='15' /></a> &nbsp;
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><img src="<{$mod_url}>/images/folder16.gif" width="16" height="16" alt="" /><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>) &nbsp;<br />
<{/if}>
<{/foreach}>
</td>
<{if ($count+1) is div by 2}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>

3
sdmacint
Re: MyAlbum-P - Listing categories, one per line
  • 2005/6/13 15:20

  • sdmacint

  • Just popping in

  • Posts: 66

  • Since: 2003/11/9


It worked wonderfully. Thank you so much for your help!

Sean

4
V6-Maniac
Re: MyAlbum-P - Listing categories, one per line
  • 2005/6/13 15:23

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Your Welcome...

Login

Who's Online

263 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 263


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits