Summoner

Summoner does not currently provide support for this item.

39 comments found.

Hi! Grate script! But I need to generate two files (from one image file) and put them in two different folders. How can I do this? Thank you!

The image uploading takes place in the php/done.php file.

If you know PHP, you can edit that file to generate additional images from the original and save them anywhere.

The $image variable is the GD image resource that you should use to generate the other images.

Hey, I have an isssue with the first time the image is uploaded (for new user) I send you an email. thanks

Hi,

Can I upload more than two banners in one page.

Thanks

Ali

Hello,

if I understand your question correctly, you want to use the same configuration file for two different images?

If not, you can use separate configuration files for the two banners and give them similar settings.

If you’d rather use just one configuration file but have them refer to separate files, you can use the data attribute to differentiate the two banners:

$('#banner-1').AvatarChanger('banner',
{
    'data' => {'id': 1}
});

$('#banner-1').AvatarChanger('banner',
{
    'data' => {'id': 2}
});

In your configuration file, you can now set the correct file using the $data variable:

<?php
$config = array(
  // shared configuration for banners
);

switch($data['id']) {
  case 1:
    $config['saveas'] = 'files/banner-1.png';
    break;
  case 2:
    $config['saveas'] = 'files/banner-2.png';
    break;
}

return $config;

I hope this gives you the general idea of how to go about doing this. Please let me know if I missed the point of your question entirely and try to elaborate on what you’re trying to do.

Can this application be modified to allow video to be uploaded? (i.e.Selecting a video from your iPhone to be uploaded on the website similar to selecting a photo?)

Hai, Is there any options available for finding percentage of the uploading images?

I just purchased your plugin, I downloaded the Zip file and when I go to upload it into my Wordpress site I get the following message. So please help & thank you:

Unpacking the package…

Installing the plugin…

The package could not be installed. No valid plugins were found.

Plugin install failed.

Sorry, but Avatar Changer is not a Wordpress plug-in.

Hi, I have a pre-sales question.

Like the interface and simplicity of your script from a users point of view – and the crop/zoom is ideal, so wondering whether this will work as part of a larger form where I’m asking the visitor for details of their theatre production including the upload of a poster of the show. From the documentation I can see this is more tailored to allow the editing of an existing image (avatar), but would it work as a way of AJAX-uploading an image in the middle of a form, then allow me to pass the path of the image along with other form fields to the form action page where I can use PHP to move & rename the image?

# It probably makes sense to generate a unique id somehow to be
# saved as  the image. I'll use the uniqid() function here for simplicity.

$src = uniqid();

When configuring avatar changer, you can set a default image to be shown initially.

// Set src to generated src in PHP
$('#poster').AvatarChanger('config_name',
{
  'src': 'uploads/<? echo $src; ?>.png',
  'default': 'default-poster.png'
});

In HTML, set the image src to the default poster image and make a hidden input in the form to save the current uploaded image name.

<!-- Select default poster initially -->
<img id="poster" src="default-poster.png" />

<!-- Send generated ID on submit -->
<input type="hidden" name="src" value="<php echo $src; ?>">

Now, when the form is submitted, you can detect whether the file was really uploaded and be able to rename it by using $_POST[‘src’].

This is how I would go about doing this but I mainly posted this to show you that it could be done.

I hope you’ll be able to help me troubleshoot this problem.

I’ve integrated AvatarChanger into one of my forms.

I’m calling it using the following code, where $headshot contains the path to the current avatar:
$(document).ready(function() {
    $('#avatar').AvatarChanger('avatar', {
        'src': '<?=$headshot?>',
        'default': 'img/default.png'
    });
  });
in my avatar.php config file, I’ve got the following settings, passing the value of $headshot php to the session variable:
return array
(
    'width'  => 230,
    'height' => 230,
    'types' => array('jpeg', 'png', 'gif'),
    'methods' => array('computer', 'url', 'webcam', 'restore'),    
    'saveas' => $_SESSION['headshot'];
);
In my HTML, I’m dropping the image in like so:
<img src="<?=$headshot?>" id="avatar" width="230" height="230" class="img-circle" />

When I click on the edit button, the script loads (background goes semi-opaque), but the loading spinner stays on the screen and the avatar changing options don’t appear. What would you suggest I’m doing wrong? The folder I’m saving to (img/avatars) has been chmod’ed to 755, 775 and 777 but none of those settings seem to make a difference.

Thanks,

Pete

Ah, ok. Firebug caught it – I had a unnecessary semicolon after the session variable in config.

So now the menu loads and allows me to select a picture – but now two new problems. Firstly the resize seems to only effect the X axis (so I can go from the original size to tall and thin, but not proportionally), and when I click ‘ok I’m done’ it doesn’t change the avatar on the page… Any thoughts?

X axis resize problem solved – I was using it in a Boostrap framework which has a default img max-width of 100%. Adding ‘max-width’: ‘none’ to the $img.css attributes within the preview init function on AvatarChanger.js seemed to have solved that one.

Still can’t quite figure out why the image isn’t saving yet. I’ve console.log’d out the value of img.src and settings.src within the Ajax ‘done’ call, and they appear to be set correctly, so I’m assuming it must be something in the done.php file. Will keep looking.

Ok, problem solved. The session variable wasn’t being passed to the config file. Now fixed.

Been great chatting with you ;-)

HI,

Can I add more than two avatars on one page

e.g. Banner, image, banner 2

Thank you,

Ali

Yes, you can have any number of avatars on one page. To do this, you will have to create additional configuration files. You can follow the documentation but it shouldn’t be too difficult to add one based on the demo alone.

Am I able to configure a database and table location for a script to work with to give my already registered users an avatar?

If not with the current code, if you can lead me in the right direction, it would be awesome.

Thanks!

Hello in your documentation i found that we can disable Edit button {'button': false} but is not documented how to add custom button, i mean what is point to disable button ?

Hi

I send to you many messages to help me why no response one week until now !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Your demo site does not work – 404

The demo has now been restored.

Good idea. You can make your free avatar with Face avatar maker

Dead Demo, Dead Support, Dead product!

The demo has now been restored.

dead demo can you update to work?

Hello! The demo has been restored.

Hello, i buy your script somes years ago. Now im with a small problem with the webcam capture, im receiving this message: “You don’t have a camera or it wasn’t detected.” I already test my webcam in webcamtoy(.)com and it works, i already check my browser permissions, its all ok. Am i missing something? Thanks!

No se puede obtener archivos de la urls y no hay información de como solucionar esto

The system works fine just that trying to upload the images from the url beats the upload of the file and does not work as this is solved?

by
by
by
by
by
by