Fade Header
Правила форума
Местная Конституция | Шаблон запроса | Документация (phpBB3) | Мини [FAQ] по phpBB3.1.x/3.2.x | FAQ | Внимание! Прежде чем создать тему - прочти! | Как задавать вопросы | Как устанавливать расширения
Ваш вопрос может быть удален без объяснения причин, если на него есть ответы по приведённым ссылкам (а вы рискуете получить предупреждение
).
Внимание! Не устанавливайте бета-версии расширений на работающие форумы!
Местная Конституция | Шаблон запроса | Документация (phpBB3) | Мини [FAQ] по phpBB3.1.x/3.2.x | FAQ | Внимание! Прежде чем создать тему - прочти! | Как задавать вопросы | Как устанавливать расширения
Ваш вопрос может быть удален без объяснения причин, если на него есть ответы по приведённым ссылкам (а вы рискуете получить предупреждение

Внимание! Не устанавливайте бета-версии расширений на работающие форумы!
-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
Full extension:
Edit: No github
Edit: No github
Последний раз редактировалось cece74 09.06.2015 17:23, всего редактировалось 1 раз.
-
- phpBB 1.4.0
- Сообщения: 30
- Стаж: 18 лет 7 месяцев
Re: Fade Header
В управлении расширением надо бы добавить возможность выбирать высоту картинок, а то приходится лезть в код и ставить нужную. Ширина автоматом нормально работает.
-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
That's what they told me about .com
I did not understand anything .. help!
http://phpbbextension.altervista.org/fa ... er-t2.html
I did not understand anything .. help!
http://phpbbextension.altervista.org/fa ... er-t2.html
У вас нет необходимых прав для просмотра вложений в этом сообщении.
-
- phpBB Guru
- Сообщения: 16947
- Стаж: 18 лет 11 месяцев
- Откуда: Красноярск
- Благодарил (а): 549 раз
- Поблагодарили: 1700 раз
Re: Fade Header
cece74, it's in English, so it's pretty hard for us to detail it in English again, and moreover in Russian which won't be understandable for you too
I could try to help you but don't know how.

I could try to help you but don't know how.
-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
True, I am Italian and I do not understand anything. Let's see if anyone can help. Thanks anyway.
-
- phpBB Guru
- Сообщения: 16947
- Стаж: 18 лет 11 месяцев
- Откуда: Красноярск
- Благодарил (а): 549 раз
- Поблагодарили: 1700 раз
Re: Fade Header
Well, if it could be easier for you maybe...
1) You have submitted ver. 1.5, then resubmitted as 1.6, then resubmitted 1.5 again. 1.5 shouldn't go after 1.6.
2) PHPBB should be written as phpBB.
3) Remove instructions.html. Add more explanations to the ACP page instead.
4) Add a comment for the $max_size value about what is it for.
5) Replace all request_var() with $request->variable().
6) Remove '' (empty string) before the $phpbb_root_path.
7) Don't upload files to the extension subdirectory. Use standalone directory instead, or subdir in the /store folder.
8) Before uploading files, check if the directory is writable. If it is not writable, throw error.
9) Remove '' (empty strings) at the end of the template var values.
10) cast $id to int (it looks like
11) In template files, use
12)
1) You have submitted ver. 1.5, then resubmitted as 1.6, then resubmitted 1.5 again. 1.5 shouldn't go after 1.6.
2) PHPBB should be written as phpBB.
3) Remove instructions.html. Add more explanations to the ACP page instead.
4) Add a comment for the $max_size value about what is it for.
5) Replace all request_var() with $request->variable().
6) Remove '' (empty string) before the $phpbb_root_path.
7) Don't upload files to the extension subdirectory. Use standalone directory instead, or subdir in the /store folder.
8) Before uploading files, check if the directory is writable. If it is not writable, throw error.
9) Remove '' (empty strings) at the end of the template var values.
10) cast $id to int (it looks like
(int) $id
).11) In template files, use
{L_COLON}
instead of :
.12)
SLIDE
template var is used within JS, so you have to use addslaches on it (it looks like 'SLIDE' => addslaches(substr($slide, 0, -2)),
).-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
1, 2 ok..
3) Remove instructions.html. - Ok
Add more explanations to the ACP page instead. -- ???
4) ?
5) ?
6) ?
7) And how do I do ?
8) And how do I do?
9) ?
10) ?
11) - OK
12) ?
More than that I do not know what to do ..
3) Remove instructions.html. - Ok
Add more explanations to the ACP page instead. -- ???
4) ?
5) ?
6) ?
7) And how do I do ?
8) And how do I do?
9) ?
10) ?
11) - OK
12) ?
More than that I do not know what to do ..
-
- phpBB 3.2.6
- Сообщения: 5954
- Стаж: 15 лет
- Откуда: Сергиев Посад
- Благодарил (а): 295 раз
- Поблагодарили: 287 раз
Re: Fade Header
cece74, http://www.phpbbitalia.net/forum/?
За ваши деньги решу ваши проблемы. Стучи в ЛС.
Нет человека - нет проблемы. (c)
Нет человека - нет проблемы. (c)
-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
Yes, is abandoned!владимир1983 писал(а): cece74, http://www.phpbbitalia.net/forum/?
You do not me want?
-
- phpBB Guru
- Сообщения: 16947
- Стаж: 18 лет 11 месяцев
- Откуда: Красноярск
- Благодарил (а): 549 раз
- Поблагодарили: 1700 раз
Re: Fade Header
Put info from the instructions.html here:
Код: Выделить всё
'ACP_FADE_HEADER_EXPLAIN' => 'Here you can download the images for the header slider.',
Код: Выделить всё
// Maximum file size, in bytes. We use 50000 because ... (explain the reason here)
$max_size = 500000;
$max_size
config parameter to the ACP.Код: Выделить всё
$action = request_var('action', '');
$img_id = request_var('id', 0);
Код: Выделить всё
$action = $request->variable('action', '');
$img_id = $request->variable('id', 0);
Код: Выделить всё
$target_dir = $phpbb_root_path . 'ext/sanfi/fadeheader/styles/all/theme/images/';
Код: Выделить всё
$target_dir = $phpbb_root_path . 'store/fadeheader/images/';
Код: Выделить всё
if($submit)
{
if(!phpbb_is_writable($target_dir))
{
$error[] = $user->lang['TARGET_DIR_NOT_WRITABLE'];
}
Код: Выделить всё
'U_MOVE_UP' => $this->u_action . '&action=move_up&id=' . $row['id'],
'U_MOVE_DOWN' => $this->u_action . '&action=move_down&id=' . $row['id'],
'U_DELETE' => $this->u_action . '&action=delete&id=' . $row['id'],
Код: Выделить всё
$sql = 'SELECT order_img
FROM ' . FADE_TABLE . '
WHERE id = ' . (int) $id;
Код: Выделить всё
$this->template->assign_vars(array(
'SLIDE' => addslaches(substr($slide, 0, -2)),
'LAST' => substr($last_img, 0, -2),
));
feel free to ask help here. It's just a double language barrier

-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
Re: Fade Header
It puts me in error listner:
Код: Выделить всё
$this->template->assign_vars(array(
'SLIDE' => addslaches(substr($slide, 0, -2)),
'LAST' => substr($last_img, 0, -2),
));
У вас нет необходимых прав для просмотра вложений в этом сообщении.
-
- phpBB Guru
- Сообщения: 16947
- Стаж: 18 лет 11 месяцев
- Откуда: Красноярск
- Благодарил (а): 549 раз
- Поблагодарили: 1700 раз
Re: Fade Header
Yeah, there's a typo, sorry. Should be
sh
instead of ch
Код: Выделить всё
'SLIDE' => addslashes(substr($slide, 0, -2)),
-
- phpBB 1.4.3
- Сообщения: 90
- Стаж: 10 лет 1 месяц
- Откуда: Italia
- Благодарил (а): 12 раз
- Поблагодарили: 4 раза
-
- phpBB Guru
- Сообщения: 16947
- Стаж: 18 лет 11 месяцев
- Откуда: Красноярск
- Благодарил (а): 549 раз
- Поблагодарили: 1700 раз
Re: Fade Header
You should replaceWe use 50000 because ... (explain the reason here)
(explain the reason here)
part with actual explanation why it is 500000 and not 1000000 or another value 
Does the folder exist and writable (having 777 permissions)?'store/fadeheader/images/