Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 171
Total: 171

Author Topic: Resizing avatar on "user galleries" page  (Read 3006 times)

0 Members and 1 Guest are viewing this topic.

Offline BuddahBoy

  • Member
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Resizing avatar on "user galleries" page
« on: July 06, 2015, 10:44:28 am »
Greetings,

The avatars on my site are set at 150 x 150 which is what I want; but, as you can see on the attached screenshot, they show as the same size on the "user galleries" page, which makes sense. 

I would like to have the avatars resized on that page - can you please guide me to the right place to do this?  I have not found it. 

Many thanks
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Resizing avatar on "user galleries" page
« Reply #1 on: July 06, 2015, 10:50:00 am »
There is not a good way that I can see to do this. I grab the avatar image code from SMF.
The code you can see is in themes/default/usergallery2.template.php
Around line 865
Code: [Select]
if (empty($gallerySettings['gallery_userlist_hideavatar']))
{
echo '<td align="center">';
$memCommID = $row['id_member'] ;
loadMemberData($memCommID);
loadMemberContext($memCommID);
echo '<a href="' . $scripturl . '?action=gallery;su=user;u=' . $row['id_member']. '">' . $memberContext[$memCommID]['avatar']['image'] . '</a>';

echo '</td>';
}
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Member
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Resizing avatar on "user galleries" page
« Reply #2 on: July 06, 2015, 11:06:06 am »
Okay, thank you for the quick response.  I guess I'll change my settings in the avatar admin section and just resize my available avatars no prob, site is not live yet anyway so a quick batch resize will be down and dirty. 

Appreciate your assistance
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4411 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
12 Replies
11152 Views
Last post May 28, 2011, 09:32:37 am
by SMFHacks
1 Replies
6573 Views
Last post March 26, 2011, 01:26:09 pm
by SMFHacks
8 Replies
8282 Views
Last post September 19, 2011, 02:00:29 pm
by VividViews
2 Replies
4726 Views
Last post January 17, 2013, 06:11:06 pm
by Wegg

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal