Plugin and modification of database Plugin and modification of database
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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