1
tom
Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/3/30 16:40

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


I posted this bugs at the at the dev.xoops site, but thus far the developer hasn't responded, he may well be working on them or perhaps busy, so I'm wondering if any one is using the new Lexikon module and perhaps has a fix.

I had a look through the code, and couldn't find the problem, but then again I'm no expert.

The module has an auto link feature which picks up on a keyword used as a definition elsewhere in the module, it works fine until you get to around the 120th listing then the links no longer work and only show a bit of html code:

This refers to the auto linking of other listings

When I got to the 119th listing it was working fine
.

But the 120th listing is messed up rather than making
the word click
-able it simple displays the html code:

websitename.com/modules/lexikon/entry.php?entryID=113'>

Thats the only part of the html code that shows, so I
assume for some reason the script simply doesn'
t add
the correct html code


I can live with the other few bugs I reported, but would appreciate some help in tracking and fixing this one.

If someone wishes to check out the other bugs:

http://dev.xoops.org/modules/xfmod/tracker/?group_id=1371&atid=1634

The new module is on the Dev site @:

http://dev.xoops.org/modules/xfmod/project/?lexikon

Latest XOOPS version 2.0.16.

Thanks for any help.

2
zyspec
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/3/30 18:01

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


tom,

Which version are you using 0.5 or 1.0RC1?

EDIT: And is there a place where you have this module loaded so we can see the problem?

3
tom
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/3/30 18:19

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Ohh sorry missed that detail, lol

It's the latest release 1.0:

Quote:
Lexikon 1.0 now available for download at dev.xoops.org.

Features:
- Subcategory-management
- RSS Syndication
- WYSIWYG Formoptions
- two new admin-links in mainmenu
- new Option: request option only when permission is granted
- options to hide date/hits on the startpage
- block social bookmarking
- generation Meta-Keywords and -description
- compliant to Xoopsinfo-Module
- autocompletion of search terms (alpha)
- optional security image on submissions
- and more ...

Included importscripts and Plugins (sitemap, waiting, What's New, RSSFit).


I tend not to disclose the addresses of my sites, to try and avoid possible hackers being attracted. I do however have an XOOPS demo site on it's own domain, so I'll get it loaded on there with some test listings, and then post a demo link here.

Cheers.

4
zyspec
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/3/30 20:02

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I understand not wanting to "post" your URL. Here's what I found just looking at the code, without having actually loaded it.

There are several places where functions are expecting an array with a key labelled 'id'. The author inadvertently, in multiple locations stored the entryid into an array with 'entryid' as the key instead of 'id'. This causes the function to use 'bad' data..

Have you turned on PHP debug to see what it reports? I'd be interested to know if it's throwing any errors...

Here's one example;

./search.php, line 144:
$eachresult['entryID'] = $entryID;

but should be:
$eachresult['id'] = $entryID;


Then you need to uncomment line 156 and comment line 157 so it looks like this:
$microlinks lx_serviceLinks $eachresult ); // erroneous
// $microlinks = lx_serviceLinks ( $eachresult['entryID'] );// erroneous as well but better ;-)


But if you change it here then you also have to change ./templates/lx_search.html line 31 - there's a link in the middle of the line that looks like:
...<a href="<{$xoops_url}>/modules/<{$eachresult.dir}>/entry.php?entryID=<{$eachresult.entryID}>"><{$eachresult.term}>a>...

but should look like:
...<a href="<{$xoops_url}>/modules/<{$eachresult.dir}>/entry.php?entryID=<{$eachresult.id}>"><{$eachresult.term}>a>...


I also found a similar problem in ./index.php... I didn't "comb through" all the code but you might try these changes to see if it's "better"...

5
tom
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/3/30 21:13

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Thats excellent thanks, I'll change the code in a bit and then test it, once done I'll get back to you.

Once again thanks.

6
tom
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/4/3 16:39

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


The ./search.php, line 144, suggestion doesn't work it leaves the results with no ID at all.

Pretty much the same for the rest of the changes too.

7
zyspec
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/4/4 14:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Hmmmm... Well you can tell from the original author's comments that there's something 'strange' going on (by the "erroneous but better" comments)...

If I get time over the next week or so I'll try and load the module on a test site - it would help if you could pm me and send me an export of the data you have in the tables so I can import the data you have... Otherwise it'll take me some time to enter enough data for me to actually see the problem...

8
tom
Re: Any one using Lexikon module - bugs - glossaries, dictionaries, or encyclopedias, wordbook
  • 2007/4/7 2:22

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Thanks for you help,

As I mentioned I submited the bugs to dev.xoops, the dev has now made a reply stating these are fixed in RC, I then posted to the dev forums, asking an expected release date, but not heard anything else just yet.

If there isn't a release soon, I'll mail you over a dump of the definitions for you to import and play with.

Thanks again for your help.

Login

Who's Online

370 user(s) are online (334 user(s) are browsing Support Forums)


Members: 0


Guests: 370


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