Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
more Avatars

 
Reply to topic    Forum Index » Help View previous topic
View next topic
more Avatars
Author Message
svennis



Joined: 09 Oct 2006
Posts: 55

Post more Avatars Reply with quote
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 View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1943
Location: US

Post Reply with quote
1. When adding and editing news you can always write {avatar} and it will show up.



2. 14th post on http://english.cutenews.ru/forum/manage-images-t796.html is an image management system from FI-DD that apparently does what you're asking for. I haven't had a chance to test it out.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Mon Oct 09, 2006 10:44 pm View user's profile Send private message Visit poster's website AIM Address
svennis



Joined: 09 Oct 2006
Posts: 55

Post Reply with quote
With [insert avatar] I mean the way FI-DD has solved in in CuteNews 1.3.6:

http://democute.de.funpic.de/cute/index.php?username=demo&password=demo
Sat Dec 02, 2006 11:52 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
1. Open addnews.mdu and change this:

Code:
<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:

Code:
<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:

Code:
<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:

Code:
<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:

Code:
<?=($area ? '<td>'.$insert : ''); ?>




add above:

Code:
<?

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 View user's profile Send private message
svennis



Joined: 09 Oct 2006
Posts: 55

Post Reply with quote
very nice FI-DD Wink
Tue Dec 05, 2006 12:52 am View user's profile Send private message
Mania



Joined: 03 Feb 2007
Posts: 106

Post Reply with quote
but ican't as Admin insert avatar with Avatar resize plugin? but with Author and Editor(Moderator) worked fine Sad
Thu Jun 12, 2008 5:35 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.