Current time: 11-30-2024, 01:58 AM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[3.135.247.17], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Group Avatar
12-07-2009, 01:06 PM
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.
Find all posts by this user
Quote this message in a reply
12-07-2009, 01:16 PM
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.

babjusi's signature
Find all posts by this user
Quote this message in a reply
12-07-2009, 01:20 PM
Post: #3
RE: Group Avatar
Thank you.
Mhmm.. Just curious, what plugin are you doing?
Find all posts by this user
Quote this message in a reply
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.
Mhmm.. Just curious, what plugin are you doing?

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.

babjusi's signature
Find all posts by this user
Quote this message in a reply
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
Find all posts by this user
Quote this message in a reply
12-07-2009, 05:46 PM
Post: #6
RE: Group Avatar
(12-07-2009 05:45 PM)Light33 Wrote:  Can I put the avatar into another folder?
E.G: images/image.gif

Sure, you can put the avatar where ever you want, but you must specify the correct path at the query.

babjusi's signature
Find all posts by this user
Quote this message in a reply
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.

UPDATE mybb_users SET avatar = 'images/banned.png',  avatartype = 'gallery' WHERE usergroup = '7';

So... You won't make the plugin for this?
Find all posts by this user
Quote this message in a reply
12-07-2009, 06:00 PM
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.

babjusi's signature
Find all posts by this user
Quote this message in a reply
12-08-2009, 08:26 PM
Post: #9
RE: Group Avatar
I needed this too. I got it to work with the query but a plugin would be swell.
Find all posts by this user
Quote this message in a reply
12-08-2009, 09:19 PM
Post: #10
RE: Group Avatar
Yes. Would be much better!
But this code work so great too.

skiilz's signature
[Image: signature.php]
Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

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

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com