1
vietnam
SOS new lexikon 1.0 (old wordbook)
  • 2008/7/8 0:43

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


https://xoops.org.cn/modules/newbb/dl_attachment.php?attachid=1215445678&post_id=56263

but

PHP error?
Notice [PHP]: Undefined variable: lexikonConfig in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\xoops_version.php line 77
Warning [Xoops]: Smarty error: unable to read resource: "db:lx_header.html" in file c:\program files\easyphp1-8\www\xoops224\class\smarty\Smarty.class.php line 1084

2
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/8 2:03

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


error
\modules\lexikon\index.php line 283

3
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/8 2:05

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


/include/functions.php OK ??????
SOS
function lx_alphaArray ()
    {
    global 
$xoopsUser$xoopsDB$xoopsModule;
    
$alphabet = array ("0""1""2""3""4""5""6",
"7""8""9""A""B""C""D""E""F""G""H""I",
"J""K""L""M""N""O""P""Q""R""S""T""U",
"V""W""X""Y""Z");
    
$alpha = array();
    
$num count($alphabet) - 1;
    for (
$a 0$a <= $num$a++ )
        {
        
$letterlinks = array();
        
$initial $alphabet[$a];
        
$sql $xoopsDB -> query "SELECT * FROM " $xoopsDB ->
prefix "lxentries") . " WHERE init = '$initial' " );
        
$howmany $xoopsDB -> getRowsNum$sql );
        
$letterlinks['total'] = $howmany;
        
$letterlinks['id'] = $alphabet[$a];
        
$letterlinks['linktext'] = $alphabet[$a];

        
$alpha['initial'][] = $letterlinks;
        }
    return 
$alpha;
    }

4
Mamba
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/9 7:06

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Notice [PHP]: Undefined variable: lexikonConfig in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\xoops_version.php line 77

on line 61 in lexikon/xoops_version.php add $lexikonConfig:

Quote:
global $xoopsUser, $xoopsDB, $xoopsModuleConfig, $lexikonConfig;

Also, in file: lexikon/admin/menu.php add $xoopsDB on line 9:

Quote:
global $xoopsModule, $xoopsDB;

Other than that, it runs fine on my XOOPS 2.0.18.1 and PHP 5.2.6
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/9 9:04

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


on line 66 in xoops_version.php add $lexikonConfig:
global $xoopsUser, $xoopsDB, $xoopsModuleConfig, $lexikonConfig;

lexikon/xoops_version.php OK
Also, in file: /admin/menu.php add on line 9 $xoopsDB:
global $xoopsModule, $xoopsDB;

lexikon/admin/menu.php ?????????
Finds this

6
Mamba
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/9 9:26

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


You should have menu.php file in your lexikon/admin subdirectory.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/9 10:20

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


OK. thanks.
-------------------------

Please help me
I would like to include non English alphabet like
"A", "?", "Â", "B", "C", "D", "?", "E", "Ê", "G", "H", "I", "K", "L", "M", "N", "O", "Ô", "?", "P", "Q", "R", "S", "T", "U", "?", "V", "X", "Y"


8
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/9 15:43

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


hhttps://xoops.org.cn/modules/newbb/dl_attachment.php?attachid=1215618028&post_id=56291

error
otice [PHP]: Undefined index: definition in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\letter.php line 219
Notice [PHP]: Undefined variable: metadef in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\letter.php line 225

sos

9
Mamba
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/10 1:55

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I looked quickly into it, but it will require somebody who has experience in dealing with international characters.

1) I've changed the function as posted here, so at least I got the letters now visible

2) However, Lexikon still didn't show properly the words starting with a particular Vietnamese letter. I checked and it seems like Lexikon doesn't extract properly the initials of each word and writes them into the database (line 114 in submit.php):

Quote:
$init = substr($term, 0, 1);

In my case Lexikon was writing into the database "#" as initial for each words starting with Vietnamese character, so when Lexikon was reading the words back from the database, it grouped them automatically under "Other"

3) I then manually changed the initials in the database, so now Lexikon was reading them, but it was putting them in multiple categories. For example, the word Âcuon was counted under "A" and under "Â"

Unfortunately, I don't have the time and skills to solve it. But it seems to me that the problems are:

1) To properly write the initial of the word starting with Vietnamese characters into the database

2) When reading the words from the database, Lexikon has to place them into the right character group, without any duplications.

Sorry, I couldn't be of more help, but hopefully some experts in internationalization will jump in...
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

10
vietnam
Re: SOS new lexikon 1.0 (old wordbook)
  • 2008/7/10 2:42

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


Extremely thank the help.
Please help
otice [PHP]: Undefined index: definition in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\letter.php line 219
Notice [PHP]: Undefined variable: metadef in file c:\program files\easyphp1-8\www\xoops224\modules\lexikon\letter.php line 225

Login

Who's Online

471 user(s) are online (336 user(s) are browsing Support Forums)


Members: 0


Guests: 471


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