![]() |
MediWiki Integration
I have posted the stub of an article that will outline modifications needed to integrate vB users with MediaWiki. This will result in wiki users being able to login through vB. Please go to: VBulletin/Users_Integration The reason for posting this information there is because this is more of a MediaWiki hack than vB.
If anyone has or is pursuing this, please share your insights there. Thank you! |
Quote:
|
Holy smoke. This is recent interest for me. How incredibly timely.
Thank you. rob |
This would be a reasonable project to put some effort into. I'll contribute what I can. The single intergration thing is interesting and something which I would leverage-but it would need to be complete, and the issues at the bottom of your post show how this could be challenging.
I've been running my wiki for a week now (yeah yeah) and I've had a few bad eggs-one person even blanked around 50 articles before we blocked him and rolled everything back. It only took a few minutes to undo damage that took the attacker more than 30 minutes to create. What I really want to do is have the 'discussion' tab turn into a vB thread discussing the article. What I'm working on doing in the meantime is making a simple script which will automatically make and/or redirect to the thread in my 'articles' discussion forum. This, I think, will be something that is absolutely necessary for an integration. |
btw, I have a media wiki template and some php code that will cause a thread to get autogenerated if it doesn't exist for an article and link to the thread if it does. I can't update the wiki with all the code, unfortuantely because of vB rules...
This is crude-and a bit hacked together. The RSS Bot guys saved me a lot of time. Code:
<?php Code:
<h3> |
Darax, would you consider adding this information to the wiki Leitel's started?
r |
I can't because the first bit of code references vB code at the beginning and end... The best I could do is link back to here.
|
Darax, you are welcome to add your comments/code to the article I started. Notice how nogerorob did this.
The focus of this article is Users integration. Your hack addresses thread integration with the discussion tab (if got that right). QUESTION: Should my article be renamed to cover vB integration in general OR should someone start a NEW article perhaps entitled: VBulletin/Thread_Integration? |
I am starting to dive into this again. It sure would be helpful to collaborate with any others on this. :) If you are interested, please reply here or email me. Thanks! :)
|
I'm sorry to be late to the thread, but I've actually been running an integrated vBulletin/MediaWiki system for quite some time. I just today got another request from someone wanting to have the code, and realized it might be easier to just post it .. :)
MediaWiki has a facility for creating Authentication plugins that let you do the integration pretty easily. They were non-documented when I started with the hack, but once you find the correct template everything was smooth sailing. There are a few comments about the code - People still need to log on to MediaWiki once, after that they are cookied. - MediaWiki has a smaller namespace for usernames than vBulletin, on a large board you might have clashes. I'm assuming it's not a security problem, but it might be an inconvenience. - You need to clean up the user properties pages of things like changing names and stuff (they aren't automatically dropped). - The Wiki will create only those users who actually log on - The $usergroupid clauses determine who can create an account, you need to change these clauses to suit your own board. Have fun! :D Add this snippet to you LocalSettings.php. Insert your vBulletin DB information: Code:
require_once("AuthPlugin_vBulletin.php"); Code:
<?php |
Thank you so much for sharing this. I will look it over. I saw that stub class and wondered if it could be used. At this point, I am in the analyzing mode. Input from others like yourself will produce the maximum results. Of course, whatever I/we come up with will be shared.
Thanks! :) |
Hi
A couple of small doubts... Does the user have to register for Media Wiki ? I already have a user DB, and getting the ones who want to register again might be cumbersome... If yes, is there some way to "transfer" the userDB? Just thinking aloud: IS this a valid (though less elegant) solution: on the edit page of the wiki, check to see if the user is logged onto vbulletin (using the cookie). if not, bump them to the login page... ??? Quote:
|
That is exactly what I am going to do. I have it already working with our OSCommerce site. If there is a cookie, they don't even know that they have been automatically logged into vB. The Wiki is a bit more tricky. Please see article where I have outlined some details.
|
They don't need to register, MediaWiki creates an account automatically for them the first time they log in. However, the AuthPlugin still requires MediaWiki to have separate user information, even if it's just the name. The comments give more information on how it works.
|
You're right. What happens in the scenario I mentioned previously is when a user goes to the wiki, it will check vB to see if there is a cookie. If not, they will be taken to vB to login or create an account. The process of creating an account ALSO creates an account in the wiki for them. There a number of preferences, etc that are best maintained in the wiki.
There is still a need to maintain 'connections' to vB and back. For example, see this page as an example to link to vB profile from the wiki. Hopefully, we will begin coding this next week. |
Hi folks, I just tired out Kai Backman's integration authplugin; I was wondering if there is a way to make registering a user on the wiki create a coresponding vbulletin account. Or would I simply turn off the new user creation to force registration on the vbulletin end?
|
Quote:
On your LocalSettings.php find PHP Code:
PHP Code:
|
Allthough the user integration through MW Authplugin and automatic acount creation in MW if not existant seems to be the most professional solution. There is a miner drowback of how to handle change of preferences and logout situations.
some thoughts about unsolved problems
The above thougts are not critic but merely helpless nonprogrammer effort to contribute on the grounds of checking possible cases. shortes way by logic with smalles chance of interference I do hope that in the end there can be achived a working bridge that does as little as possible except checking user data in the vB Database and producing doubles in MW in order to make things independent. The Preferences which exist twise should be changed in vB because of code copyright bull++++ and then updated in MW automaticaly where only Preferences should be changeble which are nonexistant in vB. I hope my thoughts might trigger some genius programmers efforts to solve the problem with minimum effort. Sincerely yours Burgy Zapp with greatings from Hagenheim |
hi
i get the following error Quote:
also, Quote:
|
I'm wondering; does anyone have this running with vB3.5 and secondly; is it possible to run MediaWiki on windows?
|
Quote:
Also, yes, MediaWiki will run on Windows, just like any other PHP/MySQL script. |
Quote:
Thanks for your reply :) |
Quote:
|
This thread, or parts of it, should be moved to hacks. It's good stuff.
|
bump.
just checking if there is a update to this ? i am still getting the error is post #19 (even with the older mediawiki version. the user needs to refresh the error page for it to work correctly)... would be super if a "tight" integration could be achieved! |
[tagging thread for myself] -- I'm curious about how well this is working now with 3.5 gold.
|
*bump*
|
*bump*
/me hopes for the best. |
i tested the whole thing with a local test forum 3.5.0 and mediawiki 1.5.0 and it works, only a minor glitch that vb user names which begins with a lower-case character are transformed into a wiki user name beginning with an upper-case character. :surprised:
|
I'm glad to hear that it works, I guess I'll start trying it out on a localhost aswell later.
|
Can someone explain how the namespaces on vbulletin and mediawiki usernames are different? What would cause a collision?
arn |
bump!
[high]* GrendelKhan{TSU hopes there is still interest in this. :)[/high] |
I've been trying to use this code to integrate a wiki and vbulletin.
There's a mistake in the initUser function... note the database query isn't correct. I fixed it here: HTML Code:
function initUser( &$user ) { So, it seems the "_" underscore is the one of the forbidden chars in mediawiki.... so might cause some collision issues with vb's user database. still working on this to see how to best resolve these issues. arn |
Quote:
<<< keeps fingers crossed. :) |
I have been trying to work this out for 3.5 as well, i will post any of my results here.
|
Ya, the namespace is a problem... One way around it is to limit the vb name space... you want to make sure there are no spaces etc... i just do it in the vbulletin register.php file in vb...
--- Another point: Not sure what the error was in the original code, BUT even after using the code by weeno, i get this error the FIRST time a user logs in (with the correct password) Quote:
the user is actually created, but this error still comes up... not sure why... the user can then login.. i am isung mediawiki 1.5 and vb 3.5... Thx. Quote:
|
im goign to give this a go over the weekend on a test setup, hopefulyl it will work ok
|
|
Quote:
howzit workin so far? you gonna release a hack for the rest of us? :) |
Quote:
or you just teasin us? :(. lol looks good though!! (mouth waters) :p pushing my luck: if you do release it....is it going to phrased? that is a huge point for many (me!) :) |
All times are GMT. The time now is 11:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|