151
timgno
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2012/5/5 11:18

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


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

152
Mazarin
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2012/5/6 7:33

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


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...

153
irmtfan
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2012/5/19 6:57

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


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.

154
timgno
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2012/5/24 18:13

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


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

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


156
timgno
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2014/4/16 9:50

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21



Login

Who's Online

48 user(s) are online (22 user(s) are browsing Support Forums)


Members: 0


Guests: 48


more...

Donat-O-Meter

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

Latest GitHub Commits