Advanced search  

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

Pages: [1]   Go Down

Author Topic: Looking for someone to hack and skip album list page  (Read 10270 times)

0 Members and 1 Guest are viewing this topic.

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Looking for someone to hack and skip album list page
« on: January 31, 2005, 10:02:06 pm »

Hi,

I'm looking for the way to skip the Album List and go to directly inside the Album from Category.
In other way, I want to keep just 1 album in 1 Category and I don't want to show the album list page at all. So if you click on category you go into the Album and see all the thumbnails inside.

I don't know how easier would be to approach this issue. Is there any mods to do that or should I pay someone to do that?
MY budget could go up to $50. But that is all... :-[ I really need the perfect answer...

THank you!!

tadasp
« Last Edit: February 03, 2005, 08:32:57 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Looking for someone to hack and skip album list page
« Reply #1 on: January 31, 2005, 10:23:54 pm »

If you are only having one album per category, why bother with categories at all, just create the albums in '*no category*', they will show on the front page and you will go directly into them.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Re: Looking for someone to hack and skip album list page
« Reply #2 on: February 01, 2005, 02:30:32 am »

Thanks for reply.

That's the point. I want to have lots of categories and sub-categories with 1 album in each subcategory or category.
I want to have a website with lots of videos which will be pretty hard categorized. If someone could make modyfication on this!
Please...

tadasp
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Looking for someone to hack and skip album list page
« Reply #3 on: February 01, 2005, 04:48:02 am »

Basically what I think he wants is nested albums.  I'll let you know right up front thats not going to be a trivial process.

The first problem you'll encounter is that all category navigation is done with index.php. When you finally choose an album your thrown to thumbnail.php which handles generation of an album.

What you might want to consider which would be a whole lot simpler and give the "appearance" of nested albums:

Number of levels of categories to display: 1 (Limits random thumbnails from being pulled from categories below)
show first level thumbnails in categories: No (I think it will just cause confusion)
Look at "number of rows on thumbnail page" under thumbnail view, remember the number.
content of the main page: modify the string where /random,2 appears to /random,4 (or whatever the number was in the prev step)

Now:

What should happen is user will begin browsing your cats. Each cat will still show the album they can go into, but they will get 4 rows of randoms from that album/cat and no other albums.

Hope that helps.
Logged

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Re: Looking for someone to hack and skip album list page
« Reply #4 on: February 01, 2005, 06:41:41 am »

Thanks donnoman...
But... I did the same way a while ago (what else you can do) :-\\

Anyways... If you say it is hard to make as you call "nested album" then what I can do..
It is really pity. I'm not very good in PHP but I'd really love someone to do that  :-[

I still would love to know what is the scope of work to make such modifications? ???

thanks again..
tadasp
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Looking for someone to hack and skip album list page
« Reply #5 on: February 01, 2005, 06:57:26 am »

You would have to combine index.php and thumbnails.php.

Doing so takes you way out in left field as far as supportability goes.

This is the direction cpg is going, however you wont see it in an official release in quite some time. It's not in 1.4.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Looking for someone to hack and skip album list page
« Reply #6 on: February 01, 2005, 07:23:39 am »

I guess you won't see such a huge mod for $50, so you probably will have to wait untill it's available for free ;).

Joachim
Logged

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Re: Looking for someone to hack and skip album list page
« Reply #7 on: February 01, 2005, 08:42:54 pm »

Ok, Then How much would be the estimate for this kind of mod?  ???

Thanks,
tadasp
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Looking for someone to hack and skip album list page
« Reply #8 on: February 02, 2005, 07:54:19 am »

I don't know - in fact I have no idea if anybody is ready to do this as a mod at all, as it would require huge re-designs in terms of the overall structure coppermine uses, which should imo not be done for cpg1.3.x at all (with both cpg1.4 and cpgNG in the dev pipelines).

Joachim
Logged

foulu

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 236
  • uhm
Re: Looking for someone to hack and skip album list page
« Reply #9 on: February 02, 2005, 12:27:43 pm »

i have sipmle solution: detect if this cat have how much album, and if this cat have 1 album, we change the link of this cat to link of the album inside it.

Open index.php

search

Code: [Select]
$link = "<a href=\"index.php?cat={$subcat['cid']}\">{$subcat['name']}</a>";
replace with

Code: [Select]
// add by kak - to detect ???

    $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = {$subcat['cid']}".$unaliased_album_filter;
                $result = db_query($sql);               
                $row = mysql_fetch_array($result);                       
    if ($album_count == 1) $link = "<a href=\"thumbnails.php?album={$row['aid']}\">{$subcat['name']}</a>";
                else $link = "<a href=\"index.php?cat={$subcat['cid']}\">{$subcat['name']}</a>";           
// end
               

may it help
« Last Edit: February 02, 2005, 04:07:36 pm by GauGau »
Logged

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Re: Looking for someone to hack and skip album list page
« Reply #10 on: February 02, 2005, 08:33:17 pm »

Foulu, THANK YOU, you saved my hopes  :P :-*

I knew there must be a simple solution to redirect to 1 album in Category!

I owe you a box of beer when you'll be in chicago  :)

Why Coppermine Dev Pro's couldn't think about this solution?:)

tadasp
Logged

foulu

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 236
  • uhm
Re: Looking for someone to hack and skip album list page
« Reply #11 on: February 03, 2005, 03:43:16 am »

np, this is a sipmle hack, thx for your box of beer.

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Looking for someone to hack and skip album list page
« Reply #12 on: February 03, 2005, 04:01:27 am »

What happens when you encounter a category that has a single album, and also has its own subcategories?

Quote
Why Coppermine Dev Pro's couldn't think about this solution?

Pobody's Nerfect.

We are all individuals with different competencies and ways we like to do things. If you ask all the devs to code something, each one of us would probably approach the problem differently.  That applies to everybody involved with Coppermine, including supporters like Foulu.

That my friend is the power of open source.

I'm glad he found this fix for you, and that your happy with it.  Good work Foulu.
« Last Edit: February 03, 2005, 04:57:48 am by donnoman »
Logged

tadasp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
    • Tauta, inc
Re: Looking for someone to hack and skip album list page
« Reply #13 on: June 05, 2008, 10:19:41 am »

please could someone make a 1.4.x solution for this issue? I have upgraded my coppermine gallery from 1.3 to 1.4 and this hack does not work anymore  :-[ Please, could someone could take a look at this:

// add by kak - to detect ???

          $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = {$subcat['cid']}".$unaliased_album_filter;
                $result = db_query($sql);               
                $row = mysql_fetch_array($result);                       
          if ($album_count == 1) $link = "<a href=\"thumbnails.php?album={$row['aid']}\">{$subcat['name']}</a>";             
                else $link = "<a href=\"index.php?cat={$subcat['cid']}\">{$subcat['name']}</a>";           
// end

and modify it for 1.4.x coppermine version .... PLEASE.... I don't really know any coding....:( Thanks...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Looking for someone to hack and skip album list page
« Reply #14 on: June 05, 2008, 01:10:46 pm »

This is not a public support thread, but resides in the paid support board. Locking!
You started another thread that got solved (although you started it in the wrong sub-board; I moved it accordingly). Respect board rules in the future.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.