Forums

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

You are not logged in.

#1 2010-03-12 17:26:49

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 302

Install_mod.php

Is there a new template for "install_mod.php" in 1.4, or do we use the old one (1.2.x) ?

Offline

#2 2010-03-12 19:02:56

FSX
Developer
From: NL
Registered: 2008-05-09
Posts: 803
Website

Re: Install_mod.php

The old one should still work. I use one for my Gravatar mod and it works.

Offline

#3 2010-03-13 04:32:47

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 302

Re: Install_mod.php

It does indeed.
Some minor changes : the charset (utf-8) and obviously the $punbb_versions array.

Offline

#4 2010-03-13 09:45:25

FSX
Developer
From: NL
Registered: 2008-05-09
Posts: 803
Website

Re: Install_mod.php

Yes, you'll have to modify some minor things. I think we should also include an up-to-date template on the wiki.

Offline

#5 2010-03-13 22:35:04

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 302

Re: Install_mod.php

FSX wrote:

I think we should also include an up-to-date template on the wiki.

You bet !! wink
Especially with the (future) new handling of the mods (repository AND validation).
The first step in validating mods is to have a common "install_mod" template.

With the 'template' i've started from (not official one, just one taken from an actual mod), i found A LOT of minor errors :
- typos (like a mismatch letter, or some spaces missing or surplus, etc...).
- not validating xhtml (not a serious issue obviously, but...).

For the 'wiki' thing, please note that this template HAS TO be translated to each language (we can't use langage files for this), so a subdivision for each language should be provided.

PS : if it can help, i can provide the 2 "install_mod" (english and french) i've done yesterday. Let's me know.

Offline

#6 2010-03-27 20:18:17

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 302

Re: Install_mod.php

'Minor changes', as i said previously, is not appropriate...

As we now have some new functions in dblayer, "install_mod" should use them (create_table, add_field, drop_table...).
So, when 'adapting' old mod for 1.4, the changes in install_mod would be 'MAJOR' ones....

PS : and notice "changeset 1437" which change the way new functions acts...

Offline

#7 2010-04-30 16:16:13

Christian
Developer
From: Vienna, Austria
Registered: 2008-05-10
Posts: 463
Website

Re: Install_mod.php

Mpok, please send your english install_mod.php to christian at fluxbb.de. I'll then take care of your changes.


http://www.fluxbb.de - Deutschsprachiges FluxBB Supportforum

Offline

#8 2010-04-30 19:31:58

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 302

Re: Install_mod.php

Will publish here a global template.
Tomorrow.

Offline

Board footer

Powered by FluxBB 1.4.8