Avatar on index 0.3.0

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

Re: Avatar on index 0.1.0

Postby Handyman » 07 Nov 2006, 04:15

Were you registered or guest?
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7459
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male


Re: Avatar on index 0.3.0

Postby Semi_Deus » 11 May 2007, 14:58

Could it be updates with the normal profile stuff.
like Rank, Location, Post Count..?
That would be really nice..
Former Moderator & Styles team member
Image
User avatar
Semi_Deus
Admiral
Admiral
 
Posts: 2479
Joined: 13 Feb 2007, 13:53
Location: Netherlands
Favorite Team: Ajax
Gender: Male
phpBB Knowledge: 8

Re: Avatar on index 0.3.0

Postby nedka » 30 May 2007, 03:33

I updated it since version 0.5.0 of this MOD. You can get it from: http://downloads.sourceforge.net/phpbbv ... -0.5.0.zip
Sorry, I will update all MOD-topics of mine in this board :blackeye:
User avatar
nedka
MOD Author
MOD Author
 
Posts: 47
Joined: 17 Aug 2006, 18:59
Location: Viet Nam
Gender: Male

Re: Avatar on index 0.1.0

Postby Xtreeme » 17 Dec 2007, 13:49

Highway of Life wrote:Sure... it's really very easy...
Just add the following elements to the PHP page you want to add it to... otherwise, if you will be using it in several places, you can put it in /includes/functions.php

Add this function:
Spoiler:
Code: Select all
$avatar_img = '';

if ($user->data['user_avatar'])
    {
        switch ($user->data['user_avatar_type'])
        {
            case AVATAR_UPLOAD:
            $avatar_img = $phpbb_root_path . $config['avatar_path'] . '/';
            break;
    
            case AVATAR_GALLERY
:
            $avatar_img = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
            break;
        }
        $avatar_img .= $user->data['user_avatar'];

        $avatar_img = '<img src="' . $avatar_img . '" width="' . $user->data['user_avatar_width'] . '" height="' . $user->data['user_avatar_height'] . '" alt="" />';
}
 


In the template->assign_vars add...
Spoiler:
Code: Select all
'AVATAR'        => $avatar_img,
 


Im doing something similar as the original poster. Ive added that to inlcudes. Can you be more specfic on the last part. Where in the template is the assign_vars part. Thats where you lost me......Im using phpbb 3.0 gold and my template is based on the prosilver version.
Xtreeme
Cadet I
Cadet I
 
Posts: 18
Joined: 05 Apr 2007, 15:50
Gender: Male

Re: Avatar on index 0.3.0

Postby spikechu » 04 Jan 2008, 17:44

Is there away to resize the Avatar pic that is on the index page only? so its not as large as the one in the users profile?
spikechu
Crewman
Crewman
 
Posts: 2
Joined: 04 Jan 2008, 17:37
Gender: Male

Re: Avatar on index 0.3.0

Postby Highway of Life » 04 Jan 2008, 18:24

spikechu wrote:Is there away to resize the Avatar pic that is on the index page only? so its not as large as the one in the users profile?
Use styles to do it or set the width or height attribute to restrict it to specific dimensions. :)
Xtreeme wrote:Im doing something similar as the original poster. Ive added that to inlcudes. Can you be more specfic on the last part. Where in the template is the assign_vars part. Thats where you lost me......Im using phpbb 3.0 gold and my template is based on the prosilver version.
That function is now part of phpBB3 core. :)
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: Avatar on index 0.3.0

Postby spikechu » 05 Jan 2008, 00:08

How would you do it in a style ? Ive been fooling around with this for awhile and i am completely stuck on how to do it.
spikechu
Crewman
Crewman
 
Posts: 2
Joined: 04 Jan 2008, 17:37
Gender: Male

Re: Avatar on index 0.3.0

Postby spaceace » 15 Feb 2008, 20:33

never mind....... i found what i was looking for :blush:

a mod can delete this post ;)
User avatar
spaceace
Supporter
Supporter
 
Posts: 263
Joined: 14 Feb 2008, 20:44
Location: Ontario, Canada
Gender: Male
phpBB Knowledge: 5

Re: Avatar on index 0.3.0

Postby belphegor » 19 Feb 2008, 10:33

Hello.
I have 2 problem with this mod
1) i see all the time "no avatar" image:
i try to do:
<!-- IF AVATAR_IMG -->{AVATAR_IMG}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="{L_WHO_IS_ONLINE}" /><!-- ENDIF -->
and:
<!-- IF S_USER_LOGGED_IN -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="{L_WHO_IS_ONLINE}" /><!-- ENDIF -->

2) when logout i have "Welcom you, avuv_g"

who is it the avuv_g?? can i remove him from forum? that "user" is phpbb3 bot, no?

nice little mod btw.. thanks.
belphegor    
Supporter
Supporter
 
Posts: 217
Joined: 06 Jan 2008, 00:19
Location: IL
Gender: Male

Re: Avatar on index 0.3.0

Postby xex » 17 Jun 2008, 05:10

I have just installed this mod but avatar doesn't appear at index. I have phpbb 3.0.1 can someone help me please?

Image
xex
Cadet III
Cadet III
 
Posts: 39
Joined: 11 Jun 2008, 07:45
Gender: Female
phpBB Knowledge: 1

PreviousNext

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: No registered users and 5 guests