PDA

View Full Version : Image Gender In Postbit


tnguy3n
26 Mar 2004, 23:09
/*-----------------------------------------------------------------------*\
# Image Gender in postbit for vb3 gold
#
# This hack adds one's gender and it shows in postbit
/*-----------------------------------------------------------------------*\

Query to run: 1
File modification: 3
Template modication: 2
New Templates: 1
(estimate hack time: 4-5 mins)

Note: 2 gender images ain't created by me, found it at phpbb way back then.
/*-----------------------------------------------------------------------*\

To show gender in postbit, go to User CP => Edit Profile , scroll down to Gender option and select a gender or leave it blank if don't wanna show it.

Live Demo: http://all4actions.net , click on a thread to see it in action.

(adding gender in User Profile later, gotta run for class) :ermm:

lasto
26 Mar 2004, 23:39
how do i add more options to this

u have two male and female but working upon same concept i could use this for me clan site so they can choose what team they prefer to play on so i need 3 options really as we have 3 teams

ryancooper
26 Mar 2004, 23:52
can you make this a required field?

Zachery
27 Mar 2004, 01:15
wow, somthing that can be done by profile fields and template conditional

this is an insanely wonderfull hack


The No hack version of this "hack"
http://www.vbulletintemplates.com/mods/showthread.php?t=5957

tnguy3n
27 Mar 2004, 05:58
how do i add more options to this

u have two male and female but working upon same concept i could use this for me clan site so they can choose what team they prefer to play on so i need 3 options really as we have 3 teams


This just give me an idea for vb3 clan (users clans, clan leader, teams, etc). I wonder if anyone works on this project yet or I gonna start it. :rolleyes:

lasto, if you want to have 3 options rather than two, open


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and modify it to:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





If you want to use image for clan name, change postbit_genderbit template to:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------






Sorry it looks a bit messy, but that's the idea.

tnguy3n
27 Mar 2004, 06:05
can you make this a required field?

lol... i want my members to choose whether to show their gender or not, but I'll get back to you when i got it tested. (so tired now :tired: )

Zachery
27 Mar 2004, 10:02
Like i said, and showed at vBulletinTemplates. this can be done over and over again for any appication via template conditionals and a user profile filed.

Gio Takahashi
27 Mar 2004, 10:53
This hack can be easily done by using the "Custom profile manager".

Really, a waste of effort and unncessary edit.

:rolleyes:

Floris
27 Mar 2004, 11:19
This hack can be easily done by using the "Custom profile manager".

Really, a waste of effort and unncessary edit.

:rolleyes:
At least users have the choice to do a source code modification or a template tweak. I prefer the template one since it doesn't hack in on upgrades :)

gmarik
27 Mar 2004, 12:16
Woman are always less than men active over the www...

Zachery
27 Mar 2004, 14:07
Woman are always less than men active over the www...
O.o who is that aimed at... Neither Me or Floris are female...

Boofo
27 Mar 2004, 14:12
He totally lost me on that one, too. :ermm:

Aleksey
28 Mar 2004, 18:50
This hack doesn't work for me, when I edit my profile I choose male as gender and then I go to EDIT PROFILE and it just shows ------ not male.

tnguy3n
28 Mar 2004, 21:13
in edit profile, it's set back to ----- ; however, in postbit, it shows either male or female as you selected.

L-Mane
06 Apr 2004, 17:48
in edit profile, it's set back to ----- ; however, in postbit, it shows either male or female as you selected.
I did the hack and it doesn't show anything in the threads. The profile part works but nothing else.

FleaBag
07 Apr 2004, 19:15
Installed this, thank you. Can you explain how I get the gender in the profile? Cheers.

P.V.C.
08 May 2004, 00:43
I can't save?!

choose "female" => save => "-----"


why? :)



cheers
andi

Mistah Roth
20 Jun 2004, 16:00
You need to make it so they can or HAVE to chose their gender at registration, and maybe make it viewable in the profile as well.

Erwin
20 Jun 2004, 22:54
People, you can use custom profile fields for this - no need to hack - that way you can easily display gender in postbit, and make it cimpulsory on registration.

Zachery
20 Jun 2004, 22:57
People, you can use custom profile fields for this - no need to hack - that way you can easily display gender in postbit, and make it cimpulsory on registration.
Rele4ased this on vBT :D

pagekeeper
01 Feb 2005, 00:48
You need to make it so they can or HAVE to chose their gender at registration, and maybe make it viewable in the profile as well.

how would you do that ? i already have a male / female field and now i have two of the same?

gembels
01 Feb 2005, 17:23
Erwin : how about displaying on postbit without hack ? thanks for advance

Thug
23 Feb 2005, 13:13
when i edit profile and click the gender i want and save changes it resets to no gender chose
anyone no whats wrong?

pagekeeper
23 Feb 2005, 18:31
Erwin : how about displaying on postbit without hack ? thanks for advance - good idea lol

and thug, i get that too, not really much i can do about it, does anyone know how to fix that or do what i or erwin said ?

so is there going to be a response to this ?

Oblivion Knight
23 Feb 2005, 18:37
http://www.vbulletintemplates.com/mods/showthread.php?t=5957

Thug
24 Feb 2005, 22:38
well i have gender hack erm some users you can see there gender images in postbit others wont work
see this thread you will notice me MC G iselected male but didnt appear and the user
XxXN4DHOXxX selcted female and it work
http://www.oh-twadi.com/forum/showt...ted=1#post25693
is anyone willing to check the codes for me

007
08 Apr 2005, 10:06
Hey how would I go about adding this to register.php? I know the template stuff, but am not positive what to do in register? I want to make it a field people see when signing up..

Any help would be appreciated! Thanks!

:)

tnguy3n
28 Apr 2005, 19:36
lol... it's a very old hack and I haven't checked this thread for so long. sorry guys, I'll update it for vb 3.0.7 if ppl still use it over the template mod one. :D

animehawk
09 May 2005, 20:51
Does anyone know where this http://www.vbulletintemplates.com/m...read.php?t=5957 went? the site no longer exists. I am looking for something just like this I think

Marco van Herwaarden
09 May 2005, 22:24
There some problems with the vbulletintemplates.com domain.

We are trying to solve them as fast as we can.

COBRAws
28 May 2005, 23:22
yep, when u go back and edit something at the page where u select the gender, it goes back to blank (or ------), any way to save it? Maybe implementing this as a hack, not a template edit. It would be handy. Thanks

axi
15 Jun 2005, 17:40
yep, when u go back and edit something at the page where u select the gender, it goes back to blank (or ------), any way to save it? Maybe implementing this as a hack, not a template edit. It would be handy. Thanks


In Template modifyprofile find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Omega Prime
27 Sep 2005, 16:24
Is there a chance of this getting ported to 3.5? :)

ZeryabPhone
24 Nov 2005, 08:24
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



i cant find this line in vb 3.0.9
is there anyway to update this hack to vb 3.0.9 ?