Jump to content

Recommended Posts

12-06-2015 18-43-00.png

Название: [хак]смайлики woofle

Добавил: Jion

Добавлен: 12 Июн 2015

Категория: Модули, плагины, хаки vii engine

 

 

Установка хака "Смайлики 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

 

 

Нажмите здесь, чтобы скачать файл

  • Upvote 2
Link to comment
Share on other sites

  • 1 month later...

Оно не будет открываться в отдельном окне и буде как вк , или прото смайлы заменятся? 

 

Как ты видишь, когда установлен модуль у тебя появится кнопка в текстовом поле.Когда на неё нажать выползет небольшая панелька со смайликами, так же по нажатию она исчезнет.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...