vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   A few "How Do I" questions... (https://vborg.vbsupport.ru/showthread.php?t=279754)

baderandsonsco 03-08-2012 03:30 PM

A few "How Do I" questions...
 
I am trying to display the actual email address on the members list page and I'm looking for the variable to do so. Is there a user variable list that I can't seem to find.
(ie. vb:raw userinfo.email_address or $userinfo['email']) or something similar.

I am trying to display the actual avatar image on the members list page, not the thumbnail.

Thanks for any help!

kh99 03-08-2012 03:38 PM

Try using {vb:raw userinfo.email}.

For the avatar, the code puts "&type=thumb" on the url (if you don't have them saved in the file system), so you'd have to remove that. You could edit memberlist.php and take it out, or if you want to write a plugin you can use hook memberlist_bit and do a str_replace on $avatarurl.

Lynne 03-08-2012 03:59 PM

Avatar size is set in memberlist.css
HTML Code:

#memberlist td.profilepic img,
#memberlist img.avatar {
        max-width:40px;
        height:auto;
        width:auto !important;
}

:

baderandsonsco 03-08-2012 04:14 PM

Thank you both!

yrb 03-09-2012 03:44 PM

Quote:

Originally Posted by kh99 (Post 2307520)
or if you want to write a plugin you can use hook memberlist_bit and do a str_replace on $avatarurl.

I'd be VERY grateful if you could write this a bit more detailed :)

Tnx in advance!

kh99 03-09-2012 04:43 PM

Quote:

Originally Posted by yrb (Post 2307937)
I'd be VERY grateful if you could write this a bit more detailed :)

Tnx in advance!


No problem, it should just be:

Code:

$avatarurl = str_replace('&type=thumb', '', $avatarurl);

But what Lynne posted above is very important - if you just use this plugin you'll still get small images because the width is being set in the CSS. But if you just change the CSS, you'll get the thumbnail size images stretched to a larger size. (And again, I believe this only applies to avatars saved in the database, not the file system).

yrb 03-09-2012 05:34 PM

Actualy, it's both your's and Lynne's combined together that works.

First removing &thumb and then editing CSS max-width to the maximum value of my avatars.

Thanks again :)

marlera 03-14-2012 04:25 PM

Is it possible to do this in member profile too (full size avatar instead of &type=thumb)

It's memberinfo_block_ministats template, the code for avatar display is:

Code:

<dl class="stats">
        <dt>{vb:rawphrase avatar}</dt>
        <dd class="avatar"><img src="{vb:raw prepared.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw prepared.username}}"  {vb:raw prepared.avatarsize} id="user_avatar" /></dd>
</dl>

Thank you!


All times are GMT. The time now is 05:38 PM.

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.00977 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete