[Awaiting Validation] Flash Avatar

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Re: ERROR

Post by TimeVirus » Thu Dec 25, 2003 5:40 pm

Brando wrote: The problem is you have a space after the ?> in usercp_flashavatar.php, the new package will have a premade usercp_flashavatar.php file so people won't have problems....


Where does one find this "usercp_flashavatar.php" file? There are no included files with this mod or any variations presented in this thread that I can find. :?
I'm probably wrong again...

Brando
Registered User
Posts: 117
Joined: Sun Mar 09, 2003 8:11 am

Post by Brando » Thu Dec 25, 2003 9:20 pm

You were supposed to create a new file called usercp_flashavatar.php, the newer version will have this file included as I said before....

Code: Select all

#
#-----[ CREATE NEW FILE ]---------------------------------------------
#
includes/usercp_flashavatar.php


#
#-----[ ADD TEXT ]---------------------------------------------
#
<?php
function get_avatar_img($allow_avatar, $avatar_path, $user_avatar) {
    // Split at the periods
    $parsed_filetype = preg_split('/\./', $user_avatar);
    // The file type should be the last element in the array
    $parsed_filetype = trim($parsed_filetype[count($parsed_filetype) - 1]);

    if ( !empty($avatar_path) )
    {
        $avatar_path .= '/';
    }

    if ($parsed_filetype != 'swf')
    {
        $avatar_img = ( $allow_avatar ) ? '<img src="' . $avatar_path . $user_avatar . '" alt="" border="0" />' : '';
    }
    else
    {
        $avatar_img = ( $allow_avatar ) ? '<embed src="' . $avatar_path . $user_avatar . '" width=60 height=60 TYPE="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />' : '';
    }
    return $avatar_img;
}
?>

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Thu Dec 25, 2003 9:48 pm

Thanks Brando. I knew I had installed and even found a fix for this mod but could not find that file anywhere. Turns out I restored a backup because I was having problems with another mod and lost it then. :oops: Sure enough, it had a space after that point too when I did find it in my backups.
I'm probably wrong again...

User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Post by playerfr » Sat Dec 27, 2003 4:03 pm

I have a problem I have Mod Profilcp installed on my board and in this Mod
if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )
{
switch( $postrow[$i]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
}
}


Is Replaced by
$post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']);



What to do ? how to use Flash avatar please ?

Thanks

Brando
Registered User
Posts: 117
Joined: Sun Mar 09, 2003 8:11 am

Post by Brando » Sat Dec 27, 2003 11:50 pm

It looks like you'll need to do some modification to
profilcp/profilcp_profil_avatar.php
AND
profile_avatar.php

As far as I can tell, I don't have this mod installed so I can't really see what works and what doesn't...

User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Post by playerfr » Sun Dec 28, 2003 2:11 am

I try to modify but it dosent seem to work i have a General error message say You must upload JPg GIF PNG file. :oops:

User avatar
Lucas1510
Registered User
Posts: 47
Joined: Thu Sep 04, 2003 12:07 am
Location: Herne - Germany
Contact:

Post by Lucas1510 » Thu Jan 22, 2004 7:59 pm

Hello,

I have just one question: Where can I download flash-based avatars? Google did not help.

Lucas

Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske » Tue Jan 27, 2004 2:59 pm

Where can i download this mod? i've searched on phpbbhacks.com but couldn't find it :S
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |

CuriousGeorge
Registered User
Posts: 64
Joined: Mon Oct 08, 2001 2:44 pm
Location: Insert witty comment that reveals nothing about where you live here.
Contact:

Post by CuriousGeorge » Tue Jan 27, 2004 4:07 pm

Um, it's awaiting validation from the Mod team. Once it's validated, it will be released for downloading. . . . Shouldn't be too far now.
Programming trains you for parenting pretty well. The long sleepless nights, the time spent explaining very simple things to really stoopid people, and the ability to tune out the rest of the world all really help when dealing with children.

Volion
Registered User
Posts: 94
Joined: Sun Nov 09, 2003 5:25 pm
Contact:

Post by Volion » Wed Feb 04, 2004 4:09 pm

Does any one know how to add this to the memberlist, if you have show avatar in memberlist mod installed?
Image
Proud supporter of phpBB-RPG.com.

Mendietta
Registered User
Posts: 7
Joined: Fri Feb 27, 2004 2:59 pm
Location: Costa Del London

Post by Mendietta » Tue Mar 30, 2004 4:04 pm

any more updates on this mod?
i mean, has it been validated yet?

bennyvo
Registered User
Posts: 56
Joined: Wed Mar 31, 2004 6:05 am

Post by bennyvo » Fri May 07, 2004 10:45 am

is it really a tought one? :lol:

Eclipse16V
Registered User
Posts: 28
Joined: Wed Feb 26, 2003 7:43 pm
Location: Giessen / Hessen
Contact:

Post by Eclipse16V » Wed Sep 29, 2004 11:19 am

Where can i download this mod?
I have phpBB 2.0.10
www.Eclipse16V.info
Erste Eclipse16V IG Deutschlands

Sorry for my bad english, i'm german!!!

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Wed Sep 29, 2004 12:30 pm

try looking at the first post :wink:
seeing as it was done in 2002 it probably won't work with 2.0.10, good luck though
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

Eclipse16V
Registered User
Posts: 28
Joined: Wed Feb 26, 2003 7:43 pm
Location: Giessen / Hessen
Contact:

Post by Eclipse16V » Wed Sep 29, 2004 1:49 pm

The MODin the first post doesn´t work on 2.0.10 :(
www.Eclipse16V.info
Erste Eclipse16V IG Deutschlands

Sorry for my bad english, i'm german!!!

Locked

Return to “[2.0.x] MODs in Development”