Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Swapping out ICQ
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Swapping out ICQ

 Post Reply Post Reply
Author
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post Topic: Swapping out ICQ
    Posted: 24 May 2006 at 8:39pm
I'm trying to swap out the ICQ option with a MySpace URL.
I left the strICQNum as the variable to save having to change more than I have to (yes, I'm lazy).  Below are the pages and edits (original in red, new in blue) I've done but it's not working.

Register.asp
<input type="text" name="ICQ" id="ICQ" size="15" maxlength="15" value="<% = strICQNum %>" />

<input type="text" name="ICQ" id="ICQ" size="30" maxlength="50" value="<% = strICQNum %>" />

Member_profile.asp
<% If strTxtICQNumber = "" OR IsNull(strTxtICQNumber) Then Response.Write("Not Given") Else Response.Write(strTxtICQNumber) %>

<% If strICQNum = "" OR IsNull(strICQNum) Then Response.Write(strTxtNotGiven) Else Response.Write("<a href=""" & formatInput(strICQNum) & """ target=""_blank""><img src=""" & strImagePath & "myspace_icon.gif""  border=""0"" align=""absmiddle"" alt=""" & strICQNum & """ /></a>") %>
(I did this hoping that the code for the Homepage would work for linking to a Myspace URL)

language_file_inc.asp
Const strTxtICQNumber = "ICQ Number"

Const strTxtICQNumber = "MySpace URL"

database
Table: Author -> Design View -> Changed ICQ Field size to 55

-----
Here's the problem.  I go into my profile, put in a myspace url and submit.  It accepts my changes, but when I go to the Member Profile Page, I see the image that should take me to the URL, however it just takes me to http://www.domain.com/0 (it just add's the 0).

If I go back in to edit my profile, the Myspace URL is not in there anymore.

Where did I go wrong or what am I missing?
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.
Back to Top
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 8:58pm
I found part of the problem.

Register.asp
If isNumeric(Request.Form("ICQ")) Then strICQNum = Trim(Mid(Request.Form("ICQ"), 1, 15))

strICQNum = Trim(Mid(Request.Form("ICQ"), 1, 60))

-----
However, the link on the profile page still points to www.domain.com/0
But, the URL is saved if I go back into the profile


Edited by Ipshwitz - 24 May 2006 at 8:58pm
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.
Back to Top
Ipshwitz View Drop Down
Groupie
Groupie
Avatar

Joined: 23 July 2002
Location: United States
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ipshwitz Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 9:03pm
Nevermind... Got it working.  This can be deleted or ignored
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.
Back to Top
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Post Options Post Options   Thanks (0) Thanks(0)   Quote MortiOli Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 10:26pm

Hi Ipshwitz,

Fancy releasing this as a MOD?
 
I'd love to use this on my forum, so the fix that you found would be great.
 
Cheers
Back to Top
 Post Reply Post Reply

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.