Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Existing member API setting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Existing member API setting

 Post Reply Post Reply Page  12>
Author
ITN View Drop Down
Newbie
Newbie


Joined: 14 August 2024
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ITN Quote  Post ReplyReply Direct Link To This Post Topic: Existing member API setting
    Posted: 14 August 2024 at 3:02pm
Hello everyone,
I've tried this API to integrate a forum to my website, and it looks like it's working.
I need one modification though.
I read in the istructions that the API works with:

The ASP Session Variables need to contain the following:-
    • Session("USER") - This needs to hold the member's name as it will be shown in Web Wiz Forums
    • Session("PASSWORD") - This is the member's password, it must be in plain text
    • Session("EMAIL") - This is the member's email address
My system works differently though. Username in my website is only used for login, while the member's name shown on the site (and it should be in the forum as well) is a different database field called HANDLENAME.
Users can choose the name they are known by in the site, which can be different than the username.
Is there a way I can include this field as well, and instruct the forum to show that as users handle?
Thanks for help everyone.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2024 at 3:27pm
It would require too many changes to have a second username in Web Wiz Forums.

The simples way would be for you to use HANDLENAME for Session("USER"), the forum username will then use HANDLENAME for the username within Web Wiz Forums.
Back to Top
ITN View Drop Down
Newbie
Newbie


Joined: 14 August 2024
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ITN Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2024 at 3:35pm
Makes sense, I'll try that thanks!!

Back to Top
ITN View Drop Down
Newbie
Newbie


Joined: 14 August 2024
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ITN Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2024 at 8:36am
Thanks a lot Bruce, that worked and the user with the right handle has been created.
After the first time though, if I visit the forum again it says:

Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the Forum Administrator.

Support Error Code:- err_mySQL_existingMemberAPI()_update_pass
File Name:- functions_member_API.asp
Forum Version:- 12.07

Error details:-
Microsoft OLE DB Provider for ODBC Drivers
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

and if I refresh the page, the forum does load but without me being logged in.
Any idea what this could be?

Another issue I have is that the apps needed to upload and resize pictures are not available at my hosting plan, but that is an issue that doesn't apply to the forum... Cry
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2024 at 9:21am
This looks to be a database error when updating the password that you are passing across. 

I see you are using MySQL which doesn't always work well with ASP. Are you able to use SQL Server instead?
Back to Top
ITN View Drop Down
Newbie
Newbie


Joined: 14 August 2024
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ITN Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2024 at 3:43pm
Actually I guess I should rewrite my whole website plus the VB project so that would be huge to do... but that's funny as I never had such problem with mysql and my asp pages.
Could it be that it's something to do with the fact that in the same page user gets different values?
Or has it to do with database writing?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 August 2024 at 3:50pm
Web Wiz Forums can use a SQL Server database while your website uses a MySQL database.

As you are using the existing member API, your website and the forum don't need to be using the same database type.

MySQL doesn't always work well with ASP you may have better luck choosing a different MyODBC driver if you want to stick with MySQL, but Web Wiz Forums runs much better with SQL Server.
Back to Top
ITN View Drop Down
Newbie
Newbie


Joined: 14 August 2024
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote ITN Quote  Post ReplyReply Direct Link To This Post Posted: 23 August 2024 at 9:49am
Originally posted by WebWiz-Bruce WebWiz-Bruce wrote:

Web Wiz Forums can use a SQL Server database while your website uses a MySQL database.

As you are using the existing member API, your website and the forum don't need to be using the same database type.

MySQL doesn't always work well with ASP you may have better luck choosing a different MyODBC driver if you want to stick with MySQL, but Web Wiz Forums runs much better with SQL Server.

Thank you Bruce,
I did as you suggested, but it gives the same error:

Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the Forum Administrator.

Support Error Code:- err_SQLServer_existingMemberAPI()_update_pass
File Name:- functions_member_API.asp
Forum Version:- 12.07

Error details:-
Microsoft OLE DB Provider for SQL Server
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

I'm trying to troubleshoot, but keep thinking it might have to do with the fact that my page has the field username as user, and also the other field as user for webwiz.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.