Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - pop_up_profile.asp problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

pop_up_profile.asp problem

 Post Reply Post Reply Page  12>
Author
JoeP View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeP Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
JoeP View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeP Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
JoeP View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeP Quote  Post ReplyReply Direct Link To This Post 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>


Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
JoeP View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeP Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
JoeP View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2003
Location: United States
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeP Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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

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.