 |
 |
 |
 |
 |
| Author |
Message |
svennis
Joined: 09 Oct 2006 Posts: 55
|
|
more Avatars |
|
In both (ADMIN) - Add & Edit pages:
1- is there some quick tag to insert the Avatar? or what's the easiest way to insert avatars?
2- how can I resize the shown/inserted avatar in these pages (add & edit)? because when I sometimes insert some picture of bigger size as avatar the pictures real siza shows and you may be knows what happens...
i've searched but don't find information like that.
|
|
| Mon Oct 09, 2006 10:31 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
| Mon Oct 09, 2006 10:44 pm |
|
 |
svennis
Joined: 09 Oct 2006 Posts: 55
|
|
|
| Sat Dec 02, 2006 11:52 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
1. Open addnews.mdu and change this:
 |  | <input onchange="showpreview(this.value, 'previewimage')" tabindex="2" type="text" name="avatar" value="<?=$config_path_userpic_upload.'/'.$member['username'].'.'.$member['avatar']; ?>">
<img name="previewimage" src="skins/images/blank.gif" align="left" style="margin: 5px;">
</fieldset> |
to this:
 |  | <input onchange="showpreview(this.value, 'previewimage')" tabindex="2" type="text" id="avatar_story" name="avatar" value="<?=$config_path_userpic_upload.'/'.$member['username'].'.'.$member['avatar']; ?>">
<img name="previewimage" src="skins/images/blank.gif" align="left" style="margin: 5px;"><br />
<a href="#" onclick="window.open('<?=$PHP_SELF; ?>?mod=images&area=avatar', '_Addimage', 'height=450,resizable=yes,scrollbars=yes,width=500');return false;" target="_Addimage">[Insert avatar]</a>
</fieldset> |
2. Open editnews.mdu and change this:
 |  | <input onchange="showpreview(this.value, 'previewimage')" tabindex="2" type="text" name="avatar" value="<?=$row['avatar']; ?>">
<img name="previewimage" src="<?=($row['avatar'] ? $row['avatar'] : 'skins/images/blank.gif'); ?>" align="left" style="margin: 5px;">
</fieldset> |
to this:
 |  | <input onchange="showpreview(this.value, 'previewimage')" tabindex="2" type="text" id="avatar_story" name="avatar" value="<?=$row['avatar']; ?>">
<img name="previewimage" src="<?=($row['avatar'] ? $row['avatar'] : 'skins/images/blank.gif'); ?>" align="left" style="margin: 5px;"><br />
<a href="#" onclick="window.open('<?=$PHP_SELF; ?>?mod=images&area=avatar', '_Addimage', 'height=450,resizable=yes,scrollbars=yes,width=500');return false;" target="_Addimage">[Insert avatar]</a>
</fieldset> |
3. Open images.mdu and find this:
 |  | <?=($area ? '<td>'.$insert : ''); ?> |
add above:
 |  | <?
if($area == 'avatar'){
$insert = '<a href="javascript:insertimage(\''.htmlspecialchars($config_path_image_upload.'/'.$file).'\')">Insert as avatar</a>';
}?> |
|
|
| Mon Dec 04, 2006 8:10 pm |
|
 |
svennis
Joined: 09 Oct 2006 Posts: 55
|
|
|
| Tue Dec 05, 2006 12:52 am |
|
 |
Mania

Joined: 03 Feb 2007 Posts: 106
|
|
|
|
but ican't as Admin insert avatar with Avatar resize plugin? but with Author and Editor(Moderator) worked fine 
|
|
| Thu Jun 12, 2008 5:35 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|