By Adam O. on Saturday, 10 October 2015
Replies 2
Likes 0
Views 747
Votes 0
Hi there,

I'll get actually logged user cover photo in other module (Easyblog welcome).

I tried to use every suggestion in ES Documentation:

http://stackideas.com/docs/easysocial/developers/users/users

but with no results - it turns me an error:

Fatal error: Call to a member function getSource() on a non-object in /modules/mod_easyblogwelcome/tmpl/default.php on line 48

How can I solve this issue?

Best regards!
Adam
OK, I got it, by deleting:

// Output the cover source.
echo $cover->getSource( 'large' );

// Shorthand
echo $my->getCover()->getSource( 'large' );


and adding <img src="<?php $photo; ?>" />

but is it possible to change size of loaded in module cover photo?

I'll use it only in module on sidebar, so I don't need full size of cover

Using mentioned above two lines of code related with getSource causing an error, like in my first post.

So how can I change cover size loaded in module?

I'll be very grateful for your help!

Best regards!
Adam
·
Saturday, 10 October 2015 05:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Adam,

I am really sorry for the delay of this reply as it is a weekend for us here. You can / should resize it using css or by setting a width / height on the image tag itself.
·
Saturday, 10 October 2015 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post