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)

clearchannel 06-11-2005 08:39 PM

That worked very nice.

Thank you, this is a much needed addition.

Nukey 06-12-2005 02:33 PM

Hmm. I installed this hack as a plugin, and I dont get the screen looking as you do. It appears out of format on a while screen with black text and a forum jump menu. It also does not allow you to log out until you edit your profile, which you should be able to do.

calorie 06-12-2005 02:55 PM

@Nukey: Make sure you have a fresh download. It should look like this except with the message in the screenshot. If you want to allow logout use:
Code:

$zzz_regex = "(profile|usercp|login)\.php";

Nukey 06-12-2005 02:59 PM

calorie, I just downloaded it a few minutes ago. Im not sure why it looks like it does in the screenshot. Any other ideas? I have the phrase as a "Front End Error Message"

Nukey 06-12-2005 03:00 PM

When I go to the Plugin section and choose edit plugin, this is what I see:

Code:

// #### Force Current Members To Fill Out Required Profile Field ####
if ($vbulletin->userinfo['userid'] > 1)
{
    $zzz_regex = "(profile|usercp).php";
    if (isset($_SERVER['REQUEST_URI']) && !eregi($zzz_regex,$_SERVER['REQUEST_URI']))
    {
        $zzz_reqfields = $db->query_read("SELECT profilefieldid ".
                "FROM ".TABLE_PREFIX."profilefield ".
                "WHERE required = 1");
        if ($db->num_rows($zzz_reqfields))
        {
            while ($zzz_reqfield = $db->fetch_array($zzz_reqfields))
            {
                $zzz_fieldname = "field".$zzz_reqfield['profilefieldid'];
                $zzz_userfield = $vbulletin->userinfo["$zzz_fieldname"];
                if (empty($zzz_userfield) && $zzz_userfield != "0")
                {
                    eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'])));
                }
            }
        }
    }
}
// #### Force Current Members To Fill Out Required Profile Field ####


calorie 06-12-2005 03:17 PM

The plugin you are using looks good, except if you want to add login to the $zzz_regex variable. Try using "Error Messages" not "Front End Error Messages" as the Phrase Type.

Nukey 06-12-2005 03:34 PM

I don't have Error Messages in my list? This is baffling. I want to be able to use the plugin but for some reason its just giving me the white screen instead of the error box.

calorie 06-12-2005 03:54 PM

What does the HTML look like (just around the message)?

Nukey 06-12-2005 03:56 PM

After looking at the HTML of the page that loads, it appears that everything above the three <br /> does not appear. Ie. none of these sections of code that are in the showthread error message are in this plugin's error message.
Code:

<!-- CSS Stylesheet -->
<!-- logo -->
<!-- content table -->
<!-- open content container -->

Is there something I can include to get everything to appear correctly?
Or maybe I missed something...I downloaded the file and uploaded it through the "import plugin" part of the admin cp, and I made the phrase in the phrase manager "Front End Error Messages". There is no "Error Messages". Did I miss something?
Thanks Again!

calorie 06-12-2005 04:24 PM

Try moving the plugin from global_start to global_complete.


All times are GMT. The time now is 03:40 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.01137 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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