WordPress.org

Plugin Directory

Changeset 1001629


Ignore:
Timestamp:
10/04/14 08:09:01 (3 years ago)
Author:
Danielx64
Message:

Updated for wordpress 4.0
Fix up cross posting bug
Fixed issue with heading to setting pages
Version 1.7.0

Location:
phpbb-to-wp-connector
Files:
78 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • phpbb-to-wp-connector/trunk/functions/wp-crosspost.php

    r918322 r1001629  
    2828        global $wp_phpbb_bridge_config, $phpbb_root_path, $phpEx; 
    2929        global $auth, $config, $db, $template, $user, $cache, $wpdb; 
    30         require( dirname( __FILE__ ) . '/includes/wp_phpbb_bridge.php' ); 
     30        require( dirname( __FILE__ ) . '/wp_phpbb_bridge.php' ); 
    3131    } 
    3232 
  • phpbb-to-wp-connector/trunk/phpbb-load.php

    r923504 r1001629  
    22/**  
    33* @package phpBB to WP connector 
    4 * @version $Id: 1.5.2 
     4* @version $Id: 1.7.0 
    55* @copyright (c) 2013-2014 danielx64.com 
    66* @license http://opensource.org/licenses/gpl-license.php GNU Public License   
     
    1313Description: WordPress - phpBB Integration Mod This Birdge makes possible to integrate your phpBB into your Wordpress Blog, sharing users. If the phpBB users do not exist in WP it will be automatically created as a "Subscriber" Want to have wordpress match your forum style? Get the theme instead. 
    1414Author: Danielx64 
    15 Version: 1.5.3 
     15Version: 1.7.0 
    1616Author URI: http://danielx64.com/ 
    1717*/ 
     
    3636require( ABSPATH . WPINC . '/pluggable.php' ); 
    3737global $pagenow; 
    38     if (!preg_match('/\/wp-admin\/(themes.php|plugins.php|admin-ajax.php)/', $_SERVER['REQUEST_URI'])) { 
    39             include_once dirname(__FILE__) . '/functions/wp_phpbb_bridge.php'; 
    40             add_filter('login_url', 'wp_phpbb_login'); 
    41             add_filter('logout_url', 'wp_phpbb_logout'); 
    42             add_filter('register_url', 'wp_phpbb_register'); 
     38 
     39if ( ! defined( 'WP_ADMIN' ) ) { 
     40    if (!preg_match('/\/wp-admin\/(themes.php|plugins.php|post.php)/', $_SERVER['REQUEST_URI'])) { 
     41        if (!defined('IN_WP_PHPBB_BRIDGE')) 
     42        { 
     43            global $wp_phpbb_bridge_config, $phpbb_root_path, $phpEx; 
     44            global $auth, $config, $db, $template, $user, $cache, $wpdb; 
     45            require( dirname( __FILE__ ) . '/functions/wp_phpbb_bridge.php' ); 
     46        } 
     47        add_filter('login_url', 'wp_phpbb_login'); 
     48        add_filter('logout_url', 'wp_phpbb_logout'); 
     49        add_filter('register_url', 'wp_phpbb_register'); 
    4350    } 
     51} 
     52 
    4453 
    4554 
     
    111120    ?> 
    112121    <div class="updated wphpbb-notice"> 
    113         <p><?php printf(__('In order for this bridge to work correctly, you will <a target="_blank" href="%s">need to configure it</a>. <a href="%s">I have already configured it.</a>', 'wp_phpbb3_bridge'), admin_url('themes.php?page=propress-settings'), add_query_arg('wphpbb-dismiss', 1)); ?></p> 
     122        <p><?php printf(__('In order for this bridge to work correctly, you will <a target="_blank" href="%s">need to configure it</a>. <a href="%s">I have already configured it.</a>', 'wp_phpbb3_bridge'), admin_url('themes.php?page=wp-united-setup'), add_query_arg('wphpbb-dismiss', 1)); ?></p> 
    114123    </div> 
    115124<?php 
  • phpbb-to-wp-connector/trunk/readme.txt

    r918316 r1001629  
    22Contributors: Danielx64 
    33Tags: bridge, phpbb, wordpress, intergrate, login, cross-posting 
    4 Requires at least: 3.7.0 
    5 Tested up to: 3.9.1 
    6 Stable tag: 1.5.0 
     4Requires at least: 3.8.0 
     5Tested up to: 4.0.0 
     6Stable tag: 1.7.0 
    77License: GNU General Public License v2 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Note: See TracChangeset for help on using the changeset viewer.