WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
making #_ATTENDEES a link? (9 posts)

  1. markguitardude
    Member
    Posted 2 years ago #

    How do you make a placeholder a link? For instance, I would like #_ATTENDEES to be a clickable link that shows a users profile.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    there's a template for that and maybe you can try to modify that. \templates\placeholders\attendees.php

    http://wp-events-plugin.com/documentation/using-template-files/

  3. bojanski
    Member
    Posted 2 years ago #

    Is it somehow possible to also display the Attendee name and booking/registration date?! Are there placeholders for this, or could they be created?!

    For example:
    #_ATTENDEES #_ATTENDEES_NAME #_ATTENDEES_REG_DATE

    Thanks
    Bojan

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    the idea is you can modify the #_ATTENDEES placeholder template in /templates/placeholders/attendees.php and copy it to yourtheme/plugins/events-manager/placeholders/

  5. markguitardude
    Member
    Posted 2 years ago #

    Once I modify it, do I delete the original file that is in the plugin folder? So only one copy resides and it is in my theme folder?

  6. markguitardude
    Member
    Posted 2 years ago #

    Is the get_avatar portion of the code part of buddypress or part of this plugin? If it is part of buddypress, is there a way to pass the unique id to the profile page? Maybe I am not thinking about this right. As you can tell I am new to buddypress.

  7. markguitardude
    Member
    Posted 2 years ago #

    For anyone else that is wondering how to do this, I got it to work using this code.

    <li><a href="http://yourwebsite.com/members/<?php echo bp_core_get_userlink($EM_Person->ID, 50);?>"><?php echo get_avatar($EM_Person->ID, 50); ?></a></li>

    replace yourwebsite with your domain

  8. agelonwl
    Member
    Posted 2 years ago #

    thanks for sharing.

  9. bojanski
    Member
    Posted 2 years ago #

    Thanks for sharing. But this one is linking to the User Full Name.
    For example: http://yourwebsite.com/members/Thomas Meyer

    How to achieve the same to link to the "username"?!
    For example: http://yourwebsite.com/members/thomasm

    Thanks
    Bojan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic