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

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

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


Вы здесь » Единый форум поддержки » Информация сервиса » Изменения в форме ответа


Изменения в форме ответа

Сообщений 501 страница 520 из 980

501

RUSSIAN_GOBLIN
Я уже ставила этот скрипт, такая же шняга - мои 2 кнопки не видны. Прописала сама один баттон, иконка вылезла, но криво, а другой баттон не могу найти.

0

502

Finka, адрес форума. И с кнопками каких скриптом проблемы.

0

503

Действительно замечательное введение, но есть одна проблемка.http://uploads.ru/i/7/r/S/7rSsk.jpg
Прошу прощения,разобралась

Отредактировано Angel Marishka (Пт, 9 Мар 2012 09:43:47)

0

504

Finka
Выложите тестовый ник пароль и ссылк на форум

0

505

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

Finka, адрес форума. И с кнопками каких скриптом проблемы.

http://itsmymilye.com/
1.

Код:
<style>.post-content legend.hide{display:none;}</style>
<script type="text/javascript">
//alert("A")
var SkL="\\[",SkR="\\]";
var patt = new Array()
  patt[0] = SkL + "NIC" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/NIC" + SkR;
  patt[1] = SkL + "STA" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/STA" + SkR;
  patt[2] = SkL + "AVA" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/AVA" + SkR;
  patt[3] = SkL + "SGN" + SkR + "([^" + SkL + SkR + "]+)" + SkL + "/SGN" + SkR;

 $(".post-content").each(function (){
  var contex = $(this).html();

   for (j=0; j < patt.length; j++){
	var chang = '<legend class="hide ' + patt[j].substring(2,5) + '" >';//alert(chang)
	var EndCh = '</legend>'; 
	var reg_esp  = new RegExp(patt[j],"igm");
	contex=contex.replace(reg_esp,chang + "$1" + EndCh);//alert(contex)
    }$(this).html(contex)
 });
var pa_avtr='<li class="pa-avatar">';
var Avt_St='<img src="';
var Avt_End='"alt="Аватар"/>';
var PostSig_St='<dl class="post-sig"><dt><span>Подпись автора</span></dt><dd><p>';
var PostSig_End='</p></dd></dl>';

$(".post legend.hide").each(function (){
 var S=$(this).html();
 var STA=$(this).parents(".post").find(".post-author .pa-title")
/*[NIC]*/ if($(this).hasClass('NIC')==true){$(this).parents(".post").find(".post-author .pa-author a").html(S);}
/*[STA]*/ if($(this).hasClass('STA')==true){$(this).parents(".post").find(".post-author .pa-title").html(S);}
/*[AVA]*/ if($(this).hasClass('AVA')==true){var AVA=$(this).parents(".post").find(".post-author .pa-avatar")
	  if(AVA.html()!=null){AVA.html(Avt_St+S+Avt_End)}else $(this).parents(".post").find(".post-author .pa-title").after(pa_avtr+Avt_St+S+Avt_End+'</li>');}
/*[SGN]*/ if($(this).hasClass('SGN')==true){$(this).parents(".post").find(".post-content .post-sig").replaceWith("");
	  $(this).parents(".post").find(".post-content").append(PostSig_St+S+PostSig_End);}
});
</script>

    <style>#avtrChang-area{position: absolute;right: 1%;top: 43px;}
        #button-cntrAvt{background-image: url(http://forumstatic.ru/files/000f/14/29/60840.png);}</style><script>
        var buttonew="<td id=\"button-cntrAvt\" title=\"Смена Аватара в сообщении\"><img onclick=\"changeVisibility('avtrChang-area')\" src=\"/i/blank.gif\"/></td>"
        $("#button-hide").after(buttonew);

        var cntrAvt="<div class=\"container\" id=\"avtrChang-area\" style=\"display: none\" onclick=\"changeVisibility('avtrChang-area')\"><div id=\"avtrChang-block\"></div></div>";
        var preAvtrST="<img src=\"";
        var preAvtrEnd="\" height=\"55\" alt=\"Avatar\" onclick=\"smile('[AVA]'+this.src+'[/AVA]')\"/> ";

        var AvtrArr=new Array(
"http://forumstatic.ru/files/000f/14/29/87838.gif",
"http://forumstatic.ru/files/000f/14/29/70168.jpg",
"http://forumstatic.ru/files/000f/14/29/43420.gif",
"http://forumstatic.ru/files/000f/14/29/52859.jpg",
"http://forumstatic.ru/files/000f/14/29/26433.gif",
"http://forumstatic.ru/files/000f/14/29/58596.gif",
"http://forumstatic.ru/files/000f/14/29/58023.gif",
"http://forumstatic.ru/files/000f/14/29/34696.gif",
"http://forumstatic.ru/files/000f/14/29/88761.gif",
"http://forumstatic.ru/files/000f/14/29/88623.gif",
"http://forumstatic.ru/files/000f/59/02/16699.gif",
        "http://forumstatic.ru/files/000f/14/29/74502.jpg"
        )
        $("#smilies-area").before(cntrAvt)
        for(i=0; i<AvtrArr.length; i++){
        $("#avtrChang-area").append(preAvtrST+AvtrArr[i]+preAvtrEnd)
        }
        </script>

2.

Код:
<!--Дополнительные теги в ФО-->
<div id=Hide><div class="container" id="meny_My_replic"  style="display:none" onclick="changeVisibility('meny_My_replic')">
<p>1. <img src="http://forumstatic.ru/files/000f/14/29/13703.png" title="Добавлено"/><span>[add],[/add]</span></p>
<p>2. <img src="http://forumstatic.ru/files/000f/59/02/98298.jpg" title="Закрасить жёлтым"/><span>[h][color=yellow],[/color][/h]</span></p>
<p>3. <img src="http://forumstatic.ru/files/000f/59/02/87040.png" title="Динамичный ник"/><span>[NIC],[/NIC]</span></p>
<p>4. <img src="http://forumstatic.ru/files/000f/59/02/32781.png" title="Динамичный статус"/><span>[STA],[/STA]</p>
<p>5. <img src="http://forumstatic.ru/files/000f/14/29/60840.png" title="Динамичная аватарка"/><span>[AVA],[/AVA]</p>
</div></div>

    <style>#My_replic_meny{background-image:url(http://www.iconsearch.ru/uploads/icons/splashyicons/16x16/add.png);}
    #meny_My_replic span{
    display:none;
    }
    #meny_My_replic p::first-letter{
    color:red;
    }
    #meny_My_replic p{
    cursor:pointer;
    font-weight:bold;
    color:blue;
    }
    #meny_My_replic p:hover{
    text-shadow:#31A0A5 1px 1px 0;
    }
    #meny_My_replic {
    border: #fff outset 3px;
    padding:15px!important;
    width:50px;
    position:absolute;
    margin-right:1px;
    right: 1%;
    top: 43px;
    }
    </style>

    
<script>
    var str='<img src="/i/blank.gif" title="Дополнительные теги" onclick="changeVisibility(\'meny_My_replic\')"/>';
    if(document.URL.indexOf("/viewtopic.php?id")!=-1 || document.URL.indexOf("/post.php?fid")!=-1 || document.URL.indexOf("/post.php?tid")!=-1 || document.URL.indexOf("/edit.php?id")!=-1)$("#form-buttons #button-keyboard").after("<td id=My_replic_meny>"+str+"</td>")
    $("#keyboard-area").after($("div.#Hide").html())
        $('#meny_My_replic p').click(function(){
          var L=$(this).find("span").html();
          var P=L.split(',');
         bbcode(P[0],P[1])
         return false;
        });
    </script>
<!--Конец Дополнительные теги в ФО-->
Deff написал(а):

Finka
Выложите тестовый ник пароль и ссылк на форум

Камушкин, пароль 12345, http://itsmymilye.com/

0

506

Finka
Ну поставь кнопу с императивом

<style>#My_replic_meny{background-image:url(http://www.iconsearch.ru/uploads/icons/splashyicons/16x16/add.png)!important;}
    #meny_My_replic span{
    display:none;
    }
    #meny_My_replic p::first-letter{
    color:red;
    }

Отредактировано Deff (Пт, 9 Мар 2012 19:50:31)

0

507

Даж лучше так

<style>#My_replic_meny{background:center no-repeat url(http://www.iconsearch.ru/uploads/icons/splashyicons/16x16/add.png)!important;}
    #meny_My_replic span{
    display:none;
    }
    #meny_My_replic p::first-letter{
    color:red;
    }
    #meny_My_replic p{

0

508

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

Даж лучше так

поставила, вылезли две буквы А http://i039.radikal.ru/0806/ec/a5ffc6d7cfd9.gif

а первая иконка исчезла.

Отредактировано Finka (Пт, 9 Мар 2012 19:59:51)

0

509

Finka
Куды то ты не туда поставила!
Подразумевалось добавить - потом заменить в текущем коде(на то что выделено цветом, в том коде,который уже у Вас стоит в HTML низ, перед иконками менюшки, а ты их отдельно в HTML верх (Я ж спецом выделил

Отредактировано Deff (Пт, 9 Мар 2012 22:29:20)

0

510

Добрый вечер!

Захожу на форум и обнаруживаю вот это: оО
http://uploads.ru/t/d/0/m/d0mhu.jpg
1) Везде эта буква "А"
2) Пропала кнопка смайлов (их у меня 2-е)

Подскажите, как исправить?
Скриптом и CSS пробовала, но некоторые кнопки пропадают.

0

511

CatArDo
Ну для буквы А  - пробуйте сообщение 506

А для остального - Выложите тестовый юзер ник пароль (скройте под 300-400 сообщений

0

512

Deff
Всё поставила.

Тестовый профиль вот:

0

513

CatArDo
Ни наю - тестируйте - правильные мод -теги - пост 485 => 18 ноября 2011г.: Изменения в форме ответа

0

514

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

Ни наю - тестируйте

Нормально теперь, вроде.
Спасибо!  http://mybb.ru/f/collection/0211.gif

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

правильные мод -теги - пост 485 => 18 ноября 2011г.: Изменения в форме ответа

Я уже поставила.

0

515

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

Куды то ты не туда поставила!
Подразумевалось добавить - потом заменить в текущем коде(на то что выделено цветом, в том коде,который уже у Вас стоит в HTML низ, перед иконками менюшки, а ты их отдельно в HTML верх (Я ж спецом выделил

аааа! ясно. поставила. иконка не появилась...

1-ая иконка встала криво.

2-ая, про которую ты говорил - так и не появилась.

http://uploads.ru/i/l/1/x/l1xQm.jpg

Отредактировано Finka (Сб, 10 Мар 2012 05:53:48)

0

516

Finka, проблема до сих пор есть?

Первый скрипт заменить на:

Код:
<style>.post-content legend.hide{display:none;}</style>
<script type="text/javascript">
//alert("A")
var SkL="\\[",SkR="\\]";
var patt = new Array()
  patt[0] = SkL + "NIC" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/NIC" + SkR;
  patt[1] = SkL + "STA" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/STA" + SkR;
  patt[2] = SkL + "AVA" + SkR + "([^" + SkL + SkR + "$]+)" + SkL + "/AVA" + SkR;
  patt[3] = SkL + "SGN" + SkR + "([^" + SkL + SkR + "]+)" + SkL + "/SGN" + SkR;

 $(".post-content").each(function (){
  var contex = $(this).html();

   for (j=0; j < patt.length; j++){
	var chang = '<legend class="hide ' + patt[j].substring(2,5) + '" >';//alert(chang)
	var EndCh = '</legend>'; 
	var reg_esp  = new RegExp(patt[j],"igm");
	contex=contex.replace(reg_esp,chang + "$1" + EndCh);//alert(contex)
    }$(this).html(contex)
 });
var pa_avtr='<li class="pa-avatar">';
var Avt_St='<img src="';
var Avt_End='"alt="Аватар"/>';
var PostSig_St='<dl class="post-sig"><dt><span>Подпись автора</span></dt><dd><p>';
var PostSig_End='</p></dd></dl>';

$(".post legend.hide").each(function (){
 var S=$(this).html();
 var STA=$(this).parents(".post").find(".post-author .pa-title")
/*[NIC]*/ if($(this).hasClass('NIC')==true){$(this).parents(".post").find(".post-author .pa-author a").html(S);}
/*[STA]*/ if($(this).hasClass('STA')==true){$(this).parents(".post").find(".post-author .pa-title").html(S);}
/*[AVA]*/ if($(this).hasClass('AVA')==true){var AVA=$(this).parents(".post").find(".post-author .pa-avatar")
	  if(AVA.html()!=null){AVA.html(Avt_St+S+Avt_End)}else $(this).parents(".post").find(".post-author .pa-title").after(pa_avtr+Avt_St+S+Avt_End+'</li>');}
/*[SGN]*/ if($(this).hasClass('SGN')==true){$(this).parents(".post").find(".post-content .post-sig").replaceWith("");
	  $(this).parents(".post").find(".post-content").append(PostSig_St+S+PostSig_End);}
});
</script>

    <style>#avtrChang-area{position: absolute;right: 1%;top: 43px;}
        #but-cntrAvt img{background: url(http://forumstatic.ru/files/000f/14/29/60840.png) no-repeat center;}</style><script>
        var butnew="<td id=\"but-cntrAvt\" title=\"Смена Аватара в сообщении\"><img onclick=\"changeVisibility('avtrChang-area')\" src=\"/i/blank.gif\"/></td>"
        $("#button-hide").after(butnew);

        var cntrAvt="<div class=\"container\" id=\"avtrChang-area\" style=\"display: none\" onclick=\"changeVisibility('avtrChang-area')\"><div id=\"avtrChang-block\"></div></div>";
        var preAvtrST="<img src=\"";
        var preAvtrEnd="\" height=\"55\" alt=\"Avatar\" onclick=\"smile('[AVA]'+this.src+'[/AVA]')\"/> ";

        var AvtrArr=new Array(
"http://forumstatic.ru/files/000f/14/29/87838.gif",
"http://forumstatic.ru/files/000f/14/29/70168.jpg",
"http://forumstatic.ru/files/000f/14/29/43420.gif",
"http://forumstatic.ru/files/000f/14/29/52859.jpg",
"http://forumstatic.ru/files/000f/14/29/26433.gif",
"http://forumstatic.ru/files/000f/14/29/58596.gif",
"http://forumstatic.ru/files/000f/14/29/58023.gif",
"http://forumstatic.ru/files/000f/14/29/34696.gif",
"http://forumstatic.ru/files/000f/14/29/88761.gif",
"http://forumstatic.ru/files/000f/14/29/88623.gif",
"http://forumstatic.ru/files/000f/59/02/16699.gif",
        "http://forumstatic.ru/files/000f/14/29/74502.jpg"
        )
        $("#smilies-area").before(cntrAvt)
        for(i=0; i<AvtrArr.length; i++){
        $("#avtrChang-area").append(preAvtrST+AvtrArr[i]+preAvtrEnd)
        }
        </script>

Вместо второго скрипта это:

Код:
<!--Дополнительные теги в ФО-->
<div id=Hide><div class="container" id="meny_My_replic"  style="display:none" onclick="changeVisibility('meny_My_replic')">
<p>1. <img src="http://forumstatic.ru/files/000f/14/29/13703.png" title="Добавлено"/><span>[add],[/add]</span></p>
<p>2. <img src="http://forumstatic.ru/files/000f/59/02/98298.jpg" title="Закрасить жёлтым"/><span>[h][color=yellow],[/color][/h]</span></p>
<p>3. <img src="http://forumstatic.ru/files/000f/59/02/87040.png" title="Динамичный ник"/><span>[NIC],[/NIC]</span></p>
<p>4. <img src="http://forumstatic.ru/files/000f/59/02/32781.png" title="Динамичный статус"/><span>[STA],[/STA]</p>
<p>5. <img src="http://forumstatic.ru/files/000f/14/29/60840.png" title="Динамичная аватарка"/><span>[AVA],[/AVA]</p>
</div></div>

    <style>#My_replic_meny img {background:url(http://www.iconsearch.ru/uploads/icons/splashyicons/16x16/add.png) no-repeat center;}
    #meny_My_replic span{
    display:none;
    }
    #meny_My_replic p::first-letter{
    color:red;
    }
    #meny_My_replic p{
    cursor:pointer;
    font-weight:bold;
    color:blue;
    }
    #meny_My_replic p:hover{
    text-shadow:#31A0A5 1px 1px 0;
    }
    #meny_My_replic {
    border: #fff outset 3px;
    padding:15px!important;
    width:50px;
    position:absolute;
    margin-right:1px;
    right: 1%;
    top: 43px;
    }
    </style>

    
<script>
    var str='<img src="/i/blank.gif" title="Дополнительные теги" onclick="changeVisibility(\'meny_My_replic\')"/>';
    if(document.URL.indexOf("/viewtopic.php?id")!=-1 || document.URL.indexOf("/post.php?fid")!=-1 || document.URL.indexOf("/post.php?tid")!=-1 || document.URL.indexOf("/edit.php?id")!=-1)$("#form-buttons #button-keyboard").after("<td id=My_replic_meny>"+str+"</td>")
    $("#keyboard-area").after($("div.#Hide").html())
        $('#meny_My_replic p').click(function(){
          var L=$(this).find("span").html();
          var P=L.split(',');
         bbcode(P[0],P[1])
         return false;
        });
    </script>
<!--Конец Дополнительные теги в ФО-->

В самый низ поля HTML-низ это:

Код:
<script type="text/javascript">
$('#form-buttons td:not(td[id^=button-])').each(function(){$(this).css({'background-image':'none'});});
</script>

+1

517

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

Первый скрипт заменить на:

Спасибо! Всё встало на свои места!

Но...исчезли модераторские теги :D

Код:
<!--модераторские теги Mod часть2-->
<script language="javascript">
if ((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementsByTagName("div")
for(x in elm)
{if(elm[x].className=="post-content") {
var post = elm[x].innerHTML;
if(post.indexOf("[/gam]") != -1) {
exs = /\[gam\](.*?)\[\/gam\]/gi
post = post.replace(exs, "<div id='gam'><p id='gam_title'><b>Внимание!</b>:</p><div id='game_text'>$1</div></div>");
};
if(post.indexOf("[/mod]") != -1) {
mods = /\[mod\](.*?)\[\/mod\]/gi
post = post.replace(mods, "<div id='mod'><p id='mod_title'><b>Внимание!</b> Уведомление от администрации:</p><div id='mode_text'>$1</div></div>");
};
if(post.indexOf("[/adm]") != -1) {
exs = /\[adm\](.*?)\[\/adm\]/gi
post = post.replace(exs, "<div id='adm'><p id='adm_title'><b>Внимание!</b> Предупреждение от администрации:</p><div id='adme_text'>$1</div></div>");
};
elm[x].innerHTML = post;}}}
if(GroupID == 1)
{$("td#button-keyboard").after("<td style=\"background-image:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/41467.png')\"><img src='/i/blank.gif' title='Предупреждение' onclick=\"bbcode('[adm]', '[/adm]');\"></td>")};
if(GroupID == 1)
{$("td#button-keyboard").after("<td style=\"background-image:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/59068.png')\"><img src='/i/blank.gif' title='Уведомление' onclick=\"bbcode('[mod]', '[/mod]');\"></td>")};
if(GroupID == 1)
{$("td#button-keyboard").after("<td style=\"background-image:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/66704.png')\"><img src='/i/blank.gif' title='Гейм' onclick=\"bbcode('[gam]', '[/gam]');\"></td>")};
</script>

0

518

Finka, заменить их на это:

Код:
<!--модераторские теги Mod часть2-->
<script language="javascript">
if ((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementsByTagName("div")
for(x in elm)
{if(elm[x].className=="post-content") {
var post = elm[x].innerHTML;
if(post.indexOf("[/gam]") != -1) {
exs = /\[gam\](.*?)\[\/gam\]/gi
post = post.replace(exs, "<div id='gam'><p id='gam_title'><b>Внимание!</b>:</p><div id='game_text'>$1</div></div>");
};
if(post.indexOf("[/mod]") != -1) {
mods = /\[mod\](.*?)\[\/mod\]/gi
post = post.replace(mods, "<div id='mod'><p id='mod_title'><b>Внимание!</b> Уведомление от администрации:</p><div id='mode_text'>$1</div></div>");
};
if(post.indexOf("[/adm]") != -1) {
exs = /\[adm\](.*?)\[\/adm\]/gi
post = post.replace(exs, "<div id='adm'><p id='adm_title'><b>Внимание!</b> Предупреждение от администрации:</p><div id='adme_text'>$1</div></div>");
};
elm[x].innerHTML = post;}}}
if(GroupID == 1)
{$("td#button-keyboard").after("<td><img style=\"background:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/41467.png') no-repeat center;\" src='/i/blank.gif' title='Предупреждение' onclick=\"bbcode('[adm]', '[/adm]');\"></td>")};
if(GroupID == 1)
{$("td#button-keyboard").after("<td><img style=\"background:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/59068.png') no-repeat center;\" src='/i/blank.gif' title='Уведомление' onclick=\"bbcode('[mod]', '[/mod]');\"></td>")};
if(GroupID == 1)
{$("td#button-keyboard").after("<td><img  style=\"background:url('http://moonvalley.f-rpg.ru/files/000e/dc/02/66704.png') no-repeat center;\" src='/i/blank.gif' title='Гейм' onclick=\"bbcode('[gam]', '[/gam]');\"></td>")};
</script>

+1

519

RUSSIAN_GOBLIN
сенкью вери мач! http://mybb.ru/f/collection/0208.gif

0

520

RUSSIAN_GOBLIN

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

смайлы аля Гагарин.

(пост 446)
Ну че, не помогает))) Но проблема не в смайлах))) Я раньше не заметил - абсолютно все контейнеры из формы ответа летают на шапку))))
Подскажите, пожалуйста, в какой части стиля может быть дело? буду дописывать)

0


Вы здесь » Единый форум поддержки » Информация сервиса » Изменения в форме ответа