vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Default Profile Pic (https://vborg.vbsupport.ru/showthread.php?t=165770)

BlizzardHQ 12-20-2007 10:00 PM

Default Profile Pic
 
I saw this requested in a thread, so here goes :)

In MEMBERINFO find:

Code:


<if condition="$prepared['profilepicurl']">
                                        <td id="profilepic_cell" class="tborder alt2">
                                                <img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
                                        </td>

Change to:

Code:


<if condition="$prepared['profilepicurl']">
                                        <td id="profilepic_cell" class="tborder alt2">
                                                <img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
                       

<else />

<img src="http://www.your-domain.com/images/no-profile-pic.gif">
</td></if>


BlizzardHQ 12-21-2007 11:25 AM

Enjoy :)

gator777 12-21-2007 12:43 PM

I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D

BlizzardHQ 12-21-2007 12:52 PM

Quote:

Originally Posted by gator777 (Post 1406150)
I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D

Sorry, my fault as my table has other coded stuff in it. Change before the <else /> to:

Code:


<if condition="$prepared['profilepicurl']">
<td id="profilepic_cell" class="tborder alt2">
<img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />

Corrected in 1st post also.

Snake 12-21-2007 02:17 PM

Thanks for the release!

gator777 12-21-2007 07:58 PM

Thanks for code BlizzardHQ. :D

solalopez 01-28-2008 08:28 PM

Hey BlizzardHQ,

I cant find where I am meant to make this modification (Memberinfo???).

Thanks

ChU v2 01-29-2008 02:25 AM

Quote:

Originally Posted by solalopez (Post 1431153)
Hey BlizzardHQ,

I cant find where I am meant to make this modification (Memberinfo???).

Thanks

Admin CP >> Styles & Templates >> Style Manager >> Select your style >> From drop down box click edit templates >> Click the arrows "<<" to display all your templates >> Scroll down to the MEMBERINFO template and edit.

chris1979 02-10-2008 10:41 AM

It would be great to find something that like this that works in all the other places that the avatar usually shows up too. Like the friends list, visitor message list... etc.

Is that possible?

Thug 02-25-2008 04:44 AM

Quote:

Originally Posted by gator777 (Post 1406150)
I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D


same issue did what u said still the same.


All times are GMT. The time now is 02:40 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.01179 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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