Default Home Category to User Groups Default Home Category to User Groups
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Default Home Category to User Groups

Started by didge_jason, March 29, 2004, 03:05:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

didge_jason

Hello.

I would like to make the default "Home" page to display the albums in the "User Groups" category.  All of my albums are posted by users (my family) and I would like the list of user names to be the top level categories.  Right now, anyone viewing must first select "User Categories" then the appropriate family member's name.  I would like the viewer to be shown the family member's name list at the "Home" page.

didge_jason

To default to the "User Categories" on the home page, I modified index.php starting at line 518

514   if (isset($HTTP_GET_VARS['cat']))
515   {
516       $cat = (int)$HTTP_GET_VARS['cat'];
517   }
518    // JASON'S CHANGE
519    else
520   {
521           $cat = USER_GAL_CAT;
522   }
523   // END JASON'S CHANGE

This seems to be an effective solution, but I am worried about bugs arising later because of this change.  I am currently testing it.  If there is another way to change it, please let me know.

chalky6666

Hi

Is it posible to go 1 step further and have the home page display just 1 album?

Cheers

webfairy

is it possible to modify this to work in 14.x?

any assistance in this matter is greatly appreciated.

Nibbler

The code is practically unchanged since 1.3


    if (isset($_GET['cat'])) {
        $cat = (int)$_GET['cat'];
    }



    if (isset($_GET['cat'])) {
        $cat = (int)$_GET['cat'];
    } else {
        $cat = USER_GAL_CAT;
    }

lauriesscraps

I tried adding the coding listed above and it did what you said, but not what I wanted. I took the coding out and now it changed everything back to normal but one thing. It is now listing all the user galleries at the bottom and repeating them. Do you know how I can fix this? ( I already restored the back up file I made, but it is not fixing it).

I was also wondering how I can change the links to the user galleries into showing a thumbnail link to each of them, while leaving everything else the same? Any help would be great! Thank you so much!

lauriesscraps.com/gallery