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.

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

4 posters

Go down

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
avatar
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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");
avatar
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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.
avatar
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
avatar
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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?
avatar
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 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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
avatar
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 December 7th 2013, 9:06 am

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

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

Back to top Go down

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;
}
avatar
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 December 7th 2013, 9:12 am

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

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

Back to top Go down

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
avatar
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 December 7th 2013, 9:18 am

What is the code you added in the javascript?
Sanket
Sanket
ForumGuru

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

Back to top Go down

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");
      }
    });
avatar
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 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
Sanket
ForumGuru

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

Back to top Go down

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?
avatar
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 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
Sanket
ForumGuru

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

Back to top Go down

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.
avatar
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 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
Ange Tuteur
Forumaster

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

https://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 December 7th 2013, 9:40 am

^^ yes i think that should solve it.
Sanket
Sanket
ForumGuru

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

Back to top Go down

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.
avatar
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 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
Ange Tuteur
Ange Tuteur
Forumaster

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

https://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 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.
avatar
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 December 7th 2013, 10:05 am

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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