久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔
站長百科 | 數(shù)字化技能提升教程 數(shù)字化時(shí)代生存寶典
首頁
數(shù)字化百科
電子書
建站程序
開發(fā)
服務(wù)器
辦公軟件
開發(fā)教程
服務(wù)器教程
軟件使用教程
運(yùn)營教程
熱門電子書
WordPress教程
寶塔面板教程
CSS教程
Shopify教程
導(dǎo)航
程序頻道
推廣頻道
網(wǎng)賺頻道
人物頻道
網(wǎng)站程序
網(wǎng)頁制作
云計(jì)算
服務(wù)器
CMS
論壇
網(wǎng)店
虛擬主機(jī)
cPanel
網(wǎng)址導(dǎo)航
WIKI使用導(dǎo)航
WIKI首頁
最新資訊
網(wǎng)站程序
站長人物
頁面分類
使用幫助
編輯測試
創(chuàng)建條目
網(wǎng)站地圖
站長百科導(dǎo)航
站長百科
主機(jī)偵探
IDCtalk云說
跨境電商導(dǎo)航
WordPress啦
站長專題
網(wǎng)站推廣
網(wǎng)站程序
網(wǎng)站賺錢
虛擬主機(jī)
cPanel
網(wǎng)址導(dǎo)航專題
云計(jì)算
微博營銷
虛擬主機(jī)管理系統(tǒng)
開放平臺(tái)
WIKI程序與應(yīng)用
美國十大主機(jī)
編輯“
WordPress:WPMU Cimy Extra Fields 插件
”
人物百科
|
營銷百科
|
網(wǎng)賺百科
|
站長工具
|
網(wǎng)站程序
|
域名主機(jī)
|
互聯(lián)網(wǎng)公司
|
分類索引
跳轉(zhuǎn)至:
導(dǎo)航
、?
搜索
警告:
您沒有登錄。如果您做出任意編輯,您的IP地址將會(huì)公開可見。如果您
登錄
或
創(chuàng)建
一個(gè)賬戶,您的編輯將歸屬于您的用戶名,且將享受其他好處。
反垃圾檢查。
不要
加入這個(gè)!
These notes are from memory. Please correct them! 這些記錄來自內(nèi)存。請更改! [http://www.cimatti.it/blog/cimy-wordpress-plugins/cimy-user-extra-fields/] [http://www.cimatti.it/blog/cimy-wordpress-plugins/cimy-user-extra-fields/] Note from Marco Cimmino the author of the plug-in: 來自插件作者M(jìn)arco Cimmino的筆記: These informations are from users not from me, so I thanx them but I should advise you that are UNOFFICIAL and UNSUPPORTED by me. 這些信息是來自用戶而不是來自我的,因此,我感謝這些用戶,但是我要提醒你,這些信息是不正式,也不由我支持。 Also note that these modifications are no more necessary with Cimy User Extra Fields 1.0.0 that partially support WordPress MU. If you want to see full MU support in this plug-in contact me and sponsor it. 同時(shí)注意部分由WordPress MU支持的Cimy User Extra Fields 1.0.0,更需要這些更改。 如果你希望得到這個(gè)插件的完全的MU支持,請聯(lián)系我,我會(huì)提綱幫助。 Thanx<br> Marco Cimmino Thanx<br> Marco Cimmino == Cimy User Extra Fields for WordPress == == WordPress的Cimy User Extra Fields == '' WordPress is becoming more than ever a tool to open blog/websites and CMSs in an easier way. Users are increasing day by day; one of the limits however is the restricted and predefined fields that are available in the registered users profile: it is difficult for example to ask for the acceptance of “Terms and Conditions of Use” or “Permission to use personal data”. '' WordPress is becoming more than ever a tool to open blog/websites and CMSs in an easier way. Users are increasing day by day; one of the limits however is the restricted and predefined fields that are available in the registered users profile: it is difficult for example to ask for the acceptance of “Terms and Conditions of Use” or “Permission to use personal data”. '' WordPress越來越不僅僅是個(gè)以簡單的方式打開博客/網(wǎng)站和CMSs的工具。用戶一天天地增加;其中的一個(gè)限制是注冊用戶基本資料中的受限制的和預(yù)先確定的fields:例子很難要求接受“使用條款和條件” 或者“使用個(gè)人數(shù)據(jù)的權(quán)限”。 It’s also possible to set a password during registration combined to equalTO rule, only people who knows the password can register. 在注冊過程中,設(shè)置與equalTO規(guī)則相結(jié)合的密碼,只有知道密碼的用戶,才可以注冊。 We have developed a WordPress plug-in to do this. 我們開發(fā)了WordPress插件來執(zhí)行這個(gè)操作。 '' ---- '' ---- This plugin can work if you make two types of MU modification: 如果你創(chuàng)建兩種類型的MU modification,這個(gè)插件可以運(yùn)行: 1) [[wordPress:UnMuify the plugin shared tables]] 2) [[wordPress:Manually activate the WPMU mu-plugins]] 1) [[wordPress:UnMuify the plugin shared tables| UnMuify the plugin shared tables]] 2) [[wordPress:Manually activate the WPMU mu-plugins|動(dòng)手激活WPMU mu-插件]] For 1) at the start of the plugin's main file, there's a line that sets $cimy_data = $wpdb->prefix . 'cimy_data'; 1)在插件的主要文件的開頭,有一行設(shè)置了$cimy_data = $wpdb->prefix . 'cimy_data'; Now, WPMU muifys the prefix, replacing changing it from the default wp_ prefix to wp_x_ where x = 1...n; as this is usually needed to convert plugins that know about a single blog to one that can deal with many. You need to inhibit this. In the plugin file, at the top, replace the $wpdb->prefix with the change: 現(xiàn)在,WPMU muifys前綴,replacing changing it from the default wp_ prefix to wp_x_ where x = 1...n;通常這需要將了解單個(gè)博客的插件轉(zhuǎn)換為了解多個(gè)博客的插件。你需要抑制這種情況。在插件文件中,在頂上方,將$wpdb->prefix替換為the change: $cimy_data = 'wp_'. 'cimy_data'; $cimy_fields = 'wp_'. 'cimy_fields'; $cimy_data = 'wp_'. 'cimy_data'; $cimy_fields = 'wp_'. 'cimy_fields'; For 2) WPMU does not honour WP's contract to plugins to let them activate when they first start. This means that plugins never get the chance to initialize tables. 2)WPMU不讓W(xué)P聯(lián)系插件,使得插件剛開始,就激活。這意味著插件永遠(yuǎn)都不會(huì)初始化表格。 A crap (but effective) workaround is to manually install into plugins, activate, and move the plugin into Mu plugins. In order for this to work, you need to disable (remove) the copy on mu-plugins, activate this one, and then upload to mu-plugins. A crap (但是有效) workaround是要?jiǎng)邮职惭b到插件中,激活插件并且將插件轉(zhuǎn)移到Mu插件。為了能夠運(yùn)行,你需要取消(移除)mu-plugins上的copy,激活這個(gè)插件,然后上傳到mu-plugins。 ---- ---- Feel free to correct these instructions, and point to them liberally, but please don't add them to the forum. Because the forums are write-once, they have become morass of duplicated, often incorrect and incomplete. 隨意地更改這些指示說明,隨意地指向這些說明,但是請不要將這些說明添加到論壇上。因?yàn)檎搲习l(fā)表的內(nèi)容,會(huì)不斷地被復(fù)制,通常內(nèi)容不正確也不完整。 <pre> RCS file: cimy_user_extra_fields.php,v retrieving revision 1.1 diff -C 5 -r1.1 cimy_user_extra_fields.php *** cimy_user_extra_fields.php 2007/08/24 11:59:54 1.1 --- cimy_user_extra_fields.php 2007/08/24 19:01:42 *************** *** 35,46 **** */ if (!function_exists(php_compat_mqgpc_unescape)) include_once("magic_quotes_gpc_off_function.php"); ! $wpdb_data_table = $wpdb->prefix."cimy_data"; ! $wpdb_fields_table = $wpdb->prefix."cimy_fields"; $cimy_uef_options = "cimy_uef_options"; $cimy_uef_options_descr = "Cimy User Extra Fields options are stored here and modified only by admin"; /* --- 35,48 ---- */ if (!function_exists(php_compat_mqgpc_unescape)) include_once("magic_quotes_gpc_off_function.php"); ! //$wpdb_data_table = $wpdb->prefix."cimy_data"; ! //$wpdb_fields_table = $wpdb->prefix."cimy_fields"; ! $wpdb_data_table = "wp_cimy_data"; ! $wpdb_fields_table = "wp_cimy_fields"; $cimy_uef_options = "cimy_uef_options"; $cimy_uef_options_descr = "Cimy User Extra Fields options are stored here and modified only by admin"; /* *************** *** 193,202 **** --- 195,205 ---- // add update engine for extra fields to user's registration add_action('user_register', 'cimy_register_user_extra_fields'); // function that add the submenu under 'Users' + add_action('admin_menu', 'cimy_admin_menu_custom'); // delete user extra fields data when a user is deleted add_action('delete_user', 'cimy_delete_user_info'); *************** *** 257,267 **** $values = substr($values, $label_pos + 1); } else $label = ""; ! $items = explode(",",$values); $html_options = ""; foreach ($items as $item) { $html_options.= "\n\t\t\t"; $html_options.= '<option value="'.$item.'"'; --- 260,272 ---- $values = substr($values, $label_pos + 1); } else $label = ""; ! // in case the user pastes from windows or mac, convert to \n ! $items = str_replace(array("\r\n", "\n", "\r"), "\n", $items); ! $items = explode("\n",$values); $html_options = ""; foreach ($items as $item) { $html_options.= "\n\t\t\t"; $html_options.= '<option value="'.$item.'"'; *************** *** 306,317 **** } function cimy_admin_menu_custom() { global $cimy_uef_name; ! add_options_page($cimy_uef_name, $cimy_uef_name, 10, basename(__FILE__), 'cimy_admin_define_extra_fields'); ! add_submenu_page('profile.php', 'Authors & Users Extended', 'A&U Extended', 10, basename(__FILE__), 'cimy_admin_users_list_page'); } function cimy_get_thumb_path($file_path) { $file_path_purename = substr($file_path, 0, strrpos($file_path, ".")); $file_path_ext = substr($file_path, strlen($file_path_purename)); --- 311,324 ---- } function cimy_admin_menu_custom() { global $cimy_uef_name; ! if (is_site_admin()) { ! add_options_page($cimy_uef_name, $cimy_uef_name, 10, basename(__FILE__), 'cimy_admin_define_extra_fields'); ! add_submenu_page('profile.php', 'Authors & Users Extended', 'A&U Extended', 10, basename(__FILE__), 'cimy_admin_users_list_page'); ! } } function cimy_get_thumb_path($file_path) { $file_path_purename = substr($file_path, 0, strrpos($file_path, ".")); $file_path_ext = substr($file_path, strlen($file_path_purename)); *************** *** 2770,2780 **** if ($i > 0) { $query.=" ELSE FIELD_ID END WHERE FIELD_ID IN(".$field_ids.") AND USER_ID = ".$get_user_id; // $query WILL BE: UPDATE <table> SET VALUE=CASE FIELD_ID WHEN <field_id1> THEN <value1> [WHEN ... THEN ...] ELSE FIELD_ID END WHERE FIELD_ID IN(<field_id1>, [<field_id2>...]) AND USER_ID=<user_id> ! $wpdb->query($query); } } function cimy_insert_ExtraFields_if_not_exist($user_id, $field_id) { global $wpdb, $wpdb_data_table; --- 2777,2787 ---- if ($i > 0) { $query.=" ELSE FIELD_ID END WHERE FIELD_ID IN(".$field_ids.") AND USER_ID = ".$get_user_id; // $query WILL BE: UPDATE <table> SET VALUE=CASE FIELD_ID WHEN <field_id1> THEN <value1> [WHEN ... THEN ...] ELSE FIELD_ID END WHERE FIELD_ID IN(<field_id1>, [<field_id2>...]) AND USER_ID=<user_id> ! $ans = $wpdb->query($query); } } function cimy_insert_ExtraFields_if_not_exist($user_id, $field_id) { global $wpdb, $wpdb_data_table; </pre> <pre> RCS file: cimy_user_extra_fields.php,v 返回 1.1版本 diff -C 5 -r1.1 cimy_user_extra_fields.php *** cimy_user_extra_fields.php 2007/08/24 11:59:54 1.1 --- cimy_user_extra_fields.php 2007/08/24 19:01:42 *************** *** 35,46 **** */ if (!function_exists(php_compat_mqgpc_unescape)) include_once("magic_quotes_gpc_off_function.php"); ! $wpdb_data_table = $wpdb->prefix."cimy_data"; ! $wpdb_fields_table = $wpdb->prefix."cimy_fields"; $cimy_uef_options = "cimy_uef_options"; $cimy_uef_options_descr = "Cimy User Extra Fields options are stored here and modified only by admin"; /* --- 35,48 ---- */ if (!function_exists(php_compat_mqgpc_unescape)) include_once("magic_quotes_gpc_off_function.php"); ! //$wpdb_data_table = $wpdb->prefix."cimy_data"; ! //$wpdb_fields_table = $wpdb->prefix."cimy_fields"; ! $wpdb_data_table = "wp_cimy_data"; ! $wpdb_fields_table = "wp_cimy_fields"; $cimy_uef_options = "cimy_uef_options"; $cimy_uef_options_descr = "Cimy User Extra Fields 選項(xiàng)儲(chǔ)存在這里而且只有管理員才能夠更改"; /* *************** *** 193,202 **** --- 195,205 ---- // 為用戶注冊的額外fields添加更新引擎 add_action('user_register', 'cimy_register_user_extra_fields'); //將子菜單添加到 '用戶'下面的函數(shù) + add_action('admin_menu', 'cimy_admin_menu_custom'); // 刪除用戶的時(shí)候,刪除用戶delete user extra fields 數(shù)據(jù) add_action('delete_user', 'cimy_delete_user_info'); *************** *** 257,267 **** $values = substr($values, $label_pos + 1); } else $label = ""; ! $items = explode(",",$values); $html_options = ""; foreach ($items as $item) { $html_options.= "\n\t\t\t"; $html_options.= '<option value="'.$item.'"'; --- 260,272 ---- $values = substr($values, $label_pos + 1); } else $label = ""; ! // 用戶從windows或者mac中粘貼,轉(zhuǎn)換為 \n ! $items = str_replace(array("\r\n", "\n", "\r"), "\n", $items); ! $items = explode("\n",$values); $html_options = ""; foreach ($items as $item) { $html_options.= "\n\t\t\t"; $html_options.= '<option value="'.$item.'"'; *************** *** 306,317 **** } function cimy_admin_menu_custom() { global $cimy_uef_name; ! add_options_page($cimy_uef_name, $cimy_uef_name, 10, basename(__FILE__), 'cimy_admin_define_extra_fields'); ! add_submenu_page('profile.php', 'Authors & Users Extended', 'A&U Extended', 10, basename(__FILE__), 'cimy_admin_users_list_page'); } function cimy_get_thumb_path($file_path) { $file_path_purename = substr($file_path, 0, strrpos($file_path, ".")); $file_path_ext = substr($file_path, strlen($file_path_purename)); --- 311,324 ---- } function cimy_admin_menu_custom() { global $cimy_uef_name; ! if (is_site_admin()) { ! add_options_page($cimy_uef_name, $cimy_uef_name, 10, basename(__FILE__), 'cimy_admin_define_extra_fields'); ! add_submenu_page('profile.php', 'Authors & Users Extended', 'A&U Extended', 10, basename(__FILE__), 'cimy_admin_users_list_page'); ! } } function cimy_get_thumb_path($file_path) { $file_path_purename = substr($file_path, 0, strrpos($file_path, ".")); $file_path_ext = substr($file_path, strlen($file_path_purename)); *************** *** 2770,2780 **** if ($i > 0) { $query.=" ELSE FIELD_ID END WHERE FIELD_ID IN(".$field_ids.") AND USER_ID = ".$get_user_id; // $query WILL BE: UPDATE <table> SET VALUE=CASE FIELD_ID WHEN <field_id1> THEN <value1> [WHEN ... THEN ...] ELSE FIELD_ID END WHERE FIELD_ID IN(<field_id1>, [<field_id2>...]) AND USER_ID=<user_id> ! $wpdb->query($query); } } function cimy_insert_ExtraFields_if_not_exist($user_id, $field_id) { global $wpdb, $wpdb_data_table; --- 2777,2787 ---- if ($i > 0) { $query.=" ELSE FIELD_ID END WHERE FIELD_ID IN(".$field_ids.") AND USER_ID = ".$get_user_id; // $query WILL BE: UPDATE <table> SET VALUE=CASE FIELD_ID WHEN <field_id1> THEN <value1> [WHEN ... THEN ...] ELSE FIELD_ID END WHERE FIELD_ID IN(<field_id1>, [<field_id2>...]) AND USER_ID=<user_id> ! $ans = $wpdb->query($query); } } function cimy_insert_ExtraFields_if_not_exist($user_id, $field_id) { global $wpdb, $wpdb_data_table; </pre>
摘要:
請注意,您對站長百科的所有貢獻(xiàn)都可能被其他貢獻(xiàn)者編輯,修改或刪除。如果您不希望您的文字被任意修改和再散布,請不要提交。
您同時(shí)也要向我們保證您所提交的內(nèi)容是您自己所作,或得自一個(gè)不受版權(quán)保護(hù)或相似自由的來源(參閱
Wordpress-mediawiki:版權(quán)
的細(xì)節(jié))。
未經(jīng)許可,請勿提交受版權(quán)保護(hù)的作品!
取消
編輯幫助
(在新窗口中打開)
取自“
http://www.kktzf.com.cn/wiki/WordPress:WPMU_Cimy_Extra_Fields_插件
”