11
Mamba
Re: XOOPS 2.6 modules
  • 2011/11/17 19:10

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
It is not very appropriate to make fun of the French language.

I totally agree!

Thankfully, we have developers form around the world who contribute to XOOPS! Some have better know-how of English, some not, and therefore sometimes there will be mistakes! But that's why we're a worldwide community to help each other to make XOOPS the best CMS!

So if we see bugs, or missing translation, or any mistake in documentation, let's help each other and fix it. We are Open Source!!!!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

12
Cesagonchu
Re: XOOPS 2.6 modules

Quote:

voltan:
News
For news module I suggestion rename fmcontent module to news and add all missing options to module

Gallery
Update and rename extgallery to gallery

Download
rename tdmdownload to download.


Maybe create a poll?

13
trabis
Re: XOOPS 2.6 modules
  • 2011/11/17 19:50

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

kris_fr wrote:
Hi,

And when is it the compatibility of old modules with version 2.6, because I see on mine a significant amount of work to be done
Can we count on a migration script modules?
And a big thank you to Trabis for the tremendous work done on cleaning the old kernel

if you want to watch 2.6.-dev version, I installed it on a miniserv which can be downloaded here -> http://tutos.xoofoo.org/modules/mydownloads/visit.php?cid=24&lid=412

my other question is that version 2.6 will she get out before the final 2.5.4?


Thanks kris,

Modules that run on Xoops 2.5.4 without trowing deprecated messages and that do not use functions/defines/classes marked as deprecated in the source code will run in 2.6.0.

We will be doing a step by step code refactoring. Xoops 2.6.x will trow deprecated messages for 100% of the actual Xoops modules, meaning that our blue modules will have to be refactored if they want to work on Xoops 2.7.0.
In each middle version we will drop deprecated code.

Refactoring for 2.6.0 will be small work for module developers that already have blue modules. Many of the replacements can be done with search and replace.
$GLOBALS['xoopsConfig'] becomes $xoops->config
$GLOBALS['xoopsModule'] becomes $xoops->module
$GLOBALS['xoopsUser'] becomes $xoops->user
etc, etc

And for functions, many can also be changed with search and replace:
xoops_getModuleHandler() becomes $xoops->getModuleHandler();
etc, etc

Templates from database are also not being used by the core anymore but we will maintain the tables for legacy compatibility until 2.7
Instead of using:
$GLOBALS['xoopsOption']['template'] = 'db:mytemplate';
include XOOPS_ROOT_PATH . '/header.php';

You use should use $xoops->header('mytemplate.html');

The above also works for admin side, the interface for front end and admin is the same.

Module developers can/should also remove file includes for core classes. Classes are being loaded 'automagicaly'.

We will need to document all this but we don't even have an alpha yet. Interfaces may change.

Can you create a xref of the 2.6 code? Thanks.


14
Mamba
Re: XOOPS 2.6 modules
  • 2011/11/17 19:50

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
The discussion is difficult when there are people xenophobic too.
Xoops is international and not for english people only.

Of course, and his comments were not "xenophobic", but related to the fact that the file size was "hard-coded", i.e. it was not possible to translate them into English.

TDMDownloads is a great module, used by many people, and I'll be working personally with Mage to make sure that the English translation is OK there.

But again, that's what Open Source is all about it - we help each other to make things better!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

15
Cesagonchu
Re: XOOPS 2.6 modules

I understand that you want to calm things, but we all understood what he wrote:
Quote:

whole world uses Bytes, KB, MB, GB, TB, PB, TDMDownloads uses Ko, Knock Out maybe ?

16
Mamba
Re: XOOPS 2.6 modules
  • 2011/11/17 21:21

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
I understand that you want to calm things

Of course!

That's why there is no need to escalate it any further. DCrussader is committed to help in making XOOPS the easiest CMS to translate. He's been working on translations with people from all over the world, helping them to streamline the process of translations. If you read his comments from the past, you'll see that sometimes his comments are sarcastic, but I truly believe that he would be the last one who I would call "xenophobic".

We value contributions from ALL our users, regardless of the country they are from, or how well they speak English. If their English is not perfect, those of us who speak English better, we help them in translations or whatever is needed.

The most important thing for us is the willingness to contribute and making XOOPS a better CMS! English or no English should be NEVER an obstacle holding people back from contributing to XOOPS!

So let's focus on making XOOPS the best CMS that it can be!



Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

17
Mamba
Re: XOOPS 2.6 modules
  • 2011/11/17 21:24

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Can you create a xref of the 2.6 code?

I would wait till we have Alpha 0 released, as till then a lot of things still can change.

BTW, for those of you who are interested in the progress of XOOPS 2.6.0, you can follow it in our SourceForge SVN.

And you can subscribe to the SVN mailing list to be notified of every commit to the SVN.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

18
kris_fr
Re: XOOPS 2.6 modules
  • 2011/11/17 23:29

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


@Trabis : -> http://tutos.xoofoo.org/uploads/docs/dev_xoops_260rv8307.chm

ghost module change for 2.6.0-dev -> http://xoofoo.svn.sourceforge.net/viewvc/xoofoo?view=revision&revision=731

in a few hours I put the links to the html versions of the API documentation

19
kris_fr
Re: XOOPS 2.6 modules
  • 2011/11/17 23:50

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31



20
trabis
Re: XOOPS 2.6 modules
  • 2011/11/18 0:00

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thanks Kris :)

Good work on the ghost module.

I've noticed you did not rewrite the index.php yet´

Here is an example of how you could do it:
/**
 * Ghost module
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright    The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license             http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package    Ghost
 * @since        2.6.0
 * @author     kris 
 * @version    $Id$
 **/

include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR "mainfile.php";

$xoops->header(basename(dirname(__FILE__)) . "_index.html");

$xoops->tpl->assign("xoops_sitename"$xoops->getModuleConfig("ghostconf1"));
$xoops->tpl->assign("xoops_pagetitle"$xoops->getModuleConfig("ghostconf2"));
$xoops->theme->addMeta("meta""keywords"$xoops->getModuleConfig("ghostconf3"));
$xoops->theme->addMeta("meta""description"$xoops->getModuleConfig("ghostconf4"));

// Define Stylesheet and JScript
$xoops->theme->addStylesheet("modules/" $xoops->module->getVar("dirname") . "/css/style.css");
$xoops->theme->addScript("media/jquery/jquery.js");
$xoops->theme->addScript("modules/" $xoops->module->getVar("dirname") . "/js/script.js");

$xoops->footer();


Nice and pretty!

Login

Who's Online

436 user(s) are online (318 user(s) are browsing Support Forums)


Members: 0


Guests: 436


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits