Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Help with Identities Plugin
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2015 - 5:15 pm

Hi there

I installed identity plugin, added code lines in sp_topicView.php but I don't like the results.

I have the icon displayed, and when I click on It, it brings me to a 404 error.

Example.

I created a Steam identity. My Steam identity is something like User87

When I click on the steam icon in the topic view, it brings me to http://mywebsite/User87 -> it returns a 404

I would like to make NOT clickable these "added" identities, displayng the information only on hover.

Example: on topic view, I just hover of steam icon and it shows me "user87".

Is there any way I can do this?

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 22, 2015 - 8:16 pm

why does it generate a 404?  did you not enter the full url to your Steam profile page?  and not just the last part or identity?

afraid the identity plugin does not allow just an image but is designed for a URL...

is it really the URL you dont want or just that it is  correct?

Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2015 - 3:50 am

Uhm this is a little odd because the identity tip says "please do not insert URL but just account names".

Thanks anyway 🙂 Maybe I should use custom profile field for this

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 23, 2015 - 4:12 am

The tip about not entering a url is for the end user filling in the identity field. If you look at the popup help on the actual add identities plugin admin screen then it is quote explicit that a base url is needed and how it works.

If there is no website url to be used here (like FaceBook for example) then yes - you should use the Custom Profile Fields plugin instead.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2015 - 4:45 am

Thanks for the answer.

I created a new custom profile field, and it shows correctly on topic view.

I have just a problem: the custom field is in a <p> tag, so it's not properly aligned to other informations.

custom.jpgImage Enlarger

this is the code i used in the topicview.php

sp_PostIndexUserPosts('tagClass=spPostUserPosts spCenter', __sp('Forum Posts: %COUNT%'));
                                    if (function_exists('sp_CustomProfileFieldsDisplay')) sp_CustomProfileFieldsDisplay('Battletag', $spThisPostUser->ID,);
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 23, 2015 - 5:04 am

You should really use the sp_CustomProfileFieldsDisplayExtended() tag and pass it a class. Try...

sp_CustomProfileFieldsDisplayExtended('tagClass=spPostUserPosts spCenter', 'Battletag', $spThisPostUser->ID, 'Optional Label');

and see if that is better.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Weltall
Member
Free Members
sp_UserOfflineSmall Offline
Apr 23, 2015 - 10:13 am

Works fine!

Thanks a lot!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 23, 2015 - 10:16 am

Glad it's good.

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625