Author |
Topic  |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 08:45:10
|
Hi can anyone help me please.
I am adding a user image upload script but i really need to REMOVE the HTTP chkstring function on this, I need it to all function in just the same way, just without the HTTP validation. My user images path will not include the http path.
Everything is working perfectly BUT for this.
Where is the chkstring fuction for this, i just cannot find it anywhere and what should i remove.
Can anyone point me in the right direction please.
I am using ver 3.4.06 with a mysql db |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:05:31
|
Thank u so much for getting back to me so fast Ruirib,
I can see it now and yes I see that the url chkstring is global and not just for the image http, i think i will have to attack this problem a different way.
Oh well 1 idea down, 0 to go right now.
thank you so much again. |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:17:50
|
quote: Originally posted by modifichicci
What script are you trying to use? You can modify it to point to your upload dir.
The script is mine and it is pointing to my upload dir, that is all working fine.
My problem is that my script renames image files to the USER_ID. I can add in the path also but I can not rename an image file with an http:// prefix it would be an illegal file name.
So what is happening is a user logs in and uploads their image, that writes to the DB the dir path and file name. and it renames the image.
all fine so far, BUT when a user enters their profile area and does any update, snitz then sends back the INVALID photo url message because there is no http://.
I think I will have to rewrite my upload componant to rename the image file but just add the http:// to the db.
I just didnt want to have to do that though.
|
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 January 2008 : 10:18:02
|
No check is made as to whether the inputted photourl starts with http:// certainly not by the chkstring function anyway.
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 January 2008 : 10:21:20
|
the INVALID photo error is returned by the following code in pop_profile.asp
if not IsValidURL(trim(Request.Form("Photo_URL"))) then
Err_Msg = Err_Msg & "<li>Photo URL: Invalid URL" & strURLError & "</li>"
end if
You should just be able to remove that check |
 |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:22:50
|
quote: Originally posted by HuwR
No check is made as to whether the inputted photourl starts with http:// certainly not by the chkstring function anyway.
Thank you Huwr for coming in on this too, but when I write a file name to the DB without a full http:// path, when i go into profile edit and do any update I recieve an invalid image URL error, it states "it must begin with a http:// prefix
So if it makes no checks, what is happening? |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 03 January 2008 : 10:23:32
|
see my post just above yours  |
 |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:24:45
|
Huwr ... so sorry .. you beat me on my last post to you .... thats what i needed ... BLESS YOUR KIND HEART .... and thank you all .... |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:26:01
|
damm man ... I just can not beat you .... hehehe .... thanks again ... |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 03 January 2008 : 10:26:41
|
What you need to do is check pop_profile.asp, that's where data input into the user profile is validated. This is the code that does it:
if not IsValidURL(trim(Request.Form("Photo_URL"))) then
Err_Msg = Err_Msg & "<li>Photo URL: Invalid URL" & strURLError & "</li>"
end if
Search for it and change it as you need. IsValidURL is used for other validation stuff, so don't change it, maybe copy it, change the name and whatever else may be needed and use it just to validate the photo URL. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
geno
Starting Member
Bhutan
10 Posts |
Posted - 03 January 2008 : 10:30:12
|
HAHAHAH gentlemen please ... don;t fight over little old me ... problem is solved, all is working as it should .. and once again thank you. ALL OF YOU. hehe |
quote: why did you not post this at Snitz?
The main reasons why this was not posted at Snitz and why I might not post the bugs I find directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree, serve as the original base for my own Forum.
These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
One of my Multi-Language Topic on Snitz has disappeared last night Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
etc...
3 times I changed my password and the day after the same game start.
Since I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum. |
 |
|
|
Topic  |
|