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: Overview of CPG code and database  (Read 5948 times)

0 Members and 1 Guest are viewing this topic.

photographicon

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • Photographicon
Overview of CPG code and database
« on: January 03, 2006, 07:38:12 pm »

Is there an overview document available that briefly describes what all the various CPG code files do and how they inter-relate (eg a diagram of execution flow)?  Likewise for the database tables & fields?

Having evaluated a number of different gallery systems, I've settled for CPG and have the sneaking suspicion that I'll be adding some mods of my own...  8)
Logged
LITL.W/L
Dominic.

Nibbler

  • Guest
Re: Overview of CPG code and database
« Reply #1 on: January 03, 2006, 07:43:27 pm »

No such thing unfortunately
Logged

photographicon

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • Photographicon
Re: Overview of CPG code and database
« Reply #2 on: January 03, 2006, 08:32:31 pm »

Really... how do you (the dev team) keep track of things?  Surely you must have something written down...?
Logged
LITL.W/L
Dominic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Overview of CPG code and database
« Reply #3 on: January 03, 2006, 10:09:57 pm »

no - working on the project you gradually develop an understanding how it works, so every dev just knows how it works. There's no such document, honestly. There has never been the need to create it. It would make things easier for users who want to modify (like you) and maybe for future dev team members, yet it would take some time and effort to create such a document. You know how devs are: they prefer to write code instead of documentations  ;).
Logged

photographicon

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • Photographicon
Re: Overview of CPG code and database
« Reply #4 on: January 04, 2006, 12:42:13 am »

Fairy snuff... I'm gonna have to make some notes for myself (hopefully with your help ;-) so I guess in time I'll be adding them to the pool.
Logged
LITL.W/L
Dominic.

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Overview of CPG code and database
« Reply #5 on: January 04, 2006, 02:25:54 am »

I work backwards. I see what I want to change. Use Dreamweaver's awesome search function to find the code I see to find the origin code.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Overview of CPG code and database
« Reply #6 on: January 04, 2006, 03:17:24 am »

In Windows, I use WinGrep to search throughout the Coppermine scripts and follow the program flow.  The database structure is fairly self-descriptive.  phpMyAdmin is of course the GUI-tool of choice.

As for mods, I would try to stick to plugins since they are easier to keep separate from the core code and apply to future versions of Coppermine.  Plugins require more initial learning & a more careful touch, but they are rewarding, and you can easily share your plugins with the community.  Of course it is quite tempting to simply hack the script in question.

Keep in mind also that a lot can be done with your theme's theme.php and template.html files.  Check out the sample theme to see all the functions and functionality that can be overridden in your personal theme file.
« Last Edit: January 04, 2006, 03:24:59 am by Paver »
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.