• Resolved dh333

    (@dh333)


    Hi everyone,

    I’m using AMR users plus and s2 Member to create a directory. Currently, clicking on the “display name” of the search results takes me to a list of posts written by that particular user. I’d like for this link to take the user to a detailed member profile page instead.

    As I understand it, having AMR users plus allows you to connect the search results to a detailed members page fairly easily. I’ve checked out the article below but could use some clarification on exactly what “Lists 1 and 2” are referencing.
    https://wpusersplugin.com/2860/adding-a-link-to-user-list-field/#detailpage2

    Any assistance on the most practical way to achieve this would be greatly appreciated.

    Thanks!

    https://www.ads-software.com/plugins/amr-users/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author anmari

    (@anmari)

    Thread Starter dh333

    (@dh333)

    Hi Anmari,

    Thanks for the reply and the useful links. This is an excellent plugin ?? I’ve made some progress in that I have two default lists : Directory and Details. The display name from the directory was set to “detail page using list 2”. Clicking on the display name now successfully takes me to the Detailed List which contains additional information.

    The “detailed member” page currently has the user information in rows (one on top of the other) while the headings are displayed side by side across the top. In other words, the user info and headings are disconnected from each other. I know that styles can be edited with some simple CSS. But how would you recommend removing the headings from the top and repositioning them so they are corresponding to the right information. Any guidance on the best and most effective way to make changes to this page would be a greatly appreciated.

    Much thanks for the help

    Thread Starter dh333

    (@dh333)

    Quick Update: I see you can just remove “headings” option for the Detailed list. Any thoughts on the best way to display the headings next to the appropriate user information would be great.

    Thanks again

    Plugin Author anmari

    (@anmari)

    if you have headings switch on in the settings, then you are probably better off setting that list to use ‘table’ html for the public list html type. Headings look weird in non table html.

    https://wpusersplugin.com/3299/amr-users-css-html-and-styling/

    alternatively you could add lables using the ‘before’ column. These will appear on every instance of the field if there is a value in the field. Note whatever is in the ‘before’ is included in the formatting. ie it becomes part of the value – doesn’t work so well for things like emails

    or write own formatting routines
    https://wpusersplugin.com/2823/formatting-and-pluggable-functions/

    Thread Starter dh333

    (@dh333)

    Hi Anmari,

    Thanks for the helpful tips. I took your suggestion concerning the ‘before’ labels and they work well. At the same time, I’d like to be able to group certain pieces of information together within a “div” tag. I attempted to add the necessary div tags in the “before” and “after” columns but unfortunately, the code isn’t being inserted as I’d want.

    As a quick example, I have 3 fields that I’d like to treat as a block of text with a certain background color. When I add the html to the “before” or “after” areas, the code is couched within span tags where as I’d like them to be outside the spans.

    This is the type of formatting and customizing I’m looking to achieve without having to modify any core files. Do you have any recommendations making these types of modifications?

    One more note: While tables look great, they don’t appear to be mobile responsive. I know that setting the display to simple and then applying css formatting would do the trick. But before going down that route, I wanted to know whether you had any more straight-forward suggestions.

    Thanks in advance for the help ??

    Plugin Author anmari

    (@anmari)

    Hi,
    if you want that level of control, you are probably better off writing your own little ‘hardcoded’ query and listing shortcode or template.

    Div tags with before/after in different fields – dangerous – as the fields don’t display if no data so one might end up with broken html. alsoas you have noted, may not play nice with other html and classes etc.

    Later (next year) there may be some offerings that would help with that level of specific customisation.
    The plugin as it stands now is complex enough and trying to offer a ‘settings’ type approach with that level of flexibility is not practical. Tends to drive the support requests up.

    That said there is an interim solution that I was looking at for someone else which may suit you (or you could code your own pluggable function). I have put a price on it as I do have to recover my time somewhere.
    https://wpusersplugin.com/downloads/amr-display-line/

    Thread Starter dh333

    (@dh333)

    This is all very helpful information. Thank you.

    I may take the route of writing a hard coded query. From what it looks like, the user detail page and directory page use the same template. What’s the best way to set the user detail page to a different template?

    Thanks in advance!

    Plugin Author anmari

    (@anmari)

    Thread Starter dh333

    (@dh333)

    Hi Anmari,
    Hope you had a Happy Holiday and thanks for the link. It sounds like customization is possible but more back-end coding is needed.

    For now, I’ll opt for the more basic customizations. As you’re probably aware, there are
    tags that separate each of the directory filters. I’d like to remove these break tags so I can properly float each filter heading. Would you be able to provide any guidance for making these changes in a way so they aren’t overwritten when the plugin is updated?

    Thanks as always for the help

    Plugin Author anmari

    (@anmari)

    Hi Don, re tags – I replied to your email query on this on 19th December – check your spam folders if you did not see this.

    Thread Starter dh333

    (@dh333)

    Hi Anmari,

    Got it ?? Looks like I missed your message in my inbox.

    All the best!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Linking to Detailed Member Info (s2 member)’ is closed to new replies.