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)

Die2Night 08-28-2006 02:08 PM

This is just waht i was looking for thank you very much .

Jeordie015 09-02-2006 02:42 AM

Alright, there appears to be some sort of bug in this. If a remember uploads a new avatar, the new one will appear in the postbit, but in their profile, it's a broken image. And after deleting the two plugins for this hack, nothing is showing in either the postbit or the profile.

How can I fix this?

Zachery 09-03-2006 10:15 AM

Did you _also_ undo the template change? People have been using this for ages and no ones reported such a issue.

Please tell me what version of vBulletin you are using?

cinderelmo 09-30-2006 03:01 AM

Can anyone say whether this plugin overcomes the bug where if a user purposely selects the "don't show avatars" option in their profile, they won't then see the "Default Avatar" for every user? This is a common complaint in every other default avatar hack, but I only saw one person mention it for this one. Maybe this one solves it? --Thanks.

CyberRanger 10-05-2006 03:51 PM

Quote:

Originally Posted by cinderelmo
Can anyone say whether this plugin overcomes the bug where if a user purposely selects the "don't show avatars" option in their profile, they won't then see the "Default Avatar" for every user?

If the user selects "don't show avatars", the default avatar is not displayed. It works as you'd want it.

bluegum 10-07-2006 10:44 PM

Quote:

Originally Posted by Shazz
AdminCP>Plugins & Products
>Manager Products

I tried to install this on my 3.6.1 and i got this message
manage products
then add inport
I picked the xml file
default_avatar.xml

This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.

Shazz 10-07-2006 10:49 PM

Quote:

Originally Posted by bluegum
I tried to install this on my 3.6.1 and i got this message
manage products
then add inport
I picked the xml file
default_avatar.xml

This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.

Use the plugin manager.

bluegum 10-07-2006 10:57 PM

Quote:

Originally Posted by Shazz
Use the plugin manager.

thank you
sorry i only owned vb for 2 weeks
now i got it

admin cp >plugins and products>download upload plugins> scroll to bottom and find
Import Plugin Definitions XML File
click browse
pick .xml file
click import..

then upload the image to your.com/forumsdir/images/avatars

:)
hows that?

Canis Firebrand 10-24-2006 01:29 PM

Very odd that the default avatar will not show up in the memberlist, but it does show up for me when I view a users profile that doesn't have an avatar set. It also shows up in the postbit for any users that don't have an avatar set.

It isn't a big deal. It probably would be if it was the other way around. :)

My board is running 3.6.2

Snake 10-26-2006 12:11 PM

Actually this mod is designed to work in posts & profiles only so I don't think it's been designed to work in memberlist too.

criscokid 10-26-2006 01:00 PM

You'll need to apply the 'if' part of the code to the memberlist template - I've applied it to the 'show friends mod' to show on the memberinfo page.

Snake 10-26-2006 01:40 PM

But what's the code for it 'cause I have no idea.

criscokid 10-26-2006 04:50 PM

Quote:

Originally Posted by Snake
But what's the code for it 'cause I have no idea.

You need to download the zip file that contains the mod - see the top of this page.

erinys 12-11-2006 06:56 AM

You should release this as a 3.6 pluging so it shows up in the 3.6 listing :) its working perfectly fine with it anyway ;)

A_V 12-11-2006 05:27 PM

Installed in 3.6.4

TrikkeTalk 12-22-2006 05:39 PM

Hi,

Works like a charm on 3.6.4 too. Thanks for this nice hack.

amagazi 02-14-2007 03:37 AM

Ok.. how does this plug in work? Does it even work for 3.6.4? Cuz if it does, it doesn't seem to do anything on my board.....

ncweb 02-28-2007 08:55 PM

Quote:

Originally Posted by amagazi (Post 1182056)
Ok.. how does this plug in work? Does it even work for 3.6.4? Cuz if it does, it doesn't seem to do anything on my board.....


Maybe this...

Quote:

Originally Posted by Snake (Post 1104706)
Actually this mod is designed to work in posts & profiles only so I don't think it's been designed to work in memberlist too.


Working fine with 3.6.4 on my board as well :cool:

voter 04-18-2007 12:20 PM

Because of 3.6.x somehow don't like it and don'T want to import

I tried to do by hand going into AdminCP->Plugins & Products->Add New Plugin

Write as a title Default Avatar
Choose for Hook Location postbit_display_complete
Copy the code which is inside from <phpcode ><![CDATA[ ....CODE.... ] ]></ phpcode>

And second one as Default Avatar member.php
Hook Memeber_complete
Copied the second code that is inside <phpcode ><![CDATA[ ....CODE.... ] ]></ phpcode>


Working....

voter 04-18-2007 01:38 PM

I extend the hack to Member Lists, combined with a Random Avatar suggestion from Michael Morris https://vborg.vbsupport.ru/showthread.php?t=95870

Now all members in memberlist shown with avatars, randomly choosen from a given folder /images/avatars/xx.gif.

Where xx is a number from 1 to 50, which means, you need to have gif pictures in that folder with a name using a number.

Again AdminCP->Plugins & Products->Add New Plugin

Write as a title Default Avatar memberlist

Choose for Hook Location Memberlist_bit

Give PHP code

Quote:

if (!$avatarurl)
{
$randomavatar = rand(1,50);
$avatarurl = "/images/avatars/$randomavatar.gif";
}
$show['avatar'] = true;

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.

TigerWare 09-02-2007 02:43 PM

/me click installed (3.6.8)

Perfect, thanks Zachery!

Zagis 09-10-2007 12:34 PM

Works on 3.6.8
Thanks :up:
Quote:

Originally Posted by elitemerlin (Post 1274831)
works great, except for one thing, no avatars show up on Memberlist.php - is there a quick edit for this?

Is there any?
Quote:

Originally Posted by Michael2 (Post 1325128)
I use 100x100 avatars so I slightly modified one posted earlier. Just posting it in case anyone else wants to use it.

Thanks Michael2 ;)

yoyoyoyo 09-12-2007 12:27 AM

yep - works great in 3.6.8

agilent 09-14-2007 10:02 PM

For the members I have who already have avatars, will it effect their avatars? I only want the default avatar to show for people who have not uploaded an avatar.

Zachery 09-15-2007 04:32 PM

No this doesn't effect anyone elses avatars.

princeedward 09-16-2007 03:09 PM

thanks..installed...;) work like a charm to vb3.6.8

Attachment 69866

columbusgeek 11-04-2007 05:50 PM

kick ass. this worked like a treat. Even on a 3.6.8 p1 board.

LuBi 11-10-2007 01:11 PM

While I think all forum staff should have some avatar many at our boards do not.. I'm currently using this modification along side "Show your avatars in your forum Staff List" https://vborg.vbsupport.ru/showthread.php?t=157928. That modification is no longer supported but I was wondering if someone could help me get this working under that on Showgroups? Thanks for any help.

dvbusuario 11-15-2007 11:30 AM

Thanks.

newguy 11-18-2007 07:19 PM

installed :) 3.6.8 pl2 hope it dont break anything. :)


All times are GMT. The time now is 08:24 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.02229 seconds
  • Memory Usage 1,828KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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