PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 13th, 2008, 10:10 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
Illegal Username Characters?

I use vBulletin integration and I'm wondering if there are any limitations on the type of characters that can be used in usernames? I currently have users with '&' in their names, but for some reason they cannot login, despite typing the right passwords. I have confirmed this on my own.

Is this a limitation that I'm unaware of or a bug?
zivester is offline   Reply With Quote
Old August 13th, 2008, 10:20 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Do you mean they cant login to vbulletin or cant login to photopost? If your using vb integration the login prompt is vb's

Please explain your issue a little more indepth.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2008, 10:27 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
I use the vbulletin registration, which works, but I use the photopost login page for logging in. authenticate() is returning false for valid logins (with &)
zivester is offline   Reply With Quote
Old August 13th, 2008, 10:29 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
If I log in directly to the forums, it works fine.
zivester is offline   Reply With Quote
Old August 13th, 2008, 10:51 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Interesting so how is the username stored in your database?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2008, 11:05 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
hmmm... it's stored as 'a&a' (for a&a)

this might be going somewhere...
zivester is offline   Reply With Quote
Old August 13th, 2008, 11:08 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
Okay try this in vb3.php add the line in bold around line 22

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2008, 01:34 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
[code]
SELECT userid,username,email,password,usergroupid,timezoneoffset,salt,lastactivity,membergroupids FROM vb_user WHERE username='a&a'
[code]

in get_userinfo, the above line is executed and returns no results, but if i do a straight query on the database with that exact code, then it selects fine..
zivester is offline   Reply With Quote
Old August 13th, 2008, 02:21 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
What happens when you use this code?


please email us ftp url login and photopost url login and if possible database logins to support at photopost dot com
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2008, 02:32 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
I think that code you gave me fixed it... I was double encoding the authuser.. so i took out the encoding in typecast (its simply a trim) and I added the htmlspecialchars to get_userinfo...

That seemed to have fixed the problem.
zivester is offline   Reply With Quote
Old August 13th, 2008, 02:34 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
ah okay no problem figured it would work thats why I asked for info as I would not understand why it would not work based on what you have told me
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old August 13th, 2008, 02:42 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: May 2008
Posts: 34
yes, its odd to me why in the first place that vbulletin stores users with special chars as the html.... thats how it seems to be right? (but at the same time it doesn't encode passwords before they are md5'd and compared.)

other then that, thanks for the help at squashing the bug! boy that was annoying...
zivester is offline   Reply With Quote
Old August 13th, 2008, 03:37 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,069
How vb stores the username is up to them really I have seen it both ways in software.

Not a problem glad to assist
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
illegal upload wfcmod Photopost Pro Bug Reports 3 September 15th, 2007 10:13 AM
Illegal offset type warning message CEDillard Photopost Pro Installation & Upgrades 6 March 1st, 2005 02:24 PM
Reportin illegal distribution Geiri General Discussion 1 February 15th, 2005 12:52 PM
Illegal characters in file names rbl Bugs From 1.0.0 8 January 4th, 2005 06:46 PM
Warning: Illegal offset type spaulding Photopost Pro Installation & Upgrades 1 December 22nd, 2004 08:10 AM


All times are GMT -5. The time now is 07:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0