عدل سابقا من قبل المبدع الخبير في الإثنين 21 أكتوبر 2024 - 19:54 عدل 1 مرات
كونان2000 احلى نائب
عدد المساهمات : 1751معدل النشاط : 3626السُمعة : 318
موضوع: رد: صورة العضو في الاحصائيات الإثنين 21 أكتوبر 2024 - 18:38
وعليكم السلام تم التعديل
الكود:
/**** * Application: Avatar in: Top posters, Top posting users this week, Top posting users this month and Most active topic starters Widget! * Description: This application displays the members avatar in all widget of topic. * Version: 1.07022015-jq1.9.1 - Meni * Made and Optimizations by JScript - 2015/07/02 * Copyright (c) 2015 JScript <jscriptbrasil at live dot com> * This work is free. You can redistribute it and/or modify it * under the terms of the WTFPL, Version 2 **/ jQuery(function() { var oConfig = { sInfo: '<!--' + '* Application: Avatar in: Top posters, Top posting users this week, Top posting users this month and Most active topic starters Widget!' + '* Description: This application displays the members avatar in all widget of topic.' + '* Version: 1.07022015-jq1.9.1 - Meni' + '* Made and Optimizations by JScript - 2015/07/02' + '* Copyright (c) 2015 JScript <jscriptbrasil at live dot com>' + '* This work is free. You can redistribute it and/or modify it' + '* under the terms of the WTFPL, Version 2' + '-->', sDefaultAvatar: 'https://i.servimg.com/u/f78/18/17/62/92/defaul10.png', sCSS: '<style>' + '.jsUserPhoto_mini {' + 'height: 25px !important;' + 'width: 25px !important;' + 'border-radius: 50%;' + '}' + 'span.mod-recent-author i {' + 'display: none;' + '}' + '</style>' };
// Show member avatar in Recent Topics Widget! var oTarget = $('.modern-card').find('a[href^="/u"]'), iLen = oTarget.length, index = 0, td = oTarget.parent();
storIMG = sessionStorage.getItem('_top_' + userUrl); // Read object from sessionStorage, more fast! if (storIMG) { container.attr('src', storIMG); } else { // if not, then only request per session!!! jQuery.get(userUrl, function(data) { storIMG = jQuery('.mod-login-avatar img:first', data).attr('src'); if (storIMG !== undefined) { container.attr('src', storIMG); // Saving object in sessionStorage sessionStorage.setItem('_top_' + userUrl, storIMG); } }); } } }); });
ابوعلي البلقاوي و المبدع الخبير يعجبهم هذا الموضوع
المبدع الخبير
عدد المساهمات : 210معدل النشاط : 1628السُمعة : 1
موضوع: رد: صورة العضو في الاحصائيات الإثنين 21 أكتوبر 2024 - 19:54
كونان2000 كتب:
وعليكم السلام تم التعديل
الكود:
/**** * Application: Avatar in: Top posters, Top posting users this week, Top posting users this month and Most active topic starters Widget! * Description: This application displays the members avatar in all widget of topic. * Version: 1.07022015-jq1.9.1 - Meni * Made and Optimizations by JScript - 2015/07/02 * Copyright (c) 2015 JScript <jscriptbrasil at live dot com> * This work is free. You can redistribute it and/or modify it * under the terms of the WTFPL, Version 2 **/ jQuery(function() { var oConfig = { sInfo: '<!--' + '* Application: Avatar in: Top posters, Top posting users this week, Top posting users this month and Most active topic starters Widget!' + '* Description: This application displays the members avatar in all widget of topic.' + '* Version: 1.07022015-jq1.9.1 - Meni' + '* Made and Optimizations by JScript - 2015/07/02' + '* Copyright (c) 2015 JScript <jscriptbrasil at live dot com>' + '* This work is free. You can redistribute it and/or modify it' + '* under the terms of the WTFPL, Version 2' + '-->', sDefaultAvatar: 'https://i.servimg.com/u/f78/18/17/62/92/defaul10.png', sCSS: '<style>' + '.jsUserPhoto_mini {' + 'height: 25px !important;' + 'width: 25px !important;' + 'border-radius: 50%;' + '}' + 'span.mod-recent-author i {' + 'display: none;' + '}' + '</style>' };
// Show member avatar in Recent Topics Widget! var oTarget = $('.modern-card').find('a[href^="/u"]'), iLen = oTarget.length, index = 0, td = oTarget.parent();