kolyan22region 82 Report post Posted February 14, 2016 Вывод кол-ва непрочитанных сообщений в favicon сайта (бесполезная муть ). 1. Зайти в /system/modules/im.php и найти там такой код: echo '<script type="text/javascript"> '.$doc_title.' $(\'#new_msg\').html(\''.$user_pm_num_2.'\'); '.$res.' </script>'; Заменить его на: echo '<script type="text/javascript"> '.$doc_title.' $(\'#new_msg\').html(\''.$user_pm_num_2.'\'); (function(){ Tinycon.setBubble('.$user_info['user_pm_num'].'); })(); '.$res.' </script>'; 2. В /templates/Default/js/ загрузить файл tinycon.js. tinycon.zip3. В /templates/Default/main.tpl перед закрывающимся тегом </head> вставить: [logged]<script type="text/javascript" src="{theme}/js/tinycon.js"></script>[/logged] Вроде всё. P.S. Обязательно должна стоять фавиконка!!! 4 Share this post Link to post Share on other sites
wenjiro 33 Report post Posted February 14, 2016 Вывод кол-ва непрочитанных сообщений в favicon сайта (бесполезная муть ). 1. Зайти в /system/modules/im.php и найти там такой код: echo '<script type="text/javascript"> '.$doc_title.' $(\'#new_msg\').html(\''.$user_pm_num_2.'\'); '.$res.' </script>'; Заменить его на: echo '<script type="text/javascript"> '.$doc_title.' $(\'#new_msg\').html(\''.$user_pm_num_2.'\'); (function(){ Tinycon.setBubble('.$user_info['user_pm_num'].'); })(); '.$res.' </script>'; 2. В /templates/Default/js/ загрузить файл tinycon.js. tinycon.zip 3. В /templates/Default/main.tpl перед закрывающимся тегом </head> вставить: [logged]<script type="text/javascript" src="{theme}/js/tinycon.js"></script>[/logged] Вроде всё. P.S. Обязательно должна стоять фавиконка!!! А что за фавикон? Share this post Link to post Share on other sites
саша ворон 0 Report post Posted February 14, 2016 А что за фавикон? ты же разработчик вмихе,и не знаешь что такое фавикон? Share this post Link to post Share on other sites
wooweef 4 Report post Posted February 14, 2016 А что за фавикон? Фавикон - это файл иконки сайта (favicon.ico) Share this post Link to post Share on other sites
wenjiro 33 Report post Posted February 14, 2016 ты же разработчик вмихе,и не знаешь что такое фавикон? про это я знаю, но может нужно иметь фавикон с цифрами. Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted February 14, 2016 про это я знаю, но может нужно иметь фавикон с цифрами. зачем? просто ставишь любую картинку на фавикон. цифры на canvas Share this post Link to post Share on other sites
wenjiro 33 Report post Posted February 14, 2016 зачем? просто ставишь любую картинку на фавикон. цифры на canvas Вместо e.width=h,e.height=h ? Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted February 14, 2016 Вместо e.width=h,e.height=h ? Javascript не трогай! просто поставь favicon! и всё! как ставить - гугли! Share this post Link to post Share on other sites
wenjiro 33 Report post Posted February 14, 2016 Javascript не трогай! просто поставь favicon! и всё! как ставить - гугли! дк у меня уже стоит обычный favicon.ico . А модуль не хочет работать. Есть демо модуля? Ну... Своя соц. сеть. Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted February 14, 2016 дк у меня уже стоит обычный favicon.ico . А модуль не хочет работать. Есть демо модуля? Ну... Своя соц. сеть. нет Share this post Link to post Share on other sites
AdVest 14 Report post Posted February 14, 2016 Работает ништяк! Единственный минус, фавикон работает только когда вы в лс... Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted February 16, 2016 Работает ништяк! Единственный минус, фавикон работает только когда вы в лс... Но так-то он и был рассчитан на ЛС, а сделать на все страницы труда не составит Share this post Link to post Share on other sites
Василий 15 Report post Posted March 30, 2016 Ребята не совсем могу понять для чего этот модуль . а скрин есть ? Share this post Link to post Share on other sites
Why Not 35 Report post Posted March 30, 2016 Ребята не совсем могу понять для чего этот модуль . а скрин есть ? На сайте vk хоть раз был? Share this post Link to post Share on other sites
Василий 15 Report post Posted March 30, 2016 На сайте vk хоть раз был? да был . и что ? Share this post Link to post Share on other sites
m4ks 2 Report post Posted April 11, 2016 Благодарю. Share this post Link to post Share on other sites
Rezvitsky 12 Report post Posted June 11, 2018 Можно favicon.ico кинуть в корень сайта и браузер сам интерпретирует его Share this post Link to post Share on other sites
kursainoff 1 Report post Posted May 21, 2020 Сделано всё инструкции, но не работает, фавикон имеется, куда копать? Share this post Link to post Share on other sites
timbios 194 Report post Posted May 21, 2020 1 час назад, kursainoff сказал: Сделано всё инструкции, но не работает, фавикон имеется, куда копать? 1. Работает только когда вы находитесь в диалоге. 2. Смотрите что пишет консоль, может где-то допустили ошибку при установке Share this post Link to post Share on other sites