Hello.
I cannot find how to change phrase value taken by AJAX. Exact example:
I see in global.js that phrase please_enter_your_reason_why_you_want_to_flag_this_post is in precache table
I see there also that phrases are taken by AJAX:
I hooked into phrase.php getPhrases, put logs there but the phrase please_enter_your_reason_why_you_want_to_flag_this_post is not taken at all. I added logs into most od phrase.php methods (by plugin) and there is no sign where or when this phrase is taken. It is not taken by getPhrases method I hooked into. It is not included in HTML sources. Is it some bug and AJAX omits plugin system or I'm looking in wrong place? (I cleaned cache to be sure that it is not taken from cache). I checked also browser tools - I was looking for Network details and I don't see there any request for those phrases.
How can I hook to those AJAX requests? Is it really AJAX request in this case? The text is used when you click "Flag" option for post.
I cannot find how to change phrase value taken by AJAX. Exact example:
I see in global.js that phrase please_enter_your_reason_why_you_want_to_flag_this_post is in precache table
Code:
window.vBulletin.phrase.precache = D.merge(window.vBulletin.phrase.precache, ["admin", "admin_auth", "all_changes_made_will_be_lost_would_you_like_to_continue", MANY OTHERS HERE, "please_enter_your_reason_why_you_want_to_flag_this_post"]);
Code:
window.vBulletin.phrase.remoteGet = function (H, J) { ...SOME CODE HERE... D.ajax({ url: vBulletin.getAjaxBaseurl() + "/ajax/api/phrase/getPhrases", async: false, data: ({ phrases: I }), type: "POST", dataType: "json", ...
How can I hook to those AJAX requests? Is it really AJAX request in this case? The text is used when you click "Flag" option for post.
Comment