Matte
New Member
Posts: 92
inherit
264111
0
Oct 21, 2024 20:35:25 GMT -8
Matte
92
April 2021
matte
|
Post by Matte on Jul 29, 2021 4:39:01 GMT -8
Instead of the display name linking to the user profile, I want the entire mini-profile to link to the user profile. I found a way to do this, but navigating to a different page via pagination breaks it (meaning it only works when the page is loaded fresh from a direct link or manual page reload). What I'm asking for is either 1) a way to have my code work alongside pagination or 2) a different way to code the mini-profile linking to the user profile that pagination won't interfere with.
All I did was add "clickable" to the mini-profile's div class and it picked up the link to the profile:
<div class="$[miniprofile_class] clickable">
|
|
Matte
New Member
Posts: 92
inherit
264111
0
Oct 21, 2024 20:35:25 GMT -8
Matte
92
April 2021
matte
|
Post by Matte on Jul 29, 2021 10:05:41 GMT -8
I really need to completely exhaust my ideas before posting here for help. I figured this one out on my own. I'm going to leave this here in case anyone else ever has a similar issue.
Rather than making the div "clickable" and having it adopt the address of the link within, I did the following to the div:
<div class="$[miniprofile_class]" onclick="location.href='$[user.href]';" style="cursor: pointer;">
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 29, 2021 10:05:53 GMT -8
Instead of the display name linking to the user profile, I want the entire mini-profile to link to the user profile. I found a way to do this, but navigating to a different page via pagination breaks it (meaning it only works when the page is loaded fresh from a direct link or manual page reload). What I'm asking for is either 1) a way to have my code work alongside pagination or 2) a different way to code the mini-profile linking to the user profile that pagination won't interfere with. All I did was add "clickable" to the mini-profile's div class and it picked up the link to the profile: <div class="$[miniprofile_class] clickable"> Try changing that line to this instead... <div class="$[miniprofile_class]" style="cursor: pointer;" onclick="location.href='$[user.href]';"> Looks like you beat me to it...
|
|