Welcome to Geeklog, Anonymous Friday, April 18 2025 @ 09:29 am EDT

Geeklog Forums

Plugin development and core table (vars)


Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
worried
When writing plugins, is it bad practice to use the vars table to store settings? Should I make my own table? I\'m using it for the usual group install/uninstall records, but thinking of putting a few other settings in there too. Is this evil? Cheers, Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by euan: When writing plugins, is it bad practice to use the vars table to store settings?
It\'s fine if you only have a few variables (I do it myself Mr. Green Try to think of names that won\'t cause name collisions. I\'m using names like pluginname.variablename, e.g. blog.speedlimit for the speedlimit setting in the blog plugin. bye, Dirk
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
indescribable
Thanks Dirk. I\'ve actually just made my own table for now as there are fair few items I wanted to save. The two items I do have in there are both prefixed gmail_xxx which I\'ll make gmail.xxx as that would be a sensible standard. Cheers, Euan.
-- Heather Engineering
-- No job too small
 Quote

All times are EDT. The time is now 09:29 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content