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
Custom profile fields giving the same thing for every member
Avatar
SamThaB0ss
Member
Free Members
sp_UserOfflineSmall Offline
Sep 15, 2013 - 8:12 am

So when I enter a title in the custom field i made it shows the same text for everyone

http://gyazo.com/280d862391d56.....b078792172

http://gyazo.com/f85315397ed8b.....b5a992fb9b

http://gyazo.com/83f08cd5610a1.....0d51d33307

Is it possible to change it so it sets your typed text and not someone elses?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 15, 2013 - 8:40 am

It's your code we really need to see... and where you have put it...

andy-signature.png
YELLOW
SWORDFISH
Avatar
SamThaB0ss
Member
Free Members
sp_UserOfflineSmall Offline
Sep 15, 2013 - 11:48 am

Yellow Swordfish said
It's your code we really need to see... and where you have put it...

sp_CustomProfileFieldsDisplay('Custom title', $spPostUser->ID);

in topicview.php

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 15, 2013 - 12:59 pm

a little more please... where in the file? show some surrounding other tags.. is it in the post loop?

Avatar
SamThaB0ss
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2013 - 11:57 am

Mr Papa said
a little more please... where in the file? show some surrounding other tags.. is it in the post loop?

sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px');
sp_PostIndexUserDate('tagClass=spPostUserDate spCenter');
sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user', $spThisPostUser);
sp_PostIndexUserName('tagClass=spPostUserName spCenter');

sp_CustomProfileFieldsDisplay('Custom title', $spPostUser->ID);
sp_PostIndexUserLocation('tagClass=spPostUserLocation spCenter');
sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2013 - 9:35 pm

try: 

sp_CustomProfileFieldsDisplay('Custom title', $spThisPostUser->ID);

and it assumes Custom title (case and all) is the name of our custom field..

Avatar
SamThaB0ss
Member
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2013 - 11:08 am

Mr Papa said
try: 

sp_CustomProfileFieldsDisplay('Custom title', $spThisPostUser->ID);

and it assumes Custom title (case and all) is the name of our custom field..

Ooh, thanks! worked.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 17, 2013 - 11:50 am

Good news.

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: 620
Members: 17367
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626