Forum Replies Created

Viewing 15 replies - 1 through 15 (of 43 total)
  • Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello again,

    Please update the plugin to version 2.7.1 to be able to change the letter case for the shortcode result.

    You can now use the case attribute with values:

    • uc – upper case
    • ucf – upper case first letter
    • ucw – upper case words
    • lc – lower case

    For example:

    [wpdts-custom format="l, jS F Y" case="uc"] => TORSDAG D. 11. JUNI 2026
    [wpdts-custom format="l, jS F Y" case="ucf"] => Torsdag d. 11. juni 2026
    [wpdts-custom format="l, jS F Y" case="ucw"] => Torsdag D. 11. Juni 2026
    [wpdts-custom format="l, jS F Y" case="lc"] => torsdag d. 11. juni 2026

    You can also combine other items and attributes in more than one shortcode.

    Please let me know if that worked for you.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    I see. This is an edge case. I will add an attribute for this and will publish a new version ASAP, probably later today. I will write back when the change is ready and you may update.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello @bermannrosenberg,

    The country’s rule for month name in Danish is to be with a lowercase letter, not a capital one. The shortcode is displaying the names based on the DateTime PHP class and the date() function, according to the country’s standard. So lowercase first letter is the correct format.

    Thank you for using our plugin.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello @wv0l,

    You can breathe a sigh of relief. What you are looking at is a false positive – meaning the server scanner flag is triggered by regular, safe code rather than actual malware.

    The Namecheap scanner flagged this because it saw a large block of text starting with data:image/svg+xml;base64,.

    • What it actually is: This is a standard Data URI containing a Base64-encoded SVG (Scalable Vector Graphic) image. Developers often convert small images (like a logo) into a text format (Base64) and embed them directly inside the PHP file (Framework.php). This allows the plugin to load the logo instantly without making an extra network request to fetch an image file.
    • Why the scanner got nervous: Automated server scanners look for patterns. Hackers frequently hide malicious, heavily obfuscated code or backdoors inside long Base64-encoded strings. Because your plugin has a long Base64 string, the scanner’s automated rule (Universal decode regex match) assumed it was a hidden decoder script rather than an image.

    Is it valid?

    Yes, it is entirely valid. The variable name itself tells the story: const LOGO_SIGN_BASE64_ENCODED. It is simply a core file for the plugin storing the brand logo/icon. What do you do now?

    1. Whitelist or Ignore the Flag: Inside your Namecheap hosting panel (usually via Imunify360 or the cPanel Malware Scanner interface), you can safely select this specific file and mark it as Ignore, False Positive, or Whitelist. This prevents the scanner from bugging you about it in the future.
    2. Double-Check Your Updates: While this specific line is perfectly safe, it’s always a great security practice to ensure the rest of your site is secure. Make sure the plugin is updated to its latest version via your WordPress dashboard.
      You don’t need to delete the file, modify the line, or panic – the plugin is just trying to display the logo!
    Thread Starter Ivaylo Tinchev

    (@itinchev)

    Благодаря! Работи перфектно.

    За онези от използващите разширението, които искат да го осъвременяват, но да запазят закръгляне до стотинка, просто поставете този код във functions.php на child темата (не в основната, за да не се изтрие при замяна с нова версия) или в някое PHP snippet разширение, ако ползвате такова:

    function custom_abovewp_bge_convert_eur_to_bgn($price_bgn, $price_eur, $price_bgn_raw) {
    return round($price_bgn_raw, 2);
    }
    add_filter('abovewp_bge_convert_eur_to_bgn', 'custom_abovewp_bge_convert_eur_to_bgn', 10, 3);

    Thread Starter Ivaylo Tinchev

    (@itinchev)

    Можете да направите филтър и да подавате към него важните параметри. Нека да се изчислява както вие сте решили, но би било добре да има опция за закачане на филтърна функция и възможност за ползване на друго изчисление.

    Например:

    public function convert_eur_to_bgn($price_eur) {
    $price_bgn = $price_eur / $this->conversion_rate;
    $price_bgn_filtered = apply_filters('abovewp_be_convert_eur_to_bgn', $price_bgn, $price_eur, $price_bgn);
    return $price_bgn_filtered;
    }

    или нещо подобно.

    public function __construct() {
    ...
    add_filter('abovewp_be_convert_eur_to_bgn', [$this, 'default_convert_eur_to_bgn'], 10, 3);
    }


    public function default_convert_eur_to_bgn($price_bgn_current, $price_bgn, $price_eur) {
    $price_bgn_modified = round($price_bgn, 2);
    return $price_bgn_modified;
    }

    И всеки може да си променя метода на изчисляване/закръгляне по-късно:

    add_filter('abovewp_be_convert_eur_to_bgn', 'custom_convert_eur_to_bgn', 10, 3);

    function custom_convert_eur_to_bgn($price_bgn_current, $price_bgn, $price_eur) {
    /* Calculations go here */
    return $price_bgn_modified:
    }

    Писано от телефона и дописано на компютъра. Може да има грешки. Не съм тествал нищо. Само давам идея.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hi @pavelberg1,
    We are currently using the PHP date() and WordPress date_i18() functions to generate the final date results, based on the formatting characters of the PHP’s built-in DateTime class. It does not support Roman months. However please send us a request by email with your specific case (our email is on the installed plugin admin page) and we will provide a separate function for you to use those. We will include our own extensive date processing function in the future Pro edition but not in the free one.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Please write to [email protected] and describe your exact need and how you plan to use the feature in details, so we may decide if we can provide help.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Thank you for your feedback. We will be working on this issue to find a good solution.

    I am closing this support thread for now.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    I am closing this support thread as resolved. Good luck!

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello,

    A new version of the plugin 2.6.8 was released. You may update.

    There was a possible “vulnerability” when a registered contributor creates post or page content using a [wpdts] shortcode in it and purposely places a malicious JavaScript code in the post_id attribute. Then if the submitted content is overlooked and published by the administrator or the editor, the inserted JavaScript may run causing an XSS or other issue.

    There is no security risk for general blogs or websites managed by their owners where no contributors are publishing or where the administrators and editors watch the content carefully before publishing it.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello @caordawebsol,

    Thank you for writing.

    We still have no detailed information and we are trying to find out what exactly is the issue. Once we know more, we will fix it.

    Thank you for your patience and understanding.

    PS: Generally we do not process any data input from the webpages with our shortcodes in any way, so we don’t know how this vulnerability can be exploited if there is such.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello @nicos22,

    The plugin is currently using the built-in function of the PHP DateTime class for adding a month. If there is an error it is in the way this class calculates the date. This problem is discussed in other places too. For example here:
    https://stackoverflow.com/questions/3602405/php-datetimemodify-adding-and-subtracting-months

    I suppose we will have to build our own function and integrate it in the next version of the plugin but we need to think what are the complications that may arise from this and ask ourselves the question why the developers of the PHP have not made it in a different way.

    Thank you for your feedback.

    PS: You may share what exactly is your case of use and we may suggest a solution.

    Plugin Contributor Ivaylo Tinchev

    (@itinchev)

    Hello again @hasantaqvi,

    Hopefully we have solved your issue. I am closing the support thread.

    Thread Starter Ivaylo Tinchev

    (@itinchev)

    Hello @rankmathteam,

    Thank you for your support!

    Those have probably changed in the past because I remember using them before as described in my first post and they worked. By the way, the code in your website uses the image part of the hook without the twitter_ part in front of it. Here is the code for OpenGraph filters listed on the following page https://rankmath.com/kb/filters-hooks-api-developer/:

    /**
     * Allows developers to change the OpenGraph image within theme.
     *
     * The dynamic part of the hook name. $network, is the network slug. Can be facebook or twitter.
     *
     * @param string $attachment_url The image we are about to add.
     */
    add_filter( "rank_math/opengraph/{$network}/image", function( $attachment_url ) {
    	return $attachment_url;
    });

    IMHO, it will be good to have a page with all of your up-to-date Rank Math SEO hooks described “one per line” as other products have theirs. And then the examples of use.

    Thanks again!

Viewing 15 replies - 1 through 15 (of 43 total)