Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Jul 2005, 21:51
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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!
__________________
Webmaster - NoBlood.org
Reply With Quote
  #2  
Old 27 Jul 2005, 23:14
ricker ricker is offline
 
Join Date: Jun 2003
Originally Posted by leitel
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!
I will be checking this out.
__________________
:cheeky: My Jeep Rocks!
Reply With Quote
  #3  
Old 28 Jul 2005, 16:53
nogerorob nogerorob is offline
 
Join Date: Jun 2004
Holy smoke. This is recent interest for me. How incredibly timely.

Thank you.

rob
Reply With Quote
  #4  
Old 29 Jul 2005, 20:46
Darax The Good Darax The Good is offline
 
Join Date: Jan 2003
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.
Reply With Quote
  #5  
Old 31 Jul 2005, 05:24
Darax The Good Darax The Good is offline
 
Join Date: Jan 2003
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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and then I made a template on my wiki called fd (forum discussion)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

my sig has a link to where this is currently working.
Reply With Quote
  #6  
Old 31 Jul 2005, 17:30
nogerorob nogerorob is offline
 
Join Date: Jun 2004
Darax, would you consider adding this information to the wiki Leitel's started?

r
Reply With Quote
  #7  
Old 01 Aug 2005, 04:23
Darax The Good Darax The Good is offline
 
Join Date: Jan 2003
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.
Reply With Quote
  #8  
Old 01 Aug 2005, 12:35
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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?
__________________
Webmaster - NoBlood.org
Reply With Quote
  #9  
Old 04 Aug 2005, 17:23
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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!
__________________
Webmaster - NoBlood.org
Reply With Quote
  #10  
Old 04 Aug 2005, 18:05
Kai Backman Kai Backman is offline
 
Join Date: Apr 2005
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!

Add this snippet to you LocalSettings.php. Insert your vBulletin DB information:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And then AuthPlugin_vBulletin.php itself:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Kai Backman, programmer (Blog)
ShortHike space station game
Reply With Quote
  #11  
Old 04 Aug 2005, 18:11
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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!
__________________
Webmaster - NoBlood.org
Reply With Quote
  #12  
Old 12 Aug 2005, 20:36
ndahiya ndahiya is offline
 
Join Date: Aug 2004
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... ???


Originally Posted by Kai Backman
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!
Reply With Quote
  #13  
Old 12 Aug 2005, 21:20
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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.
__________________
Webmaster - NoBlood.org
Reply With Quote
  #14  
Old 12 Aug 2005, 21:55
Kai Backman Kai Backman is offline
 
Join Date: Apr 2005
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.
__________________
Kai Backman, programmer (Blog)
ShortHike space station game
Reply With Quote
  #15  
Old 12 Aug 2005, 22:39
leitel leitel is offline
 
Join Date: Mar 2003
Real name: Larry Eitel
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.
__________________
Webmaster - NoBlood.org
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:32.

Layout Options | Width: Wide Color: