quick fix for QuickChat with qlanguage
-
Hi Marko, hi all,
in V4.10, QuickChat does not work with certain configurations of the popular qlanguage wordpress plugin. The reason: In qlanguage you’re able to select between different languages by subdomain (e.g.: de.domain.com, en.domain.com) the way many business sites solve the multilanguage issue today. Reason: QuickChat makes XHR calls with full url back to the server for loading JS and communicating chat messages. WordPress manages only the base domain (e.g. domain.com) when qlanguage is used, these calls get blocked by the users browser (cross domain restriction) => you see LOADING… forever. Fix: QuickChat requests the server url by calling std wordpress api. If you make these requested urls relative (stripping the domain part, resulting in urls like “/wp-admin/ajax-admin.php”), QuickChat works like a charm. Find these lines in quick-chat.php and remove the protocol and server part with parse_url():$this->url = plugin_dir_url(__FILE__); 'ajaxurl' => admin_url('admin-ajax.php'), 'ajaxurl' => admin_url('admin-ajax.php'),
Marko: Any chance to to fix that officially?
Kolja
- The topic ‘quick fix for QuickChat with qlanguage’ is closed to new replies.