vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Fairly simple question... (https://vborg.vbsupport.ru/showthread.php?t=55325)

Leo Wyatt 07-16-2003 10:33 AM

Fairly simple question...
 
I'm installing a hack, and somewhere in the file it says

// ###################### Start usergroupchooser #######################
Then a bunch of code below

[mods can edit users hack by Xenon is what Im adding]

What do I do with the code below? Do I have to run it as a query? Or what?

Thanks and excuse my newbie-ness ;)

Xenon 07-16-2003 03:16 PM

this line you posted above belongs to the code you have to add to your file.
ok, it's just a comment, but it's belonging to the code you have to add :)

Leo Wyatt 07-16-2003 05:29 PM

Yeah, I know it's a comment - but I mean where do I add the code below it? And well...the other codes under the other comments, too :p

Rose 07-16-2003 05:32 PM

I think you just add the code directly below it as specified in the hack's instructions. You just open the php file, add code as instructed, save, adn reupload the file.

Leo Wyatt 07-16-2003 06:51 PM

Ah - I see...all in user.php...Okay - thanks Rose, I'll try it.

Xenon 07-16-2003 08:07 PM

/me hugs rose for making my work ^^

*relaxing*

Rose 07-16-2003 08:13 PM

:D I got a hug!!

[high]* Rose hugs stefan
[/high]

Leo Wyatt - getting it? :D If not, just post back and someone'll be sure to help. :) And do share the url to your board when it's available. ;)

Leo Wyatt 07-17-2003 12:07 PM

Yep - it worked. Thanks again :D Oh and it's already open if ya wanna see it :)

http://www.reality-boards.net/forum :D

okay okay - maybe I do have ONE questions for you, Xenon - what do I need to add to make it so that I can specify the mods that can edit users? [like if i don't want ALL of them to be able to edit it]

Xenon 07-17-2003 12:43 PM

well as i stated in the supportthread already, all you have to do is to make some kind of permission selcting by using if clauses:

PHP Code:

if ($bbuserinfo['userid'] == 5)
{
  
$canedit['....'] = 1;
...
} else {
$canedit['...'] = 0


Leo Wyatt 07-17-2003 03:24 PM

Thanks again both of ya. I got the hack all set :D


All times are GMT. The time now is 10:52 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.01392 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete