-
1 posts
-
-
Male
-
02-09-02
-
Studying at Amazing Grace Academy
-
-
Living in
Nigeria
-
Located in Rivers State Port Harcourt
Am a cool guy to be with?
M talented and funny ??
Are you sure you want to unfriend?
Are you sure that you want to remove this member from your family?
New member was successfully added to your family list!
');
Wo_Delay(function(){
$("#open_add_to_family_modal").slideUp(function(){
$(this).remove();
$("#add_to_family").modal('hide');
})
$('#add_to_family').find('btn-main').removeAttr('disabled');
location.reload()
},1500);
}
else{
$('.add_to_family_alert').html('
' + data.message + '
');
$('#add_to_family').find('.btn-main').removeAttr('disabled');
}
$('#add_to_family').find('.modal-footer .ball-pulse').fadeOut(100);
})
.fail(function() {
console.log("error");
})
}
function Wo_ReportProfile(id = false,report = true){
var report_text = $("#report-user-text-19029").val();
if (!id) {return false;}
else if(report == true){
if (!report_text) {return false;}
}
$('#report_profile').find('.modal-footer .ball-pulse').fadeIn(100);
$.ajax({
url: Wo_Ajax_Requests_File() + '?f=reports_user',
type: 'POST',
dataType: 'json',
data: {text:report_text,user:id},
})
.done(function(data) {
if(data.status == 200 && data.code == 0){
$('#report_status').replaceWith('\
\
\
');
}
else if (data.status == 200 && data.code == 1) {
$("#report-user-text-19029").val('');
$("#report_profile").modal('hide');
$('#report_status').replaceWith('\
\
\
');
}
$('#report_profile').find('.modal-footer .ball-pulse').fadeOut(100);
})
.fail(function() {
console.log("error");
})
}
function loadposts(user_id) {
$.get(Wo_Ajax_Requests_File() + '?f=load_profile_posts', {user_id:user_id}, function(data) {
$('.posts_load').html(data);
});
}
var user_id = $('.profile').attr('data-id');
$(function () {
user_id = $('.profile').attr('data-id');
if($(window).width() > 600) {
$(".user-avatar").hover(function () {
$('.profile-avatar-changer').fadeIn(100);
}, function () {
$('.profile-avatar-changer').fadeOut(100);
});
}
if($(window).width() > 600) {
$(".user-cover").hover(function () {
$('.profile-cover-changer').fadeIn(100);
}, function () {
$('.profile-cover-changer').fadeOut(100);
});
}
$('form.profile-avatar-changer').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=update_user_avatar_picture',
beforeSend: function () {
$('.profile_avatar').fadeOut(100);
$('.user-avatar-uploading-container, .user-avatar-uploading-progress').fadeIn(200);
},
success: function (data) {
$('.profile_avatar').fadeIn(100);
if(data.status == 200) {
Wo_GetNewPosts();
$('[id^=updateImage-19029]').attr('data-target', '#ProfileImageModal-Stopped');
$('[id^=updateImage-19029]').attr('onclick', 'Wo_OpenProfilePicture("' + data.img_or + '");');
$('[id^=updateImage-19029]').attr("src", data.img);
$('#cropImage').modal('show');
$('#image-to-crop img').attr('src', data.avatar_full);
$('#image-to-crop img').attr('data-image', data.avatar_full_or);
$('#image-to-crop img').on("load", function() {
setTimeout(function () {
$('#image-to-crop img').rcrop({
minSize : [100,100],
preserveAspectRatio : true,
grid : true
});
}, 1000);
}).each(function() {
if(this.complete) $(this).load();
});
if($("ul[data-profile-completion]").length == 1) {
if ($('#add-profile-avatar').length == 1) {
// window.location.reload();
}
}
}
$('.user-avatar-uploading-container,.user-avatar-uploading-progress').fadeOut(200);
}
});
$('form.cover-position-form').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=re_cover',
dataType: 'json',
beforeSend: function() {
$('.user-reposition-dragable-container').hide();
$('.user-repositioning-icons-container1').show();
$('.user-repositioning-icons-container').html('
').fadeIn('fast');
},
success: function(data) {
if (data.status == 200) {
$('.user-cover-reposition-w img').attr('src', data.url + '?time=' + Math.random()).on("load", function () {
$('.when-edit').hide();
$('.when-notedit').show();
$('.user-repositioning-icons-container1').fadeOut('fast');
$('.user-repositioning-icons-container').fadeOut('fast').html('');
$('.user-cover-reposition-w').show();
$('.user-reposition-container').hide().find('img').css('top', 0);
$('.cover-resize-buttons').hide();
$('.default-buttons').show();
$('input.cover-position').val(0);
$('.wo_user_profile .card.hovercard .pic-info-cont, .problackback').fadeIn();
// /$('.user-reposition-container img').draggable('destroy').css('cursor','default');
});
}
}
});
$('.profile-cover-changer').ajaxForm({
url: Wo_Ajax_Requests_File() + '?f=update_user_cover_picture',
beforeSend: function () {
$('.profile_cover').fadeOut(100);
$('.user-cover-uploading-container,.user-cover-uploading-progress').fadeIn(200);
},
success: function (data) {
$('.profile_cover').fadeIn(100);
if(data.status == 200) {
Wo_GetNewPosts();
$('[id^=cover-image]').attr('data-target', '#ProfileCoverImageModal-Stopped');
$('[id^=cover-image]').attr('onclick', 'Wo_OpenProfileCover("' + data.cover_or + '");');
$('[id^=cover-image]').attr("src", data.img);
$('#full-image').attr("src", data.cover_full);
$('#full-input-image').val(data.cover_full);
$('#cover-input-image').val(data.cover_or);
Wo_StartRepositioner();
}
$('.user-cover-uploading-container,.user-cover-uploading-progress').fadeOut(200);
}
});
});
function Wo_GetFollowing(user_id) {
Wo_progressIconLoader($('#sidebar-following-list-container').find('span'));
$.get(Wo_Ajax_Requests_File(), {
f: 'get_following_users',
user_id: user_id
}, function (data) {
if(data.status == 200) {
$('.sidebar-following-users-container').html(data.html);
}
Wo_progressIconLoader($('#sidebar-following-list-container').find('span'));
});
}
function Wo_GetFollowers(user_id) {
Wo_progressIconLoader($('#sidebar-followers-list-container').find('span'));
$.get(Wo_Ajax_Requests_File(), {
f: 'get_followers_users',
user_id: user_id
}, function (data) {
if(data.status == 200) {
$('.sidebar-followers-users-container').html(data.html);
}
Wo_progressIconLoader($('#sidebar-followers-list-container').find('span'));
});
}
function Wo_GetLikes(user_id) {
Wo_progressIconLoader($('#sidebar-pages-list-container').find('span'));
$.get(Wo_Ajax_Requests_File(), {
f: 'pages',
s: 'get_likes',
user_id: user_id
}, function (data) {
if(data.status == 200) {
$('.sidebar-likes-container').html(data.html);
}
Wo_progressIconLoader($('#sidebar-pages-list-container').find('span'));
});
}
function Wo_GetMoreFollowing(user_id) {
Wo_progressIconLoader($('.load-more').find('button'));
after_last_id = $('.user-data:last').attr('data-user-id');
$.get(Wo_Ajax_Requests_File(), {
f: 'get_more_following',
user_id: user_id,
after_last_id: after_last_id
}, function (data) {
if(data.status == 200) {
if(data.html.length == 0) {
$('.load-more').find('button').text("No more users to show");
} else {
$('#following-list').append(data.html);
}
}
Wo_progressIconLoader($('.load-more').find('button'));
});
}
function Wo_GetMoreUserLikes(user_id) {
Wo_progressIconLoader($('.load-more').find('button'));
after_last_id = $('.user-data:last').attr('data-page-id');
$.get(Wo_Ajax_Requests_File(), {
f: 'pages',
s: 'get_more_likes',
user_id: user_id,
after_last_id: after_last_id
}, function (data) {
if(data.status == 200) {
if(data.html.length == 0) {
$('.load-more').find('button').text("No more pages to show");
} else {
$('#likes-list').append(data.html);
}
}
Wo_progressIconLoader($('.load-more').find('button'));
});
}
function Wo_GetMoreVideos(user_id) {
Wo_progressIconLoader($('.load-more').find('button'));
after_last_id = $('.video-data:last').attr('data-video-id');
$.get(Wo_Ajax_Requests_File(), {
f: 'get_more_videos',
user_id: user_id,
after_last_id: after_last_id
}, function (data) {
if(data.status == 200) {
if(data.html.length == 0) {
$('.load-more').find('button').text("No more videos to show");
} else {
$('#videos-list').append(data.html);
}
}
Wo_progressIconLoader($('.load-more').find('button'));
});
}
function Wo_GetMorePhotos(user_id) {
Wo_progressIconLoader($('.load-more').find('button'));
after_last_id = $('.profile-lists .photo-data:last').attr('data-photo-id');
$.get(Wo_Ajax_Requests_File(), {
f: 'get_more_photos',
user_id: user_id,
after_last_id: after_last_id
}, function (data) {
if(data.status == 200) {
if(data.html.length == 0) {
$('.load-more').find('button').text("No more photos to show");
} else {
$('#photos-list').append(data.html);
}
}
Wo_progressIconLoader($('.load-more').find('button'));
});
}
function Wo_GetMoreFollowers(user_id) {
Wo_progressIconLoader($('.load-more').find('button'));
after_last_id = $('.user-data:last').attr('data-user-id');
$.get(Wo_Ajax_Requests_File(), {
f: 'get_more_followers',
user_id: user_id,
after_last_id: after_last_id
}, function (data) {
if(data.status == 200) {
if(data.html.length == 0) {
$('.load-more').find('button').text("No more users to show");
} else {
$('#followers-list').append(data.html);
}
}
Wo_progressIconLoader($('.load-more').find('button'));
});
}
function Wo_UpdateProfileAvatar() {
$("form.profile-avatar-changer").submit();
}
function Wo_UpdateProfileCover() {
$("form.profile-cover-changer").submit();
}
function Wo_SetCookieAlert() {
$.get(Wo_Ajax_Requests_File(), {
f: 'set_admin_alert_cookie'
});
}
function Wo_OpenProfileCover(image) {
$.post(Wo_Ajax_Requests_File() + '?f=get_user_profile_cover_image_post', {
image:image
}, function (data) {
if (data.status == 200) {
Wo_OpenLightBox(data.post_id);
} else {
$('[id^=cover-image]').attr('data-target', '#ProfileCoverImageModal');
$('[id^=cover-image]').attr('data-toggle', 'modal');
$('#ProfileCoverImageModal').modal('show');
}
});
}
function Wo_OpenProfilePicture(image) {
$.post(Wo_Ajax_Requests_File() + '?f=get_user_profile_image_post', {
image:image
}, function (data) {
if (data.status == 200) {
Wo_OpenLightBox(data.post_id);
} else {
$('[id^=updateImage-' + user_id + ']').attr('data-target', '#ProfileImageModal-' + user_id);
$('[id^=updateImage-' + user_id + ']').attr('data-toggle', 'modal');
$('#ProfileImageModal-' + user_id).modal('show');
}
});
}
function Wo_GetMutualFriends(user_id) {
Wo_progressIconLoader($('#sidebar-mutual-list-container').find('span'));
$.get(Wo_Ajax_Requests_File(), {
f: 'get_mutual_users',
user_id: user_id
}, function (data) {
if(data.status == 200) {
$('.sidebar-mutual-users-container').html(data.html);
}
Wo_progressIconLoader($('#sidebar-mutual-list-container').find('span'));
});
}
Sdgovernment
Delete Comment
Are you sure that you want to delete this comment ?
ORDU ONYEBUCHI KELVIN
Delete Comment
Are you sure that you want to delete this comment ?
Akira Joshua
Delete Comment
Are you sure that you want to delete this comment ?