1
justtupeu
Eliminate Submenus in Myalbum
  • 2005/7/1 21:26

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


I've also got a problem with MyAlbum.. Onhttp://www.justtupeu.lx.ro/modules/myalbum/ i have 6 main categories, but many other subcategories, that mess up the look of the page..
So what files must i modify to make the index.php of myalbum show only the main categories ??
Vineri triskaideka - contest for Vineri triskaideka phrase

2
mrjingles
Re: Eliminate Submenus in Myalbum
  • 2005/7/1 22:39

  • mrjingles

  • Just popping in

  • Posts: 22

  • Since: 2004/11/10


Hi,

You will need to change the template that is used for showing categories and subcategories.

This template is called 'myalbum_categories.html' and can be modified in the usual way. (System - Templates from the Admin section).

I hope this helps,

3
justtupeu
Re: Eliminate Submenus in Myalbum
  • 2005/7/1 23:20

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


I figured it out that i have to modify some folder in myalbum/templates/ , probably myalbum_categories.html, but i can't figure out what exact part to modify, or to comment out or even delete.. Can anyone help ?
Vineri triskaideka - contest for Vineri triskaideka phrase

4
wcrwcr
Re: Eliminate Submenus in Myalbum
  • 2005/7/1 23:37

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


PLease, before any modification do a nice and handfull back up of the original file or just use the cloning method on admin?s templates area, ok?

I?m out of my work pc and can?t give you a more specific info right now.

Sorry

5
justtupeu
Re: Eliminate Submenus in Myalbum
  • 2005/7/2 5:53

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


I've done a backup, as i have tryed to do this before, but without any success..
I just can't figure out how to eliminate the subcategories in the main myalbum page.
Here's the myalbum_categories.html file
Quote:
<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<{foreach from=$subcategories item=cat key=count}>
<td valign="top">
<{if $cat.imgurl != ""}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
</a>
<{/if}>
</td>
<td valign="top" width="33%">
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a>&nbsp;<{$lang_total}><{$cat.photo_total_sum}>&nbsp;(<{$cat.photo_small_sum}>)
<br />
<{foreach from=$cat.subcategories item=subcat}>
<{if $subcat.number_of_subcat}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><{$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}>"><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>) &nbsp;
<{/if}>
<{/foreach}>
</td>
<{if ($count+1) is div by 3}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>

Anyone ?
Vineri triskaideka - contest for Vineri triskaideka phrase

6
mrjingles
Re: Eliminate Submenus in Myalbum
  • 2005/7/2 10:10

  • mrjingles

  • Just popping in

  • Posts: 22

  • Since: 2004/11/10


Hi,

To eliminate the sub-categories from being displayed then you will need to modify the code as follows :

<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
  <
tr>
  <{foreach 
from=$subcategories item=cat key=count}>
    <
td valign="top">
      <{if 
$cat.imgurl != ""}>
        <
a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
          <
img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
        </
a>
      <{/if}>
    </
td>
    <
td valign="top" width="33%">
      <
a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a>&nbsp;<{$lang_total}><{$cat.photo_total_sum}>&nbsp;(<{$cat.photo_small_sum}>)
      <
br />
    </
td>
    <{if (
$count+1is div by 3}>
      </
tr><tr>
    <{/if}>
  <{/foreach}>
  </
tr>
</
table>


Let me know how you get on....

7
justtupeu
Re: Eliminate Submenus in Myalbum
  • 2005/7/2 18:00

  • justtupeu

  • Just popping in

  • Posts: 78

  • Since: 2005/6/7 8


Worked just fine.. I made the modification to the file, uploaded it and then updated the module and i like how it looks now.. Thanks
Vineri triskaideka - contest for Vineri triskaideka phrase

Login

Who's Online

242 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

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

Latest GitHub Commits