1
tedsmith
MyAlbum showing dots (...) in categories
  • 2005/6/29 18:22

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I have 3 instances of MyAlbum on my site, all are the same versions (2.83).

However, on two of the instances I have managed to set the module to show the full length of my main categories without a series of dots appearing (...). On the other though, the dots are there. And for the life of me, I can't work it out. I want all three not to show the dots.

This one shows the dots.

This one does not show the dots.

Nor this one.

ANyone know which template I have to tweak and how?

Ted

2
tedsmith
Re: MyAlbum showing dots (...) in categories
  • 2006/3/28 14:52

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I posted this last June and no response ever made. Amusingly I've tried again to resolve it forgetting that I'd posted this before - I found it when I was doing a search for the problem!

Anyway, maybe if I explain it more clearly someone may be able to help this time round

I have three instances of MyAlbum -P installed on my lost dogs website (http://www.lost-doggies.com). As you will see, there each named seperately : Lost Dogs, Found Dogs, Rehome Dogs.

If you click in the Found Dogs and Rehome Dogs sections the categories are shown fully without '...' after a certain number of characters. However, on the Lost Dogs category display, all the titles are cut short after between 18 - 21 characters.

I've tried copying and pasting the content from the 'Found Dogs' myalbum_categories.html template to the myalbum_categories.html template of 'Lost Dogs' and no change.

So I checked that "Update module template .html files from themes/your theme/templates directory?" is set to Yes, which it is.

So then I did a search for '...' in the source code of the module, but there's nothing obvious that I can find that relates to the display of the categories.

The weird thing is that I must have changed a value somewhere for the other two modules at some point in time but I can't remember doing that and I usually document changes like that in a change log. So I'm totally confused.

Can anyone help clarify?

Thanks

Ted

3
McDonald
Re: MyAlbum showing dots (...) in categories
  • 2006/3/28 15:29

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Not sure if I can help you with this one.
It looks like a Smarty truncate modifier but I don't think so.

Check the following lines (19-25) in index.php. It's here where the menu lsit is made.
$xoopsTpl->assign'subcategories' myalbum_get_sub_categories$cattree ) ) ;
$xoopsTpl->assign'category_options' myalbum_get_cat_options() ) ;

$prs $xoopsDB->query"SELECT COUNT(lid) FROM $table_photos WHERE status>0" ) ;
list( 
$photo_num_total ) = $xoopsDB->fetchRow$prs ) ;

$xoopsTpl->assign'photo_global_sum' sprintf_ALBM_THEREARE $photo_num_total ) ) ;

Login

Who's Online

224 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

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

Latest GitHub Commits