new topic cant be created because of jquery error
Quote from Markus on January 14, 2018, 11:15 pmHello,
here is the site: http://www.learnx.at/forum
when I want to start a new topic I get this error and the input doesnt collapse:
script.js?ver=1.6.8:10 Uncaught TypeError: $(…).slideToggle is not a function
at HTMLAnchorElement.<anonymous> (script.js?ver=1.6.8:10)
at HTMLAnchorElement.dispatch (jquery-3.2.1.slim.min.js?ver=2.0.s:3)
at HTMLAnchorElement.q.handle (jquery-3.2.1.slim.min.js?ver=2.0.s:3)
(anonymous) @ script.js?ver=1.6.8:10
dispatch @ jquery-3.2.1.slim.min.js?ver=2.0.s:3
q.handle @ jquery-3.2.1.slim.min.js?ver=2.0.s:3
It is because in my functions.php I am doing this:
function modify_jquery_version() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://code.jquery.com/jquery-3.2.1.slim.min.js', false, '2.0.s'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery_version');
If I wouldnt bring in the new jquery the bootstrap 4 menu wouldnt collapse. Is there a possibility to have both working the bootstrap 4 menu and the asgaros forum?
Hello,
here is the site: http://www.learnx.at/forum
when I want to start a new topic I get this error and the input doesnt collapse:
script.js?ver=1.6.8:10 Uncaught TypeError: $(…).slideToggle is not a function
at HTMLAnchorElement.<anonymous> (script.js?ver=1.6.8:10)
at HTMLAnchorElement.dispatch (jquery-3.2.1.slim.min.js?ver=2.0.s:3)
at HTMLAnchorElement.q.handle (jquery-3.2.1.slim.min.js?ver=2.0.s:3)
(anonymous) @ script.js?ver=1.6.8:10
dispatch @ jquery-3.2.1.slim.min.js?ver=2.0.s:3
q.handle @ jquery-3.2.1.slim.min.js?ver=2.0.s:3
It is because in my functions.php I am doing this:
function modify_jquery_version() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://code.jquery.com/jquery-3.2.1.slim.min.js', false, '2.0.s'); wp_enqueue_script('jquery'); } } add_action('init', 'modify_jquery_version');
Quote from Asgaros on January 15, 2018, 12:18 amHello Markus,
is the bootstrap 4 menu implemented via a WordPress theme or plugin? If so, you should ask the author to make it compatible with the default jQuery-version which is included in WordPress. You can also try to register your custom jQuery-version with another name.
Please also keep in mind that I cant give support if you modify or replace WordPress core libraries because the risk is high that they break compatibility for this or other extensions/themes.
Hello Markus,
is the bootstrap 4 menu implemented via a WordPress theme or plugin? If so, you should ask the author to make it compatible with the default jQuery-version which is included in WordPress. You can also try to register your custom jQuery-version with another name.
Please also keep in mind that I cant give support if you modify or replace WordPress core libraries because the risk is high that they break compatibility for this or other extensions/themes.
Quote from Markus on January 15, 2018, 2:52 amim the developer of the theme. I included an older version of jquery now and both works now.
but i saw that the registering in the forum is a bit strange. I will have to check if users of mine understand that. It is not a common way of registering and it says “Reset password” when a password hasnt been created yet.
Would prefer if a password can be set at the registering and that the grey bar at the top is not visible for a logged in person.
However perfect app otherwise.
im the developer of the theme. I included an older version of jquery now and both works now.
but i saw that the registering in the forum is a bit strange. I will have to check if users of mine understand that. It is not a common way of registering and it says “Reset password” when a password hasnt been created yet.
Would prefer if a password can be set at the registering and that the grey bar at the top is not visible for a logged in person.
However perfect app otherwise.
Quote from Markus on January 15, 2018, 11:21 am@ Asgaros yes as I expected it. 2 Feedbacks from 2 users:
Feedback 1:
I think after registering and then logging in, you should be directly redirected to the forum; I got redirected to my profile and then came to our landing page after pressing the home button in my profile
Feedback 2:
“I think after registering and then logging in, you should be directly redirected to the forum; I got redirected to my profile and then came to our landing page after pressing the home button in my profile”
Yes same is my opinion
@ Asgaros yes as I expected it. 2 Feedbacks from 2 users:
Feedback 1:
I think after registering and then logging in, you should be directly redirected to the forum; I got redirected to my profile and then came to our landing page after pressing the home button in my profile
Feedback 2:
“I think after registering and then logging in, you should be directly redirected to the forum; I got redirected to my profile and then came to our landing page after pressing the home button in my profile”
Yes same is my opinion
Quote from Asgaros on January 15, 2018, 2:42 pmHello again, Markus
The login and registration process is completely handled by WordPress itself. Its the default behavior which the developers of WordPress have implemented and I cant do any changes to it. But there should be a lot of plugins available in the official WordPress plugin-repository which allows you to change the behavior of the WordPress login and registration process.
Hello again, Markus
The login and registration process is completely handled by WordPress itself. Its the default behavior which the developers of WordPress have implemented and I cant do any changes to it. But there should be a lot of plugins available in the official WordPress plugin-repository which allows you to change the behavior of the WordPress login and registration process.
Quote from sven321 on January 15, 2018, 5:30 pmWohl wahr, das Rad neu zu erfinden, braucht man nicht, an den Strukturen von WP zu basteln könnte eh ins Auge gehen. Hatte früher mal eigene Logins etc. in PHP / JS geschrieben, die relativ schnellen Versionswechsel und der Aufwand lohnten sich nicht mehr.
Seitdem setze ich UserPro ein, hatte zuvor einige andere getestet, aber besser “anpassbar” ist halt UserPro, in vieler Hinsicht, was mitunter dort aber übelst gemacht wurde, ist die Anbindung an die sozialen Netzerke, dort habe ich ein anderes, kleineres Plugin (Social Login) installiert, was auch ständig Updates erhält und es via PHP Änderungen in UserPro implementiert.
Wohl wahr, das Rad neu zu erfinden, braucht man nicht, an den Strukturen von WP zu basteln könnte eh ins Auge gehen. Hatte früher mal eigene Logins etc. in PHP / JS geschrieben, die relativ schnellen Versionswechsel und der Aufwand lohnten sich nicht mehr.
Seitdem setze ich UserPro ein, hatte zuvor einige andere getestet, aber besser “anpassbar” ist halt UserPro, in vieler Hinsicht, was mitunter dort aber übelst gemacht wurde, ist die Anbindung an die sozialen Netzerke, dort habe ich ein anderes, kleineres Plugin (Social Login) installiert, was auch ständig Updates erhält und es via PHP Änderungen in UserPro implementiert.