Change the background in function of the gender of the poster, Problem
4 posters
Page 1 of 1
Change the background in function of the gender of the poster, Problem
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
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
Re: Change the background in function of the gender of the poster, Problem
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.
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.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Change the background in function of the gender of the poster, Problem
yes i did this is the code i used.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.
- 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");
Re: Change the background in function of the gender of the poster, Problem
- 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");
}
});
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Change the background in function of the gender of the poster, Problem
that's what i got.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");
}
});
Re: Change the background in function of the gender of the poster, Problem
Did you check the box for In the Topics only?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Change the background in function of the gender of the poster, Problem
I didSLGray wrote:Did you check the box for In the Topics only?
Re: Change the background in function of the gender of the poster, Problem
Post a link to a topic that should have these backgrounds.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Change the background in function of the gender of the poster, Problem
shouldnt all the Topics have the backgrounds?SLGray wrote:Post a link to a topic that should have these backgrounds.
Re: Change the background in function of the gender of the poster, Problem
Yes. Post a link to one that guests can see.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Change the background in function of the gender of the poster, Problem
ok Link: http://fastforum.forum-board.net/t1-these-are-the-host-you-can-useSLGray wrote:Yes. Post a link to one that guests can see.
Re: Change the background in function of the gender of the poster, Problem
I don't think you have added the CSS. Did you?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
i did here's the code i have.Sanket wrote:I don't think you have added the CSS. Did you?
- 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;
}
Re: Change the background in function of the gender of the poster, Problem
In your profile, did you choose the gender as Male/female ?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
i pushed MaleSanket wrote:In your profile, did you choose the gender as Male/female ?
Re: Change the background in function of the gender of the poster, Problem
What is the code you added in the javascript?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
this is what i got nowSanket wrote:What is the code you added in the javascript?
- 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");
}
});
Re: Change the background in function of the gender of the poster, Problem
I think you've done everything right. It should work.
Can you make a test admin account that I can use?
Can you make a test admin account that I can use?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
how do i do that?Sanket wrote:I think you've done everything right. It should work.
Can you make a test admin account that I can use?
Re: Change the background in function of the gender of the poster, Problem
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.
Send me the login details via PM, i will check.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
ok here Username: As i said, via PM's. Anyways, the password was incorrect. Send it to me via PM.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.
Re: Change the background in function of the gender of the poster, Problem
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");
}
});
Re: Change the background in function of the gender of the poster, Problem
^^ yes i think that should solve it.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Change the background in function of the gender of the poster, Problem
no still nothing, maybe im doing something wrong.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");
}
});
Re: Change the background in function of the gender of the poster, Problem
Ensure that the gender is shown in posts, see '1. Definition :' of the tuto.
Re: Change the background in function of the gender of the poster, Problem
that worked... i feel stupid, thanks for the help y'all.SethC1995 wrote:Ensure that the gender is shown in posts, see '1. Definition :' of the tuto.
Similar topics
» New tip : Change the background in function of the gender of the poster
» Change the background in function of the gender of the poster
» Change the background in function of the gender of the poster - phpbb2
» background based on gender?
» Gender in message problem and Please login or register link
» Change the background in function of the gender of the poster
» Change the background in function of the gender of the poster - phpbb2
» background based on gender?
» Gender in message problem and Please login or register link
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum