Опубліковано 14 жовтня, 20159 р Адміністратор Просмотреть файл (WA34) Администрация версия: 1.0.0 Выставляем группы, которым будет видна кнопка "Редактировать" и все работает Автор Ciko Скачать файл Добавлен 15.10.2015 Поделиться Размер файла 33 КБ Категория Хуки для IPB 3.4.x Язык RUS
Опубліковано 11 листопада, 20159 р как добавить пользователя?Нажимаю кнопку редактировать вожу данные нажимаю сохранить и не отображается контакт
Опубліковано 11 листопада, 20159 р Автор Адміністратор заменить на:<div class="ipsSideBlock clearfix"> <h3>Связь с Администрацией</h3> <div class="_sbcollapsable"> <if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_money'] = htmlspecialchars($this->memberData['wa_frilance_money']);$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php> <div class="wa_frilance_admin"> <input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'> <div style="display: none;"> <input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Ссылка на стр вк' value="{$this->memberData['wa_frilance_portfolio']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='оставить поле пустым' value="{$this->memberData['wa_frilance_min']}" style="width: calc( (100% - 30px) / 2);float: left;"> <input size='30' class='input_text wa_frilance_input wa_frilance_money' type='text' maxlength='35' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_money']}" style="width: calc( (100% - 30px) / 2);float: right;"> <input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'> </div> </div> </if> <foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);$user['wa_frilance_money'] = htmlspecialchars($user['wa_frilance_money']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);</php> <if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''"> <div class="wa_frilance"> <a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left"> <img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini"> </a> <php> if($user['last_activity'] > time() - 60*5) $user['_online'] = TRUE; else $user['_online'] = FALSE; $user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']' ) ); </php> <div class="wa_frilance_info"> <div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style=" color: #32E700; font-size: 11px; margin-top: 3px;"></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;background: rgba(170, 170, 170, 0);"><i class="fa fa-dot-circle-o" style=" color: #570000; font-size: 11px; margin-top: 3px;"></i></span></if></div> <div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div> </div> <a target="_blank" data-tooltip="Вконтакте" href="{$user['wa_frilance_portfolio']}" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-vk" style=" font-size: 14px; margin-top: 3px; color: #5D6069; };"></i></a> <a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_money']}?add" class="ipsButton_secondary wa_frilance_mon"><i class="fa fa-skype" style=" font-size: 14px; margin-top: 3px; color: #5D6069; };"></i></a><style>i.fa.fa-skype:hover { color: #517C95;}</style> <a href="{$this->settings['board_url']}/index.php?app=members&module=messaging§ion=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style=" font-size: 14px; margin-top: 3px; color: #5D6069; };"></i></a> </div> </if> </foreach> </div></div><script>jQuery(document).ready( function(){ jQuery(".wa_frilance_open").click( function(){ jQuery(".wa_frilance_open").next("div").fadeToggle(); }) jQuery(".wa_frilance_save").click( function(){ jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: jQuery(".wa_frilance_money").val()}, function(data){ location.reload(); }) })});</script>
Опубліковано 11 листопада, 20159 р Автор Адміністратор Админ Панель-Внешний вид-Ваш стиль-Список форумов-WA_frilance
Опубліковано 11 листопада, 20159 р Автор Адміністратор Тогда пробуйте заменить на:<div class="ipsSideBlock clearfix"> <h3>Администрация</h3> <div class="_sbcollapsable"> <if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php> <div class="wa_frilance_admin"> <input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'> <div style="display: none;"> <input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_portfolio']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='Ссылка на ВК' value="{$this->memberData['wa_frilance_min']}"> <input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'> </div> </div> </if> <foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);</php> <if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''"> <div class="wa_frilance"> <a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left"> <img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini"> </a> <php> if($user['last_activity'] > time() - 60*5) $user['_online'] = TRUE; else $user['_online'] = FALSE; $user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']' ) ); </php> <div class="wa_frilance_info"> <div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span></if></div><style>.ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}</style> <div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div> </div><a target="_blank" data-tooltip="ВКонтакте" href="{$user['wa_frilance_min']}" class="ipsButton_secondary wa_frilance_mon""><i class="fa fa-vk" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> <a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_portfolio']}?chat" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-skype" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> <a href="{$this->settings['board_url']}/index.php?app=members&module=messaging§ion=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> </div> </if> </foreach> </div></div><script>jQuery(document).ready( function(){ jQuery(".wa_frilance_open").click( function(){ jQuery(".wa_frilance_open").next("div").fadeToggle(); }) jQuery(".wa_frilance_save").click( function(){ jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: "test"}, function(data){ location.reload(); }) })});</script>
Опубліковано 18 січня, 20169 р Тогда пробуйте заменить на:<div class="ipsSideBlock clearfix"> <h3>Администрация</h3> <div class="_sbcollapsable"> <if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php> <div class="wa_frilance_admin"> <input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'> <div style="display: none;"> <input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Логин скайпа' value="{$this->memberData['wa_frilance_portfolio']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='Ссылка на ВК' value="{$this->memberData['wa_frilance_min']}"> <input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'> </div> </div> </if> <foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);</php> <if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''"> <div class="wa_frilance"> <a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left"> <img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini"> </a> <php> if($user['last_activity'] > time() - 60*5) $user['_online'] = TRUE; else $user['_online'] = FALSE; $user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']' ) ); </php> <div class="wa_frilance_info"> <div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -7px;padding: 0px 3px;height: 14px;line-height: 14px;border-radius: 0px 0px 5px 0px;float: left;;"></span></i></span></if></div><style>.ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}</style> <div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div> </div><a target="_blank" data-tooltip="ВКонтакте" href="{$user['wa_frilance_min']}" class="ipsButton_secondary wa_frilance_mon""><i class="fa fa-vk" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> <a target="_blank" data-tooltip="Скайп" href="skype:{$user['wa_frilance_portfolio']}?chat" class="ipsButton_secondary wa_frilance_port"><i class="fa fa-skype" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> <a href="{$this->settings['board_url']}/index.php?app=members&module=messaging§ion=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><i class="fa fa-envelope" style=" font-size: 13px; margin-top: 3px; color: #5c6773;"></i></a> </div> </if> </foreach> </div></div><script>jQuery(document).ready( function(){ jQuery(".wa_frilance_open").click( function(){ jQuery(".wa_frilance_open").next("div").fadeToggle(); }) jQuery(".wa_frilance_save").click( function(){ jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: "test"}, function(data){ location.reload(); }) })});</script> Можно как то поменять цвет самого поля где контактные данные на черный?А то форум в черном стиле,а контакты белые и шрифт тоже белый.Не видно ничего,не ника не должности.
Опубліковано 18 січня, 20169 р Автор Адміністратор .ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}Цвет color: #fff;
Опубліковано 18 січня, 20169 р .ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}Цвет color: #fff;Вот код <div class="ipsSideBlock clearfix"> <h3>Администраторы</h3> <div class="_sbcollapsable"> <if test="in_array($this->memberData['member_id'], $members['id'])"><php>$this->memberData['wa_frilance_min'] = htmlspecialchars($this->memberData['wa_frilance_min']);$this->memberData['wa_frilance_jobs'] = htmlspecialchars($this->memberData['wa_frilance_jobs']);$this->memberData['wa_frilance_portfolio'] = htmlspecialchars($this->memberData['wa_frilance_portfolio']);</php> <div class="wa_frilance_admin"> <input type='button' class='input_submit wa_frilance_input wa_frilance_open' value='Редактировать'> <div style="display: none;"> <input size='30' class='input_text wa_frilance_input wa_frilance_portfolio' type='text' placeholder='Логин Skype' value="{$this->memberData['wa_frilance_portfolio']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_jobs' type='text' maxlength='35' placeholder='Должность' value="{$this->memberData['wa_frilance_jobs']}"> <input size='30' class='input_text wa_frilance_input wa_frilance_min' type='text' maxlength='35' placeholder='Ссылка на ВК' value="{$this->memberData['wa_frilance_min']}"> <input type='button' class='input_submit wa_frilance_input wa_frilance_save alt' value='Сохранить'> </div> </div> </if> <foreach loop="$members as $user"><php>$user['wa_frilance_jobs'] = htmlspecialchars($user['wa_frilance_jobs']);$user['wa_frilance_portfolio'] = htmlspecialchars($user['wa_frilance_portfolio']);$user['wa_frilance_min'] = htmlspecialchars($user['wa_frilance_min']);</php> <if test="$user['wa_frilance_jobs'] != '' AND $user['wa_frilance_portfolio'] != ''"> <div class="wa_frilance"> <a href="{$this->settings['base_url']}/user/{$user['member_id']}-{$user['members_seo_name']}/" class="ipsUserPhotoLink left"> <img src="{$this->settings['board_url']}/<if test="$user['pp_thumb_photo'] != ''">uploads/{$user['pp_thumb_photo']}<else />webask/frilance/default_large.png</if>" class="ipsUserPhoto ipsUserPhoto_mini"> </a> <php> if($user['last_activity'] > time() - 60*5) $user['_online'] = TRUE; else $user['_online'] = FALSE; $user['wa_bb'] = IPSText::getTextClass('bbcode')->preDisplayParse( IPSText::getTextClass('bbcode')->preDbParse( '[member=' . $user['members_display_name'] . ']' ) ); </php> <div class="wa_frilance_info"> <div>{$user['wa_bb']} <if test="$user['_online']"><span class="ipsBadge ipsBadge_green" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;">On</span><else /><span class="ipsBadge ipsBadge_grey" style="margin-top: -4px;padding: 0px 3px;height: 14px;line-height: 14px;">Off</span></if></div> <div style="padding-top: 5px;">{$user['wa_frilance_jobs']}</div> </div> <a target="_blank" data-tooltip="Skype" href="skype:{$user['wa_frilance_portfolio']}?chat" class="ipsButton_secondary wa_frilance_port"><img style="width: 16px;" src="{$this->settings['board_url']}/webask/frilance/skype.png"></a> <a target="_blank" data-tooltip="ВКонтакте" href="{$user['wa_frilance_min']}" class="ipsButton_secondary wa_frilance_mon" style="cursor: default;"><img style="width: 16px;" src="{$this->settings['board_url']}/webask/frilance/vk.png"></a> <a href="{$this->settings['board_url']}/index.php?app=members&module=messaging§ion=send&do=form&fromMemberID={$user['member_id']}" data-tooltip="Отправить ЛС" id="pm_xxx_{$user['member_id']}" class="pm_button ipsButton_secondary wa_frilance_mess"><img src="{$this->settings['board_url']}/webask/frilance/message.png"></a> </div> </if> </foreacаh> </div></div><script>jQuery(document).ready( function(){ jQuery(".wa_frilance_open").click( function(){ jQuery(".wa_frilance_open").next("div").fadeToggle(); }) jQuery(".wa_frilance_save").click( function(){ jQuery.post('{$this->settings['board_url']}/webask/frilance/frilance.php', {portfolio: jQuery(".wa_frilance_portfolio").val(), jobs: jQuery(".wa_frilance_jobs").val(), min: jQuery(".wa_frilance_min").val(), money: "test"}, function(data){ location.reload(); }) })});</script>
Опубліковано 18 січня, 20169 р Ссылку на свой форум в профиль добавти.Сейчас попробую ваш код вставить со своими изображениями.Посмотрим что получится.Как черный цвет будет?Белый #fff,А черный как? Змінено 18 січня, 20169 р користувачем soft123
Опубліковано 18 січня, 20169 р Ссылку на свой форум в профиль добавти.Вот код vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;Как сделать что бы был черный цвет?А то я незнаю таблицу цветов.
Опубліковано 19 січня, 20169 р Автор Адміністратор .ipsBadge1 {vertical-align: middle;display: inline-block;height: 16px;line-height: 16px;padding: 0 5px;font-size: 9px;font-weight: bold;text-transform: uppercase;color: #fff;text-shadow: rgba(0,0,0,0.2) 0px -1px 0px;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;background-repeat: repeat-x;background-position: 0 -1px;}Цвет color: #fff;
Для публікації повідомлень створіть обліковий запис або авторизуйтесь