Change the background in function of the gender of the poster, Problem Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Change the background in function of the gender of the poster, Problem

    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 3:12 am

    I cant seem to get it to work and the thing is im afaid t change anything in my forum or it might back the theme again, is it possible that someone can add it for me or do i have to do it myself?

    Topic: https://help.forumotion.com/t115828-change-the-background-in-function-of-the-gender-of-the-poster#757421


    Last edited by Darksphere92 on December 7th 2013, 9:55 am; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by SLGray December 7th 2013, 3:27 am

    Did you read this

    Important!: To make it works you absolutely need to indicate the version of your forum by editing the value of the variable version, you have the choice between phpBB2, phpBB3, punBB and Invision.



    Change the background in function of the gender of the poster, Problem Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 3:32 am

    SLGray wrote:Did you read this

    Important!: To make it works you absolutely need to indicate the version of your forum by editing the value of the variable version, you have the choice between phpBB2, phpBB3, punBB and Invision.
    yes i did this is the code i used.

    Code:
    (version.toLowerCase() == "phpbb3"){ 
          $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
          $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by SLGray December 7th 2013, 3:38 am

    Code:

        $(function() {
         
          //Indicate here the version of your forum.
          var version = "phpBB3";
         
          if(version.toLowerCase() == "phpbb2"){ 
              $(".postdetails img[title='Male']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
              $(".postdetails img[title='Female']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
          }else if(version.toLowerCase() == "phpbb3"){ 
              $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx"); 
          }else if(version.toLowerCase() == "punbb"){ 
              $(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
              $(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx"); 
          }else if(version.toLowerCase() == "invision"){       
              $(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
          }
        });



    Change the background in function of the gender of the poster, Problem Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 3:44 am

    SLGray wrote:
    Code:

        $(function() {
          
           //Indicate here the version of your forum.
           var version = "phpBB3";
          
           if(version.toLowerCase() == "phpbb2"){  
              $(".postdetails img[title='Male']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
              $(".postdetails img[title='Female']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
           }else if(version.toLowerCase() == "phpbb3"){  
              $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");  
           }else if(version.toLowerCase() == "punbb"){  
              $(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
              $(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx");  
           }else if(version.toLowerCase() == "invision"){        
              $(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
           }
        });
    that's what i got.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by SLGray December 7th 2013, 3:51 am

    Did you check the box for In the Topics only?



    Change the background in function of the gender of the poster, Problem Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 3:55 am

    SLGray wrote:Did you check the box for In the Topics only?
    I did
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by SLGray December 7th 2013, 4:07 am

    Post a link to a topic that should have these backgrounds.



    Change the background in function of the gender of the poster, Problem Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 4:35 am

    SLGray wrote:Post a link to a topic that should have these backgrounds.
    shouldnt all the Topics have the backgrounds?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by SLGray December 7th 2013, 4:43 am

    Yes. Post a link to one that guests can see.



    Change the background in function of the gender of the poster, Problem Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 6:52 am

    SLGray wrote:Yes.  Post a link to one that guests can see.
    ok Link: http://fastforum.forum-board.net/t1-these-are-the-host-you-can-use
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:06 am

    I don't think you have added the CSS. Did you?
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:08 am

    Sanket wrote:I don't think you have added the CSS. Did you?
    i did here's the code i have.

    Code:
    .fa_postbody_xy{
      background: url("http://i45.servimg.com/u/f45/17/45/19/77/xy10.png");
    min-height: 500px;
    }
     
    .fa_postbody_xx {
      background: url("http://i45.servimg.com/u/f45/17/45/19/77/xx10.png");
    min-height: 500px;
    }
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:12 am

    In your profile, did you choose the gender as Male/female ?
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:14 am

    Sanket wrote:In your profile, did you choose the gender as Male/female ?
    i pushed Male
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:18 am

    What is the code you added in the javascript?
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:21 am

    Sanket wrote:What is the code you added in the javascript?
    this is what i got now
    Code:
    $(function() {
         
     //Indicate here the version of your forum.
     var version = "phpBB3";
         
          if(version.toLowerCase() == "phpbb2"){ 
              $(".postdetails img[title='Male']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
              $(".postdetails img[title='Female']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
          }else if(version.toLowerCase() == "phpbb3"){ 
              $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");
          }else if(version.toLowerCase() == "punbb"){ 
              $(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
              $(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx"); 
          }else if(version.toLowerCase() == "invision"){       
              $(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
              $(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
          }
        });
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:23 am

    I think you've done everything right. It should work.
    Can you make a test admin account that I can use?
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:26 am

    Sanket wrote:I think you've done everything right. It should work.
    Can you make a test admin account that I can use?
    how do i do that?
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:27 am

    Just make an account on your forum & give it admin access, by adding it to the administrator group.
    Send me the login details via PM, i will check.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:35 am

    Sanket wrote:Just make an account on your forum & give it admin access, by adding it to the administrator group.
    Send me the login details via PM, i will check.
    ok here Username: As i said, via PM's. Anyways, the password was incorrect. Send it to me via PM.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Ange Tuteur December 7th 2013, 9:36 am

    Variables are case sensitive, if you change phpBB3 => phpbb3 it should work.

    Code:
       $(function() {
            
        //Indicate here the version of your forum.
         var version = "phpbb3";
            
             if(version.toLowerCase() == "phpbb2"){
                 $(".postdetails img[title='Male']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
                  $(".postdetails img[title='Female']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
              }else if(version.toLowerCase() == "phpbb3"){
                 $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
                  $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");
              }else if(version.toLowerCase() == "punbb"){
                 $(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
                  $(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx");
             }else if(version.toLowerCase() == "invision"){      
                 $(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
                  $(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
              }
            });
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Sanket December 7th 2013, 9:40 am

    ^^ yes i think that should solve it.
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:41 am

    SethC1995 wrote:Variables are case sensitive, if you change phpBB3 => phpbb3 it should work.

    Code:
       $(function() {
            
        //Indicate here the version of your forum.
         var version = "phpbb3";
            
             if(version.toLowerCase() == "phpbb2"){
                 $(".postdetails img[title='Male']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
                  $(".postdetails img[title='Female']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
              }else if(version.toLowerCase() == "phpbb3"){
                 $(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
                  $(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");
              }else if(version.toLowerCase() == "punbb"){
                 $(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
                  $(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx");
             }else if(version.toLowerCase() == "invision"){      
                 $(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
                  $(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
              }
            });
    no still nothing, maybe im doing something wrong.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Ange Tuteur December 7th 2013, 9:46 am

    Ensure that the gender is shown in posts, see '1. Definition :' of the tuto.

    Change the background in function of the gender of the poster, Problem Captu190
    avatar
    Darksphere92
    Forumember


    Posts : 101
    Reputation : 1
    Language : English

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Darksphere92 December 7th 2013, 9:54 am

    SethC1995 wrote:Ensure that the gender is shown in posts, see '1. Definition :' of the tuto.

    Change the background in function of the gender of the poster, Problem Captu190
    that worked... i feel stupid, thanks for the help y'all.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Change the background in function of the gender of the poster, Problem

    Post by Ange Tuteur December 7th 2013, 10:05 am

    Topic solved and archived