php forum
php mysql forum
php mysql smarty
 
Topic Options
#246004 - 05/12/03 05:56 PM Finished-[6.2-6.3] Upload Avatar 1.0.3
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Mod Name / Version: Upload Avatar 1.0.3 <br /> <br />Description: Allows an administrator to upload a user's avatar. <br /> <br />Working Under: UBB.Threads 6.2-6.3 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: PHP >= 4.0.5 <br /> <br />Author(s): Dave_L <br /> <br />Date: 05/30/03 <br /> <br />Credits: <br /> <br />Files Altered: admin/menu.php (optional) <br /> <br />New Files: admin/upload_avatar.php <br /> <br />Database Altered: yes (updates Users.U_Picture, Users.U_PicWidth and Users.U_PicHeight) <br /> <br />Info/Instructions: This addon script allows an administrator to upload an avatar for a user, regardless of whether users are permitted to upload their own avatars. The database is updated appropriately. <br /> <br />The avatar directory path, URL and the maximum avatar file size are obtained from the config settings $config['avatars'], $config['avatarurl'] and $config['avatarsize']. <br /> <br />The maximum avatar dimensions are obtained from the theme settings $theme['PictureWidth'] and $theme['PictureHeight']. <br /> <br />The permissible avatar file types (.gif, .jpg and .png) are hardcoded here. <br /> <br />The PHP function getimagesize is used for checking the image dimensions and image type. <br /> <br />------------ <br />The instructions show how to add this function to the admin menu, but you can also run this as a standalone script, if you prefer not to modify admin/menu.php. <br />------------ <br /> <br />HISTORY: <br /> 2003-03-01 Dave_L - 1.0.0 Original release <br /> 2003-04-21 Dave_L - 1.0.1 Updated instructions for UBB.threads 6.3b1 <br /> 2003-05-12 Dave_L - 1.0.2 chmod uploaded file to 0666 <br /> 2003-05-30 Dave_L - 1.0.3 Record actions in admin log <br /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
79896-upload_avatar_1-0-3.zip (59 downloads)



Edited by Dave_L (05/30/03 02:24 AM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246005 - 05/12/03 06:00 PM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thansk Dave. <img src="/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246006 - 05/12/03 10:16 PM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: Daine]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
yes, thanks, very handy <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#246007 - 05/18/03 01:07 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: SurfMinister]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
This fix the distortion problem? Thanks I got a previous version working and love it.

Top
#246008 - 05/18/03 07:25 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.2 [Re: Kelly]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
If a user edits his profile, the avatar dimensions get reset to the theme defaults. That's a bug in changebasic.php that is unrelated to this hack.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246009 - 05/30/03 04:46 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Updated to version 1.0.3 - Record actions in admin log.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#246010 - 05/30/03 05:10 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: joeuser]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Thx, Dave! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#246011 - 05/31/03 11:57 AM Re: Finished-[6.2-6.3] Upload Avatar 1.0.3 [Re: -Fusion-]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Cheers Dave - very handy <img src="/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top


Moderator:  Ian_W 
Who's Online
0 registered (), 26 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks