xoops forums

timgno

Module Developer
Posted on: 2012/5/5 11:18
timgno
timgno (Show more)
Module Developer
Posts: 1504
Since: 2007/6/21
#151

Re: If we were to start a 2.6 Branch what would you like to see.

Regarding this topic to message #138, which I myself have sent, I must add that you have made ​​changes to the function getHtmlErrors() to insert a parameter variable language getHtmlErrors(_ERROR); in this way:

/**
     * return the errors for this object as html
     *
     * @return string html listing the errors
     * @access public
     */
    
function getHtmlErrors($myerror)
    {
        
$ret '<h4>Errors</h4>';
        if (!empty(
$this->_errors)) {
            foreach (
$this->_errors as $error) {
                
$ret .= $error '<br />';
            }
        } else {
            
$ret .= $myerror.'<br />';
        }
        return 
$ret;
    }


Or in modules files this option code:

if (!$objHandler->insert($obj)) {
$errors $obj->getHtmlErrors();
redirect_header("file.php"3$errors);
}


This function should be improved, as I said in the message #138 to automatically evaluate whether a text field has been written with the same name.

In this sense, if I use a unique key, I get an error message like:
You entered a name that exists in this field, you must define a different.

And then if possible, to check if a variable exists or does not work properly if this occurs the same error

Mazarin

Just can't stay away
Posted on: 2012/5/6 7:33
Mazarin
Mazarin (Show more)
Just can't stay away
Posts: 533
Since: 2008/12/10
#152

Re: If we were to start a 2.6 Branch what would you like to see.

I would like to see an improved "Email users" function, where you could see and verify which users are included in your criterion BEFORE you send the e-mail, rather than after. Being able to select multiple users individually directly, rather than through criterion would also be nice.

Not huge issues, but still...

irmtfan

Module Developer
Posted on: 2012/5/19 6:57
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#153

Re: If we were to start a 2.6 Branch what would you like to see.

The first important thing for me is to see a real localization environment in the Xoops core.
You can find some of my opinions in this very old topic in sf.net forums:
http://sourceforge.net/projects/xoops ... orum/347994/topic/1603580

i can sum up them here as below:
1- The locale.php:
1-1- formatTimestamp function: for output date is implemented long time ago. already in xoopslocal class
1-2- strtotime function: for input date. This php function is "Hardcoded" totally in xoops core and xoops modules and still is not implemented. Therefore local date can not be input in the fields. eg: xoopspoll module.

I mean developers should use something like this:
XoopsLocal::strtotime($_item['pubdate'])

1-3- substr function. already done in xoopslocal class. no instruction for using it.
1-4- utf8_encode, convert_encoding functions. already in xoopslocal class
1-5- trim function. i dont know how to use this.
1-6- number_format and money_format finctions. module developers should use them. already are in xoopslocal class. number_format would be a very useful function for languages that have non latin numbers now all developers just hardcoded their numbers.

2- The locale.js
It can be used for implementing local calendars like hegira calendar. currently xoops use include/calendar.js and it is totally hardcoded in core and modules

3- The locale.css
xoops.css should be removed and the main css would be locale.css. we can used it for RTL languages, ...

these localization can be done easily in my point of view if developers do not use hardcoded php functions but use xoops sanitizers and xoopslocal functions.

4- choose one pdf generator php class and Implement it in core. IMO the FPDF is the best.

timgno

Module Developer
Posted on: 2012/5/24 18:13
timgno
timgno (Show more)
Module Developer
Posts: 1504
Since: 2007/6/21
#154

Re: If we were to start a 2.6 Branch what would you like to see.

In order to use SyntaxHighlighter instead of the simple code in the editor and jQuery TextExt Plugin in text forms

syrian_arab

Just popping in
Posted on: 2012/5/24 21:32
syrian_arab
syrian_arab (Show more)
Just popping in
Posts: 35
Since: 2011/2/11
#155

Re: If we were to start a 2.6 Branch what would you like to see.

Do you meets my order ?

https://xoops.org/modules/newbb/viewto ... id=343787#forumpost343787

timgno

Module Developer
Posted on: 2014/4/16 9:50
timgno
timgno (Show more)
Module Developer
Posts: 1504
Since: 2007/6/21
#156

Re: If we were to start a 2.6 Branch what would you like to see.

Idea