Trotor Posted October 12, 2013 Share Posted October 12, 2013 Собственно есть такая хорошая настройка как персонализация профиля - юзер может сам выбирать цвет и изображения, но только в пределах своего профиля. А возможно ли такую персонализацию распространить на весь форум? 1 Link to comment Share on other sites More sharing options...
Bot Posted October 12, 2013 Share Posted October 12, 2013 Обратите внимание По указанному вами в профиле "Board url" находится не IP.Board, либо модифицированный пиратский скрипт с удаленными копирайтами. Если вы указали неверный URL, пожауйста, поправьте его, потому что он скорее всего потребуется при диагностике вашей проблемы. Нелицензионные скрипты не приветствуются, т.к. зачастую именно некорректное "нуление" и является причиной проблем в них. Link to comment Share on other sites More sharing options...
newbie Posted October 12, 2013 Share Posted October 12, 2013 Есть стили, в которых юзер может менять цветовое оформление отдельных элементов стиля. Не знаю как дела обстоят в 3.1.4. А возможно ли такую персонализацию распространить на весь форум?Возможно. Создаем условие и изменяем свойства нужных селекторов. Link to comment Share on other sites More sharing options...
Trotor Posted October 12, 2013 Author Share Posted October 12, 2013 Есть стили, в которых юзер может менять цветовое оформление отдельных элементов стиля. Не знаю как дела обстоят в 3.1.4.Помниться давно видел такие стили, и на 3.1.4 Создаем условие и изменяем свойства нужных селекторов.Не подскажите какие условия? Link to comment Share on other sites More sharing options...
newbie Posted October 12, 2013 Share Posted October 12, 2013 <php> if ( $this->memberData['pp_customization'] ) { $props = unserialize( $this->memberData['pp_customization'] ); } </php> <if test="is_array($props) AND $props['type']"> <style type="text/css"> /* Overwrite some of the standard IPB rules */ /* Content, is the main page under the header */ #content { padding-left: 95px; padding-right: 95px; max-width:1000px; margin-left: auto; margin-right: auto; } /* new DIV so we can use a semi-transparent image */ #userBg { background-image: url("{style_images_url}/opacity70.png"); padding-bottom: 25px; } /* Set a semi-transparent image for the secondary nav */ #secondary_nav { background-image: url("{style_images_url}/opacity50.png"); height: 15px; } div#profile_overview .general_box.alt, .personal_info { /* background-color: #f3f3f3; */ } <if test="$props['bg_color'] OR $props['bg_url']"> body { <if test="$props['bg_color']"> background-color: #{$props['bg_color']}; </if> <if test="$props['bg_url']"> background-image: url("{$this->settings['upload_url']}/{$props['bg_url']}"); <if test="! $props['bg_tile']"> background-position: 0px 0px; background-attachment: fixed; background-repeat: no-repeat; <else /> background-position: 0px 0px; background-attachment: fixed; background-repeat: repeat; </if> </if> } </if> </style> </if> CSS взят из профиля Link to comment Share on other sites More sharing options...
Trotor Posted October 12, 2013 Author Share Posted October 12, 2013 @newbie, Ух ты, получилось!Большое спасибо! P.S. А возможно реализовать не одну кнопку выбора цвета, а несколько? Link to comment Share on other sites More sharing options...
newbie Posted October 13, 2013 Share Posted October 13, 2013 P.S. А возможно реализовать не одну кнопку выбора цвета, а несколько? Так это уже не персонализация, а "бэкграунд-свитчер". Link to comment Share on other sites More sharing options...
newbie Posted October 13, 2013 Share Posted October 13, 2013 P.S. А возможно реализовать не одну кнопку выбора цвета, а несколько? Так это уже не персонализация, а "бэкграунд-свитчер". Link to comment Share on other sites More sharing options...
Trotor Posted October 13, 2013 Author Share Posted October 13, 2013 Так это уже не персонализация, а "бэкграунд-свитчер".Нет, такое уже сделал. Я вот это имею виду: <if test="$props['bg_color']">background-color: #{$props['bg_color']};</if Все подкреплённые ячейки CSS будут иметь один цвет, особого разнообразия в цвете не получается. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now