vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to Make Avatars Bigger in Activity Stream (https://vborg.vbsupport.ru/showthread.php?t=315656)

Daniel 11-27-2014 01:08 AM

How to Make Avatars Bigger in Activity Stream
 
Hey y'all,

I'd like to make the avatars in the Activity Stream larger - they seem to max out at 60px. Been looking for the css class avatar in the code but haven't had luck - I figure that's where the loot is.

Any help/guidance/pointers are GREATLY appreciated. Much thanks!

Max Taxable 11-27-2014 01:10 AM

Class "thumbnail?"

Daniel 11-27-2014 09:22 AM

Wasn't able to find that class...

Here's the code from the activitystream_calendar_event template (the other templates forum, blog post, album have the same)
Code:

    <vb:if condition="$userinfo['showavatar']">
        <div class="avatar">
            <img src="{vb:raw userinfo.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" />
        </div>
    </vb:if>

--

Also tried to force the change by adding this rule into activitystream.css
Code:

.avatar {
width: 174px !imporant;
height: 172px !important;
}

This seemed to make a change in the spacing, but the images themselves, surprisingly remained small. I wonder if it's being reduced by the system somehow.

ozzy47 11-27-2014 03:41 PM

I took a look into this, and short of editing the templates, I don't see how it is possible. :(

Max Taxable 11-27-2014 04:22 PM

So, the code that does this goes:
HTML Code:

<img alt="Your Avatar" src="image.php?u=8&dateline=1405267152&type=thumb" title="Your Avatar">
"type=thumb" intrigues me. Is this a call to a CSS definition?

Max Taxable 11-27-2014 04:26 PM

Also, lookie here in the CSS template for activity stream. (activitystream.css)
HTML Code:

}

li.activitybit .avatar {
        float:{vb:stylevar left};
        padding-{vb:stylevar right}:{vb:stylevar padding};
        width: 75px;
}

It almost appears we are defining avatar size right there. And can change that definition and put in height as well as width.

ozzy47 11-27-2014 04:27 PM

Yeah, but that does not control it, I took that out and used my own definitions, but they do not work. I would be willing to bet, it is set in the PHP files somewhere.

Max Taxable 11-27-2014 04:33 PM

Why would it define it, but that definition isn't relevant? I tried changing it too, no joy.

Weird. What if we put '!important' there?

ozzy47 11-27-2014 04:35 PM

Nope, it don't work. You think I did not try everything I know already. :p

Max Taxable 11-27-2014 04:42 PM

activitystream_forum_post

template appears to have this.


Quote:

Nope, it don't work. You think I did not try everything I know already.
Yeah haha.


All times are GMT. The time now is 09:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete