The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Fixed a bug of ajax-profil_edit

View previous topic View next topic Go down

Fixed a bug of ajax-profil_edit

Post by Zzbaivong on June 22nd 2015, 12:13 pm

Default version of the jQuery library in Forumotion is 1.7.2. Codes use jQuery in forums are written based on this version.
On the user page, when you change the information, ajax-profil_edit function will help you change the information immediately.

Editing the information in user page

However, when you upgrade jQuery library version 1.9 or higher, that function would not be used.

To fix this, do the following:

ACP >> Modules >> HTML & JAVASCRIPT >> Javascript codes management

Title * : Fixed bug ajax-profil_edit
Placement : In all the pages
Javascript Code * :
/* Fixed bug ajax-profil_edit by Zzbaivong */

var forumVersion = 1; // Change the number 1 to 0 if your forum version is phpbb2

$(function () {
    if (location.pathname.indexOf("/u") === 0 && _userdata.session_logged_in === 1) {
        function attrValue(ele) {
            var $this = $(ele);
            $this.attr("value", $this.val());
        $(".field_editable").on("input", [".post", ".inputbox"][forumVersion], function () {
        }).on("change", "select", function () {
        }).find("select, input, textarea").each(function () {

For Technicians:
Edit code in the user page as follows:

Posts : 100
Reputation : 50
Language : JavaScript ^^

Back to top Go down

Re: Fixed a bug of ajax-profil_edit

Post by JScript on June 22nd 2015, 2:35 pm

Hi, I have already given my opinion on this link , but in addition, I think that's completely irrelevant because it is not a "bug"!

Still, thanks for the tip...


Male Posts : 741
Reputation : 172
Language : PT-BR, EN
Location : Brazil

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum