Plugin and modification of database Plugin and modification of database
 

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

Plugin and modification of database

Started by round-planet, October 27, 2009, 10:42:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

round-planet

Heelo;
just downloaded the Coppermine (terrific software), and starting to create a plugin for my need; trying to not do hacking at all; for my plugin, I need a couple of new fields in the database tables for picture and Ratings; is adding these fields to the table considered as a regular plugion action, or is it considered as hacking, and should we create only additional tables to respect the orthodoxy?

Thanks

phill104

Although this is for the forthcoming cpg1.5 release, it might be worth reading the following documentation.

http://documentation.coppermine-gallery.net/en/dev_plugins.htm

I am looking forward to your plugin and hope that you can contribute it to the project.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Adding a table is OK. Adding records to the config table is OK as well. Just make sure not to hardcode the table name into your code, but respect the usage of the table prefix that exists in the $CONFIG array. See how other plugins do that: take the "who is online" plugin as an example.

round-planet

Thanks to all; I'm struggling against the desire for hacking, but still resisting    ;D

Pascal