Quote:
PHP Code:
-Alex |
Yup, seems that that does work. Can't seem to figure out how to do.
I tried putting PHP Code:
I'll have to debug this on my end it seems. I think I may have figured it out. thanks =) I'll post back when I have a definite answer. |
Recoded my reg form and it works fine now. Can't seem to work out the login form, so I looked at your login script.
PHP Code:
|
Weee! EXACTLY what im looking for @amatulic ! Works Perfect! Thx!
|
amatulic,
Your code works great from a PHP page that has no other includes, but as soon as I plugged it into my own CMS, I got the dreaded: PHP Fatal error: Call to a member function query_first_slave() on a non-object in /var/www/html/papatangopapa.com/forums/includes/functions.php on line 1194 My CMS has its own session management stuff and also uses a custom __autoload function, I wonder if that breaks things in some weird way. --------------- Added [DATE]1195925781[/DATE] at [TIME]1195925781[/TIME] --------------- I think it's due to vBulletin's insane reliance on global variables. When you have: A.php including init.php and functions.php directly, there is no problem. When you have: a function in B.php including including C.PHP, which includes init.php and functions.php, you get: PHP Fatal error: Call to a member function query_first_slave() on a non-object in /var/www/html/papatangopapa.com/forums/includes/functions.php on line 1194 --------------- Added [DATE]1195926210[/DATE] at [TIME]1195926210[/TIME] --------------- That's also how and why you might end up using cURL in order to keep your application and the namespace polluting vBulletin back-end completely separate. |
Hi!
I'm using 3.6.8 version, I'm trying to add user to vb using my own registration system. The constructor of the class I have take 2 parameters in input function vB_DataManager_User(&$registry, $errtype = ERRTYPE_STANDARD) How I have to use it? May I include directly this class in my code... it look like not... How can I do? I proposed another way to solve this problem here: https://vborg.vbsupport.ru/showthrea...27#post1389327 Thanks |
Would this approach still work in 3.6.8?
Quote:
|
Quote:
|
Quote:
then i need to activate this user when his account on my site activated --------------- Added [DATE]1197356952[/DATE] at [TIME]1197356952[/TIME] --------------- Quote:
|
Quote:
Code:
Fatal error: Registry object is not an object in /includes/class_dm.php on line 177 Code:
require_once ($_SERVER['DOCUMENT_ROOT'] . "/include/class.forumops.php"); Thanks --------------- Added [DATE]1197991803[/DATE] at [TIME]1197991803[/TIME] --------------- Quote:
Code:
require_once ($_SERVER['DOCUMENT_ROOT'] . "/include/class.forumops.php"); Code:
function __construct( &$vbulletin ) // constructor |
All times are GMT. The time now is 01:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|