vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Force Current Members To Fill Out Required Profile Field (https://vborg.vbsupport.ru/showthread.php?t=69270)

Revan 03-16-2005 05:51 AM

To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.

T3MEDIA 03-17-2005 03:46 AM

Quote:

Originally Posted by Revan
To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.

HEY! wow thanks! It didnt work though. See I dont have age in my Profile manager since its part of vb internally.

I dont even know where to look for the name of the birthday location.
Just so you know I am talking about the birthday users have to answer when they register.

Revan 03-17-2005 07:17 AM

It seems like the Birthday is not listed in the profilefield table, at which point what you are asking is impossible without adding further queries.
Not to mention me having no idea how it would be done.

And I also have to wonder, why would you want to exclude birthdays?
If you have it mandatory on register, then it will already be filled out, and wont trigger this mod.

T3MEDIA 03-17-2005 04:43 PM

Quote:

Originally Posted by Revan
It seems like the Birthday is not listed in the profilefield table, at which point what you are asking is impossible without adding further queries.
Not to mention me having no idea how it would be done.

And I also have to wonder, why would you want to exclude birthdays?
If you have it mandatory on register, then it will already be filled out, and wont trigger this mod.

Exactly. Previous users do not have it filled.
(I dont know why people on vb always doubt a question... but ok) so your looking at around 5000 users with this field blank. and around 7000 or so that do have it. But the profile page does not have it available. (next hack installed) But hey this hack is doing what it says.... awsome. so you have to do a db query to STOP the year result in this hack? maybe we are not hitting each other.

Jan 3rd 1980 <--- The year on the site I wanted to use your awsome hack with has the year un editable. so the field is there.

T3MEDIA 03-26-2005 10:38 AM

Quote:

Originally Posted by Revan
To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.

Revan do to some asking around I found out The user's birthday is stored in the user.birthday field. How would I do this (ignore this area) with your hack?

Thanks bro.

Revan 03-28-2005 05:31 PM

Well the thing is, if the Birthday is not listed as a Required profilefield in that table, it will be ignored automatically :)

T3MEDIA 03-28-2005 11:52 PM

Its not that is why I responded as I did remember?

how could I make your code work with the position of the field in the database?

Thanks in advance.

rjordan 05-05-2005 02:16 PM

Finally found this thing... I knew I saw it somewhere! Now I suppose I should install per the "cleaned up" code, huh...

TwinsForMe 05-12-2005 01:48 PM

/me clicks install with Revan's revised code.

mamboking 05-17-2005 01:01 PM

excellent hack!!!! exactly what i have been looking for since i changed to vb.

this should be standard..............


All times are GMT. The time now is 12:49 PM.

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.01817 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete