Fedya Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 Здравствуйте! Хотелось бы сделать как у вас 1.не хватает горизонтальной линии, разделяющей профиль от сообщения 2. не хватат вертикальных линий Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 20 февраля, 2012 Автор Поделиться Опубликовано 20 февраля, 2012 ну там линии не видно наверное потому что цветом сделали одним, что за класс отвечает за это? Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 Доброй ночи! - 10 сообщение! Боковая полоса: .column_view .post_body{ border-left: 1px solid #e4e4e4; } [/CODE] Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 20 февраля, 2012 Автор Поделиться Опубликовано 20 февраля, 2012 а если у меня вот так написано, то что исправлять?) .post_block:first-of-type h3{border-top:0}.post_online{vertical-align:middle;margin: -3px 5px 0 0}.post_username{float:left;min-width:177px;font-weight:bold}.post_date{color:#777;float:left;font-size:11px;font-weight:normal}.post_wrap{top:0px}.post_body{margin-left:175px;padding:12px}.post_body .post{line-height:1.6;font-size:12px}.column_view .post_body .post{padding-bottom:12px}.post_block.no_sidebar .post_body{margin-left:0px}.posted_info{padding:0 0 10px 0}.posted_info strong.event{color:#1c2837;font-size:1.2em}.post_ignore{background:#1c1c1c;color:#777;font-size:0.9em;padding:15px}.post_ignore .reputation{text-align:center;padding:2px 6px;float:none;display:inline}.rep_bar{white-space:nowrap;margin:6px 4px}.rep_bar .reputation{font-size:10px;padding:2px 10px !important} Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 исправь .post_body{margin-left:175px;padding:12px}, добавь туда бордер Fedya 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 20 февраля, 2012 Автор Поделиться Опубликовано 20 февраля, 2012 ок,спасибо, а как убрать первые две черточки между хуком двух кнопок(отослать сообщение и добавить в друзья) у меня эти две кнопки тоже окантованы черточками, как убрать? Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 Смотришь исходный код, ишешь класс этих полей и прописываешь в ipb_styles.css класс не имеет верхнуюю чёрточку (border-top: 0 !important) Fedya 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 20 февраля, 2012 Автор Поделиться Опубликовано 20 февраля, 2012 #pm_button ipsButton_secondary ipsType_smaller {border-top: 0 !important;} Прописал так, ничего не получилось :) Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 .add_friend {border: 0 !important} Fedya 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 20 февраля, 2012 Автор Поделиться Опубликовано 20 февраля, 2012 надо же еще вторую прописать?) .add_massage?) с одной не исчезла Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 20 февраля, 2012 Поделиться Опубликовано 20 февраля, 2012 Попробуй)) Я по-моему класс дописывал в самом хуке и потом устанавливал, не помню уже... Fedya 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
egorea1999 Опубликовано 21 февраля, 2012 Поделиться Опубликовано 21 февраля, 2012 Доброй ночи! Ахаха, убило Сори за оффтоп Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 21 февраля, 2012 Автор Поделиться Опубликовано 21 февраля, 2012 class hookuipbuttons { protected $registry; public function __construct() { /* Make registry objects */ $this->registry = ipsRegistry::instance(); } public function getOutput() { /* Return */ return; } public function replaceOutput( $output, $key ) { /* Got some data? */ if ( is_array( $this->registry->output->getTemplate('global')->functionData['userInfoPane'] ) && count( $this->registry->output->getTemplate('global')->functionData['userInfoPane'] ) ) { /* Init some vars */ $tag = '<!--hook.' . $key . '-->'; $last = 0; /* Loop through each template call */ foreach ( $this->registry->output->getTemplate('global')->functionData['userInfoPane'] as $k => $v ) { /* See if we can find this hook point */ $pos = strpos( $output, $tag, $last ); /* Found? */ if ( $pos !== FALSE ) { /* Start swapping it out */ $string = $this->registry->output->getTemplate('global')->hookuipbuttons( $v['author'] ); $output = substr_replace( $output, $string . $tag, $pos, strlen( $tag ) ); $last = $pos + strlen( $tag . $string ); } } } /* Return */ return $output; } }]]></hooks_source> </file> </hookfiles> <hookextras_settings/> <hookextras_language/> <hookextras_modules/> <hookextras_help/> <hookextras_templates> <templates> <template_group>skin_global</template_group> <template_content><![CDATA[<br /><li> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] AND $this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' )"> <a href='{parse url="app=members&module=messaging&section=send&do=form&fromMemberID={$author['member_id']}" base="public"}' title='{$this->lang->words['pm_this_member']}' id='pm_xxx_{$author['member_id']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="send_msg"}</a> </if> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']"> <if test="IPSMember::checkFriendStatus( $author['member_id'] )"> <a href='{parse url="app=members&module=profile&section=friends&do=remove&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="remove_friend"}</a> <else /> <a href='{parse url="app=members&module=profile&section=friends&do=add&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="add_friend"}</a> </if> </if> </li>]]></template_content> <template_name>hookuipbuttons</template_name> <template_data>$author</template_data> <template_updated>1308263590</template_updated> <template_removable>0</template_removable> <template_added_to>0</template_added_to> <template_user_added>1</template_user_added> <template_user_edited>0</template_user_edited> <template_master_key>root</template_master_key> </templates> </hookextras_templates> <hookextras_css/> <hookextras_tasks/> <hookextras_database_create/> <hookextras_database_alter/> <hookextras_database_update/> <hookextras_database_insert/> </hookexport> Скажи, пожалуйста, что вписывать Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Respected Опубликовано 21 февраля, 2012 Поделиться Опубликовано 21 февраля, 2012 Зайди в глобальные --> hookuipbuttons и замени всё на: <br /><li class='add_friend'> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] AND $this->memberData['g_use_pm'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' )"> <a href='{parse url="app=members&module=messaging&section=send&do=form&fromMemberID={$author['member_id']}" base="public"}' title='{$this->lang->words['pm_this_member']}' id='pm_xxx_{$author['member_id']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="send_msg"}</a> </if> <if test="$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']"> <if test="IPSMember::checkFriendStatus( $author['member_id'] )"> <a href='{parse url="app=members&module=profile&section=friends&do=remove&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="remove_friend"}</a> <else /> <a href='{parse url="app=members&module=profile&section=friends&do=add&member_id={$author['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}' class='pm_button ipsButton_secondary ipsType_smaller'>{parse replacement="add_friend"}</a> </if> </if> </li> [/CODE] в ipb_styles.css : .add_friend {border: 0 !important} Fedya 1 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Fedya Опубликовано 21 февраля, 2012 Автор Поделиться Опубликовано 21 февраля, 2012 Спасибо :) Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.