FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 22 users online :: 0 Registered, 0 Hidden and 22 Guests

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

[HELP] About Profile Cover Code

View previous topic View next topic Go down

omarpop23
omarpop23

Gender : Male
Age : 29
Posts : 140
Points : 3217
Reputation : 25
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
https://www.facebook.com/omarpop23

Postomarpop23 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'));

  });

}
omarpop23
omarpop23

Gender : Male
Age : 29
Posts : 140
Points : 3217
Reputation : 25
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
https://www.facebook.com/omarpop23

Postomarpop23 Sat 18 Nov 2017, 06:39

up
MaHwOs
MaHwOs
New Member
Gender : Unspecified
Posts : 1
Points : 2313
Reputation : 0
Language : Ar-En
Browser : Browser : Other Forum Version : Forum Version : Other

PostMaHwOs Sun 19 Nov 2017, 18:54

I would help you if you asked me to
Mr_Grande
Mr_Grande

Gender : Unspecified
Age : 25
Posts : 42
Points : 2650
Reputation : 9
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision

PostMr_Grande Sun 26 Nov 2017, 18:50

Amazing Idea when this is done you should release it I am good with coding but would have love to help with this
omarpop23
omarpop23

Gender : Male
Age : 29
Posts : 140
Points : 3217
Reputation : 25
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
https://www.facebook.com/omarpop23

Postomarpop23 Thu 30 Nov 2017, 04:17

Sponsored content

PostSponsored content

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