Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2002, 09:07 PM
Mono's Avatar
Mono Mono is offline
 
Join Date: Sep 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 10-08-2002, 12:42 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 10-09-2002, 10:54 PM
Mono's Avatar
Mono Mono is offline
 
Join Date: Sep 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-10-2002, 09:29 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #5  
Old 10-10-2002, 07:42 PM
Mono's Avatar
Mono Mono is offline
 
Join Date: Sep 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-10-2002, 08:01 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-10-2002, 09:35 PM
Mono's Avatar
Mono Mono is offline
 
Join Date: Sep 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-11-2002, 10:22 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's against the rules to post vb-files!!

well it should work for every other usergroup too...
Reply With Quote
  #9  
Old 10-11-2002, 08:59 PM
Mono's Avatar
Mono Mono is offline
 
Join Date: Sep 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:33 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.04499 seconds
  • Memory Usage 2,276KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (15)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete