How to save social image to a custom image field.

Dear Oneall.

Is there a way to save the social profile image to another field than the standard user image field in drupal 7.xx?

Best regards
Espen

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited July 2018

    Hello,

    you can open this file:

    ./vendor/drupal/social_login/social_login.module
    

    The picture is assigned by this code:

    // Update user record.
    $account->user_picture = $real_file;
    $account->save();
    

    So you would have to patch that section.

    Regards,

  • Promotional products help businesses build recognition and connect with their audience through memorable, branded items. In the digital world, knowing how to save a social image to a custom image field can enhance your marketing efforts. Whether using WordPress, CRMs, or coding solutions, automating this step ensures content stays fresh and consistent. Just like a branded giveaway, the right tools and strategy can make a lasting impression across every platform.

  • Locksmith Harrogate provides expert guidance on securing properties while managing digital assets safely. Just as locksmiths protect physical spaces, saving a social image to a custom image field requires careful steps to ensure proper formatting and storage. Begin by selecting the image, verifying its resolution, and assigning it to the correct field in your system. Following best practices prevents errors, keeps data organized, and maintains a professional appearance across platforms.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.