Сегодня: 05:03:2026 Доброго вам вечера!

I live ExBB and CMS Limbo!  I live ExBB and CMS Limbo!
Логин :
Пароль :
Регистрация?  Забыли пароль? 
 

Страниц (117): В начало « ... 46 47 48 49 [50] 51 52 53 54 ... » В конец

> Найдено сообщений: 1166
NordWest Отправлено: 19 марта 2017 — 12:01 • Тема: Назначение файлов • Форум: SMF Community

Ответов: 99
Просмотров: 59067
Class-Package.php - Contains the ftp_connection and xmlArray classes. The ftp_connection class contains functions for FTP-related file management, while the xmlArray class is a simple XML DOM parser. Both classes were located in Subs-Packages.php in previous versions of SMF. Note: The xmlArray functions documented here are the only ones that can be called from outside the class.

ftp_connection', 'Constructor for the ftp_connection class.
ftp_connection::chdir', 'Changes to the specified directory, if possible.
ftp_connection::check_response', 'Checks to see if the desired response code was returned.
ftp_connection::chmod', 'Chmods the specified file to the specified value.
ftp_connection::close', 'Closes the current FTP connection.
ftp_connection::connect', 'Called by ftp_connection to open a new connection.
ftp_connection::create_dir', 'Create a new directory with the specified name.
ftp_connection::create_file', 'Attempts to create the specified file.
ftp_connection::detect_path', 'Two purposes - attempts to detect the path for FTP (and your username if you\'re on cPanel) and also attempts to detect the path to the specified file if an FTP connection is available.
ftp_connection::list_dir', 'Retrieves a directory listing for the specified directory.
ftp_connection::locate', 'Attempts to locate the specified file or directory.
ftp_connection::passive', 'Attempts to establish a passive connection to the FTP server.
ftp_connection::unlink', 'Deletes the specified file from the server.
xmlArray', 'Creates a new xmlArray object, which is an simple xml dom parser.
xmlArray::count', 'Returns the number of elements the path matches.
xmlArray::create_xml', 'Creates an xml file from an xmlArray.
xmlArray::exists', 'Returns whether the specified path matches at least one element.
xmlArray::fetch', 'Retrieves the textual value of the specified path.
xmlArray::name', 'Returns the name of the current element, usually \'\' (empty string).
xmlArray::path', 'Finds any elements that match the path specified.
xmlArray::set', 'Returns an array of xmlArray\'s matching the specified path.
xmlArray::to_array', 'Outputs the XML in array format.
NordWest Отправлено: 19 марта 2017 — 11:53 • Тема: Назначение файлов • Форум: SMF Community

Ответов: 99
Просмотров: 59067
Calendar.php - This file contains functions used for displaying the calendar

CalendarMain - Loads the specified month's events, holidays, and birthdays.
calendarPost - Handles creating, modifying and deleting calendar events.
iCalDownload - Handles downloading event information in iCal format (for use with Google Calendar, etc.)
NordWest Отправлено: 19 марта 2017 — 11:51 • Тема: Назначение файлов • Форум: SMF Community

Ответов: 99
Просмотров: 59067
BoardIndex.php - The functions in this file are used to display the board index.

BoardIndex - Shows the boardindex.
CollapseCategory - This function collapses or expands a category.
NordWest Отправлено: 19 марта 2017 — 11:48 • Тема: Назначение файлов • Форум: SMF Community

Ответов: 99
Просмотров: 59067
Admin.php - Handles basic administration functions.

AdminHome() - Prepares all the data necessary for the administration front page.
AdminLogs() - Sets up an array with available log functions and loads the appropriate log based on the subaction.
AdminMain() - Initializes all the basic context required for the admin center.
AdminSearch() - Sets up all the relevant information for the Admin Search functions.
AdminSearchInternal() - Handles "internal" searching - searches for a task/setting.
AdminSearchMember() - Handles searching for members from the admin search form.
AdminSearchOM() - Searches the SMF Online Manual.
DisplayAdminFile() - Gets one of the admin information files from simplemachines.org.
'
NordWest Отправлено: 15 марта 2017 — 16:36 • Тема: Восстановление АКБ через заряд обратным током. • Форум: Ремонт электроники

Ответов: 0
Просмотров: 1251
По работе заряжал разряженные в ноль АКБ и случайно один подключил в обратной полярности. К моему удивлению ничего страшного не произошло - он зарядился, да ещё и ёмкость приличную набрал. Решил погуглить этот вопрос. Оказывается так люди АКБ восстанавливают, а я дурак пару месяцев назад на машину себе новый купил. Огорчение
NordWest Отправлено: 14 марта 2017 — 23:14 • Тема: Изменяем внешний вид цитаты. • Форум: ExBB Community

Ответов: 1
Просмотров: 1248
Открываем файл fm.class.php в котором ищем строки

PHP:
    while (preg_match("#\[(q|quote)(|=([^\[\]]+?))\](?!.*\[\\1(|=([^\[\]]+?))\])(.+?)\[/\\1\]#is", $string, $matches))
{
$title = ($matches[3] !== '') ? $matches[3].' пишет:':'Цитата:';
$string = str_replace($matches[0],"<div class=\"quotetop\">&nbsp;<b>{$title}</b></div><div class=\"quotemain\">{$matches[6]}</div>", $string);
}


которые меняем строками

PHP:
    while (preg_match("#\[(q|quote)(|=([^\[\]]+?))\](?!.*\[\\1(|=([^\[\]]+?))\])(.+?)\[/\\1\]#is", $string, $matches))
{
$title = ($matches[3] !== '') ? 'Цитата: '.$matches[3].' говорил...':'Цитата:';
$string = str_replace($matches[0],"<div class=\"quotetop\">&nbsp;<b>{$title}</b></div><blockquote>{$matches[6]}</blockquote>", $string);
}


Затем открываем таблицу стиля дефолтного шаблона, файл style.css в котором ищем строки

PHP:
.quotetop{
background: #E4EAF2 url(im/quote.gif) no-repeat right top;
border: 1px dotted #000;
border-bottom: 0;
border-left: 4px solid #8394B2;
color: #000;
font-weight: bold;
font-size: 10px;
margin: 2px auto 0 auto;
padding: 3px;
}

.quotemain{
background: #FAFCFE;
border: 1px dotted #000;
border-left: 4px solid #8394B2;
border-top: 0;
color: #465584;
padding: 4px;
margin: 0 auto 0 auto;
}


которые меняем строками

PHP:
.quotetop {color: #666; font-size: x-small; font-weight: bold; padding: 0 0.3em;}

blockquote {
background: none repeat scroll 0 0;
font-family: arial;
font-size: 12px;
font-style: italic;
line-height: 1.45;
padding: 15px 38px;
position: relative;
box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 0 10px rgba(0,0,0,0.1) inset;
}

blockquote:before{
position:absolute;
margin-top:-33px;
margin-left:-30px;
content:url('im/webof.png');
}


Ну и добавляем картинку булавки с именем webof.png в папку im

Вроде всё... В ближайшее время интегрирую на текущий форум.
NordWest Отправлено: 14 марта 2017 — 17:51 • Тема: Изменяем внешний вид цитаты. • Форум: ExBB Community

Ответов: 1
Просмотров: 1248
С недавноего времени стал раздражать внешний вид цитат в дефолтном шаблоне.



Буду переделывать к такому виду

NordWest Отправлено: 14 марта 2017 — 17:40 • Тема: ExBB и режим SAFE MODE • Форум: ExBB Community

Ответов: 1
Просмотров: 1366
Полностью победить SafeMode не удалось. Проблемы с доступом всё равно остались, но в целом перенос форумов в папку data всё равно дело полезное - вся база теперь в одном месте.
NordWest Отправлено: 13 марта 2017 — 22:22 • Тема: Анекдоты • Форум: Всё подряд

Ответов: 3
Просмотров: 2037
 Цитата от технарь:
Нет, чистка заключается в отрезании верхнего слоя
NordWest Отправлено: 13 марта 2017 — 22:17 • Тема: Новости дня • Форум: Всё подряд

Ответов: 276
Просмотров: 98751
Ага. И тебе того же.
Как дела, что на работе?

Страниц (117): В начало « ... 46 47 48 49 [50] 51 52 53 54 ... » В конец

Powered by ExBB v1.1.180311