[ALPHA] ext. Lexicon MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

[ALPHA] ext. Lexicon MOD

Post by lugsciath »

Modification Name: ext. Lexion MOD
(taken over from http://www.phpbb.com/community/viewtopi ... 6&start=60 )

Author: Lugsciath

Modification Description:Give you the ability to have a table with words and descriptions, who can be displayed as a lexicon and also can be used to automatic insert acronyms with Tooltips to all posts. This mod is my first mod and it is alpha. I made it public, why a lot of people ask for a acronym mod. I had merged 2 mods for my phpBB2 (lexicon hack from experienz.net and Acronym Mod from CodeMonkeyX) and used this as submittal for the new one.
If you dont need a lexicon, only use the acronym part. For this you must not edit the overall_header.html, common.php and the functions.php und you only need the functions_acronym.php and some styling informations for your acronyms.
The lexicon can have entrys in several languages.
Each entry have this columns:
acronym - The string searched in the text. Add space before/after the word if it should only find entire words. If there are no space, it also was found in composite words or plural.
Can stay empty, then the term instead would be used.
term - the complete word used in the lexicon
description - used as title for the acronym and in the lexicon
long_desc - additional description for the lexicon
picture - additional picture for the longdescription!
link - additional link/url for further information/websources
size - picturesize in percent (recommend 15%)

Modification Version: 0.3.0 (tested with phpBB 3.08)

Requirements: enabled Javascript for ext. functions

Features:
  • old Features
  • automatic link to the found terms in postings,
  • short description of the found term by mouseover
  • popup with long description if you click on the term
  • acp control panel for some adjustation and terms / acronyms
  • picture over the long description
  • link on the bottom of logdescription for durther information
  • free percentual size (adjustable in acp)
  • bbcode, images and smilies in long_desc (incl. media), but smilies doesnt work in popup.

    new Features
  • ? button replaced through linking the term in the popup window, leading to the complete lexicon.

    known bugs and Bugfixes
  • Bugfix for zero in size (empty img field by editing and adding) *fixed*
  • empty fields appear *fixed*
  • cosmetics (align to middle) *fixed*
  • smilies doesnt shown in popup *open and known, but no solution yet*
Screenshots:None yet - see Demo

Demo URL:http://www.clochsliaph.de/neuesforum/vi ... 341#p42341
Demo Username: testuser
Demo Password: testuser

Modification Download (old version 0.1.5): http://www.kaninchenwissen.de/lexicon_0.1.5.zip
Modification Download (new version 0.3.1): http://www.clochsliaph.de/neuesforum/do ... hp?id=1323


This mod is taken over with credits to reh , formally take over the old code from mods for phpBB2 (lexique and Acronym Mod from CodeMonkeyX) and wrote most new. I write since version 0.1.6 further on this - testings on a very heavy modded (live) board are without any problems, so i´ve decided to taken over. Other modwriters are welcome to develop it with me ;).
Last edited by lugsciath on Mon Feb 28, 2011 10:07 pm, edited 10 times in total.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [ALPHA] ext. Lexicon MOD

Post by 4_seven »

good job, lugsciath :)
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [ALPHA] ext. Lexicon MOD

Post by darkonia »

will there be update instructions from Modification Download (old version): http://www.kaninchenwissen.de/lexicon_0.1.5.zip?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

There are only a few changes in the template and sql query, i will add a updateinstruction as well as a instruction for using the mod without java / ajax functions. Most changes are in used fields and files. Just wait and see ;), i'm working on it.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

I´ve added the package now for download in

http://www.clochsliaph.de/neuesforum/do ... hp?id=1319

Please DONT use it first in a live system (i don't know really if i forget something). If you want to use it be aware to backup your changed files / system for recovering if something went wrong.

The full function is only giving by using ajax (follow the install_ajax.xml) and javascript, if you wont use it i´ve added in the contrib/ajax/ folder a little file for linking terms with the lexicon (you could use links and pictures then only in the lexicon)

If you like to update this mod from 0.1.5 to 0.2.0 i´ve added a textfile also in contrib/update 0.1.5 to 0.2.0 folder also, there are only replacing old files with new ones and add some code to the stylefiles (css).

If you have suggestions or some bugs, feel free to post them / email me - you could also develop together on this mod, have fun.
tekknodevil
Registered User
Posts: 69
Joined: Mon Feb 08, 2010 6:53 pm
Location: Dresden, Germany

Re: [ALPHA] ext. Lexicon MOD

Post by tekknodevil »

Thx. looks nice, but i get the following SQL Error if i enter a new acronym in acp:

http://content.screencast.com/users/tek ... 5_1726.png

could u help please.

Phpbb-Version: 3.0.8
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

Help is here:

Please enter a value (like "0") in the acp field for the size, if you haven´t a picture. I add this bug to the to do list ;)

I will upload the next download version 0.2.1 containing a simple bugfix for that in the next minutes.

For updating version 0.2.0 to 0.2.1:

Just extract the files and replace them ;) ( or only the old /includes/acp/acp_lexicon.php containing the bug)

Remember: Be aware (also by changes/edits) that the size field must always have a value !
This will be fixed in later versions 0.2.2 ...
tekknodevil
Registered User
Posts: 69
Joined: Mon Feb 08, 2010 6:53 pm
Location: Dresden, Germany

Re: [ALPHA] ext. Lexicon MOD

Post by tekknodevil »

lugsciath wrote:Help is here:

Please enter a value (like "0") in the acp field for the size, if you haven´t a picture. I add this bug to the to do list ;)

I will upload the next download version 0.2.1 containing a simple bugfix for that in the next minutes.

For updating version 0.2.0 to 0.2.1:

Just extract the files and replace them ;) ( or only the old /includes/acp/acp_lexicon.php containing the bug)

Remember: Be aware (also by changes/edits) that the size field must always have a value !
This will be fixed in later versions 0.2.2 ...
Vielen Dank.Habe so lange nach einem solchen MOD gesucht.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

Dont forget Credits to reh for the old version ;) ... she´s wrote the most of code.
Vielen Dank.Habe so lange nach einem solchen MOD gesucht.
means many thanks, i´m searched a long time for such a mod.

I´m pleased that this one is useful :)
Please answer me in english - phpBB´s international language ;)
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

Now i´ve eliminated the "size" bug complete. If there is an empty field or a alphanumeric entry it will be filled with 0 value on adding and/or editing. Update to 0.2.x -> 0.2.2.: You have only replacing /includes/acp/acp_lexicon.php with the new one from 0.2.2 package ;).
tekknodevil
Registered User
Posts: 69
Joined: Mon Feb 08, 2010 6:53 pm
Location: Dresden, Germany

Re: [ALPHA] ext. Lexicon MOD

Post by tekknodevil »

Thanks for the update and thanks to reh for code writing. i´m very happy now.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

version 0.3.0 Released!

long description will have and display bbcodes, magic urls and -if possible- smilies ;), also images could be insert by using img bbcode ... just working on it.

It´s fine to get all work in lexicon, but didn´t get the smilies working in popup (todo list). Bad, but ... who needs smilies in a lexicon ;) ?. Otherwise in Lexicon all works well, smilies included. You could use all bbcodes and additional images through img bbcodes. I wish you a very nice weekend, if there are any problems, i will be there.
tekknodevil
Registered User
Posts: 69
Joined: Mon Feb 08, 2010 6:53 pm
Location: Dresden, Germany

Re: [ALPHA] ext. Lexicon MOD

Post by tekknodevil »

lugsciath wrote:version 0.3.0 Released!

long description will have and display bbcodes, magic urls and -if possible- smilies ;), also images could be insert by using img bbcode ... just working on it.

It´s fine to get all work in lexicon, but didn´t get the smilies working in popup (todo list). Bad, but ... who needs smilies in a lexicon ;) ?. Otherwise in Lexicon all works well, smilies included. You could use all bbcodes and additional images through img bbcodes. I wish you a very nice weekend, if there are any problems, i will be there.
Thank you so much, but one question. In your update instructions you said:
2. Just replace the file(s)

root/includes/acp/acp_lexicon.php -> /includes/acp/acp_lexicon.php
root/mods/lexicon/lexicon.php -> /mods/lexicon/lexicon.php
root/lexicon.php -> /lexicon.php
but there is no folder mods/lexicon.

Greetings from Dresden.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

coming soon:

Version 0.3.1

style cleaning and cosmetic for popup (call for lexikon on the term "button" instead of the "?"), not used link / img place arent shown.

Thanks to Reh for the suggestions ;) and feedback.
lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [ALPHA] ext. Lexicon MOD

Post by lugsciath »

tekknodevil wrote:
2. Just replace the file(s)

root/includes/acp/acp_lexicon.php -> /includes/acp/acp_lexicon.php
root/mods/lexicon/lexicon.php -> /mods/lexicon/lexicon.php
root/lexicon.php -> /lexicon.php
but there is no folder mods/lexicon.

Greetings from Dresden.
Sorry, must be

/contrib/ajax/mods/lexicon/lexicon.php -> /mods/lexicon/lexicon.php

I forgot, thats in the contrib/ajax folder on zip, sorry ;) ... will update that information in the next versionupdate 0.3.2 or higher ;)

Return to “[3.0.x] MODs in Development”