vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Default style depending if user is male or female? (https://vborg.vbsupport.ru/showthread.php?t=80728)

sdsvtdriver 04-29-2005 12:34 AM

Default style depending if user is male or female?
 
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

Quote:

Originally Posted by why-not
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.


All times are GMT. The time now is 02:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01057 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete