vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I disable changing of birthday? (https://vborg.vbsupport.ru/showthread.php?t=92586)

kvnband 07-21-2005 02:00 AM

How do I disable changing of birthday?
 
I would like to let the user either:

A: Set their birthday once, and then never be able to change it again (unless they contact me) or
B: Have admin functionality to enable and disable changing of birthdays.

My idea is to tell users that something special will happen if they set their birthdays (I'm trying to get as much user info as possible while at same time making the site better). Users will have maybe 2 weeks to set bday in profile. After that time, I disable the changing of birthdays. I then announce that on a user's birthday, they can make one request for something to be done for the site. If it is reasonable and will help the site, the request will be granted (our site is a very close knit group of individuals all striving to make the site better). If I don't disable the changing of birthdays, then users can change their birthday to tomorrow so that they can get their one request. I don't want this to happen.

Any ideas? I guess I could just remove the birthday field from the edit profile page. That would definitely do it. Would that be the best way?
Thanks,
Kevin

Christine 07-21-2005 02:06 AM

I have a user who changes his birthday daily so that he shows up on the birthdays list. :tired:

Nothing to add, just noting that I would be interested as well for anyone who has the time/energy for it.

:)

kvnband 07-21-2005 02:18 AM

Quote:

Originally Posted by Christine
I have a user who changes his birthday daily so that he shows up on the birthdays list. :tired:

Nothing to add, just noting that I would be interested as well for anyone who has the time/energy for it.

:)

What I was thinking of doing would just be one template edit and then setting in admincp that user MUST set birthday upon registration. That way they always (well, most of the time) will set their correct birthday. Maybe giving a 2 week notice that you will be disabling the changing of birthdays soon, and if they want their birthday in the DB, they must do it now or never.

OK, I figured it out. If you go to edit templates, then to Modify User Option Templates>>modifyprofile_birthday and delete all text in that template, the birthday option completely disappears from the user's viewpoint, but you can still change the birthdays via the admincp. I think that's how I'm gonna do it.
Kevin

Dream 07-21-2005 03:53 AM

Quote:

Originally Posted by Christine
I have a user who changes his birthday daily so that he shows up on the birthdays list. :tired:

Nothing to add, just noting that I would be interested as well for anyone who has the time/energy for it.

:)

can't you lock his profile?

Christine 07-22-2005 08:57 PM

Dream,

I would, but I don't want to lock him out of everything -- just the annoying obsession he has with the birthday list. *sigh*

kvnband 07-22-2005 09:51 PM

Just a thought for you....You could use the vbulletin template 'if' tags and edit the birthday template to say 'if userid == his user id, and then end the if' and then 'else, display birthday field'. That would be the way to remove it for just him.
Kevin


All times are GMT. The time now is 11:17 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.00942 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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