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.
The forum of the forums
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 7/12/2013, 03:12

    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 7/12/2013, 09:55; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


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

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

    Post by SLGray 7/12/2013, 03:27

    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 7/12/2013, 03:32

    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 : 51499
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray 7/12/2013, 03:38

    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 7/12/2013, 03:44

    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 : 51499
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray 7/12/2013, 03:51

    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 7/12/2013, 03:55

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


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

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

    Post by SLGray 7/12/2013, 04:07

    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 7/12/2013, 04:35

    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 : 51499
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray 7/12/2013, 04:43

    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 7/12/2013, 06:52

    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 7/12/2013, 09:06

    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 7/12/2013, 09:08

    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 7/12/2013, 09:12

    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 7/12/2013, 09:14

    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 7/12/2013, 09:18

    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 7/12/2013, 09:21

    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 7/12/2013, 09:23

    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 7/12/2013, 09:26

    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 7/12/2013, 09:27

    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 7/12/2013, 09:35

    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 7/12/2013, 09:36

    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 7/12/2013, 09:40

    ^^ 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 7/12/2013, 09:41

    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 7/12/2013, 09:46

    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 7/12/2013, 09:54

    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 7/12/2013, 10:05

    Topic solved and archived

      Current date/time is 23/9/2024, 11:20