Welcome Guest[18.227.0.57], connected from Columbus, Ohio
Group Avatar
|
Post: #1
|
|||
|
|||
Group Avatar
Can anyone make a plugin that allow you to set for each group the default avatar?
Like when the member is placed in the group he will get the avatar for the group that he is inside. Thank you. |
|||
Post: #2
|
|||
|
|||
RE: Group Avatar
Yes, it can be done. Atm I am in process in finishing a new plugin. Later on I will have a look at this and let you know.
|
|||
Post: #3
|
|||
|
|||
RE: Group Avatar
Thank you.
Mhmm.. Just curious, what plugin are you doing? |
|||
12-07-2009, 01:54 PM
(This post was last modified: 12-07-2009 05:06 PM by babjusi.)
Post: #4
|
|||
|
|||
RE: Group Avatar
(12-07-2009 01:20 PM)Light33 Wrote: Thank you. The one that I just submitted about not bumping up old threads. To your request, as I said it can be done as a plugin but that would require some time and atm my free time is very limited. But I will tell you another way which is easy and handier. Here is what you should do. Go to the phpmyadmin at the cp of your host and then at the db where your forum resides on. Make a backup copy of your mybb_users table and then run the following query at the SQL tab. PHP Code:[Highlight] UPDATE mybb_users SET avatar = 'images/avatars/image.gif', avatartype = 'gallery', avatardimensions = '100|100' WHERE usergroup = '4'; Don''t forget to replace the image.gif with the actual name of your avatar image and to upload it at the ''avatars'' folder in the /images/ directory. This will set a default avatar for all the members in the admin group. To do it for other groups, you can add more of Set avatar..... Where usergroups.... statements separated by commas, or run the query individualy by replacing the usergroup = '4' with the other group id''s that you want to hook them with up a default avatar. Let me know how it will go. |
|||
12-07-2009, 05:45 PM
(This post was last modified: 12-07-2009 05:55 PM by skiilz.)
Post: #5
|
|||
|
|||
RE: Group Avatar
Can I put the avatar into another folder?
E.G: images/image.gif |
|||
Post: #6
|
|||
|
|||
RE: Group Avatar
(12-07-2009 05:45 PM)Light33 Wrote: Can I put the avatar into another folder? Sure, you can put the avatar where ever you want, but you must specify the correct path at the query. |
|||
12-07-2009, 05:55 PM
(This post was last modified: 12-07-2009 05:56 PM by skiilz.)
Post: #7
|
|||
|
|||
RE: Group Avatar
This was the code I used and worked like a charm.
Code:[Highlight] UPDATE mybb_users SET avatar = 'images/banned.png', avatartype = 'gallery' WHERE usergroup = '7'; So... You won't make the plugin for this? |
|||
Post: #8
|
|||
|
|||
RE: Group Avatar
Glad to hear that it worked.
No, cos my free time atm is very limited. I don''t have as much free time as I would have liked. But I don''t see why you would need a plugin for this when you can achive what you want very easily with just a few queries. |
|||
Post: #9
|
|||
|
|||
RE: Group Avatar
I needed this too. I got it to work with the query but a plugin would be swell.
|
|||
Post: #10
|
|||
|
|||
RE: Group Avatar
Yes. Would be much better!
But this code work so great too. |
|||
0 member(s) viewed this thread in the last 365 days :
|
« Next Oldest | Next Newest »
|
WWWHostingServer.com
|
||||||
|
||||||
|
Possibly Related Threads... | |||||
Thread: | Author | Replies: | Views: | Last Post | |
Only particular group can enter a forum | tech2game | 12 | 2,786 |
12-15-2009 10:55 AM Last Post: chonghua |
|
|
|
|
Powered By MyBB, © 2002-2024 MyBB Group. Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes. Hosting provided by WWWHostingServer.com |