Jump to content

Recommended Posts

I'm trying to integrate my wiki+vb together, and having issues with changing the strings to match my database info.

 

How would I change the following codes below, if my Server is: Localhost, DBuser: etc123, DBuserpass: 123, DBname: db123

 

$wgAuth = new AuthPlugin_vBulletin($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, "vb_");

 

I assume it's like this? $wgAuth = new AuthPlugin_vBulletin($localhost, $vb_etc123, $123, $wgDBname, "vb_db123");?

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/188240-php-stringsvariable-help/
Share on other sites

you probably want the literal strings, rather than variables

$wgAuth = new AuthPlugin_vBulletin('localhost', 'vb_etc123', '123', $wgDBname, "vb_db123");

 

but I don't know what variables you have in your script, nor what values said variables may contain

I'm trying to do this: http://www.mediawiki.org/wiki/Extension:VBulletin/Users_Integration

 

Wiki and VB on the same host/machine, but not the same database.

 

I was wondering how would you change the strings to reflect the vb database, if the Server is: localhost, DBuser: db_etc123, DBuserpass: 123, DBname: db_db123

 

Which I assume this is how you do it: $wgAuth = new AuthPlugin_vBulletin("localhost", "db_etc123", "123", "db_db123", "vb_");

 

I've tried it. Nothing works. Been trying to figure out for days, but it doesn't seem to work at all. =/

 

Here's the site I'm testing this on: http://understructure.net/awiki3/

 

The log-in will stop working once you log out, always with incorrect password. There is no signs of integration with vb either.

based on the documentation, and your info,

$wgAuth = new AuthPlugin_vBulletin("localhost", "db_etc123", "123", "db_db123", "vb_");

SHOULD work. But the last parameter is what is confusing things I think. That is the prefix. Are you sure vb_ is the prefix? The prefix is basically the string before any of your tables that are connected to the wiki. You should have been able to set that up when you installed mediawiki. If you have phpmyadmin (or another tool like that) look at your wiki tables, and see if they have a common prefix. Whatever that is should be what you pass as the last parameter

The integration worked when I left the "prefix" blank ("").

 

I do have myphpadmin. Is there any way to figure out the table prefix for the database? I originally imported the vb database through Putty, so there isn't any table prefix I can find.

 

$wgAuth = new AuthPlugin_vBulletin("localhost", "understr_awiki", "vandeath", "understr_awikitest", "");

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.