Your plugin is great and it’s working perfectly fine.
It is also possible to add a Persian date in your plugin? I’ll show 3 dates, and I’ll sometimes I to show one or two or all of them.
So if it’s possible, you add support for multi language(Dutch, Persian) so the month name is translated automatically according to the page language.
Thanks a lot.
]]>Alsalam Alykom, my brother. I want to write to you regarding the WP-Hijri plugin. It does not work on the latest version of WordPress and causes a fatal error. Thank you very much
]]>hello
i use your plugin for many site’s and i would like to tank you for it.
i have an issue that need your help with. an adjust hijri date has 3 option’s to change start of a month and in some country’s default option is not enough and need to have more than 5 option’s (like 3 day before and 3 day after default time).
please put this feature in your update asap.
thanks a lot
???? ?????
?????? ??? ???????? ????? ??????? ???? ?????? ??? ?????? ??????? ?????? ?? ?????????
????? ????? ?? ????? ??? ?????? ??????? ????? ???? ?? ???? ????? ?????
????? ????? 3 ?????? ?????? ??? ????? ?????? ???????? ??? ???? ?? ????? ????????
??? ????? ?? ????? ????? ???? ?? ????????? ?? ???? ????? 5 ?????? ???????? ?? ??? ???? ?????? ????????? ?????? ????? ????? ?? ????? ??????
I was wrong. While I was looking, the date change and I thought it was fixed. But it is still showing wrong date. It is a day behind.
The example show correct date but the page show with one day behind.
]]>assalaamaliakum,
the dates for the pluging was showing up one day behind. i made an adjustment for the Hijri but the plugin is still picking up a day behind. the example on the setting page shows with the correct date but when i placed the short code, it shows up wrong.
If you activate the addition, an error message appears:
PHP Warning: mktime() expects parameter 5 to be int, string given in /home/******/public_html/wp-content/plugins/jetpack/modules/seo-tools/class-jetpack-seo.php on line 206
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /home/******/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 2512
Please Help?
]]>?????? ??????
Your plugin is great and it’s working perfectly fine.
But it doesn’t support Multi languages.
I’m using Polylang for translating my pages, and set the plugin setting to accept wordpress language, but I’m getting either Arabic or English only in both pages (the original and the translated one).
So if it’s possible, you add support for multi language so the month name is translated automatically according to the page language.
Thanks a lot.
]]>Hi, it shows me the wrong hijri date. Today should be Ramadan 20 but the plugin shows 21.
How can I fix it to show me the correct day?
Hello Great Developers.
i came across this issue in the calendar. The issue is: show wrong day-name in calendar.
correct date is: Sat 15 Ramadan 1443AH 16-4-2022AD
But in calendar show is: Friday…
Screenshot: https://imgur.com/rwoZ3Ux
– if the plugin deactivated, the default WordPress shows correct day-name in right order.
WP-Hijri Version 1.5.1
WordPress Version 5.9.3
Thanks for your efforts and this useful plugin.
]]>Salam, I get this error and the WordPress error output says the following. It completely breaks the site upon activation and I have to go to by file manager and delete the plugin to get the site back. (I’m putting “-” instead of my url because the site is still under development and not live yet.)
Fatal error: Uncaught Error: Call to a member function is_rtl() on null in /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php:825
Stack trace:
#0 /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php(664): WP_Hijri->wp_hijri_format(Object(DateTime), ‘D _j _F _Y\\A\\H …’)
#1 /home/customer/www/-/public_html/wp-content/plugins/wp-hijri/main.php(438): WP_Hijri->wp_hijri_date(‘D _j _F _Y\\A\\H …’, 1649165069, Object(DateTimeZone))
#2 /home/customer/www/-/public_html/wp-includes/class-wp-hook.php(307): WP_Hijri->handle_wp_date(‘Tue _5 _April _…’, ‘D _j _F _Y\\A\\H …’, 1649165069, Object(DateTimeZone))
#3 /home/customer/www/-/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘Tue _5 _April _…’, Array)
#4 /home/customer/www/-/public_html/wp-includes/functions.php(315): apply_filters(‘wp_d in /home/customer/www/…/public_html/wp-content/plugins/wp-hijri/main.php on line 825
JAK.
]]>Hi,
I’m getting the following error with this plugin:
PHP Fatal error: Uncaught Error: Call to undefined method stdClass::set() in /wp-content/plugins/wp-hijri/main.php:319
Can you please check the plugin or help me find the problem?
]]>I was unable to create any admustments to the hijri date
on inspection i found that $_SERVER[“REQUEST_URI”] was returning a link to the core files which is blocked on the hosting we are using.
upon remvoving $_SERVER[“REQUEST_URI”] frm the uri the form appears to work well.
Pleae can you confirm if this will have any other affects on the plugin
admin_form.php
Previous code
$page_uri = $_SERVER["REQUEST_URI"] . '?page=settings_wp_hijri';
updated code
$page_uri = '?page=settings_wp_hijri';
]]>
Alsalam alaykum,
I would like to suggest a new feature, an option to apply the Hijri dates in frontend or backend(admin dashboard) only.
So all other options will applied to frontend or backend depend on the user choice, for example the “Force all dates to return Hijri dates” option will be applied in frontend only if the user chose to be frontend only.
To do that i suggest to do the following:
In my case i need to keep the dates in dashboard in gregorian and force all dates in frontend to be in Hijri, so for now i made a plugin has two filters to achieve this goal:
// force gregorian date in wp-admin while activating WP-Hijri plugin
function my_force_gregorian_date_in_admin( $value, $option ) {
if ( is_admin() ) {
$value = 'F j, Y';
}
return $value;
}
add_filter( 'option_date_format', 'my_force_gregorian_date_in_admin', 10, 2 );
function my_stop_force_hijri_date_in_admin( $value, $option ) {
if ( is_admin() ) {
$settings = json_decode($value, TRUE);
$settings['force_hijri'] = false;
$value = json_encode($settings);
}
return $value;
}
add_filter( 'option_Hijri_Settings', 'my_stop_force_hijri_date_in_admin', 10, 2 );
]]>
Alsalam alaykum,
May allah blessing you and your efforts of improving this plugin
but i found that in Gutenberg editor the Hijri format does not work, for example the publish date of the post that appear in the side menu in Gutenberg, see the following image:
https://drive.google.com/file/d/1fwxPaaWRfe4-bkwY-8PhLpK6PMYkj6cQ/view?usp=sharing
so i think all dates in javascript will not work and as a quick search i found that there’s a special js package for dates in WordPress so maybe you need some integration with it to let it work with Hijri date
i am looking for further info and i will back to you if i found something useful
this is the link of the WordPress date package:
https://www.npmjs.com/package/@wordpress/date
Thanks
]]>To view Hijri Calendar you must change date format and add the below letter Symbols. Notice that we use the same letters of date() PHP function and only adding underscore(_) prefix to them.
The supported letters to view Hijri Calendar in dateformat are (notice that _ is part of symbol):
_j Day of the month without leading zeros
_d Day of the month, 2 digits with leading zeros
_z The day of the year (starting from 0)
_M A short textual representation of a month, such as ‘Ram’
_F A full textual representation of a month, such as ‘Ramadan’
_m Numeric representation of a month, with leading zeros
_n Numeric representation of a month, without leading zeros
_t Number of days in the given month
_L Whether it’s a leap year, 1 if it is a leap year, 0 otherwise
_Y A full numeric representation of a year, 4 digits
_y A two digit representation of a year
????? ???????? ????
https://salafitech.net/bb/viewtopic.php?f=42&t=202
good plugin but not tested with the latest wordpress version.
please do the needful from the author side
Hello,
First, I want to thank u for such beautiful plugin .. looking for more Islamic ones
Secondly, my question is, can I enable the system to select the current date on calendar widget?
how can i change post date and show it in page not date of today
]]>does not show time correctly
When the hijri code / clock is -3 hours
]]>Salaams,
I am using the plug-in for the hijri date. However I made an adjustment to start of the month. The date on the front end of the website is coming up wrong. The correct date shows in the dashboard. Is there a way to fix this?
]]>???? ??????? ??????? ?? ???? ??????? ????
?????? ???? ?? ??? ????? ??? ???? ??????? ??????
??? ???? ???? ?? ????? ?
call_hours('<?php echo date('Y-m-d');?>')
var dateToday = new Date();
$( "#datepicker" ).datepicker({
minDate: dateToday,
dateFormat: 'yy-mm-dd',
onSelect: function(dateText) {
call_hours(this.value);
}
});
???? ??? ??????? ????? ???? ?? ???
]]>Salam ealaykum Mohammad Okfie, I got this error after update WordPress to 4.9.4. Please fix it, thank you.
[15-Mar-2018 08:19:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function hijri\gregoriantojd() in /home/_username_/public_html/wp-content/plugins/wp-hijri/include/hijri.class.php:207
Stack trace:
#0 /home/_username_/public_html/wp-content/plugins/wp-hijri/main.php(304): hijri\datetime->format('_Y _n')
#1 /home/_username_/public_html/wp-includes/class-wp-hook.php(288): WP_Hijri->posts_results_fl(Array)
#2 /home/_username_/public_html/wp-includes/plugin.php(244): WP_Hook->apply_filters(Array, Array)
#3 /home/_username_/public_html/wp-includes/class-wp-query.php(2850): apply_filters_ref_array('posts_results', Array)
#4 /home/_username_/public_html/wp-includes/class-wp-query.php(3230): WP_Query->get_posts()
#5 /home/_username_/public_html/wp-includes/class-wp-query.php(3336): WP_Query->query(Array)
#6 /home/_username_/public_html/wp-content/themes/_themename_/header.php(60): WP_Query->__construct(Array)
#7 /home/_username_/public_html/wp-includes/template.php(688): require_once('/home/_username_/...')
#8 /home/_username_/public_html/wp-includes/template.php(647): in /home/_username_/public_html/wp-content/plugins/wp-hijri/include/hijri.class.php on line 207
]]>
Hello
First thanks for the plugin.
All has been working well until i tried changing site language from english to sweidsh and i got this
Fatal error: Uncaught Error: Call to a member function is_rtl() on null
and
/wp-content/plugins/wp-hijri/main.php on line 99
Deactiviting the plugin through ftp brings back the site. How can i solve this? Thanks !
]]>Salam mu alikum,
Barakullah Feek. You guys have made a great plugin. May Allah accept it.
I installed the plugin and in backend its giving me the right date, but in the month widget it is highlighting the wrong date.
Please look at this picture:
https://imgur.com/a/x3YXI
hi, when i active your plugin it give an error and wordpress does not allow to activate.
error:
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/tebme/public_html/wp-content/plugins/wp-hijri/main.php on line 107
Hi,
I want to change not all the date of my website to hijri.
I wantonly change one day (fnction set the curent date and retrun the hijri day) and then i call this function.