Resource icon

[SchmitzIT] XenForo MediaWiki Bridge 2.0

No permission to download
OK @SchmitzIT and @Digital Doctor

Here is my config.php:
/*
* Path to XenForo installation. You can use both absolute or relative path
define('MEDIAWIKI_PATH_TO_XENFORO', './forums');

As stated my Mediawiki installation is in the root.
Yet I see no login link? I did encounter the compression issues but managed to fix them.
 
Last edited:
Xenforo + Mediawiki + Wordpress = Best of breed x 3.

Before you get too into Mediawiki ... check out Vaultwiki.
It's as Powerful as Mediawiki but integrated into the forums.

I think Vaultwiki is better than Mediawiki. My only criticism of Vaultwiki is that it is "almost as hard" to use as Mediawiki is.

Mediawiki is powerful, but the steep learning curve prevent community-generated documents from being a reality.

I actually purchased VaultWiki but will stick to MediaWiki (prefered MediaWiki and an import would be difficult of existing articles). XenForo is certainly the best forum software currently available.

Many thanks ;)
 
Update: I can now sign in to the forum and then I'll be signed in to the wiki. However, I see no log in/log out links?

I've also had to disable output compression.

Many thanks for all the help :D

Note: Is it possible to redirect users back to the wiki?
 
I just signed up on your forum. When heading to the wiki, I can see the login functionality there. Can you show me the edit you made to the LocalSettings.php?

Thanks.

Peter
 
I just signed up on your forum. When heading to the wiki, I can see the login functionality there. Can you show me the edit you made to the LocalSettings.php?

Thanks.

Peter
Thank you very much.

I have disabled the plugin.

I'll post my whole LocalSettings.php (minus database information etc.)

Here:
<?php
# This file was automatically generated by the MediaWiki 1.20.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";



# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}

## Uncomment this to disable output compression
#$wgDisableOutputCompression = true;


$wgSitename = "ChannelWiki";
$wgMetaNamespace = "ChannelWiki";

# Enables EMAIL
#$wgEnableEmail=true;

# Enables the MoodBar
#require_once("$IP/extensions/MoodBar/MoodBar.php");

$wgExtensionFunctions[] = function() {
$GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL();
return true;
};



# Enable MobileFrontend
require_once("$IP/extensions/MobileFrontend/MobileFrontend.php");

require_once("$IP/extensions/ConfirmEdit/ReCaptcha.php");

# $wgReadOnly = "We are upgrading ChannelWiki, please be patient. This wiki will be back soon. This will improve user login/signups...";


$wgLocaltimezone="Europe/London";


## Accepted File types

## Pretty URLs
#$wgArticlePath = "/$1";

#require_once( "$IP/skins/strapping/strapping.php" );

#### Uploads ####

$wgEnableUploads = true;

require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );

#IE fix
// Needed to make UploadWizard work in IE, see bug 39877
$wgApiFrameOptions = 'SAMEORIGIN';

#Flickr support

$wgAllowCopyUploads = true;
$wgGroupPermissions['user']['upload_by_url'] = true; // to allow for all registered users

$wgUploadWizardConfig = array(
'flickrApiUrl' => 'https://secure.flickr.com/services/rest/?',
'flickrApiKey' => 'secret',
);

$wgCopyUploadsDomains = array( '*.flickr.com', '*.staticflickr.com' );

# Tutorial
$wgUseInstantCommons = true;

# ui ENHANCEMENTS
require_once( "$IP/extensions/WikimediaMessages/WikimediaMessages.php" );
#require_once "$IP/extensions/LiquidThreads/LiquidThreads.php";

require_once "$IP/extensions/Echo/Echo.php";
$wgEchoFeedbackPage = "http://www.surveymonkey.com/s/978CMN7";


# Other

$wgEnableAPI = true;
$wgEnableWriteAPI = true;

##### END Uploads ####

$wgPasswordSender = "no.reply@channelwiki.org";
$wgPasswordSenderName = "ChannelWiki";

$wgFileExtensions = array('png','jpg','jpeg','ogg','doc','xls','ppt','mp3','sxc','pdf');

## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://www.channelwiki.org";

## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";

## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!

$wgLogo = "$wgStylePath/common/images/wiki.png";


#$wgEnableDnsBlacklist = true;
#$wgDnsBlacklistUrls = array( 'xbl.spamhaus.org' );

# Enables Google Analytics
require_once( "$IP/extensions/googleAnalytics/googleAnalytics.php" );

# Enables use of WikiEditor by default but still allow users to disable it in preferences
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

# Displays the Preview and Changes tabs
$wgDefaultUserOptions['wikieditor-preview'] = 1;



// Bump the Perl Compatible Regular Expressions backtrack memory limit
// (PHP 5.2.x default, 100K, is too low for SpamBlacklist)
ini_set( 'pcre.backtrack_limit', '8M' );


## UPO means: this is also a user preference option

$wgEnableEmail = true;
$wgEnableUserEmail = true;

$wgEmergencyContact = "dillonlawrence76@gmail.com";
$wgPasswordSender = "no.reply@channelwiki.org";

$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;

## Database settings
/* REMOVED /*

# MySQL specific settings
$wgDBprefix = "";

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";

# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

# LOGIN

// Needed to make UploadWizard work in IE, see bug 39877
$wgApiFrameOptions = 'SAMEORIGIN';

## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Enables Quantcast plugin
#require_once("$IP/extensions/Quantcast/Quantcast.php");

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";

$wgSecretKey = "secret";

# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "secret";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = 'vector';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";

$wgEnableAPI = true;
$wgEnableWriteAPI = true;

# Query string length limit for ResourceLoader. You should only set this if
# your web server has a query string length limit (then set it to that limit),
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
# that value)
$wgResourceLoaderMaxQueryLength = -1;

# Vector
$wgDefaultUserOptions['useeditwarning'] = 1;
$wgVectorFeatures['footercleanup']['global'] = true;
$wgVectorFeatures['expandablesearch']['global'] = true;

# End of automatically generated settings.
# Add more configuration options below.

require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );


$wgReCaptchaPublicKey = '6Le5s-YSAAAAAPkjMioNhjgTt74Cqf02tfZIBcdS';
$wgReCaptchaPrivateKey = '6Le5s-secret';

$wgVectorUseSimpleSearch = true;

#Vector
require_once "$IP/extensions/Vector/Vector.php";

#Account

require_once "$IP/extensions/ConfirmAccount/ConfirmAccount.php";
$wgMakeUserPageFromBio= false;
$wgAccountRequestMinWord= 0;
# Which form elements to show at Special:RequestAccount

$wgConfirmAccountRequestFormItems = array(
# Let users make names other than their "real name"
'UserName' => array( 'enabled' => true ),
# Real name of user
'RealName' => array( 'enabled' => true ),
# Biographical info
#'Biography' array( 'disabled' => false, 'minWords' => 0 ) );
# Interest checkboxes (defined in MediaWiki:requestaccount-areas)
'AreasOfInterest' => array( 'disabled' => false ),
# CV/resume attachment option
'CV' => array( 'disabled' => false ),
# Additional non-public info for reviewer
'Notes' => array( 'disabled' => false ),
# Option to place web URLs that establish the user
'Links' => array( 'disabled' => false ),
# Terms of Service checkbox
'TermsOfService' => array( 'disabled' => false ),
);


#require_once "$IP/extensions/OpenID/OpenID.php";
#$wgOpenIDShowProviderIcons = true;
#$wgHideOpenIDLoginLink = true;

require_once "$IP/extensions/NoTitle/NoTitle.php";



require_once "$IP/extensions/RecentChangesCleanup/RecentChangesCleanup.php";
$wgGroupPermissions['sysop']['recentchangescleanup'] = true;
$wgGroupPermissions['recentchangescleanup']['recentchangescleanup'] = true;


#require_once( "$IP/skins/bootstrap-mediawiki/bootstrap-mediawiki.php" );


//XenForo
#require("$IP/extensions/XenForo/require-me.php");
 
This is generally the issue:

Plugin enabled (compression problems + no login/logout link)

Existing users? Will they have to be imported?

Can users be redirected back to the wiki after being logged in?

Also, is there are way to integrate forum updates with MediaWiki's Echo? Just a thought.

Many thanks all.
 
This is generally the issue:

Plugin enabled (compression problems + no login/logout link)

Existing users? Will they have to be imported?

Can users be redirected back to the wiki after being logged in?

Also, is there are way to integrate forum updates with MediaWiki's Echo? Just a thought.

Many thanks all.

The localsettings look alright.

Can you clarify what you mean with compression problems?

As for the bridge, can you PM me FTP Credentials and temporarily enable me admin access on the forums? I'd like to be able to verify all files are in the correct order, and turn on and off the add-ons to test what's going on.

Thanks.
 
The localsettings look alright.

Can you clarify what you mean with compression problems?

As for the bridge, can you PM me FTP Credentials and temporarily enable me admin access on the forums? I'd like to be able to verify all files are in the correct order, and turn on and off the add-ons to test what's going on.

Thanks.
Just as what other posters have stated. In LocalSettings output compression must be disabled or my wiki won't load.

I'll PM you FTP details.
 
No problem. Sorry, I've just been swamped with work, so I haven't had time to look deeper into your issue
 
Code:
#0 /var/www/betterverse/wwwgit/w/includes/api/ApiBase.php(283): XenForo_Application::handlePhpError(8, 'Array to string...', '/var/www/better...', 283, Array)
#1 /var/www/betterverse/wwwgit/w/includes/api/ApiQuery.php(641): ApiBase->makeHelpMsg()
#2 /var/www/betterverse/wwwgit/w/includes/api/ApiQuery.php(120): ApiQuery->makeHelpMsgHelper(Array, 'list')
#3 /var/www/betterverse/wwwgit/w/includes/api/ApiMain.php(591): ApiQuery->__construct(Object(ApiMain), 'query')
#4 /var/www/betterverse/wwwgit/w/includes/api/ApiMain.php(697): ApiMain->setupModule()
#5 /var/www/betterverse/wwwgit/w/includes/api/ApiMain.php(360): ApiMain->executeAction()
#6 /var/www/betterverse/wwwgit/w/includes/api/ApiMain.php(344): ApiMain->executeActionWithErrorHandling()
#7 /var/www/betterverse/wwwgit/w/api.php(117): ApiMain->execute()
#8 {main}
[code]
array(3) {
["url"] => string(179) "http://www.betterverse.net/w/api.php?action=query&list=recentchanges&rclimit=2&rcprop=timestamp|title&format=json&callback=jQuery19107552795752417296_1384630793215&_=1384630793216"
["_GET"] => array(7) {
["action"] => string(5) "query"
["list"] => string(13) "recentchanges"
["rclimit"] => string(1) "2"
["rcprop"] => string(15) "timestamp|title"
["format"] => string(4) "json"
["callback"] => string(40) "jQuery19107552795752417296_1384630793215"
["_"] => string(13) "1384630793216"
}
["_POST"] => array(0) {
}
}
[/code]


This is a Server Error given to me inside of Xenforo, and betterverse.net/w/ corresponds to my MediaWiki installation - so I figure this is somewhere inside of MediaWiki bridge.

This started happening after updating from 1.1.4 to 1.2.1 ... Any ideas?
 
We tried upgrading to the latest version of MediaWiki yesterday, and the bridge definitely does not work with that.

I'll try and see if @xfrocks can come up with a fix.
 
We tried upgrading to the latest version of MediaWiki yesterday, and the bridge definitely does not work with that.

I'll try and see if @xfrocks can come up with a fix.
It did work for me?

Do you know which files have to be edited to include new Login/out links which are directed to the Forum.

Anyway, I am switching to VaultWiki after long consideration. It would mean an import would be required but the site would look the same (wiki/forums) and it would mean users have a much better experience (heavy integration).

XFRocks also confirmed to me via an Email that he also got it working. What error are you encountering?
 
Hi Schmitz,

Could you provide an example of this? I'm planning to install a wiki but I would like to see how it's integrated with your addon

Thank you
 
Top Bottom