| Author |
Topic Search Topic Options
|
JoeP
Newbie
Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
|
Post Options
Thanks(0)
Quote Reply
Topic: pop_up_profile.asp problem Posted: 27 November 2003 at 10:51am |
I attempted to make a small mod to this file to include City & Region to enhance the Location data from my members. I have made successful mods on the registration and edit files.
The problem appears when I try to add my new fields to the member profile that pops up when you click on member's name link.
The file works fine right out of the box, but when you edit it and add a line or two of code and update it, the Original line of code on Line 268 causes an error. I reloaded original pop_up_profile.asp from 7.51 and 7.6 Line 268 still the same, but edits cause a problem after mod.???
Any suggestions on why line 268 does this?
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:18am |
ummm
ive succesfully edited the Popup Profile
did you add the fields to the SQL statement?
ie: SELECT bla bla bla, tblAuthor.City, bla bla bla
that could of coursed an error, also did you add the new fields to the database?
maybe you could post the error you see?
and you should back up the original fiels b4 you edit them, then you can replace them with the original
|
 |
JoeP
Newbie
Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:36am |
Thx for the reply. Yes. I have my tblfields all okay and that. I have them working on other pages without a problem.
The error is .."undetermined string lenght" that pops up when you have a missing quotation etc in a response.write statement. It directs me to line 268. I have a feeling the lenght of the line is causing me a problem.
I use FP to edit the asp files, and when there is a problem the javascript code does not turn blue as normal. Right after line 268 the javascript turns to black indicating a script error in the previous ASP.
I guess I will have to start breaking up the lengthy src response staement and narrow it down... Was just hoping someone had resolved this earlier.
|
 |
JoeP
Newbie
Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:40am |
Here is line 268 in my original file:
<img src="<%If strRankCustomStars <> "" Then Response.Write(strRankCustomStars) Else Response.Write(strImagePath & intRankStars & "_star_rating.gif") Response.Write(""" alt=""" & strGroupName & """ align=""absmiddle"">") %>%3C/td%3E%20%20%20%20%20%20%20%20%3C/tr%3E%20%20%20%20% 20%20%20%20%20%3Ctr%3E%20%20%20%20%20%20%20%20%20%3Ctd%20bac kground="<% = strTableProfileBgImage %>" bgcolor="<% =(strTableRowProfileColour) %>" align="right" class="text"><% = strTxtAccountStatus %>:</td>
|
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:44am |
umm wots all the
20%20%20%20%20%20%20%20%3C/tr%3E%20%20%20%20% 20%20%20%20%20%3Ctr%3E%20%20%20%20%20%20%20%20%20%3Ctd%20bac
stuff
i never noticed that b4 
did you put that in there?
i hear FP is a pain, i know dreamweaver is, thats why i stick to notepad
|
 |
JoeP
Newbie
Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:46am |
|
Yes that was a big red flag to me as well, but that is the code that came with the product. Can you post your same line?
|
 |
JoeP
Newbie
Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:53am |
I edited the asp with notepad and all those characters were not there. I cut and pasted and uploaded. Get the same error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/forum/pop_up_profile.asp, line 268
If strRankCustomStars <> "" Then Response.Write(strRankCustomStars) Else Response.Write(strImagePath & intRankStars & "_star_rating.gif") Response.Write(""" alt=""" & strGroupName & """ align=""absmiddle"">") ------------------------------------------------------------ ------------------------------------------------------------ --------------------^
|
Edited by JoeP
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2003 at 11:53am |
umm if you've edited ABOVE this line, then my line wont be the same
but i'll have alook for the same line (as in same text) in mine
line 268 for me
If strRankCustomStars <> "" Then Response.Write(strRankCustomStars) Else Response.Write(strImagePath & intRankStars & "_star_rating.gif") |
it appaires that FrontPage has ever so kindly screwed up your page as the area around this is like this for me:
<tr> <td background="<% = strTableProfileBgImage %>" bgcolor="<% =(strTableRowProfileColour) %>" align="right" class="text"><% = strTxtGroup %>:</td> <td background="<% = strTableProfileBgImage %>" bgcolor="<% =(strTableRowProfileColour) %>" class="text"><% = strGroupName %> <img src="<% If strRankCustomStars <> "" Then Response.Write(strRankCustomStars) Else Response.Write(strImagePath & intRankStars & "_star_rating.gif") Response.Write(""" alt=""" & strGroupName & """ align=""absmiddle"">") %></td> </tr> |
this is from line 265, so you could try and replace it if you want
|
 |