Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Events calendar - link to "Added by" profile?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

macho
Junior Member

Denmark
150 Posts

Posted - 05 August 2002 :  14:05:35  Show Profile
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  Show Profile
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
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 05 August 2002 :  15:11:49  Show Profile
It worked - tks!
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 05 August 2002 :  15:13:00  Show Profile
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
Go to Top of Page

mikeach
New Member

USA
58 Posts

Posted - 17 August 2002 :  14:28:22  Show Profile  Visit mikeach's Homepage
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
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 17 August 2002 :  19:32:39  Show Profile
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>
Go to Top of Page

mikeach
New Member

USA
58 Posts

Posted - 18 August 2002 :  10:38:11  Show Profile  Visit mikeach's Homepage
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
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 18 August 2002 :  10:49:18  Show Profile
can you post a link to a text version of the events_functions.asp file please.
Go to Top of Page

mikeach
New Member

USA
58 Posts

Posted - 18 August 2002 :  10:53:10  Show Profile  Visit mikeach's Homepage
quote:
Originally posted by Hamlin

can you post a link to a text version of the events_functions.asp file please.



Sure can, Thanks!

http://www.lacinc.org/forums/text/events_functions.txt


Mike
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 18 August 2002 :  11:30:15  Show Profile


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
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 18 August 2002 :  11:38:28  Show Profile
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
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 18 August 2002 :  11:51:55  Show Profile
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>"
Go to Top of Page

mikeach
New Member

USA
58 Posts

Posted - 18 August 2002 :  11:53:48  Show Profile  Visit mikeach's Homepage
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
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 18 August 2002 :  11:58:27  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07