vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow ONLY mods and admins to use custom avatars (https://vborg.vbsupport.ru/showthread.php?t=24975)

WitchyT 07-28-2002 02:15 AM

Great hack :D. One question: Is there any way of letting the mods and admins only change their avs once per week?

Rose 08-03-2002 04:05 PM

Quote:

Originally posted by WitchyT
Great hack :D. One question: Is there any way of letting the mods and admins only change their avs once per week?

That would be useful, I think. But if members are allowed to change their avatars anytime, why not mods/admin as well?

N9ne 10-24-2002 06:30 PM

Thanks for this hack!

LordZypher 10-26-2002 03:07 AM

Curious... Where do I get the Usergroup ID? From the SQL Tables or the admin panel somewhere...

LordZypher 10-26-2002 03:47 AM

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:

2. In the same file replace this:

code:
if ($bbuserinfo[userid]==0) {
show_nopermission();
}

$useavatar=iif($avatarid==-1,0,1);



and add this right after:

code:
if (ismoderator()) {
$avatarcustomposts = 0;
}


Replace it with what?

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 {
  $avatarcustomposts = 0;
}

I took the moderator thing out as I make the mods avatar when they need them and upload them.. but I want to allow my contributing members to use custom avatar..
Please respond

N9ne 10-31-2002 12:26 AM

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

LordZypher 11-01-2002 12:27 AM

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

N9ne 11-01-2002 12:38 AM

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

NTLDR 11-01-2002 01:26 PM

Quote:

Originally posted by N9ne
This hack does not work with vB 2.2.8, after extensive testing, I have found...
This hack works fine with vB 2.2.8.

N9ne 11-01-2002 01:32 PM

Didn't for me :confused:


All times are GMT. The time now is 09:28 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
  • Page Generation 0.01095 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete