vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom ability for usergroup (https://vborg.vbsupport.ru/showthread.php?t=44388)

Mono 10-07-2002 09:07 PM

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

Mono 10-09-2002 10:54 PM

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:
PHP Code:

  if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts) { 

and change it to:
PHP Code:

  if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 7)) { 

then find:
PHP Code:

  if ($ctEnable == 1) { // Custom Titles are ON 

and change it to:
PHP Code:

  if ($ctEnable == and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 7)) { // Custom Titles are ON 

again you have to enable customtitles in your acp first...

then find:
PHP Code:

  if ($ctEnable == 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:
PHP Code:

  if ($ctEnable == and $customtext and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 7)) {// Custom Titles are ON, Make sure user can actually use them and isn't trying to manipulate them through forms 


Mono 10-10-2002 07:42 PM

Quote:

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:
PHP Code:

  if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts) { 

and change it to:
PHP Code:

  if (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 7)) { 

then find:
PHP Code:

  if ($ctEnable == and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 7)) { // Custom Titles are ON 

again you have to enable customtitles in your acp first...

then find:
PHP Code:

  if ($ctEnable == 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:
PHP Code:

  if ($ctEnable == and $customtext and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 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:
PHP Code:

  if ($ctEnable == 1) { // Custom Titles are ON 


your post is very confusing, you say this

then find:
PHP Code:

  if ($ctEnable == and ($bbuserinfo['usergroupid'] == or $bbuserinfo['usergroupid'] == 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:
PHP Code:

  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 ;)

Mono 10-10-2002 09:35 PM

Thanks this helped some what. I couldn't find

PHP Code:

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...

Mono 10-11-2002 08:59 PM

Quote:

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.


All times are GMT. The time now is 04:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01220 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete