Menu

#30 Plugin

open
nobody
None
5
2013-01-16
2007-05-17
No

Hi! first of all, thanks for this great soft.

I have a very small business and I'm using it for PM. I use also SimpleInvoices for invoicing purpouses.

So I wanted to link this two applications so a could see the invoices already issued for each project, the amounts, totals, etc. Also I wanted to be able of linking invoices to projects and unlink them.

So, I created an addon or plugin for webcollab. I tried to follow the coding style, so I created a new folder, .htaccess, etc. I needed a new simple table that link project_ids with invoices_ids and a modification of the database script to allow to connect to multiple databases (2 in my case).

When you click in each project you can see an extra textbox (below files, forums and task) with the detailed info.

My problem is that although i created the addon with that concept (plug it in and out with out alteration of the rest of the app) I'm stuck in two points.

1) I have to add the details for connecting to the second database. I put that info in the config.php file below to the original database parameters. it works fine but its altering the original code). I can put that info in other file (ie config_plugins.php) but I can't see how can I include it without altering the original files.

2) Similar thing with the database scripts. I duplicated the database_connection() and database_query() scripts to query the invoices database. I could modify the original script to allow select database connection but that would be altering the original code again. So as I say Ive duplicated the scripts but Im facing the same problem. Either I alter the mysql_database.php or put that info in other file but I have to modify the database.php file to include the new file anyway.

Summing up, are you thinking about plugins for webcollab in the near future. I mean, at least a mini framework that make webcollab more friendly to plugins. I think maybe creating a config_plugins.php and database_plugins.php would be enough for me :o)

Anyway, the plugin works great for me but I cant share because of the mentioned issues.

cheers,

tebas

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.