jSconnect ( override profile photo )
I dont know if this has been asked, but thought I would throw it out there.
We have shoehorned vanilla into our main site, so it utilises our own db system.
The issue I have is, throughout our site we declare users avatart simply by <?=$avatar;?>
So was wondering, how could we override in the forums, the profilephoto stuff.. is there a central place this can be changed.
On page ( src ) in discussion example:
<a class="ProfileLink" href="/forums/profile/1/admin" title="admin"> <img class="ProfilePhotoMedium" alt="admin" src="http://www.website.com/forums/uploads/userpics/920/nJE2U7BO43572.png"> </a>
I would like to declare our avatar function ( which can be done in header ) then recode the profilephoto to something like
<a class="ProfileLink" href="/forums/profile/1/admin" title="admin"> <img class="ProfilePhotoMedium" alt="admin" src="<?=$avatar;?>"> </a>
well along those lines anyway
There was an error rendering this rich post.
Comments
In fact to be more specific, we use:
if ($avatar['thumbnail']){ $avatar = '<img class="avatar thumb" src="http://www.website.com/public/uploads/members/' . $avatar["thumbnail"] . '" width="48" height="48" alt="Avatar" />'; }else{ $avatar = '<img class="avatar thumb" src="http://www.website.com/public/images/silhouette.png" width="48" height="48" alt="Avatar" />'; }
There was an error rendering this rich post.
I am new but that looks kosher, one question would be ,
$Configuration['Garden']['Thumbnail']['Size']= 48;
and/or
$Configuration['Garden']['Thumbnail']= $avatar;?;
that looks to simple tho right? it just seemed like a possibility , forgive it is totally stupid...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
hmm i think its a tad more complex than that, im just not 100%.
thankyou V
There was an error rendering this rich post.