Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
showing Cimy User Extra Fields on user profile
Avatar
henk jansen
Member
Free Members
sp_UserOfflineSmall Offline
Mar 19, 2013 - 5:41 am

Is it possible to show extra user profile fields from WP , created with this plugin to show on the user profiles on my simple press forum?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 19, 2013 - 6:58 am

Well first you need to know that the standard method that WordPress uses (and Simple:Press and many other plugins we have seen) to store extra profile data is to store it in the WP usermeta table. This is in the form of matched pairs - a key/name and the data stored under the users ID.

So the first thing to discover is if this plugin does that also. if it does NOT - and has it's own location for storage - maybe a custom table - then you will need to use any API/function the plugin exposes to put the data into an SP profile template.

However - if it does use standard storage methods then things get easier. You can use the SP custom profile fields plugin - create SP fields with EXACTLY the same name and type - then use the template tags available to add the data to your Sp profile. Details of the template tags and how ti use them can be found in our codex under that particular plugin.

andy-signature.png
YELLOW
SWORDFISH
Avatar
henk jansen
Member
Free Members
sp_UserOfflineSmall Offline
Mar 19, 2013 - 10:41 am

thx for your answer, I mailed the maker of the plugin to ask which database is used.

Got another question, If my fieldname would be "lidnummer" wich code do i need to add to the SP profile, and where do i need to add it? I can't find out using the codexpages about the template tags...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 19, 2013 - 11:09 am

Did you install the custom profile field plugin yet? That provides the option to show the custom field on the SP profile form. To show it on the popup/page profile for users then you need the template tags provided in that plugin (http://codex.simple-press.com/.....le-fields/) and will need to add them to the appropriate template in your SP theme...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Mar 19, 2013 - 3:16 pm

In the readme fille that comes with Cimy User Extra fields there are some references and examples of using [Function get_cimyFieldValue] to display.

EXAMPLE:
    $value = get_cimyFieldValue(1, 'MY_FIELD');
    echo cimy_uef_sanitize_content($value);

You might take a look at their examples and see if adding it to the proper area in your SP theme works for you.

 

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625