Перейти к содержанию
CMSTOOLS.org - форум поддержки и развития CMS

1 изображение

Информация о файле

Установка хака "Смайлики Woofle"

 

1.Открываем файл form.tpl (templates/Default/im/form.tpl)

После данного кода:

 

<form id="message_tab_frm"><textarea class="videos_input wysiwyg_inpt fl_l im_msg_texta" id="msg_text" style="height:38px"placeholder="Введите Ваше сообщение.."onKeyPress="if(((event.keyCode == 13) || (event.keyCode == 10)) && (event.ctrlKey == false)) im.send('{for_user_id}', '{my-name}', '{my-ava}')if(((event.keyCode == 13) || (event.keyCode == 10)) && (event.ctrlKey == true)) func('\r\n')"onKeyUp="im.typograf()"></textarea></form>

 

 

Вставляем:

 

<input id="vaLattach_files" type="hidden" /><div class="im_smiles no_display" id="im_smile"><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/1.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/2.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/3.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/4.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/5.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/6.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/7.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/8.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/9.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/10.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/11.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/12.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/13.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/14.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/15.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/16.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/29.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/17.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/18.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/19.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/20.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/21.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/22.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/23.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/24.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/25.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/26.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/27.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/30.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/31.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/32.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/33.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/34.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/35.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/36.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/37.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/38.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/39.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/40.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/41.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/42.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/43.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/44.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/45.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/46.png"></img><img class="wall_attach_smile" onclick="wall.attach_insert('smile', this.src)" src="/uploads/smiles/47.png"></img></div>

 

 

 

Так же после данного кода:

 

 

 

 

Вставляем между тегами и след. код:

 

 

 

 

 

 

2.Идём в style.css (templates/Default/style/style.css)

Ищем:

 

/* DISPLAY */.no_display, #no_display{display:none}

 

 

Перед этим вставляем:

 

/* SMILES WOOFLE */.wall_attach_icon_smile { background: url("../images/icons/wall_icons.gif") no-repeat }.wall_attach_icon_smile:hover { background: #e2e8ee url("../images/icons/wall_icons.gif") no-repeat }.wall_attach_smile { margin: 5px; cursor: pointer }.smile_button:hover { cursor: pointer; box-shadow: 0px 2px rgb(22, 133, 133); top: 1px; position: relative; }.smile_button { background: none repeat scroll 0% 0% rgb(46, 179, 152); padding: 5px 8px; color: rgb(255, 255, 255); float: left; margin-right: 5px; box-shadow: 0px 3px rgb(22, 133, 133); border-radius: 2px; font-weight: normal; font-size: 15px; }.smile_button:active { background: rgb(22, 133, 133); cursor: pointer; }.im_smiles { display: block; position: absolute; width: 395px; margin-left: 320px; margin-top: -295px; background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.7); border-radius: 3px; }

 

 

3.Идём в profile.js (templates/Default/js/profile.js)

Ищем:

 

del: function(u){$('#box_loading').show();ge('box_butt_create').disabled = true;$('#del_status_text_im').text('Переписка удаляется..');$.post('/index.php?go=im&act=del', {im_user_id: u}, function(d){Box.Close('im_del'+u);Box.Info('ok_im', 'История переписки удалена', 'Все сообщения диалога были успешно удалены.', 300, 3000);$('#okim'+u).remove();});},

 

 

После вставляем:

 

smile_show: function(){$('#im_smile').slideDown();$('#wall_attach_link_smile').attr('onClick','im.smile_hide()');},smile_hide: function(){$('#im_smile').slideUp();$('#wall_attach_link_smile').attr('onClick','im.smile_show()');},

 

 

5.Заходим сюда uploads/smiles/ удаляем от туда все смайлики(можете оставить) и заливаем в эту папку смайлики с папки upload


Что нового в версии 1.1   Просмотр изменений

Размещено

  • Передвинул кнопку открытия смайликов в textarea

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