Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: MyAlbum-P - Listing categories, one per line
by V6-Maniac on 2005/6/13 15:23:35

Your Welcome...
Re: MyAlbum-P - Listing categories, one per line
by sdmacint on 2005/6/13 15:20:49

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

Sean
Re: MyAlbum-P - Listing categories, one per line
by V6-Maniac on 2005/6/13 13:43:45

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>
MyAlbum-P - Listing categories, one per line
by sdmacint on 2005/6/13 12:43:17

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

Who's Online

232 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

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

Latest GitHub Commits