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)
-   -   Mods can edit username, useremail, homepage and signature (https://vborg.vbsupport.ru/showthread.php?t=35010)

Sandron 02-11-2002 10:00 PM

That's my first hack. :)

The hack allows your mods to edit username, useremail, homepage and signature only from registered users via modCP.

Changed files: user.php in mod directory

All further instructions can be found in the attachment.

Xenon 02-12-2002 12:24 PM

h?ttest wenigstens dazuschreiben k?nnen, dass der hack von mir ist tobi :mad:


Edit: Download bugfixed Version 1.0a here

Sandron 02-12-2002 12:37 PM

Den hab ich heute morgen selber programmiert Stefan. Von dir hab ich nur den mit den Avataren...

Xenon 02-12-2002 12:38 PM

wieso meinst du konnte man beim d2n sonst diese ganzen änderungen machen????

du hast ihn zwar etwas optimiert, muss ich dir ja zugestehn, aber die grundversion hab ich noch damals im d2n gebaut gehabt

MrLister 02-12-2002 01:29 PM

for those that don't speak german and are itching to see what they're talking about http://babelfish.altavista.com/tr

Lesane 02-12-2002 02:14 PM

Quote:

Originally posted by MrLister
for those that don't speak german and are itching to see what they're talking about http://babelfish.altavista.com/tr
or u can simply translate the thread by "Translate Thread" under the thread (between Forum Jump & Admin Options) ;)

Lionel 02-12-2002 10:00 PM

tanslate that! @###$!!!****@@@@@

Xenon 02-24-2002 04:44 PM

sorry for this guys, we've cleared this outside, theres no need for an translation ;)

@Tobi: Warum eigentlich bei den Betahacks und nicht bei full releases? gibt doch keinerlei fehler
(i ask, why he put this hack into the Beta Area and not to the full releases)

Chris M 04-16-2002 01:34 PM

Right...

I like this Hack...

Just one problem...

How do I remove the "Edit Username" function of it...

I dont want our mods editing user's usernames...

Satan

Sandron 04-16-2002 02:29 PM

Hello hellsatan

Instead of this
PHP Code:

maketableheader("Edit User - $user[username] (userid: $user[userid])");
      
makeinputcode("User Name","ausername",$user[username],0);
      
makeinputcode("Email Address","email",$user[email],0);
      
makeinputcode("Home Page","homepage",$user[homepage],0);
      
maketextareacode("Signature","signature",$user[signature],8,45);
      echo 
"<input type=\"hidden\" name=\"userid\" value=\"$user[userid]\">";
      echo 
"</td></tr>"

take this:
PHP Code:

maketableheader("Edit User - $user[username] (userid: $user[userid])");
     
makeinputcode("Email Address","email",$user[email],0);
      
makeinputcode("Home Page","homepage",$user[homepage],0);
      
maketextareacode("Signature","signature",$user[signature],8,45);
      echo 
"<input type=\"hidden\" name=\"userid\" value=\"$user[userid]\">";
      echo 
"</td></tr>"

Also replace this
PHP Code:

$DB_site->query("UPDATE user SET
username='"
.addslashes(htmlspecialchars($ausername))."'$pwdinclude,email='".addslashes(htmlspecialchars($email))."',homepage='".addslashes(htmlspecialchars($homepage))."',signature='".addslashes($signature)."' WHERE userid=$userid"); 

with
PHP Code:

$DB_site->query("UPDATE user SET email='".addslashes(htmlspecialchars($email))."',homepage='".addslashes(htmlspecialchars($homepage))."',signature='".addslashes($signature)."' WHERE userid=$userid"); 

Didn't try it out, but it should work.


All times are GMT. The time now is 01:11 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.01209 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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