ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member Avatar URL in PHP

June 21, 2011 11:07am

Subscribe [1]
  • #1 / Jun 21, 2011 11:07am

    Schoolido

    12 posts

    Hi,

    I am writing a PHP script inside the Forum Module where I need the URL from the currently parsed user (not via sessions that is) - example: {path:avatars}.
    The function in I need this for is getimagesize() where you put the url of the image inside the function.

    Is there a solution for this?

  • #2 / Jun 22, 2011 4:53am

    John Henry Donovan

    12339 posts

    Chris,

    These are currently the only Forum Global Variables listed

    Can you explain in context what you are trying to achieve?
    What is the URL you are after? The URL to their avatar?
    Why can’t you sessions?

    This really is more of a how to question but so moving thread to Community Help for now.

  • #3 / Jun 22, 2011 5:11am

    Schoolido

    12 posts

    Hi John,

    Thanks for your reply.
    The thing I am trying to achieve is writing a PHP script that would resize each occuring member’s avatars proportionally in a thread view. This means that I’d need either the member_id or the avatar of a member for each post - since it would otherwise resize all of the avatars into the size of your own (the session owner’s) avatar.

    I wonder if there is a solution or possibly a work-around for this?

  • #4 / Jun 22, 2011 11:11am

    Schoolido

    12 posts

    Hi,

    I managed to solve it. Apparantly {path:avatars} is available in PHP if you use it like ”{path:avatars}”.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases