bgame-hunter / temars-eve-api

Automatically exported from code.google.com/p/temars-eve-api
0 stars 0 forks source link

Avatar Size configuration #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
TEA Version?
1.2.0

SMF Version?
2.0 RC5

What steps will reproduce the problem?
1. No problem, just an enhancement

Please provide any additional information below.
If you wish to allow the size of the eve avatar to be configured by the 
administrators.

In TEA.php

Add (about) line 91
                $ms[] = 'tea_avatar_size';

Add (about) line 1390
                                 array('select', 'tea_avatar_size', array(32 => '32', 64 => '64', 128 => '128', 256 => '256')),

Change (about) line 2619 to read
 tempImage.src = \'http://image.eveonline.com/Character/\'+id+\'_', !empty($this -> modSettings['tea_avatar_size']) ? $this -> modSettings['tea_avatar_size'] : 64, '.jpg\';

Add/Change (about 2219) to read
$tea_avatar_size = !empty($this -> modSettings['tea_avatar_size']) ? $this -> 
modSettings['tea_avatar_size'] : 64;
downloadAvatar('http://image.eveonline.com/Character/'.$charid.'_'.$tea_avatar_s
ize.'.jpg', $memberID, $tea_avatar_size, $tea_avatar_size);

Add/Change (about 2260) to read
$tea_avatar_size = !empty($this -> modSettings['tea_avatar_size']) ? $this -> 
modSettings['tea_avatar_size'] : 64;
downloadAvatar('http://image.eveonline.com/Character/'.$charid.'_'.$tea_avatar_s
ize.'.jpg', $memberID, $tea_avatar_size, $tea_avatar_size);

Change (about) line 2632 to read
document.getElementById("eavatar").src = 
\'http://image.eveonline.com/Character/\'+id+\'_', !empty($this -> 
modSettings['tea_avatar_size']) ? $this -> modSettings['tea_avatar_size'] : 64, 
'.jpg\';

Add/Change (about 2689) to read
$tea_avatar_size = !empty($this -> modSettings['tea_avatar_size']) ? $this -> 
modSettings['tea_avatar_size'] : 64;
if 
(downloadAvatar('http://image.eveonline.com/Character/'.$profile_vars['avatar'].
'_'.$tea_avatar_size.'.jpg', $memID, $tea_avatar_size, $tea_avatar_size))

In TEA.english.php

Add
$txt['tea_avatar_size'] = 'Set EVE Avatar Size';
after
$txt['tea_api_server'] = 'Server to get API data from';
on line 49

Original issue reported on code.google.com by monorail...@gmail.com on 28 Apr 2011 at 12:37

GoogleCodeExporter commented 8 years ago
would you like access to make the changes your self?

Original comment by tema...@googlemail.com on 28 Apr 2011 at 3:01

GoogleCodeExporter commented 8 years ago
Sure.  My SVN is a little rusty, but I'm sure I can catch up fairly quickly.  I 
just wanted to make sure this was something you wanted.  I know we want it for 
our site as we can't stand 64x64 avatars so we made them the 128x128 ones.  I 
then decided to do it right and fix it with a variable.

Original comment by monorail...@gmail.com on 28 Apr 2011 at 4:04

GoogleCodeExporter commented 8 years ago
Added you 
Wats ur eve char name ?

Original comment by tema...@googlemail.com on 28 Apr 2011 at 4:48

GoogleCodeExporter commented 8 years ago
Artctura

Original comment by monorail...@gmail.com on 28 Apr 2011 at 4:50

GoogleCodeExporter commented 8 years ago

Original comment by monorail...@gmail.com on 28 Apr 2011 at 7:53

GoogleCodeExporter commented 8 years ago

Original comment by monorail...@gmail.com on 29 Apr 2011 at 1:16

GoogleCodeExporter commented 8 years ago

Original comment by tema...@googlemail.com on 14 Aug 2011 at 3:07

GoogleCodeExporter commented 8 years ago
Just FYI, I've managed to kludge caching back in to the system by hacking
in TEAC.php

Did you want me to post that to the repo?  I just wanted to make sure you
had no issues with that since it's been a bit since I've sent code back up.

Original comment by monorail...@gmail.com on 10 Jan 2012 at 1:30