|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions [script] User status in chat messages (tag board) |
[script] User status in chat messages |
1. Customize design - Tag Board - Appearance of entries; before all code paste this:
Code <?if($NUMBER$ == 1)?> <script> var apoallusers = ''; $(function() { $.get('/index/62', function(apoget) { aporesult = $('cmd[p="content"]', apoget).text(); $(aporesult).find('a').each(function() { apoallusers = apoallusers + $(this).text() + " "; }); $('span#apouname').each(function() { if(apoallusers.indexOf($(this).text()) != -1) { $(this).after('<img src="/.s/img/icon/ok.png" height="10px" style="margin-left:5px;" title="Сейчас онлайн" />'); }; }); }); }); </script> <?endif?> 2. Customize design - Tag Board - Appearance of entries; find NAME code and replace with: Code <span id="apouname">$NAME$</span/> 3. Result: Result gives u a green image - icon showing that user is online © Apocalypse Attachments:
4730106.png
(21.6 Kb)
Post edited by Korijs - Monday, 2014-12-29, 12:18 PM
|
Korijs, Thank you for the share. Very useful tutorial.
My Skype : xayan123 | My Twitter : @Officialxayaan
uID : - Zayaan Ibrahim | Need a professional design? Check out my Portfolio |
Cyberdasm,
<script> var apoallusers = ''; $(function() { $.get('/index/62', function(apoget) { aporesult = $('cmd[p="content"]', apoget).text(); $(aporesult).find('a').each(function() { apoallusers = apoallusers + $(this).text() + " "; }); $('span#apouname').each(function() { if(apoallusers.indexOf($(this).text()) != -1) { $(this).after('<img src="/.s/img/icon/ok.png" height="10px" style="margin-left:5px;" title="Сейчас онлайн" />'); }; }); }); }); </script> This is JavaScript. It looks like a get-API method, but it isn't. hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
can use on chat box??? how to use on chat box
|
| |||
| |||