Plugin “Explanatory Dictionary” – what new features do you want to see?
-
Hello
I am the developer of the WordPress plugin “Explanatory Dictionary” and I’d like to know what do you want to see in new versions of the plugin.
Thank you
-
Oh my god!
Don’t mind my question, the solution was as simple as possible ??
For all those who also use qTranslate and had the same question, there’s the answer: simply put the language shortcodes for the Alphabets at Explanatory Dictionary’s options page. In my case, I have the following at the options page:
[:en]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 [:hy]? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ? ? ?? ? ?
Now I have the English alphabet listed on my main Glossary page for website’s English version, and Armenian one – if users are viewing my site in Armenian.
Once again, thank you ??
bianca, I tested the plugin again and when I clicked on one of the alphabet letters it opened in the same window. And what about to show the glossary without any alphabet, I will include this option in the new version.
Dharmist, good posts!!!
Thank you very much.
Hi s_ruben!
Great plugin. I love it. There are two things that would make it perfect for me.
1) I’m with @bianca, an option to view all glossary entries would be amazing. This would be very useful if your glossary only has 20 words in it.
2) Links from the Glossary Term (on the site’s glossary page) to the pages/posts in which that term appears. There are probably fancy ways to do it. But an easy solution would be to use the WordPress search feature. So for the glossary term “Gross Domestic Product”, it would link to https://www.website.com/?s=gross+domestic+product, which will then show all of the posts/pages where the term appears. And to make it even better, if there is only one search result, then the link could go directly to that page, and maybe even highlight the glossary term so the user can find it. (Whoa! That got intense real fast.)
Again, great plugin, thank you so much! If you could post on this thread if you release a new version, I’d be even more appreciative. ??
Best,
Alaniftomkins, an option to view all glossary entries will be in the new version. What about the search link, I think who needs it, they can put the link in the page where they’ve put [explanatory dictionary] for showing the glossary.
Ruben, thanks for this plugin, it seems to be the best one I’ve found for glossary-type functionality.
Three suggestions. Firstly, the default page for the plugin should be the Manage page, not the Options. Once the options are set, you don’t really want to deal with them much – the best page to go to straight away is the one for adding new words.
And it’s problem when you edit an explanation and paste in text from a web page (and I presume Word?). I think using “contenteditable” means it’s pulling in HTML behind the scenes – and this really screws up the tooltip output! Much better if it could be a plain text form field.
Also, it’d be good to include the option for a different style of outputting all the words. I’ve created a template for my theme that does this. It only outputs the letters at the top that have words defined, and it outputs everything on that page instead of jumping to another page. Obviously most suited to smaller sites:
<?php /* Template name: Glossary */ ?> <?php get_header(); ?> <?php // Get glossary global $wpdb; $slt_glossary = $wpdb->get_results(" SELECT id, word, explanation FROM " . $wpdb->prefix . "explanatory_dictionary ORDER BY word ASC "); ?> <div id="content"> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); ?> <h1><?php the_title(); ?></h1> <?php } } ?> <ul class="glossary-letters"> <?php // Output letters $slt_currentLetter = ""; foreach ( $slt_glossary as $slt_glossaryTerm ) { $slt_firstLetter = strtoupper( substr( $slt_glossaryTerm->word, 0, 1 ) ); if ( $slt_firstLetter != $slt_currentLetter ) { echo '<li><a href="#letter-' . $slt_firstLetter . '">' . $slt_firstLetter . '</a></li>'; $slt_currentLetter = $slt_firstLetter; } } ?> </ul> <dl class="glossary"> <?php // Output terms $slt_currentLetter = ""; foreach ( $slt_glossary as $slt_glossaryTerm ) { $slt_firstLetter = strtoupper( substr( $slt_glossaryTerm->word, 0, 1 ) ); echo '<dt'; if ( $slt_firstLetter != $slt_currentLetter ) { echo ' id="letter-' . $slt_firstLetter . '"'; $slt_currentLetter = $slt_firstLetter; } echo '>' . $slt_glossaryTerm->word . '</dt>'; echo '<dd>' . $slt_glossaryTerm->explanation . '</dd>'; } ?> </dl> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
@ruben – thanks, and i look forward to the next version!
@gryus – I modified and used your code. Thanks so much.
I also changed it a little to add hyperlinks. Now each glossary word on the glossary page is a link. When you click the link, it searches the website for all pages containing that word. It’s not a direct link to the word’s location, but it’s a quick fix. This is the section of code, modified from your code above:
<dl class="glossary"> <?php // Output terms $slt_currentLetter = ""; foreach ( $slt_glossary as $slt_glossaryTerm ) { $slt_firstLetter = strtoupper( substr( $slt_glossaryTerm->word, 0, 1 ) ); echo '<dt'; if ( $slt_firstLetter != $slt_currentLetter ) { echo ' id="letter-' . $slt_firstLetter . '"'; $slt_currentLetter = $slt_firstLetter; } echo '><a href="/?s=' . $slt_glossaryTerm->word . '">' . $slt_glossaryTerm->word . '</a></dt>'; echo '<dd>' . $slt_glossaryTerm->explanation . '</dd>'; } ?> </dl>
?? Alan
Fist of all, thanks for the great plugin,
My suggestions:
– Optional display of an icon (question-mark perhaps) next to the term, instead of highlighting it.
– When presenting the dictionary, it would be nice to have a link “All terms” before the alphabet starts (as it already mentioned).
– Similar to the above: you should also have an entry for the display of all entries starting with a number.
– View highlighted terms only on article’s fullstories and not in the indexes (eg. homepage etc).gyrus and gsarig, good proposals, thank you. I will definitely take into consideration your proposals while doing new versions.
Thanks for listening! ??
Two more from me:
– I’ve just spotted an issue that I guess it needs consideration too: If a term is called e.g. “net”, then it will be highlighted on the word “magnet”. This should not be the case, and it should highlight only the actual word.
– Also, an extra field “synonyms” would be nice, displaying the tooltip on different variations of the term.
Ruben, hello
I have a problem
I use two languages on the site. Apply plug qTranslate. When working with default language all is well. But the links do not work contents with a second language.
when you click on the link to the page again to get credit default language. glossary
One more question – will it possible to create different vocabularies? It would be very useful for multilanguage sitesgsarig, thank you again for new suggestions. But I want to inform you that if you uncheck the checkbox “Unicode”, the word “net” will not be highlighted on the word “magnet”.
shaggyanton, now it is impossible to create different vocabularies, but I will try to include this feature in the one of the new versions of the plugin.
Thank you
Thank you for the tip – this was very helpful!
Would unchecking the “unicode” option affect words written in non-latin alphabet (e.g. Greek in my case)?
gsarig,
The plugin doesn’t work correctly with unicode text if the checkbox “Unicode” isn’t checked. But, unfortunately, if the checkbox “Unicode” is checked the plugin highlights the word “net” on the word “magnet”.
Hi Ruben,
the plugin is very cool, thank you!I have a problem.
I don’t understand how to create a page with the glossary of a single letter and how to create an index of these pages with all letters linked to relative page.
Is it possible?Thank you
Hello GoodChoiceStudio
Maybe I didn’t understand correctly what you want, but have you try to create a page and add [explanatory dictionary] in it?
Thank you.
- The topic ‘Plugin “Explanatory Dictionary” – what new features do you want to see?’ is closed to new replies.