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)

Darth Gill 08-03-2005 08:04 PM

I personally think this is one of the neatest hacks around! Thanks calorie.

ajpritch 08-31-2005 08:19 AM

When I try and do step two and add the phrase the Error message is not an option.

Boofo 08-31-2005 09:36 AM

When this goes product, I will definately be installing it. )

nexialys 09-02-2005 09:50 PM

PHP Code:

if (isset($_SERVER['REQUEST_URI']) && !eregi($zzz_regex,$_SERVER['REQUEST_URI'])) 

can be simply changed to :
PHP Code:

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

and you can then forget about all the $_SERVER['REQUEST_URI'] trash...

calorie 09-03-2005 06:22 PM

@KirbyDE: Thanks, edited and producted.
@Darth Gill: Thanks, glad you like the mod.
@ajpritch: Try the latest XML attachment.
@Boofo: Producted, wink, time to install.
@nexialys: Thanks, but use AND not OR.

Boofo 09-03-2005 06:31 PM

Quote:

Originally Posted by calorie
@KirbyDE: Thanks, edited and producted.
@Darth Gill: Thanks, glad you like the mod.
@ajpritch: Try the latest XML attachment.
@Boofo: Producted, wink, time to install.
@nexialys: Thanks, but use AND not OR.

Ahh, but if you use AND and it is one of those, what will happen? OR is correct. ;)

Andreas 09-03-2005 06:35 PM

Quote:

Originally Posted by nexialys
can be simply changed to :
PHP Code:

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


This can simply be changed to
PHP Code:

if (true

:D

AND is correct.

Boofo 09-03-2005 06:36 PM

Quote:

Originally Posted by KirbyDE
This can simply be changed to
PHP Code:

if (true

:D

AND is correct.

But if it was an both conditions would have to be true, right? With OR, either condition.

calorie 09-03-2005 06:37 PM

Code:

A AND B = result  A OR B = result
----------------  ---------------
F    F    F      F    F    F
F    T    F      F    T    T
T    F    F      T    F    T
T    T    T      T    T    T

You only want to do the IF when you are not on profile and not on usercp, so AND is what you want.

Edit: PS: Note that you cannot be F F F so if you use OR you are trapped. ;)

Boofo 09-03-2005 06:46 PM

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. ;)


All times are GMT. The time now is 06:47 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.01329 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (5)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