member id tag
Posted: 02 July 2008 05:15 AM   [ Ignore ]  
Summer Student
Total Posts:  8
Joined  06-26-2007

I’m trying to link to the member’s profile who posted a comment. So far what I’ve been using that’s failing is <a href="{path=users}{member_id}">{username}</a>. But it shows every single ID in the URL, no matter who posted, as either 0 or 1. I’ve tried {out_member_id} too and it just shows the same thing.

Please clarify.

Profile
 
 
Posted: 02 July 2008 08:06 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21199
Joined  05-20-2002

It looks like it’s picking up the global- which would be the person viewing the page’s id.  Can non-members post comments?  If so, you’ll need a conditional.  Otherwise- try

<a href="{path=users}{author_id}/">{author}</a>

That work?

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 02 July 2008 10:49 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  31280
Joined  05-14-2004

Just to further add, have you tried what the docs say?

 Signature 
Profile
MSG
 
 
Posted: 02 July 2008 02:33 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  8
Joined  06-26-2007

Ahh.. that did the trick. I appreciate it.

I’m creating a skin for a client which is turning out to be somewhat of a job on EE (redoing the forums and members module from scratch)… it just seems there’s different tags depending where you are, so all this about an integrated streamlined member process across everything is a little bit exaggerated. Not to hate on EE, I think it’s a great project that hopefully 2.0 makes even better, but it could definitely be easier in that regard.

Profile
 
 
Posted: 02 July 2008 03:39 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  13102
Joined  05-15-2004

Glad Lisa squared you away there. Closing for now, if anything else comes up, just start a new thread; thanks.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 61048 Total Logged-in Users: 19
Total Topics: 73849 Total Anonymous Users: 6
Total Replies: 398347 Total Guests: 414
Total Posts: 472196    
Members ( View Memberlist )