Go Back   vb.org Archive > Search Forums
FAQ Community Calendar Today's Posts Search

Showing results 1 to 25 of 32
Search took 0.00 seconds.
Search: Posts Made By: doc55
Forum: vB5 Programming Discussions 09-26-2019, 04:12 PM
Replies: 12
Views: 1,852
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 09-26-2019, 02:45 PM
Replies: 12
Views: 1,852
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 09-26-2019, 10:25 AM
Replies: 12
Views: 1,852
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 09-25-2019, 11:07 PM
Replies: 12
Views: 1,852
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 09-25-2019, 11:07 PM
Replies: 3
Views: 1,116
Posted By doc55
Just bumping this question again for some help.

Just bumping this question again for some help.
Forum: vB5 Programming Discussions 09-11-2019, 08:43 AM
Replies: 3
Views: 1,116
Posted By doc55
Anyone with any thoughts?

Anyone with any thoughts?
Forum: vB5 Programming Discussions 09-09-2019, 11:49 AM
Replies: 3
Views: 1,116
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 09-05-2019, 11:40 AM
Replies: 20
Views: 1,595
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 09-05-2019, 09:47 AM
Replies: 20
Views: 1,595
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 09-05-2019, 08:43 AM
Replies: 20
Views: 1,595
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 09-05-2019, 12:45 AM
Replies: 12
Views: 1,852
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 09-05-2019, 12:20 AM
Replies: 20
Views: 1,595
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 09-03-2019, 11:52 PM
Replies: 20
Views: 1,595
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 09-03-2019, 10:32 PM
Replies: 20
Views: 1,595
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 09-03-2019, 09:53 PM
Replies: 20
Views: 1,595
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 09-03-2019, 08:14 PM
Replies: 20
Views: 1,595
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 09-03-2019, 12:14 AM
Replies: 12
Views: 1,852
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 09-02-2019, 02:50 PM
Replies: 2
Views: 753
Posted By doc55
Perfect. Thanks a bunch.

Perfect. Thanks a bunch.
Forum: vB5 Programming Discussions 09-02-2019, 02:39 PM
Replies: 12
Views: 1,852
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 09-02-2019, 02:37 PM
Replies: 20
Views: 1,595
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 09-02-2019, 01:40 AM
Replies: 20
Views: 1,595
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 09-01-2019, 06:16 PM
Replies: 2
Views: 753
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 08-28-2019, 11:43 PM
Replies: 20
Views: 1,595
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 08-22-2019, 04:10 PM
Replies: 12
Views: 1,852
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 08-20-2019, 09:08 PM
Replies: 13
Views: 903
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

 
Forum Jump

All times are GMT. The time now is 03: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
  • Page Generation 0.02709 seconds
  • Memory Usage 2,041KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)forumjump
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (2)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)search_results
  • (25)search_results_postbit
  • (1)spacer_close
  • (1)spacer_open
  • (51)threadbit_pagelink 

Phrase Groups Available:
  • global
  • inlinemod
  • prefix
  • search
Included Files:
  • ./search.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_search.php
  • ./includes/functions_databuild.php
  • ./includes/functions_forumlist.php
  • ./includes/functions_misc.php
  • ./includes/functions_forumdisplay.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • search_before_process
  • search_start
  • search_results_start
  • search_results_query_posts
  • search_results_prebits
  • threadbit_process
  • search_results_postbit
  • pagenav_page
  • pagenav_complete
  • forumjump
  • search_complete
  • navbits
  • navbits_complete