The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

View previous topic View next topic Go down

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

Post by Darksphere92 on 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: http://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

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

Post by SLGray on 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.


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


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darksphere92 on 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");

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

Post by SLGray on 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");
      }
    });


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


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darksphere92 on 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.

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

Did you check the box for In the Topics only?


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


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

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

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

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

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


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


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darksphere92 on 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?

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

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


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


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by Darksphere92 on 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

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

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

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by Darksphere92 on 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;
}

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

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

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

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

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

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

What is the code you added in the javascript?

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by Darksphere92 on 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");
      }
    });

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

Post by Sanket on 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?

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by Darksphere92 on 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?

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

Post by Sanket on 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.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by Darksphere92 on 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.

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

Post by Ange Tuteur on 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");
          }
        });

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

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

^^ yes i think that should solve it.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by Darksphere92 on 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.

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

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


Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

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

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

that worked... i feel stupid, thanks for the help y'all.

Darksphere92
Forumember

Posts : 101
Reputation : 1
Language : English

http://fastforum.forum-board.net

Back to top Go down

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

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

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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