vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   2 questions about AVATARS (vB 4.2.1) (https://vborg.vbsupport.ru/showthread.php?t=306630)

Mephistoxz 01-05-2014 03:38 AM

2 questions about AVATARS (vB 4.2.1)
 
1)
Ok, first of all, I want to know why wouldn't be a good idea to render "external avatars" instead of storing them directly into my DB, so I get rid of that link "image.php?u=10912&dateline=1386613040"?
I know about the image's uptime, I don't worry about broken links of avatars' URL :D

I mean, if I want to show avatars like this:
HTML Code:

<a class="postuseravatar" href="member.php/10912" title="MEMBERS is offline">
                                <img src="http://i.imgur.com/h12js5.jpg" alt="MEMBER's avatar" title="MEMBER's avatar">
                        </a>

instead of this
HTML Code:

<a class="postuseravatar" href="member.php/10912" title="MEMBERS is offline">
                                <img href="member.php/10912" alt="MEMBER's avatar" title="MEMBER's avatar">
                        </a>

HOW TO DO THAT?

2)
I've installed a new template, and I need to modify the allowed size for avatars to a new smaller size.
I can't resize each user avatar, so I want to RESET them.
How can I reset all member's avatars so they have to upload a new one with the new dimension rules?

Thanks in advance! :D

Mephistoxz 01-08-2014 04:57 PM

Anyone? come on :( It should be easy for some "vbulletin veteran" ^^

Lynne 01-08-2014 05:56 PM

Very hard to answer your question because you've said nothing about how you would be the imgur URL for each user. Is it stored in the database? If so where? And do you have a plugin to query the database for it?

As for number 2, why not just use CSS to make them all look the same size?

NukedLT 01-10-2014 02:03 AM

You could do the first with a custom profile field and have users input the imgur id and extension.

HTML Code:

<a class="postuseravatar" href="member.php/10912" title="MEMBERS is offline">
<img href="http://i.imgur.com/{vb:raw post.fieldx}" alt="MEMBER's avatar" title="MEMBER's avatar">        </a>

This is extremely silly, though.


All times are GMT. The time now is 03:42 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.01376 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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