Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
kherezae Posted December 18, 2018 Posted December 18, 2018 I'd like to add a link to the display of a profile field on topic view, but I'm having trouble figuring out how to make such a link work. The Display format subtext says you can use {member_id} to retrieve the individual member's ID, but I'm not sure what that would even be used for since it doesn't work in with the friendly links system. I tried this: Where I just copied the link to my own profile, but replaced the part that specifies me with {member_id}, but it doesn't work without the -Display Name. I don't know how to generate that, though. Can anyone advise me? Thank you!
opentype Posted December 18, 2018 Posted December 18, 2018 Try {member_id}_x The ID in friendly URLs works without the actual “friendly URL” part, but it needs the underscore and something behind it. It doesn’t matter though what’s behind the underscore. As an example, inspect and try this URL: https://invisioncommunity.com/profile/185894-something/?tab=field_core_pfield_23
kherezae Posted December 18, 2018 Author Posted December 18, 2018 1 hour ago, opentype said: Try {member_id}_x The ID in friendly URLs works without the actual “friendly URL” part, but it needs the underscore and something behind it. It doesn’t matter though what’s behind the underscore. As an example, inspect and try this URL: https://invisioncommunity.com/profile/185894-something/?tab=field_core_pfield_23 Thanks a ton! I got it working based on your advice. That's pretty neat actually ^__^
Recommended Posts
Archived
This topic is now archived and is closed to further replies.