The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
Avatar size is set in memberlist.css
HTML Code:
#memberlist td.profilepic img, #memberlist img.avatar { max-width:40px; height:auto; width:auto !important; } |
#4
|
|||
|
|||
Thank you both!
|
#5
|
|||
|
|||
Quote:
Tnx in advance! |
#6
|
|||
|
|||
Quote:
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). |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|