Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #51  
Old 11-04-2005, 06:05 AM
sammyman sammyman is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get this to work. I made a user group like you did, and added a user to it. The usergroup number was 11 instead of 17, and I changed those numbers. Still nothing.

require_once( "includes/DefaultSettings.php" );
require_once("AuthPlugin_vBulletin.php");
$wgAuth = new AuthPlugin_vBulletin("localhost", "name", "pass", "db_name");

Is that code right? Then the authplugin_vbulletin.php file is in the main directory with localsettings.php. I can't think of anything else.

Do I need to first manually put all of the users in the wiki db? I can't figure this out, and am not much of a coder. Is there anyway to test to see what part of this equation is not working? Thank you all for the help.
Reply With Quote
  #52  
Old 11-04-2005, 09:02 PM
weeno weeno is offline
 
Join Date: Jan 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sammyman
I can't seem to get this to work.

require_once("AuthPlugin_vBulletin.php");
$wgAuth = new AuthPlugin_vBulletin("localhost", "name", "pass", "db_name");
try putting it at the end of LocalSettings.php

arn
Reply With Quote
  #53  
Old 11-05-2005, 01:40 AM
sammyman sammyman is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to a member function on a non-object in /home/user/public_html/manuals/includes/SpecialUserlogin.php on line 314

I figured it OUT! I am the smartest man alive! I googled this

Thus, I simply amended line 264 of SpecialUserlogin.php from this:
$u =& $this->initUser( $u );
to this:
$u = $this->initUser( $u );

P.S. Arn, you have an awesome site there.

I wanted to know why the wiki installs like wiki/index.php/Main_Page? Arn, you don't seem to have this problem. How did you get around this one?
Reply With Quote
  #54  
Old 11-05-2005, 06:40 PM
weeno weeno is offline
 
Join Date: Jan 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sammyman
Fatal error: Call to a member function on a non-object in /home/user/public_html/manuals/includes/SpecialUserlogin.php on line 314

I figured it OUT! I am the smartest man alive! I googled this

Thus, I simply amended line 264 of SpecialUserlogin.php from this:
$u =& $this->initUser( $u );
to this:
$u = $this->initUser( $u );

P.S. Arn, you have an awesome site there.

I wanted to know why the wiki installs like wiki/index.php/Main_Page? Arn, you don't seem to have this problem. How did you get around this one?
I don't know why you had to change that. I didn't. Make sure you copied the Auth code correctly. I've included my actual file as an upload so you don't have to copy/paste.

I had to use .htaccess rewrites to fix the /wiki/ subdirectory issue. I also use my own frontpage.php file which is just a php script that is not the wiki script. Main_Page redirects to my frontpage.

There is a potential problem with doing these redirects. you have to explicity exclude any subdirectories that you want to be able to access, otherwise it will try to directed everything to your wiki script

HTML Code:
RewriteRule ^$                  /frontpage.php?%{QUERY_STRING} [L]
RewriteRule ^Main_Page$         /?%{QUERY_STRING} [L,R]

RewriteCond %{REQUEST_URI}      !^/skins/.*
RewriteCond %{REQUEST_URI}      !^/images/.*
RewriteCond %{REQUEST_URI}      !^/frontpage\.php
RewriteCond %{REQUEST_URI}      !^/index.php
RewriteRule ^(.*)$              /index.php?title=$1&%{QUERY_STRING}
Attached Files
File Type: php AuthPlugin_vBulletin.php (5.0 KB, 41 views)
Reply With Quote
  #55  
Old 11-05-2005, 08:40 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sammyman
Fatal error: Call to a member function on a non-object in /home/user/public_html/manuals/includes/SpecialUserlogin.php on line 314

I figured it OUT! I am the smartest man alive! I googled this

Thus, I simply amended line 264 of SpecialUserlogin.php from this:
$u =& $this->initUser( $u );
to this:
$u = $this->initUser( $u );

Actually, there is another way to fix this error (i was getting them for a long time!!)...
on line 314, insert the following:
$unique_varname_xyzabc = $u;




The problem is actually a PHP problem (likely restricted to PHP 4.3.11)... so only a few lucky ones like sammyman and me get it!

it has something to do with php getting confused about the variable scope...
Reply With Quote
  #56  
Old 11-21-2005, 01:30 AM
Dsyn11 Dsyn11 is offline
 
Join Date: Nov 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any updates on this? I need a vBulletin Wiki like a zombie needs brains.
Reply With Quote
  #57  
Old 11-21-2005, 10:58 AM
Deafwasp Deafwasp is offline
 
Join Date: Jun 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using Kai Backman's script at the moment on MW 1.5 and there seems to be a problem.

When I try to login at MediaWiki, I get this MYSQL error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/xassius/public_html/wiki/AuthPlugin_vBulletin.php on line 47

line 47 in Kai's Auth script is:

if(mysql_num_rows($vb_find_result) == 1) {

Could anyone please help (I've tried weeno's code as well, without luck)
Reply With Quote
  #58  
Old 11-21-2005, 03:42 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I saw a 3.5.1 forums with Wiki integration. :/
are they using this??

anyway.... any word on an official release?
Reply With Quote
  #59  
Old 11-21-2005, 07:00 PM
Dsyn11 Dsyn11 is offline
 
Join Date: Nov 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to get the Wiki software integrated into the vB database so my users only need to log into my site? I don't want to make them log into the MediaWiki site...

can I pay someone to do this?
Reply With Quote
  #60  
Old 11-21-2005, 11:47 PM
LunaTech LunaTech is offline
 
Join Date: Aug 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sharing Deafwasp's problem with weeno's version.

Line 11 of my LocalSettings has

require_once("AuthPlugin_vBulletin.php");
$wgAuth = new AuthPlugin_vBulletin ( "localhost", "admin", "xxxxxxxxx", "db");

When it tries to access a user the following error pops up: Warning mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/site/html/wiki/AuthPlugin_vBulletin.php on line 47

I tested and it is logging into the db right, but there must be something when it selects the data that messes it up. Any ideas?

Is there a way to make the AuthPlugin_vBulletin.php output text? If I can have it output variables onto the screen, I could try to debug the issue.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07610 seconds
  • Memory Usage 2,280KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete