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)

Chris M 04-16-2002 05:44 PM

Thanks...

I was thinking about this earlier, and I thought of something that would be good to add to it, but I dont know how...:(

At ThePhora, we have a big craze on at the moment of Glowing Custom Titles - At the moment, only Admins can do it via the Admin CP, but I was wondering if there was a way to allow Mods to do it...

If you wouldnt mind...

I think it would be a great Hack to add, and I am sure that some people would like the idea of Custom Glowing Titles...They would need to be able to add HTML to it, so if that is not too much of a problem...

Quote:

<b><table style="filter:glow(color=yourcolour, strength=3,400)"><font color=white>Your title</font></table></b>
Satan

Sandron 04-16-2002 07:35 PM

First I didn't get what you want, but I think you want your mods to be able to change usertitles. In this case you have to add this code:

Under
PHP Code:

maketableheader("Edit User - $user[username] (userid: $user[userid])"); 

add
PHP Code:

makeinputcode("User Title","usertitle",$user[usertitle]);
      
makeyesnocode("Use Custom Title","customtitle",$user[customtitle]); 

and replace
PHP Code:

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

with
PHP Code:

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

Try it out and tell me, if it works for your mods :)

Chris M 04-16-2002 07:44 PM

I would love to...

Big Problem...

I am getting this error when I try and view the Database -

Quote:

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: SELECT *,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,FROM_UNIXTIME(awaydate) AS awaydateastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,
avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar
FROM user
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
WHERE user.userid=13
mysql error: You have an error in your SQL syntax near ') AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,
' at line 1

mysql error number: 1064

Date: Tuesday 16th of April 2002 02:39:41 PM
Script: http://www.thephora.com/admin/user.p...edit&userid=13
Referer: http://www.thephora.com/admin/
Any clues as to what it might be?

Satan

Sandron 04-16-2002 08:21 PM

Hm, I checked it out on my forum and there the code I provided works fine.
I'm also wondering, why the error comes up in your admin directory, the code doesn't change anything there.

I hope you have a backup, because I can't imagine where the error comes from.

Where did you the changes? Perhaps you edited in your admin directory and not in the mod directory? Because this piece of code doesn't exist in my edit code for mods, but it exists in the edit code for admins.

Chris M 04-17-2002 07:34 PM

Whatever it was, it sorted itself out...

I think I made a tiny syntax error earlier in the day...

I work on 2 machines, and the one I worked on was the one that caused the problem...I think I hit a key and didnt realise it...

Luckily, I had made the adjustments in the index.php file on my other computer already, so I uploaded that one after adding more to it, and it corrected the problem...

I shall be installing this hack within the next few days...I only clicked "install" when I did, so I can identify it when I visit the Beta Hacks forum once more...

Thanks for the Hack - This is a Great hack...You should be proud...

Satan

KuraFire 04-18-2002 08:42 PM

Does this work on 2.2.5 properly?

Chris M 04-19-2002 01:05 PM

Yes it does...

Satan

Ian 05-21-2002 11:54 PM

Thos hack isn't working for me... When I click the "edit" link I get a blank page... Here's the contents of it:
Code:

<html><head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link rel="stylesheet" href="../cp.css">
</head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
</BODY></HTML>

I double checked to make sure I applied the hack right and everything looks good... I'm using version 2.2.5 BTW. Any idea what's wrong?

comprichie 06-17-2002 06:49 PM

Hi, to all
I am new on this forum, and I want to say that this is a great board.
I have a question that is:
I have vb 2.2.6. and I want to use the hack so that mods can edit users.
I found a script for 2.2.2, but this one is not working with me.
When i want to edit a user, it says that it can not find the page.

Can I change the script, so yes how?
I dont want to give my mods admin.
Is there an option, or a new script?

I hope that here is someone who can help me.

Thanx,

Palmer ofShinra 06-27-2002 05:31 AM

I just hope you guys realize that an unscrupulous mod can use this to hijack any account by setting up a dummy email, then editing a users email to their own, and then using "lost password"


All times are GMT. The time now is 12:36 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.01131 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_php_printable
  • (2)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