![]() |
Good job. :) I will add that to the first post giving credit to you.
|
only problem with that is its still hard coded via usergroups
|
Quote:
Quote:
|
I don't mind. :) Just post it here, and I will include it in the first post.
|
no i was refering to the fact that you were still using usergroup id's which arnt always a good idea anymore :) (or so i keep being told)
|
Erm.. if there's another way to do it, I'm all ears. Sure, I used can_moderate() for moderators.. but is there a can_admin(), too? Heh..
|
can_moderate()
$permissions['adminpermissions'] & CANCONTROLPANEL at least i think so? what i pulled outta beta 7 :) |
Quote:
So.. until I can find how they want me to do it, usergroupid will have to do. :D |
if you use
<if condition="$permission['adminpermissions'] & CANCONTROLPANEL"> it will only show to admins |
It's $perm['adminpermissions'] and yes, you're right.. that will work if I want to show to admins, but that's not what I'm trying to accomplish sadly.
I need to display warning options on a per user basis, if the selected user is an admin then the warning options will NOT be displayed for them when clicked -- which is why the usergroupid is being used. $permisson[] gets the permissions of the logged in user, not the selected user. |
Great that moderator addon was exactly what i needed :) great hack and great addon, thnx guys
|
Quote:
|
Excellent hack Erwin :)
Thanks for sharing |
Great Hack
Just a question. When you give someone a warning, does it send them any form of notification, PM or Email? Is it possible to set a reason for the warning? Thanks Tenpit |
Quote:
|
A good one - could be more strucutrized.
|
Quote:
|
i really dont like the idea of having a new custom field and mr erwin isit possible to create an install script for all the lazy ones?
|
Quote:
|
understood but i mean for editing the php files .. remember vb hacker and vb hback maker , i mean install file that sort of way and profile bit is manually done
|
Quote:
Firstly, you would have to have all your PHP files CHMOD 777 first of all. Secondly, it is much safer to do it manually, since you know where the code has gone, and can troubleshoot better. Thirdly, it means you learn about how PHP works if you do it manually. Fourthly, vBHacker doesn't work for vB3. :) I can understand an install file to put in new tables and columns, templates and phrases, but not editing actual PHP files - that should be done by the installer manually. |
sory for being so lazy :)
|
im not seeing the ip or the warnign points in the post bit
|
Quote:
|
Hmm, I just installed this on my test board.. everything is working except the automatic Ban when warning level is above 7. It wont put the member in the banned usergroup for some reason. :/
|
Hi, i tried this and got:
Code:
Database error in vBulletin 3.0.0 Release Candidate 2: EDIT: Whoops, i got this when trying to add/subtract/reset warnings. Everything else works perfectly. |
Quote:
|
Quote:
|
Quote:
|
Got round to installing it and went without any problems, all seems to work well.
Nice, THANKS :) |
Quote:
Thanks, its all sorted now. Works perfectly ^^; |
Installed!
Seems to be working fine so far. :) |
Glad to know it's working. :) Hope it's helping you run your forums.
|
Yes thanks! Even the more hack-skeptic staff are impressed.
|
Wow, that is quite an involved hack. Good work!
|
quick question, if you add a warning point can you have a reason for the warn as well???
Thanks |
Quote:
|
I've installed it but sometimes it wierds out on me.. when I put my mouse over on the postbit it won't generate the menus.. but if I click the username go to their userinfo and come back it works again..
did I miss something here? |
Quote:
|
Quote:
|
All times are GMT. The time now is 12:51 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:
|