View Full Version : Show Gender In Postbit
peterska2
10-01-2005, 10:00 PM
This is nice and easy to install and simply shows a small icon next to the online status indicator to show the gender of the user.
The ZIP contains everything you need. There are two sets of images so you can choose your favorite.
I have circled the icons in the screenshot to enable you to see exactly where they are placed.
PLEASE NOTE: As mentioned in the instructions, the names of the images are case sensitive and so MUST be named exactly as you have defined them in the profile field.
Please click install if you have installed this.
Update 1.03: Added Memberlist images. Added instructions for non-standard languages. To upgrade download the upgrade 1.03 zip and follow instructions.
Update 1.02: Fixed an error in the code.
Update 1.01: Added image for undisclosed and changed instructions slighty to reflect this. To update download the 1.01 upgrade zip.
Update: I have added optional instructions to add Gender: before the image
[Note to mods] I have released for 3.0.x and 3.5.x even though it is identical as most people only look at the mods for their version.[/Note to mods]
Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here (http://www.peterska2.co.uk/showthread.php?t=19193). Support provided in this thread will be on an as and when basis.
LittleBoy1
10-02-2005, 04:53 PM
Thank You very much!! :D
Snake
10-02-2005, 05:24 PM
Thanks man. I love it!
Lea Verou
10-02-2005, 05:40 PM
It would be nicer I think to have it displayed like the age...
Gender: [icon]
Lea Verou
10-02-2005, 05:42 PM
Thanks man. I love it!
She is not a man!!! :p
(Why dou you think that all the coders are men??? :devious::devious::devious: You, sexists!! :p)
Snake
10-02-2005, 05:48 PM
Oh sorry my bad. I don't know why but she sound like a male. :P
peterska2
10-02-2005, 05:50 PM
Don't worry about it.
Loukrhtia: Just add Gender: before the IMG code. It occurs twice in each postbit.
Lea Verou
10-02-2005, 05:51 PM
Oh sorry my bad. I don't know why but she sound like a male. :P
I don't think she'll be pleased to read this :p :p
However I think that you think she sounds like a male because you are used to male coders!
petreska keep up!
Freedom to female admins and female coders! :p :p :p
(j/k)
Lea Verou
10-02-2005, 05:53 PM
Don't worry about it.
Loukrhtia: Just add Gender: before the IMG code. It occurs twice in each postbit.
It was a suggestion not a personal request. I prefer to do it on my own so that I learn something more :) I did it on my own in vb 3.0.7 so I don't think it will be more difficult :)
peterska2
10-02-2005, 05:59 PM
I've added some further instructions to do this.
Zip updated
Snake
10-02-2005, 06:43 PM
Thanks for the update.
Lea Verou
10-02-2005, 06:48 PM
petreska I cannot follow your way cause its a greek forum and I can't have greek filenames in the ftp!
So I tried adding this in the proper place:
<if condition="$post['field5'] & 1">
<div> Φύλο: %22$stylevar%5Bimgdir_misc%5D/male.gif%22
</if>
<if condition="$post['field5'] & 2">
<div> Φύλο: %22$stylevar%5Bimgdir_misc%5D/female.gif%22
</if>
but nothing happens... I followed these (http://www.vbulletin.com/forum/showthread.php?t=108785)instructions... I know they are for 3.0.x but as I have seen the postbit hasn't changed that much so they should work...
What am I doing wrong??
peterska2
10-02-2005, 06:52 PM
Use this instead
<if condition="$post['field5'] & 1">
<div> Φύλο: <img src="$stylevar[imgdir_misc]/male.gif" />
</if>
<if condition="$post['field5'] & 2">
<div> Φύλο: <img src="$stylevar[imgdir_misc]/female.gif" />
</if>
That should work
Lea Verou
10-02-2005, 06:57 PM
no it didn't.
Also the forum makes the <img> tag [img] for some reason and generally screwed up the code I posted above! It's not like that!
It's like yours but with 2 more </div>
thedvs
10-02-2005, 07:19 PM
If a member has no gender set yet, it asks for /images/misc/.gif and leaves a broken image. any way to fix this so no image is shown?
Lea Verou
10-02-2005, 07:27 PM
If a member has no gender set yet, it asks for /images/misc/.gif and leaves a broken image. any way to fix this so no image is shown?
If the member has no gender set then the condition will be false and nothing should show...
Are you supposing this or you actually have this problem?
thedvs
10-02-2005, 07:42 PM
well in IE its showing a broken image and calling .gif
peterska2
10-02-2005, 08:05 PM
ok, add another option undisclosed and set that to be the default one.
Then upload this image to the /images/misc folder.
I'll update the instructions and zip file too
Boofo
10-02-2005, 08:36 PM
Nice one Kerry-Anne. Clicking install. ;)
Zachery
10-02-2005, 08:38 PM
I wasn't going to say anything untill I, just a moment ago looked at your installer for both.. you even use the same wording as me... how awsome of you.
peterska2
10-02-2005, 08:38 PM
Thanks :)
Oooooh! I just noticed the bit that tells me who's installed!
peterska2
10-02-2005, 08:39 PM
I wasn't going to say anything untill I, just a moment ago looked at your installer for both.. you even use the same wording as me... how awsome of you.
Co-incidence? I've never used anyone elses and just rumbled it up myself earlier.
thedvs
10-02-2005, 08:40 PM
Thank you that's fixed it.
Zachery
10-02-2005, 08:41 PM
Co-incidence? I've never used anyone elses and just rumbled it up myself earlier.
So very sure of that.
Boofo
10-02-2005, 09:00 PM
Kerry-Anne, shouldn't this:
<if condition="$bbuserinfo[fieldx]">
actually be this?
<if condition="$post[fieldx]">
peterska2
10-02-2005, 09:07 PM
/me hits self on head
Yeah, your right.
Oh well, v1.02 coming up shortly.
Ramsesx
10-08-2005, 02:23 AM
I have a german vb setup and used this to try it but it is not working:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<if condition="$post[field5]"><img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post[field5]"><img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
</if>
</div>
<if condition="$post['field5'] & 1">
<div> Geschlecht: <img src="$stylevar[imgdir_misc]/keines.gif" />
</if>
<if condition="$post['field5'] & 2">
<div> Geschlecht: <img src="$stylevar[imgdir_misc]/maennlich.gif" />
</if>
<if condition="$post['field5'] & 3">
<div> Geschlecht: <img src="$stylevar[imgdir_misc]/weiblich.gif" />
</if>
Lea Verou
10-08-2005, 04:03 AM
Yep, I tried the same method but it didn't work either :(
Ramsesx
10-08-2005, 07:31 AM
Now it is working, I don't no why but it does :) thanks for the nice mod
peterska2
10-08-2005, 01:01 PM
Loukrhtia, I've been looking into your problem for the last couple of days and have tried a number of different ways of doing it. However, I am unable to get it to work at all. I am continuing to investigate this and as soon as I have an answer I will let you know.
Lea Verou
10-08-2005, 01:32 PM
Loukrhtia, I've been looking into your problem for the last couple of days and have tried a number of different ways of doing it. However, I am unable to get it to work at all. I am continuing to investigate this and as soon as I have an answer I will let you know.
Thanks a lot!!! :D
piXelatedEmpire
10-09-2005, 04:12 AM
Is there a way to get the gender image to appear before the username?
peterska2
10-09-2005, 09:20 PM
Yes. Use this code as the replacement instead of what is in the instructions.
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<if condition="$post[fieldx]"><img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
<if condition="$post[fieldx]"><img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if> $post[musername]
</if>
</div>
peterska2
10-12-2005, 04:43 PM
Loukrhtia, I've been looking into your problem for the last couple of days and have tried a number of different ways of doing it. However, I am unable to get it to work at all. I am continuing to investigate this and as soon as I have an answer I will let you know.
Sorted this out for you.
Use this instead of the code in the install instructions.
<if condition="$post[fieldx] == 'Greek for Male'"><img src="$stylevar[imgdir_misc]/male.gif" alt="$post[fieldx]"/></if><if condition="$post[fieldx] == 'Greek for Female'"><img src="$stylevar[imgdir_misc]/female.gif" alt="$post[fieldx]" /></if><if condition="$post[fieldx] =='Greek for undisclosed'"><img src="$stylevar[imgdir_misc]/undisclosed.gif" alt="post[fieldx]" /></if>
Place it in the postbit whereever you want it to show.
Update for everyone else, I'm still working on the bells and whistles version. As soon as it is finished I'll send out a memo letting you know.
Lea Verou
10-13-2005, 08:28 AM
Thanks a lot!!!!! :D
FROGGYJ
10-16-2005, 02:26 AM
hrm having an issue for some reason. Can someone point it out? I seem to get "Male" in there, but I want the image not the text.
Postbit
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
</if>
</div>
Postbit_Legacy
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
</if>
</div>
See attachements as well. VB 3.5 Gold.
FROGGYJ
10-16-2005, 02:37 AM
weeeee I got it....cause of my new style...had to upload the images to it's misc directory.
Mr Chad
10-16-2005, 04:03 AM
LOL, firefox? thats the only thing i hate about firefox if it cant find the image it uses its Alt.
peterska2
10-19-2005, 03:03 PM
Updated to version 1.03.
Now with non-standard languages support, memberlist images.
Snake
10-19-2005, 06:55 PM
Thanks for the update peterska.
harry1951
10-22-2005, 05:18 PM
harry *clicks install* with a big hug for Kerry-Anne :-)
Chadi
11-24-2005, 11:37 PM
Please look. It messed up my postbit_legacy and I know for sure I added them all right.
peterska2
11-24-2005, 11:43 PM
what version are you running?
You can either drop the $vbphrase from your template or move the code to before the IM icons.
Chadi
11-24-2005, 11:45 PM
I just installed it 15 minutes ago so latest version.
Please tell me where "before the IM icons"? I don't want to mess up. I'm not exactly pro on coding so I just want to make sure. Thanks
peterska2
11-25-2005, 12:01 AM
in your postbit_legacy template
FIND
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
ADD ABOVE
<if condition="$post[fieldx]"><div>$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></div></if>
Make sure you change the x's to the field number on your site.
Chadi
11-25-2005, 12:04 AM
It keeps trying to show the country flags instead of male/female image. Why is that?
Chadi
11-25-2005, 12:06 AM
This is the code portion:
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$post[field7]"><div>$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[field7].gif" alt="$post[field7]" /></div></if>
<!-- Begin IM Status Online Hack -->
peterska2
11-25-2005, 12:19 AM
make sure that field 7 is your gender profile field. if it is wanting to show the flags then it is the wrong number so go back into your profile field manager and get the correct field number.
athoob
11-30-2005, 11:49 PM
installed :) thanks
Mastar
12-10-2005, 07:58 PM
does anyone have anymore male and female gifs animated if possible?
tippen
12-10-2005, 09:00 PM
does anyone have anymore male and female gifs animated if possible?
I am looking for this two. Anything antialiased. :nervous:
peterska2
12-10-2005, 10:33 PM
I'll see what I can find for you and get back to you. it'll probably be monday though due to a busy weekend
harry1951
12-11-2005, 09:37 AM
Small problem (I think) I installed this when it just came out. After installing your christmas-style it was gone. So I try to reinstall this but I get little red X and I'm sure that the pictures are in pictures/misc. Can it be that it's expecting the pictures somewhere in the xmas folder? I installed the christmas-style as a childstyle.
peterska2
12-11-2005, 11:58 AM
Thats exactly what it is doing. If you upload the gender images to /xmas/misc as well then it will work correctly.
Kuimera
12-12-2005, 08:47 AM
Ok... I know that this is only for postbit, but is there a way to show this in the user profile too?
peterska2
12-12-2005, 08:50 AM
I'm just on my way out the door but I'll take a look when I get back. It should be straightforward enough.
Lea Verou
12-12-2005, 09:30 AM
Ok... I know that this is only for postbit, but is there a way to show this in the user profile too?
If you did it correctly it should display in the profile as well but not as an icon :)
peterska2
12-12-2005, 10:30 AM
Ok, in template MEMBERINFO
FIND
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
ADD BELOW
<div class="smallfont">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></div>
Don't forget to replace the x with the field number on your site. This shows under the usertitle as seen on the profile pages at www.peterska2.co.uk (http://www.peterska2.co.uk)
Kuimera
12-12-2005, 10:17 PM
Tks a lot peterska2!
If latter you need some graphics done or something, just ask :)
take care.
Devil Woman
01-04-2006, 03:39 AM
I am having a problem with this, all going in all showing up just in the wrong place :( its showing up right next to the username rather than below it, can anyone help
Thanks
Murty
01-06-2006, 12:12 PM
what is the:
STEP THREE
ADD PHRASE
type: global
varname: gender
Text: Gender:
bit??
i dont know what that 'add phrase' bit means??
peterska2
01-06-2006, 02:34 PM
I am having a problem with this, all going in all showing up just in the wrong place :( its showing up right next to the username rather than below it, can anyone help
Thanks
Instead of the postbit(_legacy) edit included in the zip file, do this
FIND
<div>
$vbphrase[posts]: $post[posts]
</div>
ADD BELOW
<div>
<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
</div>
Don't forget to change the x's to your profile field number
peterska2
01-06-2006, 02:35 PM
what is the:
STEP THREE
ADD PHRASE
type: global
varname: gender
Text: Gender:
bit??
i dont know what that 'add phrase' bit means??
In your ACP go to Languages & Phrases > Phrase Manager > Add New Phrase
Then complete that form with the above info.
GrabAssGirl
01-06-2006, 08:18 PM
In your ACP go to Languages & Phrases > Phrase Manager > Add New Phrase
Then complete that form with the above info.
Does this not work for 3.5.3? I followed the instructions for gender in postbit v1.03.zip and it did absolutely nothing. hmmmm Am I missing something?
peterska2
01-06-2006, 08:29 PM
Did you do it on the right style?
It should work, although I've not yet upgraded to 3.5.3 myself but nothing should have changed that would affect this.
Do you have a link to a users posts who has set their gender via the userCP?
GrabAssGirl
01-06-2006, 08:35 PM
Did you do it on the right style?
It should work, although I've not yet upgraded to 3.5.3 myself but nothing should have changed that would affect this.
Do you have a link to a users posts who has set their gender via the userCP?
I don't even have the option in my user CP area to select a gender. I have double and triple checked everything.
peterska2
01-06-2006, 08:37 PM
Did you create the user profile field?
GrabAssGirl
01-06-2006, 08:40 PM
Yes - it's field7.. I put that in all the fieldx areas as well.
peterska2
01-06-2006, 08:43 PM
strange. Did you do the postbit_legacy edits?
GrabAssGirl
01-06-2006, 08:46 PM
Yes... just checked that again. I edited postbit_legacy
GrabAssGirl
01-06-2006, 08:56 PM
Did I set it up right?
peterska2
01-06-2006, 08:56 PM
strange. Did you get my PM?
Murty
01-06-2006, 09:48 PM
I have done that, and it works, but it has 'Gender:' before the image. How can i take that away?
peterska2
01-06-2006, 09:53 PM
@ GrabAssGirl
Change 'Field Editable By User' To YES
@ Murty
Remove this code $vbphrase[gender]
Ohiosweetheart
01-12-2006, 03:33 AM
I'd love to be able to use this hack, but unfortunately the vBarcade has an edit in the postbit in the same phrase that you call to replace.
EX:
You say to find: <div id="postmenu_$post[postid]"><if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if></div>
and replace it with:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>
</if>
</div>
BUT: the vB3 arcade edits that same section and it now looks like this:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
so... what do I do?? :surprised:
peterska2
01-12-2006, 03:38 AM
Put this <if condition="$post[fieldx]">$vbphrase[gender] <img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>after<else />
$post[musername]
</if>
and that will work perfectly fine.
Ohiosweetheart
01-12-2006, 02:33 PM
Ok that worked... but now... I have the word Gender in front of the little image
what can I do?
ALSO... do I have to edit the postbit_legacy as well, or just one of them. I did the postbit template
peterska2
01-12-2006, 09:26 PM
Ok that worked... but now... I have the word Gender in front of the little image
what can I do?
ALSO... do I have to edit the postbit_legacy as well, or just one of them. I did the postbit template
You only need to edit the template for the postbit type that you use.
To remove the word Gender delete this section of code
$vbphrase[gender]
Ohiosweetheart
01-12-2006, 09:41 PM
works perfect... thank you peter!
DruidToolz
01-14-2006, 12:04 AM
Hey Peter.. Just curious, but does everyone have to have the option: Undisclosed <-- as one of the options... Cuz i would rather just use Male & Female.. Would there be any problems in the code that i would have to change to get it to work
peterska2
01-14-2006, 12:37 AM
Hey Peter.. Just curious, but does everyone have to have the option: Undisclosed <-- as one of the options... Cuz i would rather just use Male & Female.. Would there be any problems in the code that i would have to change to get it to work
Just remove the undiclosed option from the profile field and it will just work for male and female.
DruidToolz
01-14-2006, 01:09 AM
I tried it the other way.. but the images don't show up, could i have done something wrong..
Do I change this--> Set Default: Yes, but NO blank first option
MustangLisa
01-15-2006, 04:21 PM
Hmm, I did everything right (I think) and just double-checked, but am not seeing any images.
I'm on version 3.5.3.
Thanks.
peterska2
01-15-2006, 09:43 PM
If you are missing the images and you have additional styles, make sure that you have uploaded the images to the misc directory for each style installed.
o0Hubba0o
02-12-2006, 02:53 AM
Took me a minute before I said "DUH", I put Male/Female in for the profile with capitol M and F and forgot to change the images to match, but I got it lol. I don't like by the user name with my layout for the post bit so I moved it, but working great!
Smiry Kin's
02-12-2006, 11:05 AM
could some one please tell me the code to just have it where the posts etc normaly are and not next to username??
Thanks!
peterska2
02-12-2006, 10:23 PM
See this post, it explains how to do it.
https://vborg.vbsupport.ru/showpost.php?p=866062&postcount=62
catocom2
02-25-2006, 05:15 PM
I've successfully installed this on earlier vers, but I can't get the icon to
show up in postbit_legacy with 3.5.4 :ermm: .
Edit: nevermind.....I edited the wrong template.
Is OK, is Alright. :D
peterska2
04-19-2006, 10:15 PM
Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here (http://www.peterska2.co.uk/showthread.php?t=19193). Support provided in this thread will be on an as and when basis.
silkie
05-01-2006, 04:21 PM
sorry i briefly forgot support is over at peterska's site.
HabboLand
06-04-2006, 10:32 AM
Been looking for this for ages. Thank you v much
bada_bing
06-05-2006, 03:08 AM
Saved for future install
cyberbeggar
06-11-2006, 01:46 PM
Peter,
I do not understand what Step 3 means
STEP THREE
ADD PHRASE
type: global
varname: gender
Text: Gender:
See example of my gender in a post here
http://www.backpackers.info/showthread.php?p=6#post6
peterska2
06-11-2006, 01:53 PM
That's fine like that. The instructions have got a bit jumbled through updates and such, and the phrase is no longer essential for this version. The new version for 3.6 requires the phrase again.
cyberbeggar
06-11-2006, 02:06 PM
Thanks for your quick reply, I thought things had changed... cause my other gender hack looks different on my other site here (http://www.beaututes.com/site-updates/4881-new-site-changes-read.html)
Just one question though, I cannot workout why the gender image propeties (http://www.dnboard.com/styleimages/misc/Male.gif) is going to my other site dnboard.com (a site in the same database)I am very confused about that.
Thanks
peterska2
06-11-2006, 02:17 PM
The image paths could be linked to the way you have your image directories set up as it is set to find the images in your /misc folder for that style.
cyberbeggar
06-11-2006, 02:36 PM
Thanks ... still confused LOL will sort it later! I love your hacks! Thanks!
Snake
06-12-2006, 07:09 AM
Peter, why does the gender images show up underneath the usertitles? Take a look here: http://www.finalfantasyforums.net/feedback-suggestions/who-do-we-report-pm-spam-12.html
It is supposed to be showing right next to the username "Dark Cloud" but whenever I do that, it breaks a line and shows up underneath that username. Any idea?
peterska2
06-12-2006, 07:37 AM
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
Put Gender Code Here
</div>
Snake
06-12-2006, 08:34 AM
Thanks, seems to be good now but why it shows a problem with the female image only?
Here: http://www.finalfantasyforums.net/seventh-heaven-bar/hello-5.html
peterska2
06-12-2006, 11:44 AM
Can you post the exact code that you have in your postbit legacy template then I can see if I can find anything.
Snake
06-12-2006, 05:43 PM
OK sure here's my postbit_legacy template...
<tr valign="top">
<td class="alt1" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername2" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
peterska2
06-12-2006, 07:28 PM
There's no reason why it should be wrapping with your code. The only thing I can if that might be forcing the wrap is the length of usernames.
Snake
06-14-2006, 05:53 PM
You think so? So what is the solution to this fix then? I can't just leave it alone.
peterska2
06-14-2006, 07:41 PM
Have a look at my 3.6 version. It works on 3.5.4 too and puts it in a different place.
Snake
06-24-2006, 01:34 PM
Sorry for my late respond. It's because I was extremely busy with my personal life, girlfriend and all of that.
So anyway if I install your 3.6 version of this hack, it should solve my issue that I'm having?
peterska2
06-24-2006, 06:17 PM
It should do, just make sure that you uninstall this versions temaplate edit first and set up the template edit for the 3.6 version only. You don't need the profile field as you already have that.
Zelos
07-01-2006, 01:55 AM
I need a little help with this...
I installed the mod, but I'd like it to display differently.
On the left is how it currently displays. On the right is how I'd like it to display. Can you help me with this?
http://img338.imageshack.us/img338/1026/postbit1kr.png
Snake
07-01-2006, 08:55 AM
Find the phrase "$vbphrase[gender]" and remove it. Simple! ;)
Majest
04-09-2007, 06:35 AM
I have just went through the installation of this hack but it doesn't seem to show up on the posts or in the edit profile section in the user cp.
Did I do something wrong or missed something out. I was a little confused with weather to edit the postbit or the postbit_legacy so I did both.
Apart from that I did everything in the install instructions.
is there a gender mod for 3.72
dude14
09-29-2008, 03:34 AM
I am looking for this but one that is compatible with 3.7.x ? Hopefully you can provide an upgrade, thanks. :)
Medtech
12-20-2008, 11:13 PM
on 3.7.4, i edit the postbit and postbit_legacy i get a message that tells me i am missing <if>.
I have no problem inserting it, but where? here is the code i am inserting into the postbit template:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername"
href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]<if
condition="$post[field5]">$vbphrase[gender] <img
src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
<script type="text/javascript">
vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if
condition="$post[field5]">$vbphrase[gender] <img
src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
</if>
</div>
and the postbit_legacy template:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername"
href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><if
condition="$post[field5]">$vbphrase[gender] <img
src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[fieldx]" /></if>
<script type="text/javascript">
vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]<if
condition="$post[field5]">$vbphrase[gender] <img
src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
</if>
</div>
anyone wanna help me out on this?
Sworm
01-08-2009, 10:09 PM
Hi,
why this code:
<if condition="$post[field6]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field6].gif" alt="$post[field6]" /></if>
won't work on vb 3.8 on a orizontal postbit?
Thanks for any help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.