Link to profile not being set
Permalink Browser Info Environment
Hello,
I love this add-on, but just noticed one crucial issue. The link it should produce to the member's profile page isn't being set.
I'm using a custom template, and noticed the tools/eul_ajax.php file and thought that might need to be included with the custom template. So I tried copying it to my custom template file but still no dice.
What do I need to do so it's able to get the link. Everything else works great. It's just not getting the actual link needed to make the link work.
Thanks in advance!
Pat.
I love this add-on, but just noticed one crucial issue. The link it should produce to the member's profile page isn't being set.
I'm using a custom template, and noticed the tools/eul_ajax.php file and thought that might need to be included with the custom template. So I tried copying it to my custom template file but still no dice.
What do I need to do so it's able to get the link. Everything else works great. It's just not getting the actual link needed to make the link work.
Thanks in advance!
Pat.
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Thanks for the quick reply!
Got both those items set.
Attached is a screen shot of my custom template's view.php code.
Not sure why it doesn't pull the URL.
Here's the DOM output too:
Got both those items set.
Attached is a screen shot of my custom template's view.php code.
Not sure why it doesn't pull the URL.
Here's the DOM output too:
<div id="custom-user-list"> <div id="pmw-eul-UserListTemplate_20548" style="display: none;" class="ehc-adv-userlist"> <div class="pmw-eul-UserRepeat"> <div class="pmw-eul-UserAttributeRepeat" style="display: none;"> <a class="pmw-eul-UserProfileLink"><span class="pmw-eul-UserAttributeValue"></span></a> </div><!--/pmw-eul-UserAttributeRepeat--> </div><!--/pmw-eul-UserRepeat--> </div><div id="pmw-eul-UserListContainer_20548" class="pmw-eul-UserListContainer ehc-adv-userlist" style="opacity: 1;"><div class="ehc-adv-userlist"> <div class="pmw-eul-UserRepeat odd first" id="user_684_20548"> <div class="pmw-eul-UserAttributeRepeat avatar" style=""> <a class="pmw-eul-UserProfileLink"><span class="pmw-eul-UserAttributeValue"><img class="u-avatar" src="/files/avatars/684.jpg?1426092232" width="174" height="228" alt="kbremner"></span></a> </div><div class="pmw-eul-UserAttributeRepeat first_name" style=""> <a class="pmw-eul-UserProfileLink"><span class="pmw-eul-UserAttributeValue">Kelly</span></a> </div><div class="pmw-eul-UserAttributeRepeat last_name" style=""> <a class="pmw-eul-UserProfileLink"><span class="pmw-eul-UserAttributeValue">Bremner</span></a>
Viewing 15 lines of 133 lines. View entire code block.
What is it that you want to be the clickable link - every attribute value or just one? Or do you want some separate text that says "View Profile" or some such?
Also, can you attach the actual template so that I can try it?
Thanks,
-Steve
Also, can you attach the actual template so that I can try it?
Thanks,
-Steve
Well, I think just having the name & avatar as clickable links would be ideal in this case.
However, on a previous help task I was looking to make the whole thing a link—more of a mobile list view with minimal info. In that, you'd told me how to wrap it all in a link, which is why everything is like it is here, I just built upon that custom template. I tried to find the link to that previous support post but was told it was locked/legacy now.
In all honesty, this one I don't think I even need to worry about a link come to think of it—as I'm displaying all the profile page info anyway, what's the point, right? Doah! Problem solved there.
But still a problem on the original I was working on I guess, the more mobile simplified list view. I've attached it as a zipped custom template. It's the same code since the add-on lets me choose what info to show (nice work :)
Here, the entire individual profiles should be a link that when clicked goes to their full profile page. It would be used when showing pic, name, title. A "View Profile" would work as if the whole thing couldn't be a link. My original intention was to wrap it all in a single link and display link as a block level element to achieve this. However, the add-on instead makes tons of small, individual links on all the elements.
Hope that makes sense.
Thanks again!
Pat.
However, on a previous help task I was looking to make the whole thing a link—more of a mobile list view with minimal info. In that, you'd told me how to wrap it all in a link, which is why everything is like it is here, I just built upon that custom template. I tried to find the link to that previous support post but was told it was locked/legacy now.
In all honesty, this one I don't think I even need to worry about a link come to think of it—as I'm displaying all the profile page info anyway, what's the point, right? Doah! Problem solved there.
But still a problem on the original I was working on I guess, the more mobile simplified list view. I've attached it as a zipped custom template. It's the same code since the add-on lets me choose what info to show (nice work :)
Here, the entire individual profiles should be a link that when clicked goes to their full profile page. It would be used when showing pic, name, title. A "View Profile" would work as if the whole thing couldn't be a link. My original intention was to wrap it all in a single link and display link as a block level element to achieve this. However, the add-on instead makes tons of small, individual links on all the elements.
Hope that makes sense.
Thanks again!
Pat.
Please see attached 2 templates. One makes just the user name and avatar clickable, and the other wraps all attributes in a single anchor tag so that clicking anywhere inside the user repeat block will take you to the profile. You had the pmw-eul-UserProfileLink element inside the attribute repeat element, which is not allowed.
Please see the comments inside the template files as well.
-Steve
Please see the comments inside the template files as well.
-Steve
Thanks for this Steve, taken me forever to get back. Your templates totally clarified it for me.
However, it also made me realize there's no need to send them to the profile page in my use case, as I'm using this add-on to show all the profile info I need already.
What I really need is for the email link to work, but I'm not sure how I'd grab that specific variable to setup the link? Is it possible to just get the email? If code's already available in another template just let me know, I can figure it out from that.
Thanks!
Pat.
However, it also made me realize there's no need to send them to the profile page in my use case, as I'm using this add-on to show all the profile info I need already.
What I really need is for the email link to work, but I'm not sure how I'd grab that specific variable to setup the link? Is it possible to just get the email? If code's already available in another template just let me know, I can figure it out from that.
Thanks!
Pat.
> The link it should produce to the member's profile page isn't being set.
Two things to check: 1) Public profiles must be enabled in the dashboard, so check that first. 2) The element in your template that you wish to be the link must have the class pmw-eul-UserProfileLink.
> I'm using a custom template, and noticed the tools/eul_ajax.php file and
> thought that might need to be included with the custom template.
Nope, there should be no need to copy that file. Let me know if the above suggestions work.
Regards,
-Steve