Author |
Topic |
|
macho
Junior Member
Denmark
150 Posts |
Posted - 05 August 2002 : 14:05:35
|
In the events calendar looking in "Week view", just after the event title, you can see who added each event (Added by Someone). My question now is: How do I create a link to that Someone's profile page (pop_profile.asp)?
In my events_functions.asp my line where it says Added by someone looks like this:
" <Font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """><i> Added by " & lcase(rs(strDBNTSQLNAME)) & "</i>" & "</Font>" & vbNewLine & _
any suggestions?
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 05 August 2002 : 14:58:18
|
Try
"<a href=""pop_profile.asp?mode=display&id=" & getMemberID(rs(strDBNTSQLNAME)) & """><Font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """><i> Added by " & lcase(rs(strDBNTSQLNAME)) & "</i>" & "</Font></a>" & vbNewLine & _
I think that will do it...
no matter how fast light travels it finds the darkness has always got there first, and is waiting for it. installation guide | mods
Edited by - Hamlin on 05 August 2002 15:00:05 |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 05 August 2002 : 15:11:49
|
It worked - tks! |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 05 August 2002 : 15:13:00
|
quote:
It worked - tks!
Good
no matter how fast light travels it finds the darkness has always got there first, and is waiting for it. installation guide | mods |
|
|
mikeach
New Member
USA
58 Posts |
Posted - 17 August 2002 : 14:28:22
|
Hi There,
I'm trying to make this work on my copy of 3.3.05 and I don't seem to have it quite right. It makes the "Added by" a link, but the link goes back to the forum homepage.
My line looked a little different:
<i><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></i><br><br>
I changed it to this:
<i><a href=""pop_profile.asp?mode=display&id=" & getMemberID(rs(strDBNTSQLNAME)) & """><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></a></i><br><br>
Any ideas?
Thanks,
Mike |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 17 August 2002 : 19:32:39
|
Try this and see if it works:
<i><a href="pop_profile.asp?mode=display&id="<%=getMemberID(rs(strDBNTSQLNAME))%>""><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></a></i><br><br>
|
|
|
mikeach
New Member
USA
58 Posts |
Posted - 18 August 2002 : 10:38:11
|
quote: Try
"<a href=""pop_profile.asp?mode=display&id=" & getMemberID(rs(strDBNTSQLNAME)) & """><Font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """><i> Added by " & lcase(rs(strDBNTSQLNAME)) & "</i>" & "</Font></a>" & vbNewLine & _
I think that will do it...
Almost! It displays the users name, but when you click on it instead of a popup it goes to an error page:
There Was A Problem!
Invalid Member ID!
When I hover over the link it shows:
http://www.lacinc.org/forums/pop_profile.asp?mode=display&id=
No ID number is used.
Thanks for your help,
Mike |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 18 August 2002 : 10:49:18
|
can you post a link to a text version of the events_functions.asp file please. |
|
|
mikeach
New Member
USA
58 Posts |
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 18 August 2002 : 11:30:15
|
Ok after looking at it for a while I finally saw some extra " this version worked fine for me
<i><a href="pop_profile.asp?mode=display&id=<%=getMemberIDrs(strDBNTSQLNAME))%>"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></a></i><br><br>
|
Edited by - Hamlin on 18 August 2002 11:31:20 |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 18 August 2002 : 11:38:28
|
Hamlin,
aren't you missing a parenthese; I think this will work:
<i><a href="pop_profile.asp?mode=display&id=<%= getMemberID(rs(strDBNTSQLNAME)) %>"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></a></i><br><br>
But you where right, there where some extra "'s |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 18 August 2002 : 11:51:55
|
In your line 823 of events_functions.asp you could also change this
Response.Write " - Added by " & lcase(rs(strDBNTSQLNAME))
to this:
Response.Write " - Added by " & "<a href=""pop_profile.asp?mode=display&id=" & getMemberID(rs(strDBNTSQLNAME)) & """><Font face=""" & strDefaultFontFace & """ color=""" & strCategoryFontColor & """ size=""" & strDefaultFontSize & """> " & lcase(rs(strDBNTSQLNAME)) & "</Font></a>"
|
|
|
mikeach
New Member
USA
58 Posts |
Posted - 18 August 2002 : 11:53:48
|
Thank you both!
I finally got it working. I really love the way this forum helps each other out, wish I knew more so I could return the favor
Thanks again,
Mike |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 18 August 2002 : 11:58:27
|
quote: Originally posted by macho
Hamlin,
aren't you missing a parenthese; I think this will work:
<i><a href="pop_profile.asp?mode=display&id=<%= getMemberID(rs(strDBNTSQLNAME)) %>"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Added by <%=lcase(rs(strDBNTSQLNAME))%></font></a></i><br><br>
But you where right, there where some extra "'s
yeah I was thats what I get for removing parts of the code in the post, the original unedited post worked but I removed the lacse bit as it was not needed |
|
|
|
Topic |
|