![]() |
thanks a million for this script cause I really needed it
it works like a charm |
I'd really like to be able to set the cookie and log the user in after they are instantly registered. Any ideas?
|
i agree wtih bradsears. can anyone shed some light on how to automatically log in a user?
do we just set the cookies and that's it? |
I recently added a field to the user profile (gender)
I also renamed location to country I would like to be able to automatically set these fields similarly to the other fields in the above example. Im unclear as to how this would be possible. Any help would be greatly appreciated. |
Quote:
You also have to remember to retrieve the global vbulletin variable to pass into the datamanager class. I spent the last few hours working that out, hopefully it'll help someone else! |
Thanks. Would you mind posting the code you used?
|
i use a modified version of the code they gave a couple posts back which works great for me.
Code:
<?php Im running it on vBulletin 3.6.2 |
Hello,
i use the code it's work fine but i have one problem. I can login the user but when i in the admincp and i edit the user i dont see any username in the inputfield! What is wrong? Raiden |
Its possible verify if the usergroup exists before add to database the new user?
Exemple, to test I set the usergroup to 2000000 and VB ignore and inserted the user normally. ps: same problem with password field, I set like empty and vbulletin inserted the data.. |
Hello All,
I'm using the following code, posted by Brad Sears, for sending out activation emails after adding a user via the script on this thread: PHP Code:
It works, sort of. The only problem is that the email does not contain the username of the user being emailed (it begins "Welcome, (blank)"). The userid in the links and the email address it sends to are correct, but no username... Do I need to pass additional variables to these functions? Thanks! Tim |
i dont know how do it?
let c what i can understand first creat vB_Datamanager_User.php file then put this code and upload to vb folder in your site then ask this http://yoursite/vb/vB_Datamanager_User.php it just registerd 1 user??? and i should change username and email again and reupload??? how it does automatically??? can any one help me how do this plz |
Hi everybody,
is it also possible to pass a simple URL to a script, which takes the variables from the URL and registers the new user? The problem is, that i dont have the possibility to send something else... the only thing i can do for my project is sending an URL... will it be possible? |
Is it possible to use this and pass in a password that is already an md5 hash?
for example: $userdm->set('password', "5f0f8c991d3d31c63ab531916c298c65"); |
plz some 1 tell me how do that?
|
Quote:
I will also have to use the modified method above since I cant install curl on my host. I cant belive this isnt made easyier (for external sign ups) Quote:
How can you have globals.php in your script root for a 2nd host/server/url, unless its coppied over, or the registration code is also in the root of forum. Hmm, Ill look into this! |
This is making driving me batty... With the "save" line commented, no errors are found. When I uncomment it, the data gets saved, BUT the error message line executes as if the entire program reruns itself. The 2 errors generated are duplicate username and duplicate email. Anyone have any ideas?
Code:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); |
My God - the curl thing worked. It took me all week to find this post. Thanks.
|
Novastar's script worked beautifully on the first try!
Thanks dude. :) |
anyone having trouble with new users not getting a welcome post via datamanager, no idea how to make sure new users get a welcome post, there must be a way
|
When I use any variations of the scripts (with cURL and without) in this thread, I get these errors:
Notice: Undefined index: HTTPS in /var/www/html/includes/class_core.php on line 1599 Notice: Undefined index: HTTPS in /var/www/html/includes/class_core.php on line 1599 Notice: Undefined index: HTTP_REFERER in /var/www/html/includes/class_core.php on line 1626 I'm using VB 3.6.7 -- has something changed in this version that might be causing this? Is there another file I need to include to get the environment set up right? I see where these indices are used in class_core.php, but I haven't (yet) found where they are defined. Still looking ... Any suggestions would be appreciated. Thanks, Ron. Okay, I'm not thinking straight. Of course, php sets the $_Server superglobal. SO, I guess my job is to find out why the HTTPS and HTTP_REFERER values are not being set. Thanks, Ron. |
Add the following to the top of your script:
PHP Code:
|
Thank you. That worked nicely.
But, now you've got me curious. How did changing the error reporting options fix the problem? Thanks, Ron. |
Brilliant! Thanks Novastar!
|
I've made it possible for you all to start creating members automatically here in this new hack:
https://vborg.vbsupport.ru/showthread.php?t=154637 I branched differently with all full sources of .NET and PHP using what I seen on the forums here with my .NET, and putting it all to work within XML_RPC I hope this helps others out as well. |
We are using novastar's hack as mentioned above and it's working fine. However, adding users is one thing, updating is another .. which brings me to my next question:
Will this work to actually "update" an existing user, all we're trying to do is update an existing user in the forum to a new usergroup: PHP Code:
Any clues? is there a $userdm->update(); instead of save? I noticed a pre_save() option and now it's got me a bit curious :) Thanks in advance! Okay I did some more reading.. would someone be able to verify the following code: PHP Code:
|
Quote:
Not off hand I don't think there is anything that can make it update without modifying the code to make it UPDATE, unless you make the set work as an update within a sql statement inside your PHP code.... |
Hey novastar
How do you pass varibles from another DB? we tryed: PHP Code:
Quote:
|
novastar ... added user without trouble, thanks!
any ideas on how to add the custom field data? |
After much testing and examining vBulletin code, I finally finished my PHP class for performing basic operations on user accounts (create user, modify user, delete user, log on, log off). This has enabled me to integrate the forum into my site. Users who log in to my site are logged in to the forum, users who register on my site automatically get an account on the forum, etc.
Once that was done, I just had to modify all the vBulletin templates that contained a login form, logout link, register link, or user account modification link, and make sure those things use MY code for those functions. Now users can log in either from the forum or from my main site, and user account registration and modification are all handled on my main site, outside of the forum. It all works pretty well, without modifying a single line of the vBulletin source code. Here is the code for class.forumops.php, with extensive usage comments: PHP Code:
The wordwrapping above looks funny, but if you quote this message as if to reply, the wordwrapping will be correct when you copy and paste it. I hope this helps some people. -Alex |
When using your code (amatulic), I get
Quote:
PHP Code:
PHP Code:
|
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 06:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|