vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Default Avatar (https://vborg.vbsupport.ru/showthread.php?t=97347)

BadgerDog 05-27-2007 10:42 PM

Installed... :)

Seems to work fine so far on v3.6.7PL1 ... :up:

Thanks...

Regards,
Badger

citroenar 06-15-2007 06:09 AM

Works great with v3.6.7PL1.

Installed

elitemerlin 06-23-2007 07:37 PM

works great, except for one thing, no avatars show up on Memberlist.php - is there a quick edit for this?

Whiteyez 07-06-2007 11:18 PM

Installed! Works great in v3.6.7PL1..

Thanks..

imk 07-24-2007 09:43 PM

sorry but how do i uninstall this?

Ultima07 07-26-2007 04:39 PM

HI I hate to see everyone having the same avatar, so i suggest a mod in the apropriate section so that each new registered member will have an apropriate COUNTRY avatar according to the COUNTRY they choose from the registeration. Tell me if this is possible.

Zachery 07-27-2007 08:34 AM

Quote:

Originally Posted by Ultima07 (Post 1302339)
HI I hate to see everyone having the same avatar, so i suggest a mod in the apropriate section so that each new registered member will have an apropriate COUNTRY avatar according to the COUNTRY they choose from the registeration. Tell me if this is possible.

If you want to write the code to do that, sure its possible :)

Ultima07 07-27-2007 01:02 PM

Can you create that mod Zachery?

Michael2 08-25-2007 12:28 AM

I use 100x100 avatars so I slightly modified one posted earlier. Just posting it in case anyone else wants to use it.

Arminios 08-31-2007 06:09 PM

Quote:

Originally Posted by Ultima07 (Post 1302339)
HI I hate to see everyone having the same avatar, so i suggest a mod in the apropriate section so that each new registered member will have an apropriate COUNTRY avatar according to the COUNTRY they choose from the registeration. Tell me if this is possible.

The code for it is already written. However, I found it easier without using this plugin.

https://vborg.vbsupport.ru/showthrea...highlight=menu <-- Where I found the code.

However, this is what you do:

Go into the postbit_legacy template and find the following code
Code:

<if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>


Change it to
Code:

<if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        <else />
<br />
<if condition="$post[fieldX]"><img src="images/YOURPATH/$post[fieldX].gif" alt="$post[fieldX]"></if>

                                </if>

You will need to change the "fieldX" to the User Profile Field that have your country list. Then you change the url to the location where you got your avatars saved.

It's important they are called the same thing as the inputs you have in the User Profile fields.

F.ex if Denmark, Norway and Sweden are in your list you need to have avatar files called Denmark.gif, Norway.gif and Sweden.gif.

If it's .png or .jpg files, even something else, you need to change ".gif" to that in the code.

Just PM me if you need more assistance with it.

However, that will only show the avatar in the postbit field, I'm trying to find out how to change it in the profile and memberlist also, I'm just experimenting my way through hacks.


edit:
I would be delighted if anyone could tell me how to modify my memberlsit by doing what I did in my postbit. https://vborg.vbsupport.ru/showthrea...49#post1329549

I tried a little, but it didn't work out, and I'm getting a little tired after a long workday

The code I was trying to change was in the memberlist_resultbit
Code:

        <if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['avatar']"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else />&nbsp;</if></td></if>
I tried replacing "&nbsp;" with my code, but think that was wrong since nothing came up.


All times are GMT. The time now is 10:05 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.01240 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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