PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost vBGallery Support Forums > vBGallery Suggestions

vBGallery Suggestions Post your comments, suggestions, and other feedback about PhotoPost vBGallery here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 15th, 2005, 08:12 PM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Subcategories in first page only

Hi!
My main category has 24 subcategories.
Is very annoying to scroll down in every page to see the images, while browsing it.
It would be great if the subcategories are visible (or expanded) only in the first page, and hidden (or collapsed) in every subsequent page.

I thought I had seen this in a feature list but I'm not really sure.

Ricardo
rbl is offline   Reply With Quote
Old February 15th, 2005, 09:08 PM   #2 (permalink)
Moderator
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,404
Re: Subcategories in first page only

RBL,

For an intermediate hack check out this thread: http://www.vbadvanced.com/forum/showthread.php?t=5473

Looks like from that thread also that Brian has put it on his 'to do' list to handle in some fashion with a future release instead of having to do a hack.
__________________
Kevin

Sci-Fi Forums ~ vBulletin Styles ~ vBulletin Users
KW802 is offline   Reply With Quote
Old February 15th, 2005, 09:42 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Subcategories in first page only

Thanks Kevin but if I understood correctly, I don't think this is related to my suggestion, which is remove/hide the omnipresent subcategories listing on a category where you have images to browse.

Take a look:
- Gallery index page listing the 2 main categories, Community Photoblog and Member Categories. Fine, no probs.
http://35mm.org/fotoblog/

- Community Photoblog index page, subcategories on top, images bellow. Fine, also no problems.
http://35mm.org/fotoblog/browseimages.php?c=1

- Page 2 of the Community Photoblog page, same listing of subcategories as on page 1 and images bellow.
http://35mm.org/fotoblog/browseimage...ges&c=1&page=2

Now try to browse pages 3, 4, 5 and so on, and you'll see how annoying that subcat list can be because you are seeing it over and over again and you have always to scroll down.
rbl is offline   Reply With Quote
Old February 15th, 2005, 09:47 PM   #4 (permalink)
Moderator
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,404
Re: Subcategories in first page only

OK, I see what you're saying. If nobody else hits it I'll try to think of something. What I'm thinking would be to combine that change that Brian listed in that thread I referenced above with an "if" statement that if the page number in the URl is greate then 1 then to set the depth level to 0.
__________________
Kevin

Sci-Fi Forums ~ vBulletin Styles ~ vBulletin Users
KW802 is offline   Reply With Quote
Old February 15th, 2005, 09:57 PM   #5 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Subcategories in first page only

I've tried Brian's code and set it to zero but the subcats are always there.
I was thinking about doing something somewhere in the "default" switch (browseimages.php line 326)... but a conditional tag can also do the trick I suppose...
rbl is offline   Reply With Quote
Old September 12th, 2005, 02:12 PM   #6 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Re: Subcategories in first page only

For future reference or anyone with a similar request, the instructions are:
- open browseimages.php and search for:
$show['subcats'] = iif($subcatbits = print_categories($catinfo['catid']), true);

- replace by:
// Mod to display subcategories only in the first page
// $show['subcats'] = iif($subcatbits = print_categories($catinfo['catid']), true);
if ($page == 1 OR !$page)
{
$show['subcats'] = iif($subcatbits = print_categories($catinfo['catid']), true);
}
}
rbl is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Each member subcategories ? sensimilla How Do I? - vBulletin 3.0.X 2 August 29th, 2005 07:34 AM
some subcategories are not appearing Happy Camper Installs and Upgrade - vBulletin 3.0.X 3 June 19th, 2005 09:33 AM
subcategories not showing? simple_john How Do I? - vBulletin 3.0.X 2 May 13th, 2005 01:38 PM
How Do I show more subcategories? tcb How Do I? - vBulletin 3.0.X 1 December 13th, 2004 01:37 PM
Hiding subcategories on the index page? Laeth Photopost Pro Installation & Upgrades 1 August 1st, 2004 03:14 PM


All times are GMT -5. The time now is 12:57 PM.

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