How do we link to the accessing Member's Profile in Generic Content/Forum/Blog Post?

++ INCOMING DUMB QUESTION OF THE DAY +++

I want to encourage people to complete optional profile fields by mentioning it in a blog post, a discussion thread, generic content, or pretty much anything.

One example we have in a generic content widget goes something like this:

Where do I start?

  1. Make sure your profile is updated to increase the possibility of connection
  2. Second thing you should go
  3. Third thing you can do
  4. PROFIT!

The phrase "your profile" above, I'd like to be able to link to the accessing user's own profile, but I can't seem to find anything in the TinyMCE editor that can do it.  If required, I've got no problem going into the "source" on some of these things if possible (Blog Posts, Generic Content, Wiki Pages, Articles, etc.).

I feel like there's a KISS method I'm just not seeing.

Thanks to everyone for reading my question.

Parents
  •   Not a dumb question and definitely not a straightforward option since the profile URL is dynamic (versus settings: https://community.telligent.com/user/settings). 

    I haven't re-tested this, nor did I write it, but this is some code from an old Unfiltered HTML widget on my site that contained a button encouraging users to visit their profile. It might need some tweaks, but should give a good starting point for you to backward engineer:


    ....
    <div>
    <a class="XXXXX" id="u-profile" href="#" target="_top">
    <h5 id="XXXXX">My Profile</h5>
    <img src="my really cool CTA image.png"/>
    <p class="XXXXX" id="XXXXX">Click here to update your profile</p>
    </a>
    </div>

    </div>
    <script>
    //Begin JS code for setting the link to the profile field
    jQuery=window.parent.jQuery;
    jQuery.telligent.evolution.get({
    url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/user.json',
    data: {'id': jQuery.telligent.evolution.user.accessing.id},
    success: function(response) {
    console.log("response: ",response);
    var profile = document.getElementById("u-profile");
    profile.href = response.User.ProfileUrl;
    }
    });
    //End JS code for setting the link to the profile field
    </script>


    I remember it worked pretty well, we just changed other things on the page where it was used. I hope this helps!

Reply
  •   Not a dumb question and definitely not a straightforward option since the profile URL is dynamic (versus settings: https://community.telligent.com/user/settings). 

    I haven't re-tested this, nor did I write it, but this is some code from an old Unfiltered HTML widget on my site that contained a button encouraging users to visit their profile. It might need some tweaks, but should give a good starting point for you to backward engineer:


    ....
    <div>
    <a class="XXXXX" id="u-profile" href="#" target="_top">
    <h5 id="XXXXX">My Profile</h5>
    <img src="my really cool CTA image.png"/>
    <p class="XXXXX" id="XXXXX">Click here to update your profile</p>
    </a>
    </div>

    </div>
    <script>
    //Begin JS code for setting the link to the profile field
    jQuery=window.parent.jQuery;
    jQuery.telligent.evolution.get({
    url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/user.json',
    data: {'id': jQuery.telligent.evolution.user.accessing.id},
    success: function(response) {
    console.log("response: ",response);
    var profile = document.getElementById("u-profile");
    profile.href = response.User.ProfileUrl;
    }
    });
    //End JS code for setting the link to the profile field
    </script>


    I remember it worked pretty well, we just changed other things on the page where it was used. I hope this helps!

Children