REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[r] Avatar Upload _ ACP
#1
MyBB Version: MyBB 1.2.*
New Settings: 0
New Templates: 0
DB Changes: 0
File Changes: 0
Files: 1
  • ./inc/plugins/uacp.php
  • ./admin/uacp.php
Images: 0
Install:
  • Upload ./inc/plugins/uacp.php into your ./inc/plugins/ folder
  • Upload ./admin/uacp.php into your ./admin/ folder
  • Go to your PluginManager and Activate the "Avatar Upload ACP" Plugin.
Settings:
What:
* Avatar Upload Link => ACP - Users and Groups - Uploading Avatar
* Gives you the possibility to upload an avatar for Users who are having trouble with in their UCP.
* If you see the 'A Reminder' Box; just fill in the avatarurl or select it again.
Screenshots:
First : http://thingiej.be/screen1.gif

Tested On: MyBB 1.2.13


Attached Files
.zip   Less than 1 minute ago">AvatarUpload_ACP.zip (Size: 3.38 KB / Downloads: 69)
#2
Now this is a great idea. Otherwise, I've had to upload through ftp and then change their avatar url manually. It never looks right and takes on the dimensions of the previous avatar. This will be much easier and better! Thanks! Big Grin

edit: OK, this works, but I have a few suggestions. Tongue About the reminder thing. It is a bit of a pain to have to find the new avatar again when you have to browse for it. When prompted are we sure we want to overwrite the old one, clicking a yes would be ideal. And second, after you upload it again, and it tells you that it was added successfully, it goes to a blank screen instead of returning to the upload page.

But it does work, so no big deal if you don't want to fix those issues. Wink
#3
redirect
Code:
        cpredirect("uacp.php?".SID."&action=start", "SuccesFully Added ^^");

It should go to the upload page =P But i think you mentioned this 'problem' before with another plugin =P Looks like the 'action' doesn't get passed =P
Find
Code:
if($mybb->input['action'] == "start")
Change into
Code:
if($mybb->input['action'] == "start" || !$mybb->input['action'])

This should work =P

And about the other suggestion; that was my first ID =P
Just a message that said 'has already avatar blablabla' with a 'proceed' button; but seems like it can't pass the '$_FILES['<name>']' in a hidden field =P But gonna look if i can find another way to do it =P

Edit:

Did it a lil' different =P
First you need to enter a username ... press 'proceed' ; check if username exists + if the user already had an avatar =P If so; it will be shown + underneath the possibility to select one you upload / external avatar.
#4
OK, it's much better now! Thanks for the quick update! Big Grin

And yes, I did report the return problem with another plugin of yours, but I wasn't the only one that had that problem. Tongue At least there was an easy solution.


Forum Jump:


Users browsing this thread: 1 Guest(s)