Register Members List Search Today's Posts Mark Forums Read

Showing results 1 to 25 of 32
Search took 0.01 seconds.
Search: Posts Made By: doc55
Forum: vB5 Programming Discussions 26 Sep 2019, 19:12
Replies: 12
Views: 227
Posted By doc55
Thank you for your reply. I just tested it...

Thank you for your reply.
I just tested it again after clearing the cookies, but still didn't log out the user.
Could this be because I have the option "Remember me" enabled on log-in?

I did...
Forum: vB5 Programming Discussions 26 Sep 2019, 17:45
Replies: 12
Views: 227
Posted By doc55
Thank you Dave. With that change, The script...

Thank you Dave. With that change, The script redirects to the index.php as it is expected and I'm not getting any error messages, but the user is not logged out.
Forum: vB5 Programming Discussions 26 Sep 2019, 13:25
Replies: 12
Views: 227
Posted By doc55
Thank you for your reply. I tried adding this...

Thank you for your reply.
I tried adding this line on top:

define( "CSRF_PROTECTION", false );

I also tried this line on top:
require_once( '/forum/core/vb/vb.php' );
vB::init();...
Forum: vB5 Programming Discussions 26 Sep 2019, 02:07
Replies: 3
Views: 253
Posted By doc55
Just bumping this question again for some help.

Just bumping this question again for some help.
Forum: vB5 Programming Discussions 26 Sep 2019, 02:07
Replies: 12
Views: 227
Posted By doc55
Anyone could help with this script? I really...

Anyone could help with this script? I really appreciate anu help I can get.
Forum: vB5 Programming Discussions 11 Sep 2019, 11:43
Replies: 3
Views: 253
Posted By doc55
Anyone with any thoughts?

Anyone with any thoughts?
Forum: vB5 Programming Discussions 09 Sep 2019, 14:49
Replies: 3
Views: 253
Posted By doc55
Password Update

I'm trying to write a script that updates user's password based on the user's username, but I get it to work.
I need this script as part of another larger script integration, so it's not that...
Forum: vB5 Programming Discussions 05 Sep 2019, 14:40
Replies: 20
Views: 332
Posted By doc55
Thank you for your reply. So, what's the...

Thank you for your reply.
So, what's the difference between using API => user -> saveEmailPassword that you recommended and the API => user -> Save that I have in my script?
I have disabled the...
Forum: vB5 Programming Discussions 05 Sep 2019, 12:47
Replies: 20
Views: 332
Posted By doc55
shka, Thank you for your helpful post. I am...

shka,
Thank you for your helpful post. I am just starting to use vBulletin and I'm gathering as much information as I can, so your comments are much appreciated.
I checked the cherusername api...
Forum: vB5 Programming Discussions 05 Sep 2019, 11:43
Replies: 20
Views: 332
Posted By doc55
Thank you for your reply. I managed to figure...

Thank you for your reply.
I managed to figure out how to search the database to prevent duplicate username entry by using vB::getDbAssertor()->getRow.

What is the API that I could use instead...
Forum: vB5 Programming Discussions 05 Sep 2019, 03:45
Replies: 12
Views: 227
Posted By doc55
Thank you for your reply. I did try the API, but...

Thank you for your reply. I did try the API, but I can't make it work.
Here is my code when I use the API:
//Init the vBulletin system
require_once( '/forum/includes/vb5/autoloader.php' );...
Forum: vB5 Programming Discussions 05 Sep 2019, 03:20
Replies: 20
Views: 332
Posted By doc55
Finally, I was able to put everything together...

Finally, I was able to put everything together and make this thing work. Thank you both for all your help.
Now. I have one issue/question.
The following line is updating the username:...
Forum: vB5 Programming Discussions 04 Sep 2019, 02:52
Replies: 20
Views: 332
Posted By doc55
Interesting. After you said that, I went back and...

Interesting. After you said that, I went back and looked at the default profile edit page. It looks like vB does not give the option to users to change their username either. So, probably that's why...
Forum: vB5 Programming Discussions 04 Sep 2019, 01:32
Replies: 20
Views: 332
Posted By doc55
Dave, Thanks again for your reply. That...

Dave,
Thanks again for your reply.
That took care of the error message. Great.
The password is updating appropriately.
However, the username is still not saving at all. Any idea why?
Also,...
Forum: vB5 Programming Discussions 04 Sep 2019, 00:53
Replies: 20
Views: 332
Posted By doc55
Thank you Dave. It appeared that actually my...

Thank you Dave.
It appeared that actually my code worked (partially).
When I enter the wrong current password, it doesn't update anything, appropriately. But It is not showing any errors to the...
Forum: vB5 Programming Discussions 03 Sep 2019, 23:14
Replies: 20
Views: 332
Posted By doc55
After reading the vB API documentation, it looks...

After reading the vB API documentation, it looks like the acnt_setting should be set to 1.
So, I changed the code as you advised and I'm getting the userid from vB fetchUserinfo instead of cookies....
Forum: vB5 Programming Discussions 03 Sep 2019, 03:14
Replies: 12
Views: 227
Posted By doc55
Thank you Dave for your helpful reply. Here is...

Thank you Dave for your helpful reply.
Here is the final and functioning code for others, if they need one:

//Init the vBulletin system
require_once('/forum/includes/vb5/autoloader.php' );...
Forum: vB5 Programming Discussions 02 Sep 2019, 17:50
Replies: 2
Views: 75
Posted By doc55
Perfect. Thanks a bunch.

Perfect. Thanks a bunch.
Forum: vB5 Programming Discussions 02 Sep 2019, 17:39
Replies: 12
Views: 227
Posted By doc55
What do you think about the following method to...

What do you think about the following method to logout users?
Is it OK or does it cause any issues or security concerns?

if (isset($_SERVER['HTTP_COOKIE'])) {
$cookies = explode(';',...
Forum: vB5 Programming Discussions 02 Sep 2019, 17:37
Replies: 20
Views: 332
Posted By doc55
Thank you both for your valuable feedback. I'm...

Thank you both for your valuable feedback. I'm not a programmer and I had someone do this for me. That's why I shared it here to make sure we are doing things correctly and improve it.

I really...
Forum: vB5 Programming Discussions 02 Sep 2019, 04:40
Replies: 20
Views: 332
Posted By doc55
I made some progress, but the code is still not...

I made some progress, but the code is still not working correctly.
Here is what I have:
// Check vBulletin user ID to make sure they are logged in and it exists.
$user_id = isset( $_COOKIE[...
Forum: vB5 Programming Discussions 01 Sep 2019, 21:16
Replies: 2
Views: 75
Posted By doc55
Get logged in username

I'm using the following script to get the userid for the logged in user.
require_once('/forum/includes/vb5/autoloader.php' );
vB5_Autoloader::register( '/forum' );
vB5_Frontend_Application::init(...
Forum: vB5 Programming Discussions 29 Aug 2019, 02:43
Replies: 20
Views: 332
Posted By doc55
Custom Profile Update

Hi,
I'm trying to make a custom form for users to update their profile. I have the following code, which I thought it should work.
//init the vBulletin system
require_once(...
Forum: vB5 Programming Discussions 22 Aug 2019, 19:10
Replies: 12
Views: 227
Posted By doc55
Custom Logout Button

I want to create a custom logout button for my vB 5.3.3.
I'm using the following code from the core/vb/user.php file but it is not working. Can someone help me troubleshoot this code, please? ...
Forum: vB5 Programming Discussions 21 Aug 2019, 00:08
Replies: 13
Views: 182
Posted By doc55
Here is another question. If I turn off "Allow...

Here is another question.
If I turn off "Allow New User Registrations" in the Admin CP, this script will not work.
I need to make sure that my users don't register directly in the vBulletin and...
Showing results 1 to 25 of 32

 

New To Site? Need Help?

All times are GMT. The time now is 02:00.

Layout Options | Width: Wide Color: