Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: How to change users avatar?
by script_fu on 2005/6/10 19:24:17

Hope this hack works. Any other soultions?

Translated

Description:

This hack makes it possible to post and modify the misadventure of a member in the menu admin - edition of a member.
With DECOMPRESSER WITH WINRAR

ATTENTION ON CERTAIN VERSION (2.06) it does not want to change because of the password, therefore to decontaminate it (no incidence in the profile of the banner page)

line 110 and 111 of userform.php
// $$pwd_text = new XoopsFormPassword(_AM_PASSWORD, "pass", 10, 32);
// $$pwd_text2 = new XoopsFormPassword(_AM_RETYPEPD, "pass2", 10, 32);

---------------------------------------------
This hack is not for 2.0.10
Re: How to change users avatar?
by RolyMo on 2005/4/28 12:01:26

Many thanks, Hisoka.

For me, one of the big reasons to switch from phpBB is that to get away from modifying the system's files. The modular approach will (hopefully) allow me to upgrade a system like XOOPS than a heavily modded phpBB board. I don't think I am likely to start modding my shiny new XOOPS system - its a backward step from my point-of-view.

Thanks, also, for the phpMyAdmin info. In my case, I know enough to know that (a) there would be a method to use a phpMyAdmin solution and (b) its not my prefered method to administer my site.

I still see the ability for an admin to add/change a user's avatar as an omission from XOOPS. Agree with piroman that the ideal scenario for us simple admins is that this feature is added to the next incarnation of XOOPS.

Given my acknowledgement and admiration of the effort that has gone into the XOOPS project, I admit that I feel a wee bit disappointed that no-one from the XOOPS development team has commented in this thread. Its a respectful request for a new feature - not a complaint or flame.
Re: How to change users avatar?
by Hisoka on 2005/4/20 6:30:17

The same question has been asked on french forum and a hack is available.

It allows you to display and change member's avatar by admin menu.

Look here:

http://membres.lycos.fr/winsion/modules/mydownloads/singlefile.php?cid=1&lid=1

Hope you will be happy :)
Re: How to change users avatar?
by piroman on 2005/4/17 15:41:10

Hisoka,

this is logical approach, but admin must know what he's doing :( Maybe better trick is to log in as a user whos avatar you're trying to change, and do it throught XOOPS interface. This would be much easier method for me. Problem is that I can't login as another user, without changing users pass, and I don't wanna do this!

The best solution is that in next incarnation of xoops, there should be ability to change user avatar as admin, in user edit mode!

Thanks for idea, this solves the problem, for admins that are not lazy as me :) :) :)
Re: How to change users avatar?
by Hisoka on 2005/4/17 11:36:31

I think you can do it easily by phpMyAdmin.

Look at this method:

1)- Upload your avatar to "uploads" directory of XOOPS (in main root directory). Your avatar must be named something like "savtavatarxx.gif". In this example, it will be called "savtavatar01.gif".

2)- Go to phpMyAdmin.Click on "xoops_avatar" table.Go to "display".In the bottom of this page, you've got a link in phpMyAdmin "Inser a new record". Fill in avatar-id etc..
For avatar_id put a number which correspond to be the last in your table (you can see it when you've clicked on display).
for avatar_file >>savtavatar01
avatar_name >>avatar01 or what you want
avatar_mimetype >>image/gif
avatar_created >>1083460026
avatar_display >>1 (you can put 0 if you don't want the others to see it and to choose it in the list, but i don't think this is necessary because when you check the user profile, you can do right click/save image to... and then upload the avatar for you.Maybe it is interesting if you have disabled avatar upload :))/
avatar_weight >> 0 (don't mind)
avatar_type >> S

After click on "Execute".

3)- Then click on "xoops_avatar_user_link". Click on display and then inser a new record.
avatar_id >>> The number you enter in 2)
user_id >>>The id of the user you want (if you don't know it, go to "xoops_users" table,click on display (as usual :)) and then check "uid" it is its "id" you must enter)

4)-Enjoy


I think this can work and i Hope but i haven't tested. If there is one problem (or if it works :;)) please let me know.

Good Xoops

Who's Online

151 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits