Latest topics
» [HELP] About Profile Cover Code
by MaHwOs Yesterday at 18:54

» bloquer un membre
by berlingo Fri 17 Nov 2017, 18:19

» IconSkouliki Graphics
by skouliki Fri 17 Nov 2017, 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» Auto-suggest @mentions as You Type
by skouliki Wed 15 Nov 2017, 14:56

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Hello everyone this is Adam from France
by Adam Mon 13 Nov 2017, 13:32

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

» Control pannel issue
by Ange Tuteur Sun 12 Nov 2017, 09:49

» BUG... forum members birthday's
by Ape Sat 11 Nov 2017, 11:44

» Display a Preview of Groups on Hover
by ThunderTB Fri 10 Nov 2017, 21:56

» Search box only visible on hover
by Ange Tuteur Mon 06 Nov 2017, 09:57

» [GAME] Animal Game
by SLGray Sun 05 Nov 2017, 15:04

Recent Tutorials
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[HELP] About Profile Cover Code

View previous topic View next topic Go down

avatar
omarpop23

Title :
Gender : Male
Age : 22
Posts : 139
Points : 894
Reputation : 24
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://www.facebook.com/omarpop23

Postomarpop23 on Tue 14 Nov 2017, 12:35

i was writing a code to make cover for members but i have problem

problem :
when i go to Statistics or Friends or any tap cover image doesn't apper

Code :
Code:
// DO NEXT CODE IF PROFILE PAGE LOADED
if (window.location.pathname.indexOf('/u') == 0) {
    $('head').prepend('<style> #content > p {display: none;}</style>');
// BUTTON TO CHANGE COVER PIC
    $(function() {
        $("#content > div:first").attr("style", "display: none !important");
        $("#field_id1 dt").click(function() {
            $("#field_id1 .ajax-profil_edit").click();
        });
    });
    $(function() {
        if (_userdata.session_logged_in) {
            $('head').prepend('<style>#field_id1 dt {cursor: pointer;}</style>');
        }
    });
 
// CHANGE ADD FRIEND & ADD FOE TEXT
    $(function() {
        $('#profile-advanced-add a[href*="/profile?friend"]').html('<i class="fa fa-user-plus" aria-hidden="true"></i>');
        $('#profile-advanced-add a[href*="/profile?foe"]').html('<i class="fa fa-user-times" aria-hidden="true"></i>');
        $('#profile-advanced-add a[href*="remove"]').html('<i class="fa fa-user" aria-hidden="true"></i>');

    });


// CLONE COVER, AVATAR, RANK AND NAME TO TOP OF PAGE
  $(function() {
        var cover = $('#field_id1 .field_uneditable').text();
          $('#content h1.page-title').replaceWith('<div style="width: 100%; height: 315px; position: relative; background: url(' + cover + ') no-repeat center center scroll;" id="fbfundo"> <div style="position: absolute; left: 0; width: 100%; bottom: 0;"> <div id="fbperfil"> <span id="fbgrupo"></span><div class="user-prof"><span style="font-size: 16px;" id="fbnome"></span><br/><span style="font-size: 16px;" id="fbrank"></span><br/><span style="font-size: 16px;" id="fbfriend"></span></div></div></div></div><style>table#fbperfil tbody tr td#fbnome div.h3 {text-transform: none !important;}#fbnome,#fbrank{display:inline-block}#fbrank{padding:3px 12px;margin:5px auto;background:rgba(0,0,0,.4);border-radius:5px}#fbrank strong{color:#FFF}.user-prof{display:inline-block;vertical-align:25px;padding-right:10px}#fbfundo{background-size: 100% 100% !important;}#field_id1 dt{background:rgba(0,0,0,.4);color:#FFF;padding:5px;position:relative;margin:-1px auto;width:100px !important;border-radius:50px;text-align:center} h1.page-title{font-size:0px!important;height:30px!important;} #content p:nth-child(2) {display:none!important;} #profile-advanced-right .module {display:none!important;} #profile-advanced-left {width:100%!important;} #fbperfil { margin-bottom: 5px; margin-left: 13px; } #fbavatar { border: 4px solid #fff; -webkit-border-radius: 2px; background-color: white; } #fbavatar img { height: 160px; width: 160px; }#fbnome .h3 {background:rgba(0,0,0,.4);padding:3px 12px;color: #FFF;border-radius:5px}#fbnome span, #fbnome em {color:#FFF!important} #fbgrupo img {padding-right:10px;border-radius:100%;width:135px;height:135px} #fbgrupo { display: inline-block } #profile-advanced-layout #tabs { bottom: 0; margin-top: 0px !important; }#profile-advanced-right #profile-advanced-add {display: none;}</style>');
          $('#profile-advanced-right .module:first .inner img[alt=""]').clone().appendTo($('#fbavatar'));
   
          $('#content div.module:first .h3:first').clone().appendTo($('#fbnome'));
   
          $('#content div.module:first div[style="text-align:center;"] strong').clone().appendTo($('#fbrank'));
          $('#profile-advanced-add').clone().appendTo($('#fbfriend'));
   
          $('#content div.module:first div.inner img:last').clone().appendTo($('#fbgrupo'));

  });

}
avatar
omarpop23

Title :
Gender : Male
Age : 22
Posts : 139
Points : 894
Reputation : 24
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://www.facebook.com/omarpop23

Postomarpop23 on Sat 18 Nov 2017, 06:39

up
avatar
MaHwOs
New Member
Title :
Gender : Unspecified
Posts : 1
Points : 2
Reputation : 0
Language : Ar-En
Browser : Browser : Other Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostMaHwOs Yesterday at 18:54

I would help you if you asked me to

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum