Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Форум для новичков » Общие вопросы от новичков (63) #2


Общие вопросы от новичков (63) #2

Сообщений 941 страница 960 из 1015

1

Инструменты для поиска и редактирования стиля (скриптов).

Как с помощью браузера можно определить элемент дизайна.

Каталог скриптов/CSS

Полезные скрипты, необходимые темы для новичков, а также ссылки на сайты рассказывающие что такое HTML и CSS.

Типовые Вопросы (ЧаВо)

Ответы на часто задаваемые вопросы.

Как задавать вопросы! Разница между стилем и скриптом. ( Советы)

Плюс к названию темы еще и Памятка.

Любой вопрос по оформлению/неполадкам сопровождайте ссылкой на форум, по которому возникли сложности.

Предыдущая часть темы: Общие вопросы от новичков (63)

+1

941

Сергей Дрёмов
Ответил на ваше сообщение в ЛС.

+1

942

Здравствуйте. Подскажите пожалуйста, можно ли в настройках сделать так чтобы при регистрации пользователь сам задавал нужный ему пароль?

0

943

Фрикаделька
Нет

+2

944

Deff
Жаль.
Ладно, спасибо за ответ.

0

945

Здравствуйте. Подскажите пожалуйста, как сделать рекламный баннер на своем форуме? Если делать в канве, то куда потом конкретно вставлять картинку, или ссылку на картинку? Второй момент, если я хочу сделать баннеры и вверху форума, и внутри страниц с темами, или даже в темах между сообщениями, можно ли это сделать, и если да, то как?

0

946

Olga_Olga
Вы можете использовать поля HTML верх и HTML низ в разделе Администрирование - Формы.

0

947

Alex_63
Это мне понятно, а конкретнее можно?) Как прописать, есть ли какой-то конкретный алгоритм?

0

948

Olga_Olga
Например так:

Код:
<img src="ссылка на картинку вашего баннера" id="banner1" />

Далее #banner1 передвинуть куда нужно стилем или перенести скриптом.
Если укажете на скриншоте, куда именно втыкать баннеры, напишу как это сделать в коде.

0

949

Alex_63
Спасибо, а подскажите, ссылка на картинку баннера где должна быть? На фотохостинге?

0

950

Olga_Olga написал(а):

Спасибо, а подскажите, ссылка на картинку баннера где должна быть? На фотохостинге?

Загрузить в форму ответа по кнопке https://i1.imageban.ru/out/2024/04/21/0e258a6d07e1b96b8ddf171a09861983.png
или в  администрирование - файлы

0

951

Deff
Поняла, спасибо)

0

952

Olga_Olga
давайте мне админ аккаунт я вам сделаю
2-й

-1

953

Olga_Olga

tartar1 написал(а):

Olga_Olga
давайте мне админ аккаунт я вам сделаю
2-й

Даже не думайте об этом  :flag:  поЕт только навредит.  :D

+3

954

Alex_63
на поддержке форум 2 2 ответа не дождёшься, там скриптёров нет
помогите с этим кодом
это быстрая цитата,выделяешь и появляется кнопка цитировать,
неправильность что одинарныые кавычки вокруг имени автора вставляются, и при публикации не цитата, а код в посте высвечивается

Код:
/*
 *  Application: Cite specific text
 *  Date: 2016-09-08
 *  Version: 1.109052018
 *  Copyright (c) Daemon <help.forumotion.com>
 *  This work is free. You can redistribute it and/or modify it
 */
(function() {
    quote = {
        initialize: function() {
            $(function() {
                if (!$.sceditor && _userdata.session_logged_in < 1) return;
                quote.setupQuote();
            });
        },
        setupQuote: function() {
            $("head").append(
                '<style type="text/css">' +
                '.quote-box {' +
                '  z-index: 999;' +
                '  margin-top: 16px;' +
                '  position: absolute;' +
                '  display: none;' +
                '  background-color: rgba(70,70,70,0.6);' +
                '  padding: 4px;' +
                '  -webkit-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);' +
                '  -moz-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);' +
                '  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7 );' +
                '  -moz-border-radius: 4px;' +
                '  -webkit-border-radius: 4px;' +
                '  border-radius: 4px;' +
                '}' +
                '.quote-box > div {' +
                '  background-color: #f7f7f7;' +
                '  padding: 5px;' +
                '}' +
                '.quote-box > input {' +
                '  margin: 0 3px;' +
                '  cursor: pointer;' +
                '  border-radius: 3px;' +
                '  -webkit-border-radius: 3px;' +
                '  -moz-border-radius: 3px;' +
                '}' +
                '.quote-box > .quote-stem {' +
                '  border-color: transparent transparent #000;' +
                '  opacity: 0.3;' +
                '  border-style: solid;' +
                '  border-width: 15px;' +
                '  display: block;' +
                '  height: 0;' +
                '  left: 5px;' +
                '  position: absolute;' +
                '  top: -30px;' +
                '  width: 0;' +
                '  z-index: 3;' +
                '}' +
                '</style>'
            );

            var el = $("<div>", {
                class: "quote-box"
            }).append(
                '<div>' +
                '    <input type="button" onclick="quote.hideQuote()" value=".X.">' +
                '    <input type="button" onclick="quote.quoteText()" value="Цитировать выделенное">' +
                '    <input type="button" onclick="quote.mention()" value="@Упомянуть автора........................">' +
                '</div>' +
                '<span class="quote-stem"></span>'
            );

            $(el).appendTo("body");

            var selectedTxt, author;
            // VERSIONS:                PUNBB    || PHPBB3 AND MODERNBB || PHPBB2 || INVISION
            $(document).on("mouseup", ".post-entry, .content, .postbody, .post-entry", function(e) {
                var arr = {
                    'user': [],
                    'text': []
                };
                // VERSIONS:                                          PUNB  ||              PHPBB3              ||              MODERNBB            ||                  PHPBB2                ||        INVISION
                author = $(this).parents("[class*='post--']").find(".username, .author > a, .postprofile strong > a, .postprofile-name, .comment-author, .name, .blog_comment-title > a[href^='/u'], .postprofile-head > a").text(),
                    selectedTxt = quote.getSelectionText();
                if (selectedTxt) {
                    $(".quote-box").show().css({
                        top: e.pageY + "px",
                        left: e.pageX + "px"
                    });
                    arr.user.push(author);
                    arr.text.push(selectedTxt);
                    sessionStorage.setItem("quote-box", JSON.stringify(arr));
                } else {
                    quote.hideQuote();
                }
            });
        },
        quoteText: function() {
            var stored = $.parseJSON(sessionStorage.getItem("quote-box"));
            if (stored) {
                $("textarea").sceditor("instance").insert("[quote='" + stored.user + "']" + stored.text + "[/quote]");
                quote.hideQuote();
            }
        },
        mention: function() {
            var stored = $.parseJSON(sessionStorage.getItem("quote-box"));
            if (stored) {
                $("textarea").sceditor("instance").insert("@" + stored.user);
                quote.hideQuote();
            }
        },
        getSelectionText: function() {
            var text;
            if (window.getSelection) {
                text = window.getSelection().toString();
            } else if (document.selection && document.selection.type != "Control") {
                text = document.selection.createRange().text;
            }
            return text;
        },
        hideQuote: function() {
            $(".quote-box").hide();
        }
    };
    quote.initialize()
})();

вот этот код
$("textarea").sceditor("instance").insert("

" + stored.user + " написал(а):

" + stored.text + "

");

а конкрэтнее quote='" + stored.user + "']"

вставляются одинарные кавычки ' ' вокруг имени и цитата не срабатывает, должны быть двойные " "

0

955

tartar1
Так?

Код:
/*
 *  Application: Cite specific text
 *  Date: 2016-09-08
 *  Version: 1.109052018
 *  Copyright (c) Daemon <help.forumotion.com>
 *  This work is free. You can redistribute it and/or modify it
 */
(function() {
    quote = {
        initialize: function() {
            $(function() {
                if (!$.sceditor && _userdata.session_logged_in < 1) return;
                quote.setupQuote();
            });
        },
        setupQuote: function() {
            $("head").append(
                '<style type="text/css">' +
                '.quote-box {' +
                '  z-index: 999;' +
                '  margin-top: 16px;' +
                '  position: absolute;' +
                '  display: none;' +
                '  background-color: rgba(70,70,70,0.6);' +
                '  padding: 4px;' +
                '  -webkit-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);' +
                '  -moz-box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7);' +
                '  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.7 );' +
                '  -moz-border-radius: 4px;' +
                '  -webkit-border-radius: 4px;' +
                '  border-radius: 4px;' +
                '}' +
                '.quote-box > div {' +
                '  background-color: #f7f7f7;' +
                '  padding: 5px;' +
                '}' +
                '.quote-box > input {' +
                '  margin: 0 3px;' +
                '  cursor: pointer;' +
                '  border-radius: 3px;' +
                '  -webkit-border-radius: 3px;' +
                '  -moz-border-radius: 3px;' +
                '}' +
                '.quote-box > .quote-stem {' +
                '  border-color: transparent transparent #000;' +
                '  opacity: 0.3;' +
                '  border-style: solid;' +
                '  border-width: 15px;' +
                '  display: block;' +
                '  height: 0;' +
                '  left: 5px;' +
                '  position: absolute;' +
                '  top: -30px;' +
                '  width: 0;' +
                '  z-index: 3;' +
                '}' +
                '</style>'
            );
 
            var el = $("<div>", {
                class: "quote-box"
            }).append(
                '<div>' +
                '    <input type="button" onclick="quote.hideQuote()" value=".X.">' +
                '    <input type="button" onclick="quote.quoteText()" value="Цитировать выделенное">' +
                '    <input type="button" onclick="quote.mention()" value="@Упомянуть автора........................">' +
                '</div>' +
                '<span class="quote-stem"></span>'
            );
 
            $(el).appendTo("body");
 
            var selectedTxt, author;
            // VERSIONS:                PUNBB    || PHPBB3 AND MODERNBB || PHPBB2 || INVISION
            $(document).on("mouseup", ".post-entry, .content, .postbody, .post-entry", function(e) {
                var arr = {
                    'user': [],
                    'text': []
                };
                // VERSIONS:                                          PUNB  ||              PHPBB3              ||              MODERNBB            ||                  PHPBB2                ||        INVISION
                author = $(this).parents("[class*='post--']").find(".username, .author > a, .postprofile strong > a, .postprofile-name, .comment-author, .name, .blog_comment-title > a[href^='/u'], .postprofile-head > a").text(),
                    selectedTxt = quote.getSelectionText();
                if (selectedTxt) {
                    $(".quote-box").show().css({
                        top: e.pageY + "px",
                        left: e.pageX + "px"
                    });
                    arr.user.push(author);
                    arr.text.push(selectedTxt);
                    sessionStorage.setItem("quote-box", JSON.stringify(arr));
                } else {
                    quote.hideQuote();
                }
            });
        },
        quoteText: function() {
            var stored = $.parseJSON(sessionStorage.getItem("quote-box"));
            if (stored) {
                $("textarea").sceditor("instance").insert("[quote=\"" + stored.user + "\"]" + stored.text + "[/quote]");
                quote.hideQuote();
            }
        },
        mention: function() {
            var stored = $.parseJSON(sessionStorage.getItem("quote-box"));
            if (stored) {
                $("textarea").sceditor("instance").insert("@" + stored.user);
                quote.hideQuote();
            }
        },
        getSelectionText: function() {
            var text;
            if (window.getSelection) {
                text = window.getSelection().toString();
            } else if (document.selection && document.selection.type != "Control") {
                text = document.selection.createRange().text;
            }
            return text;
        },
        hideQuote: function() {
            $(".quote-box").hide();
        }
    };
    quote.initialize()
})();

0

956

ура, работает
....чудо....

0

957

_______________________________________
.
вы меня прям спасли, цитата там хреновая на форумошн, цитируется всё, а часть - надо скрипт
теперь чётко работает
.
_________________________________

+1

958

https://i.imgur.com/EOfxU3z.png

ошибка  ----загружаю в файлы а вставляется имгур

0

959

tartar1
Скрипт лагает, как временное решение можно выбрать например Imageban и потом снова переключиться на Файлы форума.

0

960

https://i7.imageban.ru/out/2024/04/26/0707a25d4d9d42d69642fe4b8a924181.png
https://forumupload.ru/uploads/0000/14/1c/35201/19624.png
да, сработало

0


Вы здесь » Единый форум поддержки » Форум для новичков » Общие вопросы от новичков (63) #2