View Full Version : Default style depending if user is male or female?
sdsvtdriver
04-29-2005, 12:34 AM
Hello all,
Is there a way to set a default style upon registration depending if the user is male or female?
For instance, if a new guy signs up, he defaults to a blue style and if a new girl signs up, they default to a pink style.
why-not
04-29-2005, 05:28 PM
This can be done with just a simple if() block, but where to put it depends on how and where you have the gender selection for your forum registration.
Tell me how you have that configured for forum registration (ia a profile field, hard coded, what?). After you tell me that I will show you where to put the if() and what it should contain so the style id can be inserted into the database with the rest of the new user info!
Sonia
sdsvtdriver
05-11-2005, 09:44 PM
This can be done with just a simple if() block, but where to put it depends on how and where you have the gender selection for your forum registration.
Tell me how you have that configured for forum registration (ia a profile field, hard coded, what?). After you tell me that I will show you where to put the if() and what it should contain so the style id can be inserted into the database with the rest of the new user info!
Sonia
I never thought about it, but vb doesn't ask this at registration. I guess it can be a profile field added.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.