本文整理匯總了PHP中IPSMember::canUploadPhoto方法的典型用法代碼示例。如果您正苦於以下問題:PHP IPSMember::canUploadPhoto方法的具體用法?PHP IPSMember::canUploadPhoto怎麽用?PHP IPSMember::canUploadPhoto使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類IPSMember
的用法示例。
在下文中一共展示了IPSMember::canUploadPhoto方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getEditorHtml
/**
* Returns the editor for viewing ...
* @param unknown_type $member
*/
public function getEditorHtml(array $member)
{
/* Fetch member data */
$member = IPSMember::buildDisplayData(IPSMember::load($member['member_id'], 'all'));
$p_w = "";
$p_h = "";
$cur_photo = "";
$rand = urlencode(microtime());
$data = array('currentPhoto' => array('tag' => ''), 'custom' => array('tag' => ''), 'gravatar' => array('tag' => ''), 'twitter' => array('tag' => ''));
/* Photo type */
$data['type'] = $member['pp_photo_type'] = $this->getPhotoType($member);
/* Got gravatar? */
$member['pp_gravatar'] = $member['pp_gravatar'] ? $member['pp_gravatar'] : $member['email'];
/* Quick permission check */
if (!IPSMember::canUploadPhoto($member, TRUE)) {
return false;
}
/* Set the current photo */
$data['currentPhoto']['tag'] = IPSMember::buildProfilePhoto($member, 'full', IPS_MEMBER_PHOTO_NO_CACHE);
/* Set up custom */
$data['custom']['tag'] = $member['pp_photo_type'] != 'custom' ? IPSMember::buildNoPhoto($member, 'thumb', false, true) : "<img src='" . $member['pp_thumb_photo'] . '?__rand=' . $rand . "' width='" . $member['pp_thumb_width'] . "' height='" . $member['pp_thumb_height'] . "' />";
/* Set up Gravatar */
$data['gravatar']['tag'] = "<img src='http://www.gravatar.com/avatar/" . md5($member['pp_gravatar']) . "?s=100' alt='' />";
/* Twitter linked? */
if (IPSLib::twitter_enabled() && $member['twitter_token'] && $member['twitter_secret']) {
$classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/twitter/connect.php', 'twitter_connect');
$twitter = new $classToLoad($this->registry, $member['twitter_token'], $member['twitter_secret']);
$userData = $twitter->fetchUserData();
if ($userData['profile_image_url']) {
$data['twitter']['tag'] = "<img src='" . str_replace('_normal.', '.', $userData['profile_image_url']) . "' />";
}
}
/* Facebook linked? */
if (IPSLib::fbc_enabled() && $member['fb_uid']) {
$classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/facebook/connect.php', 'facebook_connect');
$facebook = new $classToLoad($this->registry);
/* Now get the linked user */
$linkedMemberData = IPSMember::load(intval($member['fb_uid']), 'all', 'fb_uid');
$userData = $facebook->fetchUserData();
if ($userData['pic_big']) {
$data['facebook']['tag'] = "<img src='" . $userData['pic_big'] . "' />";
} else {
if ($userData['pic']) {
$data['facebook']['tag'] = "<img src='" . $userData['pic'] . "' />";
}
}
}
$this->uploadFormMax = 5000 * 1024;
return $this->registry->getClass('output')->getTemplate('profile')->photoEditor($data, $member);
}
示例2: membersProfileForm
function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
{
$IPBHTML = "";
if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
$count_68c46c84a95b24bccd4d06b67d5b87ec = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['custom_fields'] = $custom_fields;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['group_titles'] = $group_titles;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['day'] = $day;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['mon'] = $mon;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['year'] = $year;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['amEditor'] = $amEditor;
$this->functionData['membersProfileForm'][$count_68c46c84a95b24bccd4d06b67d5b87ec]['times'] = $times;
}
$IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\n<div class='ipsSettings'>\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\n\t\t<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\n\t\t\t<div>\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&module=profile&section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\n\t\t\t</div>\n\t\t</fieldset>\n\t" : "") . "\n\t\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\n\t\t<div>\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\n\t\t\t\t<li class='ipsField'>\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\n\t\t\t\t\t" . $this->__f__d7cd0949927ac54cdf410b506aad4d70($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\n\t\t\t\t</li>\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> <label for='dst'>{$this->lang->words['dst_correction_title']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id='dst-manual'>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\n\t\t\t\t\t</li>" : "<li>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\n\t\t\t\t\t</li>") . "\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\n\t\t<div>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> <label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\n\t\t\t\t</li>\n\t\t\t\t<!-- proposing removal -->\n\t\t\t\t<li id='approve_comments'>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> <label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> <label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\n\t\t\t\t</ul>\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t\t" . (($day and $mon and $year) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\n\t\t\t\t\t\t\t<select name=\"month\"> \n\t\t\t\t\t\t\t\t" . $this->__f__7e6a8b3bc65253c00052da22234b05db($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\n\t\t\t\t\t\t\t<select name=\"day\"> \n\t\t\t\t\t\t\t\t" . $this->__f__0cb032d7c73fef1ba4963ec065d1a010($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \n\t\t\t\t\t\t\t<select name=\"year\"> \n\t\t\t\t\t\t\t\t" . $this->__f__1b9b9282bb568d344b27922448a8d35c($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t\n\t" . (count($custom_fields) ? "" . $this->__f__f9f140957798adb628d334c9d5c5ec81($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\n\t\n\t<div id='aboutme_editor' style='display: none'>\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\n\t\t<div>\n\t\t\t{$amEditor}\n\t\t</div>\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\n\t\t</div>\n\t</div>\n\t" . ($required_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$required_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n\t" . ($optional_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$optional_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n</div>\n<script type=\"text/javascript\">\n//<![CDATA[\nfunction toggle_dst()\n{\n\tif ( \$( 'dst' ) )\n\t{\n\t\tif ( \$( 'dst' ).checked ){\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\n\t\t} else {\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\n\t\t}\n\t}\n}\ntoggle_dst();\n//]]>\n</script>";
return $IPBHTML;
}
示例3: membersProfileForm
function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
{
$IPBHTML = "";
if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
$count_461ba154a84a981c91a329eee2f0b975 = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['custom_fields'] = $custom_fields;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['group_titles'] = $group_titles;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['day'] = $day;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['mon'] = $mon;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['year'] = $year;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['amEditor'] = $amEditor;
$this->functionData['membersProfileForm'][$count_461ba154a84a981c91a329eee2f0b975]['times'] = $times;
}
$IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\r\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\r\n<div class='ipsSettings'>\r\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\r\n\t\t<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&module=profile&section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\r\n\t\t\t</div>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n\t\r\n\t<fieldset class='ipsSettings_section'>\r\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\r\n\t\t<div>\r\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\r\n\t\t\t\t<li class='ipsField'>\r\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\r\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\r\n\t\t\t\t\t" . $this->__f__c9db93712f4bb502e3f9114ead35459b($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\r\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\r\n\t\t\t\t</li>\r\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\r\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\r\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\r\n\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> <label for='dst'>{$this->lang->words['dst_correction_title']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li id='dst-manual'>\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\r\n\t\t\t\t\t</li>" : "<li>\r\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\r\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\r\n\t\t\t\t\t</li>") . "\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</fieldset>\r\n\r\n\t<fieldset class='ipsSettings_section'>\r\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\r\n\t\t<div>\r\n\t\t\t<ul>\r\n\t\t\t\t<li>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> <label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t\t<!-- proposing removal -->\r\n\t\t\t\t<li id='approve_comments'>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t\t<li>\r\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> <label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\r\n\t\t\t\t</li>\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</fieldset>\r\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> <label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</div>\r\n\t\t</fieldset>" : "") . "\r\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\r\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\r\n\t\t\t\t</ul>\r\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\r\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\r\n\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t" : "") . "\r\n\t\t\t\t" . (($day and $mon and $year) ? "\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\r\n\t\t\t\t\t\t\t<select name=\"month\"> \r\n\t\t\t\t\t\t\t\t" . $this->__f__407379219587fcb0e439df90836d5a2a($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\r\n\t\t\t\t\t\t\t<select name=\"day\"> \r\n\t\t\t\t\t\t\t\t" . $this->__f__d0812c5a39d2eafb39848d032799924c($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \r\n\t\t\t\t\t\t\t<select name=\"year\"> \r\n\t\t\t\t\t\t\t\t" . $this->__f__d10d64e731b7c28212c30bc4a4f1641e($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\r\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t" : "") . "\r\n\t\t\t</div>\r\n\t\t</fieldset>" : "") . "\r\n\t\r\n\t" . (count($custom_fields) ? "" . $this->__f__70a0ad66fdd99e33488d1d6b16398d34($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\r\n\t\r\n\t<div id='aboutme_editor' style='display: none'>\r\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\r\n\t\t<div>\r\n\t\t\t{$amEditor}\r\n\t\t</div>\r\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\r\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\r\n\t\t</div>\r\n\t</div>\r\n\t" . ($required_output ? "\r\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\r\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\r\n\t\t\t<ul>\r\n\t\t\t\t{$required_output}\r\n\t\t\t</ul>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n\t" . ($optional_output ? "\r\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\r\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\r\n\t\t\t<ul>\r\n\t\t\t\t{$optional_output}\r\n\t\t\t</ul>\r\n\t\t</fieldset>\r\n\t" : "") . "\r\n</div>\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\nfunction toggle_dst()\r\n{\r\n\tif ( \$( 'dst' ) )\r\n\t{\r\n\t\tif ( \$( 'dst' ).checked ){\r\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\r\n\t\t} else {\r\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\r\n\t\t}\r\n\t}\r\n}\r\ntoggle_dst();\r\n//]]>\r\n</script>";
return $IPBHTML;
}
示例4: membersProfileForm
function membersProfileForm($custom_fields = '', $group_titles = '', $day = '', $mon = '', $year = '', $amEditor = '', $times = array())
{
$IPBHTML = "";
if (IPSLib::locationHasHooks('skin_ucp', $this->_funcHooks['membersProfileForm'])) {
$count_0282ce37479526ef8120230c0f87d55e = is_array($this->functionData['membersProfileForm']) ? count($this->functionData['membersProfileForm']) : 0;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['custom_fields'] = $custom_fields;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['group_titles'] = $group_titles;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['day'] = $day;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['mon'] = $mon;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['year'] = $year;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['amEditor'] = $amEditor;
$this->functionData['membersProfileForm'][$count_0282ce37479526ef8120230c0f87d55e]['times'] = $times;
}
$IPBHTML .= "<input type='hidden' name='updateAboutMe' id='updateAboutMe' value='0' />\n<h2 class='ipsType_subtitle ipsSettings_pagetitle'>{$this->lang->words['general_account_settings']}</h2>\n<div class='ipsSettings'>\n\t" . (IPSMember::canUploadPhoto($this->memberData) ? "\n\t\t<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_photo_title']}</h3>\n\t\t\t<div>\n\t\t\t\t<a data-clicklaunch=\"launchPhotoEditor\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&module=profile&section=photo", "public", ''), "", "") . "\" class='ipsButton_secondary'>{$this->lang->words['ucp_photo_change']}</a>\n\t\t\t</div>\n\t\t</fieldset>\n\t" : "") . "\n\t\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['settings_time']}</h3>\n\t\t<div>\n\t\t\t<ul class='ipsForm ipsForm_horizontal'>\n\t\t\t\t<li class='ipsField'>\n\t\t\t\t\t<label for='timezone'>{$this->lang->words['ucp_timzeone']}</label>\n\t\t\t\t\t<select name='timeZone' id='timezone' class='input_select'>\n\t\t\t\t\t" . $this->__f__b9d0c5d3eb855351a89f501cc491868f($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t</select><br />\n\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['settings_time_txt2']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate('{custom:now}', "LONG", 1)) . "</span>\n\t\t\t\t</li>\n\t\t\t\t" . ($this->settings['time_dst_auto_correction'] ? "<li>\n\t\t\t\t\t\t" . ($this->request['dsterror'] == 1 ? "\n\t\t\t\t\t\t\t{$this->lang->words['dst_error']}\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dst' name=\"dstCheck\" onclick='toggle_dst()' value=\"1\"" . ($this->memberData['members_auto_dst'] ? " checked=\"checked\"" : "") . "/> <label for='dst'>{$this->lang->words['dst_correction_title']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id='dst-manual'>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label>\n\t\t\t\t\t</li>" : "<li>\n\t\t\t\t\t\t<input type='checkbox' class='input_check' id='dstManual' name=\"dstOption\" value=\"1\"" . ($this->memberData['dst_in_use'] ? " checked=\"checked\"" : "") . "/> <label for='dstManual'>{$this->lang->words['ucp_dst_now']}</label><br />\n\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['ucp_dst_effect']}</span>\n\t\t\t\t\t</li>") . "\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\n\t<fieldset class='ipsSettings_section'>\n\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_comments']}</h3>\n\t\t<div>\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_comments' value='1' " . ($this->memberData['pp_setting_count_comments'] > 0 ? "checked='checked'" : "") . " id='comments_enable' /> <label for='comments_enable'>{$this->lang->words['ucp_enable_comments']}</label>\n\t\t\t\t</li>\n\t\t\t\t<!-- proposing removal -->\n\t\t\t\t<li id='approve_comments'>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_comments' id='pp_setting_moderate_comments' " . ($this->memberData['pp_setting_moderate_comments'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_comments'>{$this->lang->words['op_dd_enabled']}</label>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_visitors' value='1' " . ($this->memberData['pp_setting_count_visitors'] > 0 ? "checked='checked'" : "") . " id='pp_latest_visitors' /> <label for='pp_latest_visitors'>{$this->lang->words['ucp_show_x_latest']}</label>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</fieldset>\n\t" . (($this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['ucp_friends']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_count_friends' value='1' " . ($this->memberData['pp_setting_count_friends'] > 0 ? "checked='checked'" : "") . " id='friends_enable' /> <label for='friends_enable'>{$this->lang->words['ucp_show_friends_profile']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<input class='input_check' type='checkbox' value='1' name='pp_setting_moderate_friends' id='pp_setting_moderate_friends' " . ($this->memberData['pp_setting_moderate_friends'] ? "checked=\"checked\"" : "") . " /> <label for='pp_setting_moderate_friends'>{$this->lang->words['ucp_friend_approve']}</label>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t" . ($day && $mon && $year || $this->settings['post_titlechange'] && $this->memberData['posts'] >= $this->settings['post_titlechange'] ? "<fieldset class='ipsSettings_section'>\n\t\t\t<h3 class='ipsSettings_sectiontitle'>{$this->lang->words['profile_information']}</h3>\n\t\t\t<div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href='#' class='ipsButton_secondary' id='edit_aboutme'>{$this->lang->words['edit_my_about_me']}</a></li>\n\t\t\t\t</ul>\n\t\t\t\t" . (($this->settings['post_titlechange'] == -1 or $this->settings['post_titlechange'] and $this->memberData['posts'] >= $this->settings['post_titlechange']) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='member_title' class='ipsSettings_fieldtitle'>{$this->lang->words['member_title']}</label>\n\t\t\t\t\t\t\t<input type='text' class='input_text' size='40' id='member_title' name='member_title' value='{$this->memberData['title']}' />\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['member_title_desc']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t\t" . (($day and $mon and $year) ? "\n\t\t\t\t\t<br />\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<label for='birthday' class='ipsSettings_fieldtitle'>{$this->lang->words['ucp_birthday_select']}</label>\n\t\t\t\t\t\t\t<select name=\"month\"> \n\t\t\t\t\t\t\t\t" . $this->__f__55013cc17dd0fe99d8fc4ee5c67335ac($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select>\t\t\t\n\t\t\t\t\t\t\t<select name=\"day\"> \n\t\t\t\t\t\t\t\t" . $this->__f__1822e89635ded337a3d3076228f2dbaf($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> \n\t\t\t\t\t\t\t<select name=\"year\"> \n\t\t\t\t\t\t\t\t" . $this->__f__f84eeae15c4a7ebe2dc071fcc26ae6e3($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t\t\t\t\t\t\t</select> <br />\n\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['ucp_birthday_optional']}</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t" : "") . "\n\t\t\t</div>\n\t\t</fieldset>" : "") . "\n\t\n\t" . (count($custom_fields) ? "" . $this->__f__3235dcd35c7da59bcefe9c33223642a5($custom_fields, $group_titles, $day, $mon, $year, $amEditor, $times) . "\t" : "") . "\n\t\n\t<div id='aboutme_editor' style='display: none'>\n\t\t<h3>{$this->lang->words['cp_edit_aboutme']}</h3>\n\t\t<div>\n\t\t\t{$amEditor}\n\t\t</div>\n\t\t<div class='ipsForm_submit' style='margin-top: 0;'>\n\t\t\t<a href='#' id='close_aboutme_editor' class='ipsButton'>{$this->lang->words['finish_aboutme_edit']}</a>\n\t\t</div>\n\t</div>\n\t" . ($required_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_required_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$required_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n\t" . ($optional_output ? "\n\t\t<fieldset class='" . IPSLib::next($this->registry->templateStriping["usercp"]) . "'>\n\t\t\t<h3>{$this->lang->words['ucp_other_info']}</h3>\n\t\t\t<ul>\n\t\t\t\t{$optional_output}\n\t\t\t</ul>\n\t\t</fieldset>\n\t" : "") . "\n</div>\n<script type=\"text/javascript\">\n//<![CDATA[\nfunction toggle_dst()\n{\n\tif ( \$( 'dst' ) )\n\t{\n\t\tif ( \$( 'dst' ).checked ){\n\t\t\t\$( 'dst-manual' ).style.display = 'none';\n\t\t} else {\n\t\t\t\$( 'dst-manual' ).style.display = 'block';\n\t\t}\n\t}\n}\ntoggle_dst();\n//]]>\n</script>";
return $IPBHTML;
}