vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Force Current Members To Fill Out Required Profile Field (https://vborg.vbsupport.ru/showthread.php?t=82756)

Andreas 09-03-2005 06:48 PM

No.
What is the Condition for?
It should not show the Error if the Script is profile.php or usercp.php (obviously, otherwise Users would not even have the chance to edit the Fields ;))

So the Condition is
PHP Code:

if (!(THIS_SCRIPT == 'usercp' OR THIS_SCRIPT == 'profile')) 

Now keeping DeMorgan #1 in mind: NOT (smth OR smth) => NOT (smth) AND NOT(smth)
PHP Code:

if (!(THIS_SCRIPT == 'usercp') AND !(THIS_SCRIPT == 'profile')) 

Getting rid of the inner brackets
PHP Code:

if (THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'profile'

Nothing magic, just boolean logic :)

Boofo 09-03-2005 06:52 PM

Quote:

Originally Posted by KirbyDE
No.
What is the Condition for?
It should not show the Error if the Script is profile.php or usercp.php (obviously, otherwise Users would not even have the chance to edit the Fields ;))

So the Condition is
PHP Code:

if (!(THIS_SCRIPT == 'usercp' OR THIS_SCRIPT == 'profile')) 

Now keeping DeMorgan #1 in mind: NOT (smth OR smth) => NOT (smth) AND NOT(smth)
PHP Code:

if (!(THIS_SCRIPT == 'usercp') AND !(THIS_SCRIPT == 'profile')) 

Getting rid of the inner brackets
PHP Code:

if (THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'profile'

Nothing magic, just boolean logic :)

You see? Once you explain it like that, now it makes sense the way it is. ;)

calorie 09-03-2005 06:54 PM

Quote:

Originally Posted by Boofo
You might want to throw some instructions on setting up the profile field in a text file and ZIP it up for those that might have to re-install vb sometime. ;)

http://www.vbulletin.com/docs/html/profile :confused:

Boofo 09-03-2005 06:56 PM

Quote:

Originally Posted by calorie

I know how to do it, sir, but there are those that don't. It'll save you a lot of grief later on. ;)

calorie 09-03-2005 07:04 PM

@Kirby: LOL, DeMorgan's, good explanation.
@Boofo: Okay, thanks, added a how-to link.

Boofo 09-03-2005 07:16 PM

The reason I recommended a txt file was so user's wouldn't have to come back to the thread here to re-install this if they ever needed it. ;)

mcyates 09-18-2005 01:54 PM

I have uninstalled this but i still get the warning about there being new profile fields and i can't access the site.

calorie 09-19-2005 12:06 PM

@mcyates: Are you having an issue like in this thread or being affected by this bug?

Aeolian_X 09-30-2005 12:02 PM

What a great hack. Gonna try to install it with 3.5.0 Gold tonight. Has anyone else tried it?

OmaniMan 10-01-2005 08:51 AM

Great >>> :)


All times are GMT. The time now is 06:48 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.02177 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
  • (6)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)pagenav_pagelinkrel
  • (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