阿贾克斯+ qtranslate [英] Ajax + qtranslate

查看:227
本文介绍了阿贾克斯+ qtranslate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我碰到了同样的问题里克过这里

Hi I ran into the same problem as Rik had here

给出的答案是,他不得不ajax.php在code的链接请求搜索替换ajax.php与ajax.php /?LANG ='。qtrans_getLanguage(),

The answer given was that he had to "Search in code for link request "ajax.php". Replace "ajax.php" with ajax.php/?lang='.qtrans_getLanguage()" "

我的问题是这样的(我知道这听起​​来愚蠢的,我吸这东西),这是否回答参考一下code和我在哪里找到它?我搜索了qtranslate和Ajax插件的所有PHP文件,但无法找到它在哪里。

My question is this (I know it might sound stupid, I suck at this stuff), what code does this answer refer to and where do I find it? I've searched all php files in the qtranslate and ajax plugins but cannot find where it is.

推荐答案

这要看WP Ajax的插件,你有一个问题。如果类别,邮政AJAX树我不得不更换

It depends on which WP ajax-plugin you have a problem with. In case "Category-Post AJAX Tree" I had to replace

$localize = array ('ajaxurl' => admin_url('admin-ajax.php'),

$localize = array ('ajaxurl' => admin_url('admin-ajax.php?lang='.qtrans_getLanguage()),

在猫后树ajax.php并取代

in cat-post-tree-ajax.php and to replace

var url = CatPostAjax.ajaxurl + '?action=myajax-submit&category=' + id; // compose url

var url = CatPostAjax.ajaxurl + '&action=myajax-submit&category=' + id; // compose url

在猫后树ajax.js。请告诉我们什么插件,你的意思是这样,我们就可以提供帮助。

in cat-post-tree-ajax.js. Please tell us what plugin you mean so we'll be able to help.

这篇关于阿贾克斯+ qtranslate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆