vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   remove "invisible" choice from admin..... (https://vborg.vbsupport.ru/showthread.php?t=56352)

drives fast 08-19-2003 10:03 PM

remove "invisible" choice from admin.....
 
hello...I did a lot of searching but couldn't find this not could I figure out how myself...

I put a copy of the user.php from the admin dir into the mod dir so my mods could have more control over the members......although...I don't allow invisible users on my site.....I need to know how to remove that selection from the user.php and it still make sure the setting is "no" if any edits are done

I know how to do that in a template but the user.php is different.

can anyone help me with this?

BTW....vb version is 2.2.7

thanks in advance

drives fast 08-19-2003 10:08 PM

also....as you can see...I have a problem with a mod or two always making changes I don't want....

when it comes to the ability to change usergroups...I want to be able to restrict them to only being able to set users to usergroups 2, 8, 10, or 21 from whatever group they are currently in

I already have some hacking done that will not allow any team member to edit another team member but myself in there...that way nobody can boot me or anyone else out...I am the only one that can

but I need to make some more restrictions....just have no clue how

thanks again

drives fast 08-20-2003 04:10 PM

^^

drives fast 08-21-2003 02:28 PM

am I blocked here?

pie 08-21-2003 07:11 PM

No... Restricting mods to do certain things, by the sounds of it you have Xenon's handy Mod hack... in the index.php of the folder MOD there are options for you to change.

drives fast 08-21-2003 10:05 PM

actually....I am not running anyones hacks for what I have done....I did it myself but all I really need to do is make the invisible choice dissapear from the user.php page but still set it to zero whenever the submit button is clicked to ensure that nobody can be set to invisible

I just can't figure out what edits to make for that one

Buczilla 08-22-2003 01:58 AM

I'm running vb3, so I'm not sure what the template edit is, but you could just remove that option (in the template)

drives fast 08-22-2003 04:37 AM

that will create a database error when submitting changes to a memberfile...it needs to be a hidden thing somehow

**edit**

I misread your reply....this is not a template thing...there is no template for the user.php in the admin nor any other admin panel function that I know of

drives fast 08-23-2003 11:06 PM

edited

drives fast 08-27-2003 11:01 AM

edited

red_baron2000 08-29-2003 10:37 AM

yeah i would also know why there is no reply !! i am having the same problem and would like to get ride of it..as i can't uderstand why users should log in in invisible mod whay are they hidding..grrr!! it would very kind from you people here to supply a help in this matter if you know how..thanking you in advance :(

assassingod 08-29-2003 12:04 PM

I am not totally sure what you mean, but try this :

Find and remove (Line 77)
PHP Code:

      makeyesnocode("Invisible on 'Online users' list","invisible",0); 

Find and Remove (Line 165)
PHP Code:

invisible

Find and Remove (Line 165)
PHP Code:

'$invisible'


Find and Remove (Line 263)
PHP Code:

      makeyesnocode("Invisible on 'Online users' list","invisible",$user[invisible]); 

Find and Remove (Line 385)
PHP Code:

invisible=$invisible


drives fast 08-29-2003 09:47 PM

won't that cause a database error when you submit any changes to a user since the row still exists in the user table?

Brad 08-29-2003 11:01 PM

AG, that works but you are doing alot of extra work thats not needed.

Find:

PHP Code:

makeyesnocode("Invisible on 'Online users' list","invisible",0); 

Replace with:

PHP Code:

makehiddencode ("invisible",0); 

Then find:

PHP Code:

makeyesnocode("Invisible on 'Online users' list","invisible",$user[invisible]); 

Replace with:

PHP Code:

makehiddencode ("invisible",0); 

That'll fix it :)

drives fast 08-30-2003 12:59 AM

that is what I was looking for

thank you extra much...I will give it a go right now

pie 08-30-2003 01:08 AM

you mean like the mini-hack i made?

Go check my profile, lol, always wanted to say that :)

is v. easy.

drives fast 08-30-2003 01:08 AM

Anime-loo,
that worked famously...exactly what I needed to accomplish

would you happen to know how to be able to limit the usergroups that can be chosen from the user.php as well?

as a reminder...I am using a modified copy of the user.php from the admin dir in the mod dir and want to limit the usergroups they can choose to drop a user into.

thanks again for the other fix

assassingod 08-30-2003 08:12 AM

Thanks Anime-Loo;):)

drives fast 09-02-2003 03:58 AM

^^

drives fast 09-09-2003 04:59 PM

PLEASE?

would you happen to know how to be able to limit the usergroups that can be chosen from the user.php as well?

as a reminder...I am using a modified copy of the user.php from the admin dir in the mod dir and want to limit the usergroups they can choose to drop a user into.


All times are GMT. The time now is 06:33 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.01085 seconds
  • Memory Usage 1,758KB
  • 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
  • (9)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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