I using role expire module, if you see screenshot 1 with the red box, this is how it look like without using display suit user display.
I want to use user display but there isn't a selection for role expire at full profile. I try to add custom field for user display, screenshot 2 show information of role expiry from devel themer. I try the below code for user display field but doesn't work Parse error: syntax error, unexpected T_PRINT in /home/mysite/public_html/sites/all/modules/ds/ds.module(633) : eval()'d code on line 2
print $object->role-expiry-roles;
and
return $object->role-expiry-roles;
any help?
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot2.png | 76.7 KB | spacereactor | |
| screenshot1.png | 25.31 KB | spacereactor |
Comments
Comment #1
spacereactor commentedi still have no solution, from the devel themer, calling from user-profile-category.tpl.php
array->element->role_expire->#attributes and #value
anyone got a glue how to turn this into display suit (user display) field?
Comment #2
swentel commentedYou don't have to look in themer for this. If you have the latest version of ds, there is link on the admin/ds/ud/fields screen where you can click on and a popup will appear with dsm (you need the devel module for this). Haven't tested this yet, but it will rather be something like $object->role_expire_roles (or something like that) - I'll look back at this in the weekend.
Comment #3
swentel commentedOk, did a quick look, it's not possible (wel, it is, but not easy and with performance downtime) - changing title also, will add a fix this weekend probably
Comment #4
swentel commentedMarking as duplicate see #800862: Create ND OG integration
if that issue is done, more fields found from objects will be recognized if available without having to create new fields via the UI
Comment #5
swentel commentedremoving tag