Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
1 Registered (adminwendy), 23 Guests and 21 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11708
Rick 7567
Ian 4107
Mark S 3984
ntdoc 3114
Sirdude 2041
jgeoff 1882
David Dreezer 1759
driv 1569
AllenAyres 1530
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Topic Options
Rate This Topic
#177255 - 02/03/07 10:31 AM When you create modifications....
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7567
Loc: Aberdeen, WA
Not exactly sure the best place to post this yet, but I'll post here for now.

For all of you modders out there. This is something that I stressed in earlier versions, but we'll revisit it again. Take a look at this thread.

A modification that was installed altered the database. The problem was, that the field names that were chosen for this modification were ones that we used for 7.1, so it ended up resulting in upgrade problems.

When creating a modification that alters the database, please give the new fields a custom prefix. In this case, instead of ONLINE_AGENT, use something like CUSTOM_ONLINE_AGENT. Just something that is different than the normal field naming convention. That way if future upgrades try to add a new field, there will be no conflicts.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#177357 - 02/03/07 03:12 PM Re: When you create modifications.... [Re: Rick]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11708
Loc: Portland, OR; USA
I agree here completely, your mod shouldn't use current variables, you should create new ones as to not break things should a user decide to upgrade; plus it'd be near impossible to find what is needed to uninstall a mod with using pre-existing variables so users would end up with content not needed...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#177379 - 02/03/07 04:42 PM Re: When you create modifications.... [Re: Gizmo]
jgeoff Offline
Pooh-Bah

Registered: 08/08/06
Posts: 1882
Loc: NJ

Someone should post this to UBBDev, too...
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Firefox 3.0, Google Chrome, & Safari 3.1 (XP and iPhone)

Top
#188951 - 06/26/07 07:23 PM Re: When you create modifications.... [Re: jgeoff]
Mors Offline
addict

Registered: 06/26/06
Posts: 442
Loc: So. California
You should use the best practice of NEVER touching the original products data model.. Create your own tables and field names..
_________________________
Happy Customer !!!

Top


Shout Box

Recent Topics
Registration security
by adminwendy
21 minutes 26 seconds ago
Problem with forum move
by AzHousePro
Today at 03:41 PM
[7.3.x] Ignore link showed in userprofile for global moderators
by blaaskaak
Yesterday at 01:27 PM
[7.3.x] Database password shown in adminlogs...
by blaaskaak
Yesterday at 10:24 AM
7.3.1 Flood protection
by MattUK
Yesterday at 03:55 AM
Forum Stats
4027 Members
33 Forums
30887 Topics
156842 Posts

Max Online: 978 @ 06/24/07 08:19 PM