Glossary

Started by slinouille, December 24, 2008, 10:33:47 AM

Previous topic - Next topic

Özgür

#80
@slinouille,

My problem is language. If i add a turkish description in keyword... etc = "Albüm" Message line to be appear "Albüm" But in glossary tooltip "Albüm".

Any idea for this ?
So Long

slinouille

@Özgür´: please send me a capture screen

@PerryM:
- concerning the pencil, can you screen capture it and post it ?
- concerning the font size, please edit glossary.jquery.tooltip.css file
- concerning SImplePortal, it's normal because it's not integrated to ... I'll do an update to integrate it  ;)
- concerning suggestion, I can add an option to that
=> thank you for ideas  :)

SliN
Visit VAG-Technique.fr
Take a look to my mods

Özgür

So Long

ianus

Greetings!

First thing I have to mention is, that your mod works great. I like the idea and the way this mod is working seems to offer a easy to handle usability.
I appreciate your work and so, please understand all following as a polite question.


Two things.
a.)It would be nice if we could have more than one Glossary.
b.)It would be nice if we could have an option to show the "Glossary-word" information inside a post or not.

This could be helpful for a wide mod-audience, but I like to give a very egocentric example.

I run a board which offers some basic information about games. I'm dealing with several singleplayer games which comes with a small amount of items. For them I write down some lists of things a player can find and use, like armory, spells ore weapons.
(Example: http://www.firopolis.de/forum/index.php/topic,2394.0.html)

Now I am searching for an option which allows me to embed a single name of an item inside a post. Some thing like the WoW Itemstats
(Demo of WoW mod: http://www.darkcloud14.de/forum/first_test-t3.0.html)
(My testboard with your Glossary:
http://resmedia.info/smf2/index.php?action=glossary
http://resmedia.info/smf2/index.php?topic=10.0)

Your mod seems to have the potential to make something like this possible for my own item lists.
a.)For that I would need a Glossary for each game, because the word "sword" (for example) is used in nearly every game.
b.)For that I need an option to disable the "sword" information, for the case that somebody want to talk about a sword in general without referring to "the sword" mentioned in the Glossary.
Both can be done with a bb-code tag maybe. Something like [glossary1]Word[/glossary].

Maybe you want to grab the idea, but as mentioned, only a polite question and an offensive request.


Btw.
bb-code is working well in the Glossary, but not in threads.


PfalzNacht

#84
Hi!

I installed this very good mod, and it works just fine.

But i have one problem:

in the glossary.template everything is ok, but in the tooltip all german vowels are broken, there are some things like in the Screen from Özgür. All vowels like ä, ü, ö aren't show right.

Is this e html_encoding problem? My Forum is utf-8, and all other things works right.

What can i do to repair this in the tooltip?

EDIT:

oh, and i forgot to say, that the "Z" is missing!  ;)

slinouille

Hello,
Thank you for your comments and suggestions.

Concerning the encoding problems, I'm doing some tests but I've not found any solution yet even if I'm quite sure it's due to the utf-8 encoding of the database. Must exist a solution ... I'll found it  ;)

@ianus : I'm working on some improvments of the glossary, and will include some of your suggestions. NEvertheless concerning "several" glossaries, I've already starting working on adding "categories" to the words. So I think that using categories combined to new option "show_in_message" and bbc_glossary code (in progress also), you'll be able to do what you want.
Visit VAG-Technique.fr
Take a look to my mods

slinouille

@Özgür´ and The Crusader:
I've found perhaps a solution. I thaught it was an encoding problem but it seems to bug a code problem (my fault in other terms)
in file Subs.php, found :
title=\"".htmlentities(addslashes($definition),ENT_QUOTES)."\">$1</a>'", $message);

replace by
title=\"".addslashes($definition)."\">$1</a>'", $message);

Tell me if it's okay after modification ::)
Visit VAG-Technique.fr
Take a look to my mods

PfalzNacht

#87
My Database runs with utf8_general_ci, and the table smf_glossary is utf8_general_ci, too.

I think this is only a javascript problem with the tooltip, but i'm still haven't found the problem.

I converted the whole .js files into utf-8 without BOM, but it's still the same.

I hope you will find the answer.  ;)

EDIT:

you are my man!! It works like a charm!!  ;)

Özgür

#88
@slinouille
Problem fixed. But now smileys not showing.
   
All smiley in this way seems

rockayseri.net/rk/Smileys/default/coffee.gif" alt=":coffee:" title="" border="0" class="smiley" />
So Long

slinouille

Quote from: Özgür´ on February 02, 2009, 08:23:32 AM
@slinouille
Problem fixed. But now smileys not showing.
   
All smiley in this way seems

rockayseri.net/rk/Smileys/default/coffee.gif" alt=":coffee:" title="" border="0" class="smiley" />
Don't you have a word in glossary that can be found in the url of your forum?
Example : you have defined word "test" in glossary and your forum has url : http://localhost/test/smf/...
Visit VAG-Technique.fr
Take a look to my mods

Özgür

#90
I don't understand :S


Edit : I Understand this now.
I make a word "rockayseri" and enter desc. but my site rockayseri.net.
Now i delete this word and problem fixed. =)
So Long

slinouille

That's it !

So we've found the cause of this problem ... but really don't understand why  :'(

Something with the regexp but as I'm not a regexp expert, I don't found ... this will be put as a 'limitation' in my readme file until I found a solution.
Visit VAG-Technique.fr
Take a look to my mods

Bancherd

Quote from: slinouille on February 02, 2009, 07:54:23 AM
@Özgür´ and The Crusader:
I've found perhaps a solution. I thaught it was an encoding problem but it seems to bug a code problem (my fault in other terms)
in file Subs.php, found :
title="".htmlentities(addslashes($definition),ENT_QUOTES)."">$1</a>'", $message);


replace by
title="".addslashes($definition)."">$1</a>'", $message);

Tell me if it's okay after modification ::)

I installed this mod along with the above fix on a fresh smf2 RC1 using UTF8-general-ci and Thai characters....it worked beautifully for English words with Thai-language description! :)

Now, I wish it could have glossary of Thai-words instead of just English words.  :)

PfalzNacht

Quote from: The Crusader on February 02, 2009, 06:45:01 AM
oh, and i forgot to say, that the "Z" is missing!  ;)

There's always just this littile Bug. ;-)

Open the Glossary.php and search:
for ($i=ord("A");$i<ord("Z");$i++)

and replace it with
for ($i=ord("A");$i<=ord("Z");$i++)

That's all! :-)

Kindred

Alright, I am really confused now....

I installaed the glossary, (which successfully installed on 2.0RC1) but I was getting a javascript error when attempting to do anything with it, which prevented me from added any terms.
Based on the conversations, I removed the gallery, downloaded the new one and attempted to re-install.

now I am getting the "table not found" error, even though the table *IS* present in my database, so I can not seem to re-install at all.

Based on my experience, it looks like this may be incompatible with EZPortal or SMF Media Gallery
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[unplugged]

I have both the Glossary mod and SMF Media Gallery mod installed and working together nicely in SMF2b4, and I would imagine they should coexist in SMF2RC1.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Kindred

#96
yup... it appears to be EZPortal. Looking through EZPortal, I notice that it also uses the jquery scripts

Of course, none of this helps if the darned thing won't re-install because of that screwy database error

edit - I went in and removed the install call for the database edits (since they were already done)
So, I am now back with the gallery installed and not working due to a javascript error
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

slinouille

#97
@The Crusader : thank you for the bug correction  O:)

@ Kindred : I'm also using the SMF Media Gallery and no problem. I'll do an installation of EZPortal and try to reproduce the javascript error you have

Edit : I've install EZPortal ... no error. i've added some 'by default' blocks and no error  :-\
Can you send me the error you have? Do you use specific EZportal blocks or modules?
Normally, even if this mod uses jQUery, Glossary should not interfere ... normaly
Visit VAG-Technique.fr
Take a look to my mods

Kindred

interesting...

using firefox, webdeveloper, I get a series of CSS errors and one JS error

Error: JQ is not defined
Source File: http://SITE/Themes/default/scripts/glossary.jquery.thickbox.modified.js
Line: 20


(CSS problems seem related to the use of this sort of these three lines in two different places within the css each.

margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');

height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
as well as

filter:alpha(opacity=0);


I suspect it's all related.....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

slinouille

#99
Very strange ... I can't reproduce this js error with webdevelopper for FF
JQ can't be "not defined" because JQ is defined in Load.php file when page is loaded before that glossary.jquery.thickbox.modified.js is loaded  ::)

On which page do you have this error? on "action=glossary" or on all pages of your forum ?
Do you use any specific Modules for EZPortal ?

Does this error block the usage of Glossary?

Nevertheless concerning the css errors, I confirm .. I'll try correcting them for next release.

EDIT : those CSS errors are due to some IE6 hacks ... try to suppress them perhaps
Visit VAG-Technique.fr
Take a look to my mods

Advertisement: