Print Page | Close Window

ASP Code...

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=789
Printed Date: 30 March 2026 at 2:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Code...
Posted By: fernan82
Subject: ASP Code...
Date Posted: 06 March 2003 at 9:42pm

I'm working on a mod to integrate v7 login with the rest of my site, one of the things i'm trying to do is to show the in users avatar in the main page of my site when they're logged in (instead of the login box), well the problem is the following, the full path to the avatars is not stored on the db so is there a way to convert the avatar to the full path?


example:


If strAvatar begins with "avatars/" then strAvatar = "http://www.mysite.com/forum/" & strAvatar


is there anyway to do that..? can anyone post a sample code please.?


 


Thanks in advance...




Replies:
Posted By: michael
Date Posted: 06 March 2003 at 11:13pm
You could try something like
<%
If left(strAvatar,8) = "avatars/" THEN
    strLink = " http://www.mysite.com/forum/ - http://www.mysite.com/forum/ " & strAvatar
ELSE
    strLink = strAvatar
END IF
%>
Well this is basic and might have to be adjusted but you should get the idea


Posted By: fernan82
Date Posted: 06 March 2003 at 11:35pm
Thankz michael!



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