PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   How to put user assigned albums at top of show gallery 1st page (http://www.photopost.com/forum/photopost-pro-how-do-i/114912-how-put-user-assigned-albums-top-show-gallery-1st-page.html)

mjm July 17th, 2005 10:14 PM

How to put user assigned albums at top of show gallery 1st page
 
Similar to when viewing users Albums / pics in Member Gallery (list format) - albums are at the top on 1st page.

Reason:
Album usage is only for for our primo usergroup and they need best exposure when viewing cat. - only on 1st page of showgallery.

I think it should be pretty straightforward to change around but a nudge in the right direction would make it easier for me to ask my wife to go make the changes :)

Thanks,
Mark

mjm July 19th, 2005 08:49 AM

Okay, I found instructions for moving category assigned albums to the top in ... this post

Carole my dearest will give it a try sometime today. :)

Mark

Carolem July 19th, 2005 01:19 PM

from Michael P's Feb 3 2005 post:
Quote:

You can always modify the showgallery.tmpl template (the benefit of templates being able to move items around without needing to make everything an option).

Code:
if ( $cats['subalbcnt'] > 0 ) {
$cats['albumcount'] = $cats['subalbcnt'];
$Globals['pp_lang']['albums'] = $Globals['pp_lang']['userassigned'];
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/albums.tmpl" );
}


Move it from the bottom to the top wherever you want it.
Well, I have been experimenting trying to find the proper placement:

If I move that section (lines 285 - 289) up to line 2, I get the albums showing in the very beginning which is what we want but the albums show up twice.
If I try to fix this by deleting line 13 which says:
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/albums.tmpl" );

then I get the effect I want in the show gallery area, but lose the albums showing in the members gallery area.

Any suggestions on how to do successfully this would be greatly appreciated!

Carole

Carolem July 19th, 2005 10:19 PM

I think I figured out:

I moved (lines 285 - 289)
Code:
if ( $cats['subalbcnt'] > 0 ) {
$cats['albumcount'] = $cats['subalbcnt'];
$Globals['pp_lang']['albums'] = $Globals['pp_lang']['userassigned'];
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/albums.tmpl" );
}

and placed it right after line 15 and it seems to work fine!

Thanks for "making me think harder!"
Carole


All times are GMT -5. The time now is 10:17 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97