Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2009-01-25 14:26:31

SuperMAG
Member
Registered: 2008-05-10
Posts: 700

Improving extension updating system for Fluxbb 2.0

Few weeks i was checking few extensions, like poll and private messages. Not flux extensions but its the same with flux too.

When new version of extensions come, the only way to update your extensions is by deactivating and activating again.
This way all the data that was created by that extension is deleted from database.
But some extensions like polls and PM and many others, for example lets discuss polls. there were 12 polls on my site before updating the poll extension. and after updating, all the polls are gone. because deactivating deleted all the data from the db. Now that was sooo annoying.

In wordpress deactivating plugins does not removes data like that, it just removes data that are related to the plugin installation and working. but leaves that data that may be used again if he activated the plugin again. So some plugin authors maked a button inside the plugin page for users who want to delete all the data related to the plugin. the users use this button when alot of data remained in db which resulted in increasing its size. so they delete it.

In fluxbb that doesn't exists. at least  i don't know about it. or may be extension developer maked a mistake.

There are alot of things i don't understand, about the devs saying that they are not happy with extension system and want to improve it bla bla bla (well i don't really understand that, because i am not a coder)

i was hoping they could add this to the improvements. instead of making a delete button besides Deactivate button. they could make an upgrade button, which only upgrades the database tables and not removing the extension data that need to be remained.

Or they can do a bitter solution for this problem.


Sports2All: Watch Online all the Sports (Wrestling, Football, Cricket & All other Sports)

Offline

#2 2009-01-25 14:33:24

Reines
Lead developer
From: Scotland
Registered: 2008-05-11
Posts: 3,140
Website

Re: Improving extension updating system for Fluxbb 2.0

We don't really want to discuss 2.0 too much yet, there is still plenty to get finished off before that (1.3-legacy, 1.4, the site itself etc), however:

SuperMAG wrote:

When new version of extensions come, the only way to update your extensions is by deactivating and activating again.

That isn't correct, as long as the version number of the extension has changed there is an upgrade button which will upgrade the extension without removing any data.

Offline

#3 2009-01-25 14:54:48

Rich Pedley
Member
From: Liverpool, UK
Registered: 2008-05-13
Posts: 246
Website

Re: Improving extension updating system for Fluxbb 2.0

Not all wordpress plugins remove things that they should either. It's all down to the individual plugin developer for WP, and the same will be true for the extension developer for FluxBB. If things are coded correctly then upgrading an extension won't cause a problem.


my mind is on a permanent tangent

Offline

#4 2009-01-25 14:58:05

Smartys
Former Developer
Registered: 2008-04-27
Posts: 3,117
Website

Re: Improving extension updating system for Fluxbb 2.0

And deactivating/reactivating does/did not remove data. Uninstalling/reinstalling does.

Offline

#5 2009-01-25 15:29:32

Rich Pedley
Member
From: Liverpool, UK
Registered: 2008-05-13
Posts: 246
Website

Re: Improving extension updating system for Fluxbb 2.0

Smartys wrote:

And deactivating/reactivating does/did not remove data. Uninstalling/reinstalling does.

depends on how its coded  - deactivation in WP should remove anything it added to WP cron, for example.


my mind is on a permanent tangent

Offline

#6 2009-01-25 15:30:34

Smartys
Former Developer
Registered: 2008-04-27
Posts: 3,117
Website

Re: Improving extension updating system for Fluxbb 2.0

I'm talking about FluxBB wink

Offline

#7 2009-01-25 17:42:06

SuperMAG
Member
Registered: 2008-05-10
Posts: 700

Re: Improving extension updating system for Fluxbb 2.0

so its about how its coded, ok this point must be madded more clearer to extension developers, mmm that must be the reason i didn't want to go to punbb at the first place. they are not pros, there is polls, pm's, custom pages, that all i tried and the data were deleted after extension got updated.

Smartys wrote:

And deactivating/reactivating does/did not remove data. Uninstalling/reinstalling does.

oh isnt
activate/deactivate = install/uninstall
same in fluxbb

Reines wrote:

That isn't correct, as long as the version number of the extension has changed there is an upgrade button which will upgrade the extension without removing any data.

well there was no upgrade button when i updated the extension files. and the version number was changed too. this bug might be from the developer side too.


Sports2All: Watch Online all the Sports (Wrestling, Football, Cricket & All other Sports)

Offline

#8 2009-01-25 17:43:57

Smartys
Former Developer
Registered: 2008-04-27
Posts: 3,117
Website

Re: Improving extension updating system for Fluxbb 2.0

No, we deliberately put in the ability to activate and deactivate in addition to installing/uninstalling so that people could keep their data but turn off an extension

Offline

#9 2009-01-25 18:06:53

KeyDog
Member
Registered: 2008-12-14
Posts: 172

Re: Improving extension updating system for Fluxbb 2.0

Not to be rude SuperMag:
but a serious admin tries stunts like that on test boards (before nuking his production board) and then goes to ext dev and tells him problem - who in turn fixes it.
I'm sympathetic to your predicament - however it was your fault to a large extent.
I also tried someones new extension and had same problem as you, but I told him and in his next release he'll add the specific update function.

Offline

#10 2009-01-25 19:48:05

SuperMAG
Member
Registered: 2008-05-10
Posts: 700

Re: Improving extension updating system for Fluxbb 2.0

well i didn't know that it was up to the developer to put upgrade code in the extension. because it was TOO many extension have the same problem. so i thought it was not intendant to be included in the extension.


Sports2All: Watch Online all the Sports (Wrestling, Football, Cricket & All other Sports)

Offline

#11 2009-01-25 20:37:47

Rich Pedley
Member
From: Liverpool, UK
Registered: 2008-05-13
Posts: 246
Website

Re: Improving extension updating system for Fluxbb 2.0

It is also reliant on the user - using upgrade rather than install smile


my mind is on a permanent tangent

Offline

#12 2009-01-25 23:11:25

MattF
Member
From: South Yorkshire, England
Registered: 2008-05-06
Posts: 1,230
Website

Re: Improving extension updating system for Fluxbb 2.0

Rich Pedley wrote:

It is also reliant on the user - using upgrade rather than install smile

Only if there is that option available. smile


Screw the chavs and God save the Queen!

Offline

Board footer

Powered by FluxBB 1.4.8