![]() |
My mods have been bugging me for ever that they want custom avatars, just like they have custom user titles.
This hack is really simple, won't take you more than 5 minutes. :) 1. In member.php find Code:
if ($bbuserinfo[userid]==0) { Code:
if (ismoderator()) { Code:
if ($bbuserinfo[userid]==0) { Code:
if (ismoderator()) { Have fun. :) |
Thanks this is a nice hack. Something I have been wanting and should be included with vB.
|
so how does it work? I installed it and all users seem to still have avatars??
|
its made so it still works for people that have the right amount of post counts
|
Firefly -
Okay, I've made the changes. Now what? Do I have to turn on "upload/www avatars" in the CP? I can't seem to get it to work just so that only mods/admin/heads have av uploading, but NOT the members. :s |
Yes turn that on, but make the required post number realllllllllllllllllllly high.
|
Quote:
When I tried all that, I got it to show up okay for mods/admin/heads and not for members. So the first step is good. BUT! When I tried to upload an avatar using the upload or link box, it didn't take. It simply changed my av to the first avatar in the gallery list. This was tested by myself (admin) and a moderator, with the same results. I'll mess with it some more today, since I gave in in frustrations last night. *lol* But do you have any ideas why it won't save? {edited to say} - When I click upload from my pc, I get a "no valid avatar" error. |
Ok I updated the file for 2.2.4, because the hack is VERY old and only works on 2.0.3. So uninstall and install it again.
|
Quote:
:) Thanks for updating it, Chen. But I still get the same errors. For myself, I get an approval for changing my avatar, but it doesn't change if I do upload from pc. If I use a link, it defaults to the first av in the gallery. My mods get the error "no specified avatar" when using the upload option, and the frist av default when changing the other way. |
Damnit so many things have changed. :p
I'll look again... *sigh* |
Quote:
:: giggles :: You are the bestest! ;) |
Ok I totally changed the hack, uninstall it and install the new one. :)
|
I am gonna try installing again now too!
God you are a pain Rose ;) |
:p Shut up, Matt. Who invited you here. ;) :D
It works!!!!! *big huggles for Chen* Thanks, mate! :D |
Yup, it does work! Thank You!!! :D :D
And I thought Roses were sweet...and red ;) |
Quote:
Thanks again, Chen!!! This is something we've been waiting for for a year now! *looks to Matt* ;) And yes, it should be red. *sigh* *goes to change av, now* ;) But I won't spam, so.... Thanks again! ;) This would be a great feature in v3. *hint* |
Is there anyway to allow 1 other custom usergroup besides mods and admins to be able to do this?
|
Yes, instead of adding the code I give in my first post, add this:
Code:
if (ismoderator() or $bbuserinfo['usergroupid']==X) { |
ahhhh, I knew it had to be something simple like that, thanks Chen!
|
Edited to say: The admins are happy as is. :D Yay!
|
Great hack :D. One question: Is there any way of letting the mods and admins only change their avs once per week?
|
Quote:
That would be useful, I think. But if members are allowed to change their avatars anytime, why not mods/admin as well? |
Thanks for this hack!
|
Curious... Where do I get the Usergroup ID? From the SQL Tables or the admin panel somewhere...
|
Ok I figured out how to get the id but its not working for me.. Can someone please help me to understand this..
in step 2 you said Quote:
I am trying this with VB2.2.8 but after I put it on the member.php will not work.. its only blank.. What am I doing wrong? I am useing this Code:
if $bbuserinfo['usergroupid']==9 { Please respond |
This hack does not work with vB 2.2.8, after extensive testing, I have found...
I am shortly going to release a working "Mods and Admins can always use Custom Avatars" hack, I just coded it up myself :) |
ok kool.. I had tried everyway I could but I am not good with php anyway but as far as the hack goes.. I am needing it to only allow my contributing members to change there avatar.. The user group is 9... That would be great :) Thanks...
|
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=45246" target="_blank">https://vborg.vbsupport.ru/showt...threadid=45246</a>
There is my hack, if you want the code changed, just request it in the thread [so other users will be able to see and it might be useful to them too] |
Quote:
|
Didn't for me :confused:
|
Didn't for me.. Hoping on a good outcome with N9ne's version..
|
Working fine with a hacked 2.3.0 board.
|
Page Not Found
The requested URL was not found on the server. Anyone can help me please? |
does not work! members are allowed to do it
|
Quote:
|
All times are GMT. The time now is 01:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|