在Wowonder中添加新的性别配置文件信息

时间:2017-08-01 07:18:17

标签: php

我正在使用Wowonder脚本社交网络,我想在我的个人资料设置中添加未指定的性别,但它在我的页面上显示错误。

<?php 
$gender = ucfirst(strtolower($wo['user_profile']['gender'])); echo ($gender == 'Male') ? $wo['lang']['male'] : $wo['lang']['female'] : $wo['lang']['unspecified'];
?>

谢谢

1 个答案:

答案 0 :(得分:2)

我在这里发布答案:

class performBackgroundtask extends AsyncTask<Void, Void, Void> {
       // @Override
        public void onPreExecute()
        {


            connectionProgressDialog = new ProgressDialog(ProcessReportsUploadActivity.this);
            connectionProgressDialog.setCancelable(false);
            connectionProgressDialog.setCanceledOnTouchOutside(false);
            connectionProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
            connectionProgressDialog.setMessage("Uploading data...");

            connectionProgressDialog.show();

        }

       // @Override
        public Void doInBackground(Void... params)
        {
            try
            {

                StartUpload();
            }
            catch (Exception e)
            {
                e.printStackTrace();

            }

            return null;
        }

       // @Override
        public void onPostExecute(Void result)
        {
            connectionProgressDialog.dismiss();
            connectionProgressDialog.cancel();

        }

}