Print Page | Close Window

pop_up_profile.asp problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7651
Printed Date: 06 April 2026 at 1:19pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: pop_up_profile.asp problem
Posted By: JoeP
Subject: pop_up_profile.asp problem
Date 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?



-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?



Replies:
Posted By: Scotty32
Date 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



Posted By: JoeP
Date 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.



-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?


Posted By: JoeP
Date 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>




-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?


Posted By: Scotty32
Date 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



Posted By: JoeP
Date 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?

-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?


Posted By: JoeP
Date 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"">")
------------------------------------------------------------ ------------------------------------------------------------ --------------------^



-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?


Posted By: Scotty32
Date 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



Posted By: Scotty32
Date Posted: 27 November 2003 at 11:57am

didnt see ya last post when i posted

that's becose your missing the "end if" where the arrow points it should look like this

If strRankCustomStars <> "" Then Response.Write(strRankCustomStars) Else Response.Write(strImagePath & intRankStars & "_star_rating.gif") end if   

Response.Write(""" alt=""" & strGroupName & """  align=""absmiddle"">")

also the next "response.write" should be on the next line, like i did above

this will fix the problem,...... i hope



Posted By: JoeP
Date Posted: 27 November 2003 at 12:52pm

Thank you Scotty_32.  Now I can take a break and have some turkey!

Well it certainly played a part of the problem!  The original file code layout does not agree with FP and when you mod with FP and save it causes all the little char to appear representing spaces etc.  The lenth of the line causes some problems to.

Following your tip I cut the line into pieces and broke out the If statement to include an End If.

I also Did a response.write on the <SRC part.  It finally took the changes.  In case anyone else has the line 268 problem using FP here is the solution that worked for me:

<tr>
<td background="<% = strTableProfileBgImage %>" bgcolor="<% =(strTableRowProfileColour) %>" align="right" class="text">
<% = strTxtGroup %>:
</td>
<td background="<% = strTableProfileBgImage %>" bgcolor="<% =(strTableRowProfileColour) %>" class="text">
<% = strGroupName %>

<%
Response.write("<img src=""")
If strRankCustomStars <> "" Then
 Response.Write(strRankCustomStars)
Else

Response.Write(strImagePath & intRankStars & "_star_rating.gif")
End If

Response.Write(""" alt=""" & strGroupName & """ align=""absmiddle"">")
%>
</td>
</tr>



-------------
Quiz Fans - Do You Know Your http://www.houseofproctor.com/Arcades/Quiz/Pops/Dog/QA_Dog_Pop.asp - Dogs? / http://www.houseofproctor.com/Arcades/Quiz/Pops/Cat/QA_Cat_Pop.asp - Cats?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net