Radio Streaming - 50% Lifetime Discount with purchase of any Joomla Web Radio Addon. Discount Code: STR15-Z
See Radio Streaming Plans

Results 1 to 3 of 3

Thread: Show user profile avatar

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    8

    Show user profile avatar

    When my users register on my site they can upload an avatar. Is it possible when clicking on standings and then the clicking on user predictions, when show his predictions to show also his avatar pic? May be by adding some string code somewhere ?

  2. #2
    Administrator
    Join Date
    Jul 2015
    Posts
    65
    Hello,

    To show the avatar in the user prediction page you will have to add your code into the following pages,

    <joomla directory>/components/com_multileague/models/playerhistory.php (add here the code to retrieve the image if necessary ,you could inject a part of code into the getUserHistory function or simply you could use the function from your custom avatar extension to retrieve the avatar , based by user_id)

    <joomla directory>/components/com_multileague/views/playerhistory/view.html.php (add here the code for the call of the function to retrieve the avatar , if you altered the code of the function getUserHistory skip that part)

    <joomla directory/components/com_multileague/views/playerhistory/tmpl/default.php (add to the desired place the code to print the avatar)


    note! we do not know what solution you have installed to give the ability to users to add avatar so we could not give precise instractions.

    Hope this information will help you,
    Best Regards.

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    8
    Im' using default registration form of joomla 3.6.0 which include avatar in registration form. I don't know what exactly is the code to inject

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •