Print Page | Close Window

Swapping out ICQ

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20022
Printed Date: 29 March 2026 at 3:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Swapping out ICQ
Posted By: Ipshwitz
Subject: Swapping out ICQ
Date 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.



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


-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.


Posted By: Ipshwitz
Date Posted: 24 May 2006 at 9:03pm
Nevermind... Got it working.  This can be deleted or ignored

-------------
-+-+-+-+-+-+-+-+-
I am Ip.
'nuff said.


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



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