Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-17 16:05:25

baby
Plugin Author
From: Buenos Aires, Argentina
Registered: 2005-10-16
Posts: 95
Website

Storing plugin preferences in the database

Hi, I posted this in the Plugins main forum but I think it actually belonged here… sorry for the crossposting.

Is there a kosher way to keep plugins’ preferences in the database?

I thought txp_prefs would be a candidate for this, but I don’t want to break other things or prevent forward compatibility.

Maybe using my 3 letter prefix in the name field would suffice… but there are already names that start with 3 letters and a “_”:
img_, log_, max_, rss_ (Rob Sable is out), url_ and use_ are all used by standard preferences in my clean 4.0.5 install.

Maybe using a double “_” would do, but I’d like to know if is there a documented or widely used way to put plugins’ options within the database…

TIA


Mariano AbsatzEl Baby

I don’t suffer from insanity. I enjoy every minute of it.

Offline

Board footer

Powered by FluxBB