View Full Version : Custom ability for usergroup
Is there a way to set it up so that lets say you want to have a usergroup for leet members who diserve reconigtion like maybe there donated money or maybe there mods. Is there a way to set it so that only that usergroup has the custom abilities that would take alot of post otherwise? Can anyone point me in the right direction?
Xenon
10-08-2002, 12:42 PM
you have to edit the phpfiles where you have ammount of post conditions in it and add a usergroup condition to the if clause.
can't tell you more, because you don't tell enough details
well it's 1000 for both custom av and title so I'd like to set it at that.
Here's who I want to have the special abilities.
Admin - usergroup = 6
Mod - usergroup = 7
Mega Mod - usergroup = 5
What would I need to write to get those user roups to automatically have the abilites and which phps and where do I write it?
Xenon
10-10-2002, 09:29 AM
you have to edit members.php
first of all you have to enable custom avatar upload..
then open member.php find this:
if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts) {
and change it to:
if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) {
then find:
if ($ctEnable == 1) { // Custom Titles are ON
and change it to:
if ($ctEnable == 1 and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) { // Custom Titles are ON
again you have to enable customtitles in your acp first...
then find: if ($ctEnable == 1 and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
and replace with:
if ($ctEnable == 1 and $customtext and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
Originally posted by Xenon
you have to edit members.php
first of all you have to enable custom avatar upload..
then open member.php find this:
if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts) {
and change it to:
if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) {
then find:
if ($ctEnable == 1 and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) { // Custom Titles are ON
again you have to enable customtitles in your acp first...
then find: if ($ctEnable == 1 and $customtext) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
and replace with:
if ($ctEnable == 1 and $customtext and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms
and change it to:
if ($ctEnable == 1) { // Custom Titles are ON
your post is very confusing, you say this
then find:
if ($ctEnable == 1 and ($bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7)) { // Custom Titles are ON
but you don't say what you want me to do with it and then you say this later on
and change it to:
if ($ctEnable == 1) { // Custom Titles are ON
but you dont say what you want me to find to change it too. Im sorry for being an idiot.
Xenon
10-10-2002, 08:01 PM
huh?
what have i done?
i must have been very confused when i wrote this ^^
i've edited the post, i ho?pe everything is alright now ;)
Thanks this helped some what. I couldn't find
if ($ctEnable == 1) { // Custom Titles are ON
but that's only half the probelm. With the custom avs I got it to work but for some strang reason it only works with Mega mods and admins. Not mods or other user groups I plugged in in the same fashion of or $bbuserinfo['usergroupid'] == 21
do you know why it didn't work for the others but it did for the mega mods?
Here's my member php as it is now with only working custom text for admins and mods. I haven't found the other thing or fixed it so the mods can have the custom ability also.
Xenon
10-11-2002, 10:22 AM
it's against the rules to post vb-files!!
well it should work for every other usergroup too...
Originally posted by Xenon
it's against the rules to post vb-files!!
Eek I did not know this.
It doesn't though :/. I think some regular members who are elgible for avs are having problems too now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.