Results 1 to 5 of 5

Thread: CMPS constantly forcing to Facebook registration page

  1. #1
    Join Date
    Nov 2006
    Posts
    140

    Default CMPS constantly forcing to Facebook registration page

    Brian!!! Help!!!

    I hate to whine and be a bother, but its been over 4 months and no response to this issue yet.

    I noted this in a ticket back (9504) on the 4.0.1 release day, 6/29. I even closed the old ticket (since it referenced a previous issue) and opened a new one (9677) at the end of Sept and I still haven't seen anyone respond to it nor has anyone logged into my site using the vbadvanced login to look at the issue.

    I really really really would like to get Facebook working for my site, but this is completely preventing me from doing so.

    Could someone please look at my ticket??
    ID 9677
    Last edited by TeknoSounds; 10-29-2010 at 12:52 AM.

  2. #2
    Join Date
    Nov 2006
    Posts
    140

    Default

    Fully resolved!

    Thank you so much Brian!

  3. #3
    Join Date
    Jan 2005
    Posts
    11

    Default

    What was the solution?

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    For anyone that's having an issue with this, it can be resolved by going to your Plugin Manager link in the Admin CP. Find the plugin named 'Query Page Data' listed under the vBadvanced CMPS product and click the 'Edit' link. Replace the 'Plugin PHP Code' with the code below and that should take care of the issue.
    PHP Code:
    if (defined('VBA_PORTAL'))
    {
        
    // ##### Facebook Redirect
        
    if (THIS_SCRIPT == 'adv_index' AND function_exists('is_facebookenabled') AND is_facebookenabled() AND $show['facebookuser'] = vB_Facebook::instance()->userIsLoggedIn())
        {
            if ((
    do_facebook_redirect() AND 
                (
    $vbulletin->userinfo['userid'] AND $vbulletin->userinfo['fbuserid'] != vB_Facebook::instance()->getLoggedInFbUserId())
                OR (!
    $vbulletin->userinfo['userid'] AND !vB_Facebook::instance()->getVbUseridFromFbUserid()))
            )
            {
                
    exec_header_redirect($vbulletin->options['bburl'] . '/register.php' $vbulletin->session->vars['sessionurl_q']);
            }
        }

        global 
    $phrasegroups;

        
    // Figure out which page to grab
        
    $pagevar false;
        if (
    THIS_SCRIPT == 'adv_index')
        {
            
    $pagevar $vbulletin->adv_portal_opts['adv_portal_main']['portal_pagevar'];
        }

        if (
    defined('VBA_PAGE'))
        {
            
    $getpage VBA_PAGE;
        }
        else if(
    $pagevar AND isset($_REQUEST[$pagevar]))
        {
            
    $getpage $_REQUEST[$pagevar];
        }
        else
        {
            
    $getpage 'home';
        }

        
    $initialize_dynamics false;

        (
    $hook vBulletinHook::fetch_hook('vba_cmps_include_getpage')) ? eval($hook) : false;

        
    // ##### Now grab the page
        
    if ($getpage == 'home')
        {
            
    $pages =& $vbulletin->adv_portal_home;
        }
        else
        {
            
    $pages $db->query_first("
                SELECT *
                FROM " 
    TABLE_PREFIX "adv_pages
                WHERE name = '" 
    $db->escape_string($getpage) . "'
                    " 
    iif(!($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']), 'AND active = 1')
            );

            
    $pages['modules'] = unserialize($pages['modules']);
            
    $pages['userperms'] = explode(','$pages['userperms']);
            
    $pages['advanced'] = unserialize($pages['advanced']);
            
    $pages['meta'] = unserialize($pages['meta']);
        }

        
    $vbulletin->adv_pages =& $pages;

        if (!empty(
    $pages['modules']))
        {
            foreach (
    $pages['modules'] AS $pagecol => $pagemodules)
            {
                if (!empty(
    $pagemodules))
                {
                    foreach (
    $pagemodules AS $advmodid => $advmodorder)
                    {
                        if (
    $vbulletin->adv_modules[$advmodid]['dyna_prefix'])
                        {
                            
    $initialize_dynamics true;
                            
    $phrasegroups[] = $vbulletin->adv_modules[$advmodid]['dyna_prefix'];
                        }
                    }
                }
            }
        }
    }
    else if (
    defined('VBA_CMPS_ADMIN_FILE') AND in_array($_REQUEST['do'], array('addmodule''editmodule''copymodule''addpage''editpage''copypage''modifysettings')))
    {
        global 
    $phrasegroups;
        
    $getdyna false;
        if (!empty(
    $vbulletin->adv_modules))
        {
            foreach (
    $vbulletin->adv_modules AS $modid => $mod)
            {
                if (
    $mod['dyna_prefix'])
                {
                    
    $getdyna true;
                }
            }

            if (
    $getdyna)
            {
                
    $phrasegroups[] = 'adv_dyna';
                
    $phrasegroups[] = 'adv_dyna_cp';
            }
        }
    }
    else if (
    $vbulletin->options['vba_portal_navtabs'])
    {
        
    $datastore_fetch[] = "'adv_portal_page'";

    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  5. #5
    Join Date
    Aug 2004
    Posts
    14

    Default

    Having this issue, replacing the code as suggested above has NOT fixed the problem.

    This code fixes the issue, but likely breaks something else:

    Code:
    if (defined('VBA_PORTAL')) 
    { 
        
    
        global $phrasegroups; 
    
        // Figure out which page to grab 
        $pagevar = false; 
        if (THIS_SCRIPT == 'adv_index') 
        { 
            $pagevar = $vbulletin->adv_portal_opts['adv_portal_main']['portal_pagevar']; 
        } 
    
        if (defined('VBA_PAGE')) 
        { 
            $getpage = VBA_PAGE; 
        } 
        else if($pagevar AND isset($_REQUEST[$pagevar])) 
        { 
            $getpage = $_REQUEST[$pagevar]; 
        } 
        else 
        { 
            $getpage = 'home'; 
        } 
    
        $initialize_dynamics = false; 
    
        ($hook = vBulletinHook::fetch_hook('vba_cmps_include_getpage')) ? eval($hook) : false; 
    
        // ##### Now grab the page 
        if ($getpage == 'home') 
        { 
            $pages =& $vbulletin->adv_portal_home; 
        } 
        else 
        { 
            $pages = $db->query_first(" 
                SELECT * 
                FROM " . TABLE_PREFIX . "adv_pages 
                WHERE name = '" . $db->escape_string($getpage) . "' 
                    " . iif(!($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']), 'AND active = 1') 
            ); 
    
            $pages['modules'] = unserialize($pages['modules']); 
            $pages['userperms'] = explode(',', $pages['userperms']); 
            $pages['advanced'] = unserialize($pages['advanced']); 
            $pages['meta'] = unserialize($pages['meta']); 
        } 
    
        $vbulletin->adv_pages =& $pages; 
    
        if (!empty($pages['modules'])) 
        { 
            foreach ($pages['modules'] AS $pagecol => $pagemodules) 
            { 
                if (!empty($pagemodules)) 
                { 
                    foreach ($pagemodules AS $advmodid => $advmodorder) 
                    { 
                        if ($vbulletin->adv_modules[$advmodid]['dyna_prefix']) 
                        { 
                            $initialize_dynamics = true; 
                            $phrasegroups[] = $vbulletin->adv_modules[$advmodid]['dyna_prefix']; 
                        } 
                    } 
                } 
            } 
        } 
    } 
    else if (defined('VBA_CMPS_ADMIN_FILE') AND in_array($_REQUEST['do'], array('addmodule', 'editmodule', 'copymodule', 'addpage', 'editpage', 'copypage', 'modifysettings'))) 
    { 
        global $phrasegroups; 
        $getdyna = false; 
        if (!empty($vbulletin->adv_modules)) 
        { 
            foreach ($vbulletin->adv_modules AS $modid => $mod) 
            { 
                if ($mod['dyna_prefix']) 
                { 
                    $getdyna = true; 
                } 
            } 
    
            if ($getdyna) 
            { 
                $phrasegroups[] = 'adv_dyna'; 
                $phrasegroups[] = 'adv_dyna_cp'; 
            } 
        } 
    } 
    else if ($vbulletin->options['vba_portal_navtabs']) 
    { 
        $datastore_fetch[] = "'adv_portal_page'"; 
    }
    Last edited by ekool; 01-03-2011 at 04:42 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 4.0.1 vba index page leads to facebook connect
    By bouncer222 in forum Troubleshooting & Problems
    Replies: 9
    Last Post: 01-12-2011, 06:25 PM
  2. Login / Registration page
    By Footman in forum "How Do I..." Questions
    Replies: 3
    Last Post: 05-22-2010, 06:48 PM
  3. vbulletin 4.0.3 facebook connect / vba cmps question
    By PixelFX in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 04-23-2010, 02:27 PM
  4. REQ: Event/LAN registration page
    By Tobad in forum Module & Modification Discussion & Requests
    Replies: 3
    Last Post: 08-15-2007, 05:54 AM
  5. Site Constantly Timing Out
    By ninjashadow80 in forum "How Do I..." Questions
    Replies: 1
    Last Post: 07-30-2006, 10:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •