Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter olivergesch

    (@olivergesch)

    Ok great, then I will look forward to the next release. So far I am very happy with the pro version. It has exactly the amount of customization that I need. Other plugins were very overloaded with settings that just make them extremely cumbersome to configure.

    So I will close this thread, thanks for your help!

    Thread Starter olivergesch

    (@olivergesch)

    Well, I don’t quite understand the full intention of the code piece I posted above however it is the source of my issue. If I comment out the line with “internal” type it works as intended, including the setting for “remove more link”:

    if (
    	empty( $this->parameters[ 'url' ] )
    	&& empty( $this->parameters[ 'type' ] )
    	//|| 'internal' === $this->parameters[ 'type' ] // not required?
    	|| 'external' === $this->parameters[ 'type' ]
    	&& empty( $this->parameters[ 'url' ] )
    	) {
    	$this->parameters[ 'noreadmore' ] = true;
    }

    Is there a situation where you don’t want a “more” link to be visible at all when the internal type is set? I can’t think of any situation because the “more link” will either redirect to any internal page or to the glossary item if no internal page is selected. The plugin setting for removing the “more link” also still has an effect.

    I am fine with my local change for now but in my opinion, this behavior is a bug and should be corrected. There is no way to make the “more” link visible when the glossary item is set to type “internal”. Feel free to test that out in your instance.

    Do you want me to post this issue again in the commercial ticket system (https://support.codeat.co/) of the plugin? I have access to that now.

    • This reply was modified 2 years, 4 months ago by olivergesch.
    Thread Starter olivergesch

    (@olivergesch)

    Meanwhile, I purchased the plugin and I think I found the issue in the code. This statement seems to be the issue:

    if (
    	empty( $this->parameters[ 'url' ] )
    	&& empty( $this->parameters[ 'type' ] )
    	|| 'internal' === $this->parameters[ 'type' ]
    	|| 'external' === $this->parameters[ 'type' ]
    	&& empty( $this->parameters[ 'url' ] )
    	) {
    	$this->parameters[ 'noreadmore' ] = true;
    }

    Some brackets would help with the resolution logic but I think this means (left to right resolution) that if the type is “internal” then “noreadmore” is always true and the “more” link will never show up. The only way to get a more link with this statement (to make it false) is to set the glossary item to “external” AND put in an external URL. Then the more link is visible.

    • This reply was modified 2 years, 4 months ago by olivergesch.
    Thread Starter olivergesch

    (@olivergesch)

    1. Ok I don’t think it’s a DB issue. I can see “more_link”;s:2:”on”; showing up and vanishing in the table based on my setting of the checkbox in the glossary settings. So the button seems to work for me (for whatever reason without a license).

    Thread Starter olivergesch

    (@olivergesch)

    1.
    I don’t think that is the problem. I am only trying to use internal links. I pretty much tried every combination I could think of already. When creating a new glossary entry “external” is pre-selected but the external text field is empty. I tried “internal” and kept the internal text field empty and I also tried setting the internal text field to the current term or to any other page (for testing). Doesn’t make a difference. There is never a “more” link in the popup.
    I checked WP debug, only shows one message:
    [26-Oct-2022 18:29:22 UTC] PHP Notice: Undefined index: rel in /home/wp/disk/wordpress/wp-content/plugins/glossary-by-codeat/frontend/Core/Type/LinkTooltip.php on line 49

    Could it be a false setting in the plugin configuration, invisible on the settings page, just false configured in the DB? Why I think that: for some reason, I can change the “remove more link from plugin” setting although I don’t have a pro license. Is there a way to reset the DB entries for this plugin after I delete the plugin? I already tried re-installing it but I assume it keeps the DB entries between installs?

    2. Yes, then there are no glossary links at all on the homepage. I hoped to get them just in the paragraph sections but this would not be a showstopper. Issue number 1 unfortunately is a showstopper for me.

    Thread Starter olivergesch

    (@olivergesch)

    Thank you for the quick reply! I read the page you linked and if I understand it correctly, the “more” link should show be visible based on the Glossary settings, nothing else. My settings are shown here and I deactivated the “remove more link” setting:
    https://www.dropbox.com/s/1g8htrb380rt6aq/settings.png?dl=0
    Any idea why it still does not show up?

    Concerning the problem with the blog post title showing glossary links, here is an example with the term “group”:
    https://reviving.work/ (scroll a bit down)
    I assume this is due to WP Bakery plugin and another type of blog post plugin might work better?

    Thread Starter olivergesch

    (@olivergesch)

    I also just noticed that the titles of blog posts are also being linked to glossary terms. Is there a way to prevent at least H1 blog post titles from being changed by the plugin? I don’t think the shortcode of the pro version to prevent a glossary item from being added will work in a blog post title.

Viewing 7 replies - 1 through 7 (of 7 total)