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.

Type: Pre-Sale
Status: In Progress
PatrickHenry
View Replies:
Shotster replied on at Permalink Reply
Shotster
Hi, and thanks for your interest in my add-on.

> 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
PatrickHenry replied on at Permalink Reply 1 Attachment
PatrickHenry
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:
<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>
Shotster replied on at Permalink Reply
Shotster
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
PatrickHenry replied on at Permalink Reply 1 Attachment
PatrickHenry
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.
Shotster replied on at Permalink Reply 1 Attachment
Shotster
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
PatrickHenry replied on at Permalink Reply
PatrickHenry
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.

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
ACE InCurl (1.5), Advanced Slider (2.0.1), Advertisement (1.7.7), Air Slider (1.0.2), Are You A Human (1.0.1), Aria (1.0.0), Automatic Email Obfuscator (1.2.3), Backup as a Job (1.0), Bootstrap Image Gallery (3.0.0.5), Breadcrumbs (2.0), Concrete Bricks Game (1.1.1), Contact Directory (1.4), Content+ (1.2), Designer Content (3.1.1), Discussion (1.8.6), Document Library (1.6.4), Domain Mapper (1.1.4), Enhanced User List (1.6.0), Expand / Collapse (1.2.6), Flickr Photos (1.2.1), Floating Header (1.1), Force SSL (2.6), Formidable (2.1), Formigo Social Life (1.0.4), Form Tableless Layout (1.2.1), GCalendar Viewer (1.2.1.7), Get Directions (1.0b), HTML5 Audio Player Basic (1.1.6), Instant JavaScript (1.0.1), Jquery Galleria (2.2.3), Karma (1.1.0), Last Updated (1.4.2), Lerteco User Importer (2.1.1), Long Story Short Parallax (1.3.3), Magic Heading (1.3), Mail Monkey (2.1.2), PDF Viewer (1.1), Picmonkey Image Editor (1.01), Picturefill Image (1.1), Pro Blog (12.4.4), Pro Events (11.1.0), Profile Alerts (1.0.0), Pro Forms (6.0.2), ProForms Extend Example (0.0.1), Real Estate (2.17), reCAPTCHA (0.9.2), Reward (1.4.3), Roundabout Gallery (2.3), Seo Manager (2.5.3), Silence Theme (1.7.3), Simple Facebook Gallery (1.04), SimpleFaq (3.0.0), Site Notifications (1.0.1), Sortable Responsive Gallery (1.8), Tag Cloud (1.0.2), UnoSlider (1.5), Url Director (2.0), User Directories (1.5.0), Where Is My Block? (1.1), YouTube Channel (1.3.17).

# concrete5 Overrides
blocks/monkey_block, blocks/content, blocks/jl_last_updated, blocks/air_slider, blocks/document_library, blocks/unoslider, blocks/proforms_list, blocks/contact_directory, blocks/pro_event_list, blocks/sortable_responsive_gallery, blocks/remo_expand, blocks/proforms_display, blocks/advertisement, blocks/ace_in_curl, blocks/jl_concrete_bricks_game, blocks/youtube, blocks/html, blocks/mylab_galleria, blocks/formidable, blocks/swp_breadcrumbs, blocks/image, blocks/directories, blocks/magic_block, blocks/add_faq, blocks/discussion_topics, blocks/jl_concrete_bricks_scores, blocks/get_directions, blocks/c5_clean_block_templates-master, blocks/discussion_post_list, blocks/problog_list, blocks/form, blocks/g_calendar_viewer, blocks/page_list, blocks/next_previous, blocks/external_form, blocks/tester, blocks/search, blocks/bootstrap_image_gallery, blocks/pmw_enhanced_user_list, blocks/pdf_viewer, blocks/autonav, controllers/members_ellucian_go_app.php, controllers/members.php, elements/discussion_messages_threaded.php, elements/profile, elements/x_header_required_v1.php, elements/header_required.php, elements/files, helpers/x_has_content_check.php, jobs/index_search.php, js/bootstrap-typeahead.js, js/iealert.min.js, js/bootstrap-dropdown.js, js/bootstrap-scrollspy.js, js/homePage_Tabs.js, js/bootstrap-popover.js, js/bootstrap-tooltip.js, js/modernizr.js, js/modernizr.v0.js, js/bootstrap-transition.js, js/bootstrap-collapse.js, js/bootstrap-button.js, js/modernizr.dev.js, js/remo.expand.js, js/browser-detection.js, js/bootstrap-modal.js, js/application.js, js/wow.min.js, js/bootstrap.js, js/jquery.min.js, js/jquery.feedbackBadge.min.js, js/README.md, js/bootstrap.min.js, js/bootstrap-carousel.js, js/bootstrap-tab.js, js/google-code-prettify, js/bootstrap-affix.js, js/animationsPlus.js, js/homePage_Alumni_Tabs.js, js/bootstrap-alert.js, css/css-MediaQueryDeBugger.css, css/browser-detection.css, css/animate.css, css/gcalendar_month.css, css/bootstrap.min.css, css/bootstrap.css, css/ie6.1.1.css, css/addon_support.css, css/discussion.css, css/feedbackBadge.css, css/bootstrap-responsive.css, css/bootstrap-responsive.min.css, css/iealert, css/prettify.css, libraries/change_notifications.php, mail/forgot_password.php, mail/x_on_activation.php, models/attribute, models/mail_do_admina.php, models/login_user.php, models/x_on_activation.php, single_pages/x_members.php, single_pages/profile, single_pages/page_forbidden.php, single_pages/page_not_found.php, single_pages/x_login.v0.php, single_pages/dashboard, single_pages/register.php, single_pages/members.php, single_pages/login.php, single_pages/x_profile_v1, single_pages/x_page_not_found.v.0.php, themes/alumni2014fa, themes/ehc2012, tools/x_silence_theme_check.php, tools/silence_theme_dept_check.php, tools/x_karma_theme_check.php, tools/x_iCal.php, tools/ajax_cal_responsive.php, tools/get_badges_content.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9

# Server API
cgi-fcgi

# PHP Version
5.4.39

# PHP Extensions
apc, bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, suhosin, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 120
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
suhosin.cookie.max_array_depth - 50
suhosin.cookie.max_array_index_length - 64
suhosin.cookie.max_name_length - 64
suhosin.cookie.max_totalname_length - 256
suhosin.cookie.max_value_length - 10000
suhosin.cookie.max_vars - 100
suhosin.executor.include.max_traversal - 0
suhosin.executor.max_depth - 0
suhosin.get.max_array_depth - 50
suhosin.get.max_array_index_length - 64
suhosin.get.max_name_length - 64
suhosin.get.max_totalname_length - 256
suhosin.get.max_value_length - 512
suhosin.get.max_vars - 100
suhosin.log.phpscript.is_safe - Off
suhosin.memory_limit - 0
suhosin.post.max_array_depth - 50
suhosin.post.max_array_index_length - 64
suhosin.post.max_name_length - 64
suhosin.post.max_totalname_length - 256
suhosin.post.max_value_length - 1000000
suhosin.post.max_vars - 1000
suhosin.request.max_array_depth - 50
suhosin.request.max_array_index_length - 64
suhosin.request.max_totalname_length - 256
suhosin.request.max_value_length - 1000000
suhosin.request.max_varname_length - 64
suhosin.request.max_vars - 1000
suhosin.session.max_id_length - 128
suhosin.upload.max_uploads - 25

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.