Support » Plugins » [Plugin: Tabbed Widgets] Problem with WP-United

  • frytekniema

    (@frytekniema)


    I have problem with Tabbed-Widgets and WP-United.
    WP-United must have own index.php which look like that:

    <?php
    /**
    *
    * WP-United Main Entry Page
    *
    * @package WP-United
    * @version $Id: v0.8.3RC2 2010/01/25 John Wells (Jhong) Exp $
    * @copyright (c) 2006-2010 wp-united.com
    * @license http://opensource.org/licenses/gpl-license.php GNU Public License
    * @author John Wells
    *
    */
    
    /*******************************************************************************
    	W  P  --   U N I T E D
    	ENTRY POINT TO YOUR INTEGRATED WORDPRESS INSTALL
    	-------------------------------------------------------------------------------------
    
    	**********************************
    	******* R  E  A  D      M  E  **********
    	**********************************
    	Simply move / rename this file wherever you want. For example, you might want to rename it to index.php, and put it in your site root.
    
    	If you want to put this in your WordPress folder, you will have to rename your existing index.php to index-old.php. This is OK, it won't affect normal operation.
    
    	Once moved, you MUST set the path to your phpBB root folder where indicated just below.
    
    	Then run the WP-United Setup Wizard
    
    ********************************************************************************/
    
    //the path can be absolute or relative... i.e. '/home/www/phpBB2'   './phpBB2'   or  'phpBB2'   could all be correct.
    //Set the path to phpBB  below, between the quotes:
    
    $PATH_TO_PHPBB_INSTALL = './forum'	// <--- set the path to your phpBB root here,  between the quotes				
    
    //If you change this, you MUST run the Setup Wizard again!
    
    //STOP EDITING NOW -
    ;
    
    //Do not edit any of the lines below:
    // standard hack prevent
    define('IN_PHPBB', true);
    if (strlen($PATH_TO_PHPBB_INSTALL)) {
    	$PATH_TO_PHPBB_INSTALL = ($PATH_TO_PHPBB_INSTALL[strlen($PATH_TO_PHPBB_INSTALL)-1] == "/" ) ? $PATH_TO_PHPBB_INSTALL : $PATH_TO_PHPBB_INSTALL . "/";
    	@chdir ($PATH_TO_PHPBB_INSTALL);
    }
    
    $phpbb_root_path = './'; 
    
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    define('WPU_BLOG_PAGE', 1);
    if (file_exists($phpbb_root_path . 'common.' . $phpEx)) {
    
    	include($phpbb_root_path . 'common.' . $phpEx);
    
    	$user->session_begin();
    	$auth->acl($user->data);
    
    	if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_')) {
    		// board is disabled.
    		$user->add_lang('common');
    		define('WPU_BOARD_DISABLED', (!empty($config['board_disable_msg'])) ? '<strong>' . $user->lang['BOARD_DISABLED'] . '</strong><br /><br />' . $config['board_disable_msg'] : $user->lang['BOARD_DISABLE']);
    	} else {
    		require_once($phpbb_root_path . 'wp-united/phpbb.'.$phpEx);
    		$user->setup('mods/wp-united');
    	}
    
    	if(!defined('WPU_HOOK_ACTIVE')) {
    		$cache->purge();
    		trigger_error($user->lang['wpu_hook_error'], E_USER_ERROR);
    	}
    
    	include ($phpbb_root_path . 'wp-united/integrator.php');
    } else {
    	//When this warning appears, we cannot find phpBB - hence we do not use the template engine or $lang array. 'Cos we can't, alright?
    	echo "<html><head>
    		<style type=\"text/css\">BODY {background-color: #cccccc; text-align: center; margin: 150px; font-weight: bold; color: navy; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; border: 1px solid #000000;}
    		</style></head><body>
    		<p style=\"color: #ffffff; font-size: 22px; background-color: navy; padding: 5px; margin: 0px;\">Error!</p>
    		<p style=\"background-color: #ffffff; margin: 0px; padding: 20px;\">The path is incorrect.
    		If you have moved blog.php from its standard location, you need to open it and provide the path back to phpBB where indicated. Please do this now and then run the WP-United Setup Wizard again.</p>
    		</body></html>";
    }
    
    ?>

    So my question is how to start working with Tabbed-Widgets with WP-U? On orginal index.php everything is ok, but on index.php from WP-U there is a blank page.

    http://wordpress.org/extend/plugins/tabbed-widgets/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Tabbed Widgets] Problem with WP-United’ is closed to new replies.