Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: 1.00, by Sandron Sandron is offline
Developer Last Online: Aug 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-11-2002 Last Update: Never Installs: 23
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-16-2002, 05:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #13  
Old 04-16-2002, 07:35 PM
Sandron Sandron is offline
 
Join Date: Feb 2002
Location: germany
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #14  
Old 04-16-2002, 07:44 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #15  
Old 04-16-2002, 08:21 PM
Sandron Sandron is offline
 
Join Date: Feb 2002
Location: germany
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #16  
Old 04-17-2002, 07:34 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #17  
Old 04-18-2002, 08:42 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 2.2.5 properly?
  #18  
Old 04-19-2002, 01:05 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it does...

Satan
  #19  
Old 05-21-2002, 11:54 PM
Ian's Avatar
Ian Ian is offline
 
Join Date: Mar 2002
Location: Minnesota
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
  #20  
Old 06-17-2002, 06:49 PM
comprichie comprichie is offline
 
Join Date: Jun 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
  #21  
Old 06-27-2002, 05:31 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:46 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.05778 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete