Перейти к содержанию

Ruskat

Актив
  • Постов

    264
  • Зарегистрирован

  • Посещение

  • Победитель дней

    5

Активность репутации

  1. Лайк
    Ruskat получил реакцию от Respected в Invision Power Board 3.3.4 English / Nulled by IPBMafia.Ru   
    Sergius, А когда переведёшь
    Шучу... Если смотреть закономерность, то в среднем, через месяц уже есть русский. А если нет, но надо, тогда только самому переводить...
  2. Лайк
    Ruskat получил реакцию от CNoise в Нужно дополнение для вело портала или конструктор полей на HTML   
    Law и _Dark_, я прошу вас прекратить споры, так как каждый умён по-своему и в разных вещах. Да и дела это не решит.
    Просто то, что я смогу сделать, то это украсить дизайном тему, а выпадающие списки и поля для модификации недоступны.
    Например, стилизация радио книпки или выпадающего меню


    <div style="float:left;margin-top:5px;margin-right:35px;"> <select name="type" id="type" onchange="get_color();"> <option style="background-color:#0099cc;" value="1" selected="selected">01</option> <option style="background-color:#00CC00;" value="2">02</option> <option style="background-color:#FF00FF;" value="3">03</option> <option style="background-color:#FF0066;" value="4">04</option> <option style="background-color:#FF99FF;" value="5">05</option> <option style="background-color:#FFCC00;" value="6">06</option> <option style="background-color:#FF8000;" value="7">07</option> </select> </div> радио кнопки, которые заменяются иконками <div class="radio bike-icon" title="На велосипеде"> <input type="radio" name="meeting_onbike" id="meeting_onbike1" value="1" checked="checked" title="На велосипеде" imgradio="1"> <label for="meeting_onbike1"></label> </div> <div class="radio hike-icon" title="Пешком"> <input type="radio" name="meeting_onbike" id="meeting_onbike2" value="0" title="Пешком" imgradio="1"> </div> <div class="radio roller-icon" title="На роликах"> <input type="radio" name="meeting_onbike" id="meeting_onbike3" value="3" title="На лыжах" imgradio="1"> </div> <div class="radio ski-icon" title="На лыжах"> <input type="radio" name="meeting_onbike" id="meeting_onbike4" value="2" title="На роликах" imgradio="1"> </div> <div class="radio skates-icon" title="На коньках"> <input type="radio" name="meeting_onbike" id="meeting_onbike5" value="4" title="На коньках" imgradio="1"> </div> Ну и то, что мне нужно... <img src="images/atributes/01.gif" tip="На маршруте есть подъемы (спуски)" align="absmiddle"> <input type="checkbox" name="attrib[]" value="1" title="На маршруте есть подъемы (спуски)" safari="1">
    Вывод изображения выбором чек-бокса или выпадающего списка. Вот что я не могу сделать...
  3. Лайк
    Ruskat получил реакцию от Myz_mi в IP.Content 2.3.2 (Retail)   
    Название: IP.Content 2.3.2 (Retail)
    Добавил: Ruskat
    Добавлен: 30 Июн 2012
    Категория: Компоненты IP.Board 3.3.x
    Название по-русски : Контент 2.3.2

    Установка:
    Перед установкой желательно сделать бекап всей системы форума и базы данных. Это чтобы вы были застрахованы.
    Потом выгрузить все файлы из папки upload на сервер.
    Далее перейти в АЦ и установить контент.

    Обновление:
    Обязательно сделать бекап всёй системы, работающей на IPB. А именно заархивировать или скачать на комп содержимое сервера и сохранить базу данных.
    После чего выгружаем всё содержимое из папки upload на сервер в соответствующие папки. После віыгрузки заходим в АЦ и ищеи в приложениях наш IP Content.

    Нюансы: Не забудьте переименовать в другое название файл index.php, и выгрузить аналогичный файл вместе с файлом external.php, который находится в папке Tools.
    Так же не забудьте в переменной

    $path_to_ipb = './forums/';
    Находящейся в файле index.php указать путь к папке форума.


  4. Лайк
    Ruskat получил реакцию от Respected в Invision Power Board 3.3.3 English / Nulled by IPBMafia.Ru   
    Звиняйте. Хотел как лучше.
  5. Лайк
    Ruskat отреагировална пост _Dark_ в Invision Power Board 3.3.3 English / Nulled by IPBMafia.Ru   
    Название: Invision Power Board 3.3.3 English / Nulled by IPBMafia.Ru
    Добавил: _Dark_
    Добавлен: 13 Июн 2012
    Категория: Релизы IP.Board 3.3.x



    Invision Power Board 3.3.3 Nulled by IPBMafia.Ru


    Представляем вам новую версию IP.Board - 3.3.3 со снятой защитой.
    Перевод новости с сайта IPS:


    Информация:
    Язык: Английский
    Версия: 3.3.3 (Nulled v.2)
    Автор релиза: _Dark_ (IPBMafia.Ru)
    Автор релиза не несет ответственности за возможные последствия использования.

    Nulled версия:
    Использован оригинальный дистрибутив из клиент-центра IPS.
    Как обычно, работает визуальный редактор стилей.
    Активация выполняется автоматически...
    ... и на этапе установки она пропускается.

    Во вторую версию встроен фикс ошибки обновления со старых версий. Если же вы скачали архив с этой версией до 22:00 13 июня, то пожалуйста, установите фикс.


  6. Лайк
    Ruskat получил реакцию от Respected в [Skinbox] Warrior 3.3.x   
    не стаёт... ну то не смертельно. Так же ещё в папке _config (форум/public/style_images/warrior/_config) есть файлик backgrounds.ini, Я его оформил так:


    [bg1] thumbnail=auto image=bg1.jpg [bg2] thumbnail=auto image=bg2.jpg [bg3] thumbnail=auto image=bg3.jpg [bg4] thumbnail=auto image=bg4.jpg default=on [bg5] thumbnail=auto image=bg0.jpg [bg6] thumbnail=auto image=bg5.jpg а вот повтор, то он в _php/Platform/Backgrounds.php находится. там нужно параметр { $background['repeat'] = false; } заменить на { $background['repeat'] = true; }[/code] . [/b]и будут повторы. У меня изображение в состоянии position: fixed. так больше нравится... Весь код с изменённым парамеиром: [spoiler] [code] <?php class Platform_Backgrounds { public $selector = '#background'; public $put_your_own = false; public $put_your_own_icon = true; protected $_container_type; protected $_trigger_type; protected $_thumbnails = 100; protected $_output; protected $_css; public function __construct() { $this->_thumbnails = Platform::general()->background_picker_thumb_width(); } public function load_backgrounds() { if( $this->_css !== null || $this->_output !== null ) { return; } $settings = Platform::general()->get_background_elements(); $this->selector = $settings['element']; $backgrounds = Platform::settings('backgrounds'); $selected_bg = Platform::client_preference('background'); $this->_output = array(); if( in_array(substr($selected_bg, 0, 7), array('__', 'https:/')) ) { if( $this->put_your_own === false || !Platform::feature('background_put_your_own') ) { $selected_bg = null; } else { if( !IPSText::xssCheckUrl($selected_bg) ) { $selected_bg = null; } else { $this->_css = $this->selector . ' { background-attachment: fixed; background-image: url(' . $selected_bg . '); }'; } } } foreach( $backgrounds as $id => $background ) { if( isset($background['enabled']) && $background['enabled'] == false ) { continue; } if( in_array(substr($background['image'], 0, 7), array('__', 'https:/')) ) { $url = $background['image']; if( $background['thumbnail'] == 'auto' ) { $path = $background['image']; } } else { $url = '{style_images_url}/_bgs/' . $background['image']; if( $background['thumbnail'] == 'auto' ) { $path = Platform::root() . '../_bgs/' . $background['image']; } } if( !isset($background['repeat']) ) { $background['repeat'] = true; } if( $background['repeat'] ) { $background['repeat'] = 'repeat'; } else { $background['repeat'] = 'no-repeat'; } if( !isset($background['fixed']) ) { $background['fixed'] = false; } if( $background['fixed'] ) { $attachment = 'background-attachment: fixed;'; $background['fixed'] = 'fixed'; } else { $attachment = ''; $background['fixed'] = 'scroll'; } if( (isset($background['default']) && $background['default'] && $selected_bg === null) || (('bg-' . $id) == $selected_bg) ) { $this->_css = $this->selector . ' { background-image: url(' . $url . '); ' . $attachment . ' background-repeat: ' . $background['repeat'] . '; }'; } if( $background['thumbnail'] == 'auto' ) { $thumburl = $this->_thumbnail($path); } else if( in_array(substr($background['thumbnail'], 0, 7), array('__', 'https:/')) ) { $thumburl = $background['thumbnail']; } else { $thumburl = '{style_images_url}/_bgs/' . $background['thumbnail']; } if( $thumburl !== null ) { $thumb = '<img src="' . $thumburl . '" />'; } else { $thumb = ''; } if( isset($background['tip']) ) { $background['tip'] = ' data-tip="' . $background['tip'] . '"'; } else { $background['tip'] = ''; } $this->_output[] = '<a id="bg-' . $id . '" href="' . $url . '" class="select_background" data-background data-background-repeat="' . $background['repeat'] . '" data-background-attachment="' . $background['fixed'] . '"' . $background['tip'] . '>' . $thumb . $background['description'] . '</a>'; } if( $this->put_your_own === true && $this->put_your_own_icon === true && Platform::feature('background_put_your_own') ) { $this->_output[] = '<a id="put-your-own" href="#" class="select_background" data-target-layer="putyourown" data-background data-background-attachment="fixed"><img src="{style_images_url}/_bgs/put_your_own.png" alt="Put your own" /></a>'; } if( !Platform::feature('background_picker') ) { $this->_output = array(); } } public function container_start($trigger_type = 'list-item', $label = 'Backgrounds') { if( $this->_container_type === null ) { $this->_container_type = 'dropdown'; if( Platform::feature('backgrounds_in_dropdown', true) ) { $this->_container_type = 'dropdown'; } else if( Platform::feature('backgrounds_in_balloon', true) ) { $this->_container_type = 'balloon'; } else if( Platform::feature('backgrounds_in_overlay', true) ) { $this->_container_type = 'overlay'; } } $this->_trigger_type = $trigger_type; $output = ''; if( $this->_trigger_type === 'list-item' ) { $output .= '<li id="nav_backgrounds" class="right"'; } else if( $this->_trigger_type === 'anchor' ) { $output .= '<a href="#"'; } if( $this->_container_type === 'dropdown' ) { $output .= ' data-dropdown="right"><span><a href="#">' . $label . '</a></span><ul><li id="ptBackgroundPicker">'; } else if( $this->_container_type === 'balloon' ) { $output .= ' data-target-domballoon="bgpicker"><a href="#">' . $label . '</a>' . ($this->_trigger_type === 'anchor' ? '' : '</li>'); $output .= '<div id="ptBackgroundPicker" data-domballoon="bgpicker"><div>'; } else if( $this->_container_type === 'overlay' ) { $output .= ' data-target-layer="bgpicker"><a href="#">' . $label . '</a>' . ($this->_trigger_type === 'anchor' ? '</a>' : '</li>'); $output .= '<div id="ptBackgroundPicker" data-layer="bgpicker"><div>'; } return $output; } public function container_end() { if( $this->_container_type === 'dropdown' ) { return '</li></ul>' . ($this->_trigger_type === 'anchor' ? '</a>' : '</li>'); } else { return '</div></div>'; } } public function backgrounds() { $this->load_backgrounds(); return $this->_output; } public function css() { $this->load_backgrounds(); return $this->_css; } public function js() { $settings = Platform::general()->get_background_elements(); return 'Platform.getCore().setOption('backgrounds', 'element', '' . $settings['element'] . '' );'; } protected function _thumbnail($path) { if( !file_exists($path) ) { return null; } $cacheKey = md5($path); $cachePath = Platform::root() . '../_cache/switcher.' . md5($path) . '.jpg'; if( file_exists($cachePath) ) { if( substr($path, 0, 4) == 'http' ) { if( (filemtime($cachePath) + (24*3600)) > time() ) { return '{style_images_url}/_cache/switcher.' . $cacheKey . '.jpg'; } } else { if( filemtime($cachePath) >= filemtime($path) ) { return '{style_images_url}/_cache/switcher.' . $cacheKey . '.jpg'; } } } $size = getimagesize($path); if( $size[2] == IMAGETYPE_PNG ) { $image = imagecreatefrompng($path); } else if( $size[2] == IMAGETYPE_GIF ) { $image = imagecreatefromgif($path); } else if( $size[2] == IMAGETYPE_JPEG ) { $image = imagecreatefromjpeg($path); } else { return null; } if( $size[0] < $size[1] ) { $coord = 0; } else { $coord = 1; } $thb = array(); $thb[0] = $this->_thumbnails; $thb[1] = $this->_thumbnails; $k = $size[abs($coord-1)] / $size[$coord]; $new = array(); $new[$coord] = $this->_thumbnails; $new[abs($coord-1)] = $this->_thumbnails * $k; $canvas = imagecreatetruecolor($new[0], $new[1]); imagecopyresampled($canvas, $image, 0, 0, 0, 0, $new[0], $new[1], $size[0], $size[1]); $ratio[0] = ($thb[0] / $new[0]); $ratio[1] = ($thb[1] / $new[1]); $canvas2 = imagecreatetruecolor($thb[0], $thb[1]); if( $new[0] > $new[1] ) { $crop[0] = round($new[0] * $ratio[1]); $crop[1] = $thb[1]; $src[0] = ceil(($new[0] / 2) - ($thb[0] / 2)); $src[1] = 0; } else if( $new[0] < $new[1] ) { $crop[1] = round($new[1] * $ratio[0]); $crop[0] = $thb[0]; $src[0] = 0; $src[1] = ceil(($new[1] / 2) - ($thb[1] / 2)); } else { $crop[0] = $thb[0]; $crop[1] = $thb[1]; $src[0] = 0; $src[1] = 0; } imagecopyresampled($canvas2, $canvas, 0 , 0 , $src[0], $src[1], $crop[0], $crop[1], $new[0], $new[1]); imagejpeg($canvas2, $cachePath); return '{style_images_url}/_cache/switcher.' . $cacheKey . '.jpg'; } } [/code]
    [/spoiler]

×
×
  • Создать...