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)
-   -   Edit Profiles From Mod Cp (https://vborg.vbsupport.ru/showthread.php?t=33473)

Lucky 01-10-2002 08:53 AM

Any luck yet?

black 01-10-2002 08:58 PM

sorry school is holding me back im trying to get time tho :)

Lucky 01-16-2002 05:03 AM

Anything?

Dark_Wizard 01-20-2002 05:06 PM

There was some code missing from the hack. I will post an update to it once I have it documented.

Lucky 01-21-2002 09:47 AM

Can't wait :)

GK_ng 02-27-2002 06:47 PM

I installed this Hack, but my Mods weren't given the option to edit user profiles, so I examined what was missing:

In mod/user.php
Replace
Code:

    while ($user=$DB_site->fetch_array($users)) {
      echo "<tr><td nowrap><p>$user[username]</p></td>".iif($perms[ismoderator] or $ismod['canbanusers']==1, "<td nowrap><a href=\"user.php?action=ban&userid=$user[userid]\"><p>[ban]</p></a></td>", "").iif($perms[ismoderator] or $ismod['canviewprofile']==1, "<td nowrap><a href=\"user.php?action=viewuser&userid=$user[userid]\"><p>[view user]</p></a></td>", "")."</tr>\n";
    }

with
Code:

    while ($user=$DB_site->fetch_array($users)) {
      echo "<tr><td nowrap><p>$user[username]</p></td>".iif($perms[ismoderator] or $ismod['canbanusers']==1, "<td nowrap><a href=\"user.php?action=ban&userid=$user[userid]\"><p>[ban]</p></a></td>", "").iif($perms[ismoderator] or $ismod['canviewprofile']==1, "<td nowrap><a href=\"user.php?action=viewuser&userid=$user[userid]\"><p>[view user]</p></a></td>", "").iif($perms[ismoderator] or $ismod['caneditprofile']==1, "<td nowrap><a href=\"user.php?action=edit&userid=$user[userid]\"><p>[edit user]</p></a></td>", "")."</tr>\n";
    }

I didn't check if this automatically hides the "edit"-option if you're not allowed to edit, I relied on a different check for that ...

black 02-27-2002 08:13 PM

sorry forgot that....

This weekend im going to make a new one ... this one is not so secure ... and i dont feel please with it

okrogius 02-27-2002 10:47 PM

[QUOTE]Originally posted by black
sorry forgot that....

This weekend im going to make a new one ... this one is not so secure ... and i dont feel please with it

Nupraptor 04-23-2002 01:48 AM

Mind sharing the link to that one, Codename?

bonnmac 05-08-2002 04:50 AM

I'd be very intrested in the secure one. With the other one I found out that mods could edit admins. That I wasn't comfortable with. Hope your new one doesn't allow that. Looking forward to you releasing it. :)


All times are GMT. The time now is 04:51 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.01117 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_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