Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Possible to make Contact IDs on profile clickable? Also, add custom identities to profile view.
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 2, 2017 - 2:34 am

This is a two part questions, I am attaching a screenshot for illustration:

Capture.PNGImage Enlarger

 

1. We're running an ecourse site teaching blogging and social media and students are wondering why none of the ID's are clickable. I am curious too since having them listed as plain text is a bit odd. Would it be possible to change that? I don't mind a bit of hacking if provided with the code.

2. I created two additional identities, Instagram and Pinterest, both of which are used by all our students (I think they should be standard identities in S:P). How do I add them to the profile at the position noted (or right above email)? I know they show up under a user's name when they comment in the forum but that's less useful than having them on the actual profile. Again, happy to add any coding necessary.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 2, 2017 - 9:45 pm

#2 please read our codex: https://simple-press.com/docum.....le-fields/ it gives you some instruction on how to add a display template function in your sp theme profile (popup or page) page view...

#1 kind of a wimpy answer, but they are not links because no one has ever asked or requested such a thing...  so they have been text display for the last 11 years or so eek  but they are just IDs... but of course could be linked to a site...

if you are comfortable with standard wp filters, you could link them yourself...  take twitter, for example...  hook into 'sph_ProfileShowTwitter'...  then change the p block display to be an html tag...  you would of course have to know the base url to use...  

if you are comfortable with filters, we can provide some additional info...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 3, 2017 - 2:54 am

#2, that codex is for the Custom profile Fields plugin. However, Pinterest and Instagram were created using Add User Identities. I did give it a try though and it didn't work. I can add my custom profile field without a hitch, but it doesn't work if I use the identities as parameters, unless I am missing something?

#1 any additional info would be great, I am sure I can figure it out.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2017 - 9:31 am

ah, sorry, missed the part about it being an additional identity...   surprisingly, there is no simple template tag way to put it in the profile...  perhaps more surprisingly, is that this has not come up before or been requested...

If you tag a look at the function sp_do_PostIndexIdentityDisplay() with the plugin, I think you can make out how to grab the identity info... and then display it... biggest issue might be making it display properly on the profile...  in that case, you could look at the custom profile display tag for profiles on the formatting...

I have to work late tonight and @yellow-swordfish has been under the weather... but this weekend, I should be able to whip up a new function for you to display them in a profile...  perhaps can even add it to the plugin and push out since we already have an update to do for the php 7 issue...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 3, 2017 - 9:57 am

The new function option sounds great! I'll just wait a bit then for an update to the plugin. Thank you so much.

I do have one more question but will open a separate thread for that.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 3, 2017 - 10:43 pm

hopefully this weekend...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 9, 2017 - 1:01 pm

I noticed the identities plugin was updated last weekend. Does that include new function to display them in a profile by any chance?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2017 - 8:52 pm

yes, it does...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Aug 10, 2017 - 3:45 am

I see there is a sp_IdentitiesProfileDisplay now, is that the one? I added that to the profile, but now it looks like this:

Capture-3.PNGImage Enlarger

 

From your previous comments I conclude there is no simple way to show clickable icons for the built-in identities?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 10, 2017 - 12:18 pm

Nor ignoring you and it does look like you are trying the correct, new tag. But I am going to pass this on to @mr-papa to ensure you get the right answers.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600