Notifications
Clear all

Using Custom Fields Can i show City Name Below the Gravatar Pic inside the forum

4 Posts
2 Users
0 Reactions
923 Views
Posts: 15
Customer
Topic starter
(@tarunpk)
Member
Joined: 9 years ago

Hello Team,

 

is it possible to show lets say city name or device name below the gravatar pic as shown in the screenshot :

Like in the screenshot you can see Location below Gravatar can this be done ?

 

Do let me know .

 

3 Replies
Elvina
Posts: 1403
(@elvina)
Support
Joined: 5 years ago
Posted by: @tarunpk

is it possible to show lets say city name or device name below the gravatar pic as shown in the screenshot :

Sorry, but you forgot to leave a screenshot. Please leave it here and we will check it.

Reply
2 Replies
Customer
(@tarunpk)
Joined: 9 years ago

Member
Posts: 15

@elvina

Screenshot 2020 04 15 at 3.45.18 AM

 

Have attached the screenshot for your reference 

 

 

Reply
Elvina
(@elvina)
Joined: 5 years ago

Support
Posts: 1403

@tarunpkm,

Thank you for the screenshot.

wpForo allows you to customize and add the values of the fields under the gravatar.

You'll just need to copy the post.php file to your active theme's /wpforo/ folder (as described in the doc provided below) and add the new field anywhere you want.

The file located in the /wpforo/wpf-themes/classic/layouts/2 folder.

Also please note the value 2 is the Simplified Layout(#2), you can change this value depending on the layout you need to change.

To add the value of the custom field just use this function:

<?php echo implode( ', ', array_diff((array) wpforo_member($member, 'CUSTOM_FIELD_NAME'), array(0)) ) ?>

Just change the red marked code according to the custom field value.

Please follow this instruction to customize the wpForo files:

https://wpforo.com/docs/root/forum-themes/theme-customization/

 

Reply
Share:
Scroll to top