|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions [script] user avatar at the forum latest replies (user forum avatar) |
[script] user avatar at the forum latest replies |
1. Customize design - Forum - General appearance of forum pages
2. Find $BODY$, after that paste a script: Code <script> // var apolist = ''; $('a.lastPostUserLink').each(function() { var apoth = $(this); $(this).parent().parent().prepend('<div style="float:left;margin-right:5px;padding-top:7px;" id="apodiv' + $(this).text() + '"></div>'); if(apolist.indexOf($(this).text()) == -1) { apolist = apolist + ' ' + $(this).text(); $.get($(this).attr('href'), function(apodata) { $('div[id="apodiv' + apoth.text() + '"]').html($(apodata).html()); $('div[id*="apodiv"] img').attr({'width': '30px', 'height': '30px'}).css({'border': '1px solid #ddd'}); }); } }); // </script> 3. Customize design - Users - User profile at the top paste these codes: Code <div style="display:none;" id="apoavatar"> <?if($_AVATAR$)?>$_AVATAR$<?else?><img src="YOUR_NO_AVATAR_PICTURE"><?endif?> </div> 4. Users - Module settings Open user's personal page: In a new window (simple) 5. Result: Attachments:
2394325.png
(13.3 Kb)
|
| |||
| |||