help in member list
2 posters
Page 1 of 1
help in member list
I want this list to appear in the member list page
the list show now in topics and the Homepage
code
the list show now in topics and the Homepage
code
- Code:
$(function () {
if (/\/u\d+/.test(location.pathname)) return;
var wall = 1, // visitor messages tab
stats = 1, // statistics tab
attachments = 0, // attachments tab
friends = 1, // friends tab
contact = 1, // contact tab
rpg = 0, // RPG tab
close = 1, // close popup button
avatar = 1; // display user avatar
var a=document.getElementsByTagName('A');
for(i=0;i<a.length;i++)if(/\/u\d+/.test(a[i].href))a[i].className=a[i].className+' profilePopup';
$('.profilePopup:has(img)').removeClass('profilePopup');
var userWall='',userStats='',userAttachments='',userFriends='',userContact='',userRpg='',userClose='',guestView=true;
if(wall==1)userWall='<span class="propop_tab" id="propop_vm"></span>';if(stats==1)userStats='<span class="propop_tab" id="propop_stats"></span>';if(attachments==1)userAttachments='<span class="propop_tab" id="propop_attach"</span>';if(friends==1)userFriends='<span class="propop_tab" id="propop_friends"></span>';if(contact==1)userContact='<span class="propop_tab" id="propop_contact"</span>';if(rpg==1)userRpg='<span class="propop_tab" id="propop_rpg"</span>';if(close==1)userClose='<span class="propop_tab" id="close_popup" style="float:left;margin-top:-4px;"><img src="https://i.servimg.com/u/f39/17/71/84/72/entypo25.png" alt="اغلاق" /></span>';
$('.profilePopup').click(function(){
var UID=$(this).attr('href'),UNM=$(this).text(),SEL='#cp-main .panel, .forumline:has(#profile-advanced-details), .clear + #profile-advanced-details',LOAD='<div class="profileLoading" style="text-align:center;font-weight:bold;font-size:18px;">تحميل...</div>';
$('body').append('<div id="profilefilter" style="position:fixed;top:0px;left:0px;right:0px;bottom:0px;background:url(https://i.servimg.com/u/f39/18/21/41/30/overla10.png);cursor:pointer;z-index:10;"></div><div id="profcont-container" style="background:#EEE;border:1px solid #CCC;top:20%;left:15%;right:15%;padding:4px;position:fixed;font-size:12px;border-radius:5px;z-index:50;"><div class="profile_popup_nav">'+userWall+'<span class="propop_tab" id="propop_profile"></span>'+userStats+userAttachments+userFriends+userContact+userRpg+userClose+'</div><a href="'+UID+'"><div id=""></div></a><div id="userprofile" style="height:400px;overflow-y:auto;">'+LOAD+'</div><span id="profileLinks"><a href="'+UID+'"></a><span id="interactionLinks"> • <a href="/privmsg?mode=post&u='+UID.replace(/.*?\/u/,'')+'">ارسل رساله خاصه</a><span id="vmLink"> • <a href="/privmsg?mode=post_profile&u='+UID.replace(/.*?\/u/,'')+'">Send VM</a></span><span style="float:right;"><a href="/profile?friend='+UNM.replace(/\s+/g,'+')+'&mode=editprofile&page_profil=friendsfoes">اضافة كصديق</a> • <a href="/profile?foe='+UNM.replace(/\s+/g,'+')+'&mode=editprofile&page_profil=friendsfoes"></a></span></span></div>');
$('#userprofile').load(UID+SEL,function(){if($('#profcont-container #username').length&&_userdata.user_id==-1){$(this).html('<div class="profileLoading" style="text-align:center;font-weight:bold;font-size:18px;">عذرا .. ايها الزائر لاتستطيع مشاهدة هذه البيانات! :(</div>');guestView=false}});
$('#propop_profile').addClass('activeTab');
if (avatar == 1) $('#userAVA').load(UID+' #profile-advanced-right .module:first div img:first, .forumline td.row1.gensmall:first > img:first, .frm-set.profile-view.left dd img:first, dl.left-box.details:first dd img:first, .row1 b .gen:first img:first, .real_avatar img:first');
loadPro('#propop_profile','');loadPro('#propop_vm','wall');loadPro('#propop_stats','stats');loadPro('#propop_friends','friends');loadPro('#propop_contact','contact');loadPro('#propop_rpg','rpg');loadPro('#propop_attach','attachments');
if(wall==0)$('#vmLink').remove();
if(!document.getElementById('logout'))$('#interactionLinks').remove();
$('#profilefilter,#close_popup').click(function(){$('#profilefilter, #profcont-container').remove()});
function loadPro(element, location){$(element).click(function(){if($(this).hasClass('activeTab')||guestView==false)return;$('#propop_profile,#propop_vm,#propop_stats,#propop_friends,#propop_contact,#propop_rpg,#propop_attach,#propop_close').removeClass('activeTab');$(this).addClass('activeTab');$('#userprofile').html(LOAD).load(UID+location+SEL)})}
return false;
});
});
Re: help in member list
Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Help with member list.
» add letters at the top of the member list
» login/register/member list
» Inactive Members On Member List
» Login/member list/register
» add letters at the top of the member list
» login/register/member list
» Inactive Members On Member List
» Login/member list/register
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum