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)

T3MEDIA 12-18-2004 02:05 AM

:::bump:::

T3MEDIA 01-06-2005 03:41 AM

uninstall to the extream

mkdevo 02-28-2005 11:46 AM

does this work in 3.07?

i tried installing, wanting to make 'birthday' a required field.. but when i go to the user profile field manager, there's nothing there..

??

T3MEDIA 03-13-2005 11:06 PM

wow see this is how you know this site isnt moderated properly. hacks listed with no support, coder disapears.... and its here like the sunshine for a next poor sap to use.

that was my negitive post.
now my question...

anyone bothered with this? Would love to hear how people got this baby to work.

Marco van Herwaarden 03-14-2005 03:38 AM

Quote:

Originally Posted by T3MEDIA
wow see this is how you know this site isnt moderated properly. hacks listed with no support, coder disapears.... and its here like the sunshine for a next poor sap to use.

that was my negitive post.
now my question...

anyone bothered with this? Would love to hear how people got this baby to work.

Well the coder indicated that no support will be given, so i don't see your problem.

Revan 03-15-2005 06:26 AM

Ok, if no support is given, I will post my clean, optimised code when I get home.
The main issue that made my stomach turn about this hack is that it is loop querying the profilefield table to check if it is set, when everybody knows that all this info is contained in the $bbuserinfo variable :p
I got it down to adding 1 query (the one to check whether or not a field is required, if Im not too much mistaken) :)

Revan 03-15-2005 06:35 PM

This is my revised code, and it seems to work OK. It goes in place of the original global.php edit:
PHP Code:

if ($bbuserinfo['userid'] AND $bbuserinfo['userid'] > 1
{
    
$regex "(profile\.php|usercp\.php)";
    if (!
eregi($regex$_SERVER['REQUEST_URI'])) 
    {
        
$reqfields $DB_site->query("SELECT * FROM " TABLE_PREFIX "profilefield WHERE required = 1");
        if (
$DB_site->num_rows($reqfields))
        {
            while (
$reqfield $DB_site->fetch_array($reqfields)) 
            {
                
$fieldname "field$reqfield[profilefieldid]";
                
$field $bbuserinfo["$fieldname"];
                if (empty(
$field))
                {
                    eval(
'print_output("' fetch_template('STANDARD_ERROR_PROFILEFIELD') . '");');
                    die;
                }
            }
        }
    }


STANDARD_ERROR_PROFILEFIELD is in place of "zzzz_emptyreqfields", I just thought that was a stupid name so I made something more vBish.

T3MEDIA 03-15-2005 09:52 PM

Quote:

Originally Posted by MarcoH64
Well the coder indicated that no support will be given, so i don't see your problem.

Thats good! I am glad you dont see any problems I have enough as it is.

T3MEDIA 03-15-2005 09:54 PM

Quote:

Originally Posted by Revan
This is my revised code, and it seems to work OK. It goes in place of the original global.php edit:

Finally a man to step up to the plate. I will test it first and let you know.
if you can do magic with zero tols mass PM that would be a god send as well.
dam thing just stopped working.
Yeah I know its not in this thread but who IS in this thread?

checkin your stuff now bro.

T3MEDIA 03-15-2005 10:14 PM

works. may sound crazy but how can you have this exclude the year of birth or birday entirely? thanks. but it works I personallly just need a slight mod


All times are GMT. The time now is 01:12 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.01093 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (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