kolyan22region Posted February 14, 2016 Report Share 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 Quote Link to comment Share on other sites More sharing options...
wenjiro Posted February 14, 2016 Report Share 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. Обязательно должна стоять фавиконка!!! А что за фавикон? Quote Link to comment Share on other sites More sharing options...
саша ворон Posted February 14, 2016 Report Share Posted February 14, 2016 А что за фавикон? ты же разработчик вмихе,и не знаешь что такое фавикон? Quote Link to comment Share on other sites More sharing options...
wooweef Posted February 14, 2016 Report Share Posted February 14, 2016 А что за фавикон? Фавикон - это файл иконки сайта (favicon.ico) Quote Link to comment Share on other sites More sharing options...
wenjiro Posted February 14, 2016 Report Share Posted February 14, 2016 ты же разработчик вмихе,и не знаешь что такое фавикон? про это я знаю, но может нужно иметь фавикон с цифрами. Quote Link to comment Share on other sites More sharing options...
kolyan22region Posted February 14, 2016 Author Report Share Posted February 14, 2016 про это я знаю, но может нужно иметь фавикон с цифрами. зачем? просто ставишь любую картинку на фавикон. цифры на canvas Quote Link to comment Share on other sites More sharing options...
wenjiro Posted February 14, 2016 Report Share Posted February 14, 2016 зачем? просто ставишь любую картинку на фавикон. цифры на canvas Вместо e.width=h,e.height=h ? Quote Link to comment Share on other sites More sharing options...
kolyan22region Posted February 14, 2016 Author Report Share Posted February 14, 2016 Вместо e.width=h,e.height=h ? Javascript не трогай! просто поставь favicon! и всё! как ставить - гугли! Quote Link to comment Share on other sites More sharing options...
wenjiro Posted February 14, 2016 Report Share Posted February 14, 2016 Javascript не трогай! просто поставь favicon! и всё! как ставить - гугли! дк у меня уже стоит обычный favicon.ico . А модуль не хочет работать. Есть демо модуля? Ну... Своя соц. сеть. Quote Link to comment Share on other sites More sharing options...
kolyan22region Posted February 14, 2016 Author Report Share Posted February 14, 2016 дк у меня уже стоит обычный favicon.ico . А модуль не хочет работать. Есть демо модуля? Ну... Своя соц. сеть. нет Quote Link to comment Share on other sites More sharing options...
AdVest Posted February 14, 2016 Report Share Posted February 14, 2016 Работает ништяк! Единственный минус, фавикон работает только когда вы в лс... Quote Link to comment Share on other sites More sharing options...
kolyan22region Posted February 16, 2016 Author Report Share Posted February 16, 2016 Работает ништяк! Единственный минус, фавикон работает только когда вы в лс... Но так-то он и был рассчитан на ЛС, а сделать на все страницы труда не составит Quote Link to comment Share on other sites More sharing options...
Василий Posted March 30, 2016 Report Share Posted March 30, 2016 Ребята не совсем могу понять для чего этот модуль . а скрин есть ? Quote Link to comment Share on other sites More sharing options...
Why Not Posted March 30, 2016 Report Share Posted March 30, 2016 Ребята не совсем могу понять для чего этот модуль . а скрин есть ? На сайте vk хоть раз был? Quote Link to comment Share on other sites More sharing options...
Василий Posted March 30, 2016 Report Share Posted March 30, 2016 На сайте vk хоть раз был? да был . и что ? Quote Link to comment Share on other sites More sharing options...
m4ks Posted April 11, 2016 Report Share Posted April 11, 2016 Благодарю. Quote Link to comment Share on other sites More sharing options...
Rezvitsky Posted June 11, 2018 Report Share Posted June 11, 2018 Можно favicon.ico кинуть в корень сайта и браузер сам интерпретирует его Quote Link to comment Share on other sites More sharing options...
kursainoff Posted May 21, 2020 Report Share Posted May 21, 2020 Сделано всё инструкции, но не работает, фавикон имеется, куда копать? Quote Link to comment Share on other sites More sharing options...
timbios Posted May 21, 2020 Report Share Posted May 21, 2020 1 час назад, kursainoff сказал: Сделано всё инструкции, но не работает, фавикон имеется, куда копать? 1. Работает только когда вы находитесь в диалоге. 2. Смотрите что пишет консоль, может где-то допустили ошибку при установке Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.