Current time: 01-09-2009, 07:28 AM Hello There, Guest! (LoginRegister)


Post Reply 
Mybb GID consistency
09-22-2008, 07:44 PM
Post: #1
Mybb GID consistency
I found out today that your GID's are different for 1.4x than 1.2x. If you have a forum that's an upgrade from 1.2x however it's not corrected. This creates an inconsistency and a small problem for plugin authors that create settings inside existing GID's.

Can anything be done about this? I realize it's probably very low priority but still consider something.

MYPS is now available for FREE!
Download over 30 exclusive plugins at Mybb Central.
[Image: mybbsig.php]
[Some plugins at Mybb Central are for paid subscribers only.]
Visit this user's website Find all posts by this user
Quote this message in a reply
09-22-2008, 07:49 PM
Post: #2
RE: Mybb GID consistency
Which ones are different?? I didn't notice this myself.

[Image: mybbsig.php]
Forum - Blog
Thou shalt give support
Visit this user's website Find all posts by this user
Quote this message in a reply
09-22-2008, 08:21 PM
Post: #3
RE: Mybb GID consistency
All of them.

I have added this to the top of my plugin activations which should take care of the problem.

Quote: $query = $db->simple_select("settinggroups", "gid", "name='SETTINGNAME");
$gid = $db->fetch_field($query, "gid");

Then when creating the settings array use $gid for the gid.

Exampe:

Quote: "gid" => $gid,

So other authors feel free to use that.

MYPS is now available for FREE!
Download over 30 exclusive plugins at Mybb Central.
[Image: mybbsig.php]
[Some plugins at Mybb Central are for paid subscribers only.]
Visit this user's website Find all posts by this user
Quote this message in a reply
09-23-2008, 04:40 PM
Post: #4
RE: Mybb GID consistency
You should always call a setting / setting group by it's code name - that's why we have it there for.

[Image: ryangordon.png]

My Blog - My Mods - My Site - There are no such things as bugs;
Just carefully articulated random features.

Figures lie, and liars figure
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: