English 中文(简体)
需要帮助
原标题:Need help with my Wordpress Plugin

www.un.org/Depts/DGACM/index_spanish.htm 我需要帮助完成“言语”一米发展。 我几乎已经结束,但我正经历一些问题,我可以指出,我为什么会犯错误。 我把这个环节贴上gin子,以便你能够下载和测试。 我认为,这是发现错之处的最佳途径。


What does it do?

The plugin lets you select a image and stores the image URL in a custom property. You can then retrieve this custom property in your template design.

当安装时,它将在后面的POST和PAGE edit屏幕上添加两个定制元件。 每一种习俗财产都有一个选择形象的州。 当你点击这个 but子时,一个“情报分析”箱打开并展示文档和夹。

一旦你选择了一种形象并挽救了POST/PAGE,你就可以收回习俗财产,并在你的模板设计中使用图像。

Installation

Just dowload the plugin from here:

Unzip, 并抄送你/plugin dir, 从而启动了gin。

Known issues

1,404

当点击Get图像陶尔纽顿时,j Query触发s jQuery(“#fileBrowser”)。

At line one, I have the following code:
require_once($_SERVER[ DOCUMENT_ROOT ]. /wp-blog-header.php );

这是造成404起非创始错误的原因。 这条线没有造成WP v2.9.1的任何麻烦。

2) File upload
I ve not been able to use jQuery Form Plugin to uplaod files. I would really like to use this for file Upload. I do not want to use Flash.

I have had a go at it, but no luck :( You can see my Stackoverflow ticket here: Does anyone have a good example / tutorial on how to use jQuery Form Upload?

www.un.org/Depts/DGACM/index_spanish.htm 我真的会赞赏你能够给我提供的任何帮助:

<>>>>>

测试 该公司建议在当地安装WPMU。 但我仍然收到我的网络服务器上的错误信息:

Warning: require_once(WP_HOME/wp-blog-header.php) [function.require-once]: 
failed to open stream: No such file or directory in 
/home/mysite/wpmu/wp-content/plugins/wp-filebrowser/fileBrowser.php on line 4

Fatal error: require_once() [function.require]: 
Failed opening required  WP_HOME/wp-blog-header.php  
(include_path= .:/usr/local/php5/lib/php:/usr/local/lib/php ) in 
/home/mysite/wpmu/wp-content/plugins/wp-filebrowser/fileBrowser.php on line 4

第4行:require_once(WP_HOME. /wp-blog-header.php);

最佳回答

Thanks to Pavel Velikiy, I have fixed the 404 problem. See separate thread here.

解决办法是在<代码>查询_once之后添加header(HTTP/1.1 200 OK >。

关于上载部分,我稍后处理:

PS。 我回答我自己的解决办法,这样我就可以把它当作解决办法。

问题回答

www.un.org/Depts/DGACM/index_spanish.htm

你不必使用

$_SERVER[ DOCUMENT_ROOT ]

In the WordPress wp-config. 网址:www.un.org

define( WP_HOME , http://example.com );

相反,这应该解决你们的问题。

require_once(WP_HOME. /wp-blog-header.php );

<<>载荷>

This should get you pointed in the right direction: http://ppshein.wordpress.com/2009/05/22/upload-files-with-jquery-ajax-and-php/





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...