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 Users (https://vborg.vbsupport.ru/showthread.php?t=42096)

Xenon 07-12-2003 04:42 PM

read through this thread, the solution has been posted already

4thgenresource 08-02-2003 07:25 PM

Xenon, i haven't seen my question answered here yet:

Hoping you can help me out :)

I did the Miserable and Starved user hacks from Zzed, and I want the specified user groups for this hack to be able to edit users as miserable or starved....

I tried hte miserable out on my own, and i got the field into the table so they could click yes or no, but whenever I would have a supermod (for instance) click the YES circle, and save the changes, it would revert back to NO circle and not make them miserable users..

You have any ideas on what I need to do? :(

Thanks in advance :)

4thgenresource 08-03-2003 05:32 AM

Neverf mind......i figured it out :cool:

Xenon 08-03-2003 07:42 PM

:)
glad to hear :)

midnightz 08-26-2003 08:50 PM

Quote:

08-02-03 at 03:25 PM 4thgenresource said this in Post #122
Xenon, i haven't seen my question answered here yet:

Hoping you can help me out :)

I did the Miserable and Starved user hacks from Zzed, and I want the specified user groups for this hack to be able to edit users as miserable or starved....

I tried hte miserable out on my own, and i got the field into the table so they could click yes or no, but whenever I would have a supermod (for instance) click the YES circle, and save the changes, it would revert back to NO circle and not make them miserable users..

You have any ideas on what I need to do? :(

Thanks in advance :)

Hi - How did you achieve it?

gmarik 08-27-2003 06:34 AM

Can Username changes to?

MaDCaT75 08-27-2003 07:15 AM

hehe whoops forgot to click install :p

Xenon 08-28-2003 12:46 PM

@MdCat: :)

@gmarik, yes, as seen in the permission section in the first post.

MaDCaT75 09-04-2003 02:10 AM

Quote:

08-28-03 at 02:46 PM Xenon said this in Post #128
@MdCat: :)

But I only have one moderator on my board and he doesnt really do all that much moderating - my forum is pretty much dead :cry:

Xenon 09-04-2003 02:07 PM

Kristina, my own forums aren't that active, but i coded it though ;)
Well it's also a reason why i'm here that often ;)

@Me!: Well as you have to add code to user.php it will work, maybe you have to change one or two things where you add the edit user link, but nothing else normaly.

midnightz 09-11-2003 09:00 PM

Ok I added this hack, But have a few questions, I also added the info code by BorgGanon.

I am having trouble on 3 things (it might be because of a major sinus headache)

confiquiring the script to have only my mods and or supermods I choose have access?

I wish to deny all off them the ability to mass prune or move, only myself I wish to have that control?

I would like them to be able to make the users miserbale if needed, but dont know what to add and where for that to happen? (the miserable users hack is installed)

Thanks,

midz

Xenon 09-11-2003 11:43 PM

a) my hack has nothing to do with massmoving permissions. you'll have to ask on vb.com or read the manual on how to do that, as it's not part of my hack

b) i don't know the miserable users hack, so i cannot help you here, maybe start a new support thread for that?

midnightz 09-11-2003 11:58 PM

Ok, thanks,

I thought there might be way to comment out the ability to do that, maybe I will just delete that option from the index.php in the mod / and I think I do a

makeyesnocode("Show Avatars","showavatars",$user[showavatars]);

but cater it too match what the miserable users creates in that hack, it might be ok, since it seems your hack will aknowledge the field if it is an option.

Hope I'm on the right track,

thanks

Ch33chy 09-15-2003 05:13 PM

Quote:

Originally Posted by Me!
Does this work for 2.3.2? I can't seem to find the first bit of coding it asks to find.

I could really really really do with this hack for 2.3.2 !!!!
Im a total newbie when it comes to coding though, and the instructions appear to be mega different for this version.

If i beg nicely, whats the chances of someone making this work/ providing instructions for 2.3.2 ?

Xenon 09-16-2003 05:16 PM

you are calling one line slightly changed a "mega difference"????

what is changing one letter? big difference?

/me has edited the attachment

Ch33chy 09-16-2003 08:12 PM

If there was a slight change then i'd probably be ok with it :)

However as a noob to coding, I read your instructions which start off
Code:

Open mod/user.php:
------------------
find:
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";

I searched for several bits of that in user.php and Im afraid I couldn't see anything too similiar. Despite searching for several bits of the above line I couldnt find so presumed the code had changed a lot for the version I using.

It may in fact be a slight difference, but just didnt want to break a spangly new working forum :)

Thanks in advance for any advice, and apologies if I appear to be too noobish ;)
Only added 1 other hack to date, and that was more straight forward with what needed changing.

Xenon 09-16-2003 09:42 PM

all that changed in that line was that the devs use &amp; instead of & in urls now.

as said i'Ve updated the attachment already

Ch33chy 09-16-2003 10:29 PM

many thanks for the quick reply and great work.
Apologies for screwing up the thread scrolly style.

Ian Cunningham 09-19-2003 03:35 PM

I get :
Parse error: parse error in /home/pcreview/public_html/mod/user.php on line 69

when installing this

Yes... It is installed correctly ;)

Xenon 09-19-2003 03:42 PM

Quote:

Originally Posted by Ian Cunningham
Yes... It is installed correctly ;)

nope it's not, as if it would be installed correctly it would work :p

also you should read the rule about parse errors:
post 5 lines ahead and below, because we're not omniscient and don'T know what the heck is on line xy of your files

zsmom 10-06-2003 11:47 PM

I installed it on 2.3.2 with no problems...works like a charm!

Quote:

you have to add an inputfield for the postcount and edit the updating sql query if you want your mods to be able to edit users posts counts.
Oh how I wish I understood this language! I guess I'll have to wait until the next version to get the option for mods to change post counts. :(

Many thanks for the great hack!

Xenon 10-07-2003 03:31 PM

:)
it's just a copy&paste job, if you look into admin/user.php and copy the part you need for postcounts ;)

i won't add anymore features into the vb2 version of this hack, new features would be added to the vb3 version, once this will be written by me :)

zsmom 10-07-2003 03:42 PM

Quote:

Originally Posted by Xenon
:)
it's just a copy&paste job, if you look into admin/user.php and copy the part you need for postcounts ;)

i won't add anymore features into the vb2 version of this hack, new features would be added to the vb3 version, once this will be written by me :)

I looked in the admin/user.php file to see if I could find the part that I needed to copy & paste and didn't see anything jump out at me, but I'm a total n00b so that's to be expected! :)

amairiya 12-28-2003 04:26 PM

Is there a portion of a code I could add into this to allow my moderators to change the access masks of a user?

stark427 02-05-2004 12:24 AM

Brilliant hack :)

Thanx a lot!

stark427 02-10-2004 12:14 AM

Quote:

Originally Posted by Xenon
With this Hack your Mods can edit really everything of a user account, nearly as much as an Admin can! (Changing usergroups....)

But it is very customizable, too. If you don't want em to change usergroups, then they can't. Or you can define which usergroups they can move the users into..

Also if you add if-clauses in the front section to the hack, you can customize it to which of your mod can modify which fields..

this block in front of the hack code defines nearly everything you need to customize the hack:

$canedit[profilefields]=1;
$canedit[timefields]=0;
$canedit[options]=1;
$canedit[addresses]=1; // HP, Email, ICQ, AIM ...
$canedit[signature]=1;
$canedit[title]=0;
$canedit[name]=1;
$canedit[avatars]=1; // 0 Cant edit, 1 Can edit, 2 Can upload custom avatars
$canedit[changegroups]=0; // Mods can move users from one group to another (just groups included in $canedit[usergroupids])
$canedit[usergroupids]="1 2 3 4 10 11"; // Which usergroups can be edited


Screenshots in following Posts

Xenon, could you please add the option for the moderator to be able to moderate new registrations?

That would be very handy :squareeyed:

Xenon 02-10-2004 12:58 AM

hmm, i'll think about it, but my time is limited and i don't have any vb2 testboards anymore, so it's not likely ;)

BlackxRam 03-26-2004 04:33 AM

Hey Xenon any word on this for a VB3 version?

Im trying to restrict certain ADMINS from accessing certain USERGROUPS.

How hard would it be to convert this over?

Xenon 03-26-2004 02:16 PM

well, the vb3 version is planned in a more detailed way, but right now my time is too limited because of vb.org internal things and university tests..

so i cannot give an ETA when i'll release this mod for vb3

-mk- 06-29-2004 04:33 AM

I would also love this for vB3 :)

This is exactly what ive been looking for.

brownafroduck 07-07-2004 04:45 AM

Great hack!

/me clicks install!

Michael Morris 09-01-2004 08:05 AM

Chiming in another vb3 request :)

Xxman 10-09-2004 02:09 PM

@ Xenon : "please help me even if the Vb2 Hack support is finished !"

How I have to modify your hack for show in usergroup combo box the actual user's usergroup instead that the selected one ordered by this script ?

PHP Code:

// Build WHERE clause
  
$splitlist=explode(" ",$usergroups);
  
$wheresql"0 ";
  while (list(
$key,$val)=each($splitlist)) {
    
$wheresql.=" OR usergroupid=".$val;
  }

  echo 
"<tr class='".getrowbg()."' valign='top'>\n<td><p>$title</p></td>\n<td><p><select name=\"$name\"".iif($size!=0," size=\"$size\"","").">\n";

  
$result=$DB_site->query("SELECT title,usergroupid FROM usergroup WHERE ".$wheresql." ORDER BY title");
  while (
$currow=$DB_site->fetch_array($result)) { 

Thank's in advace magister ! ;)

Xenon 10-10-2004 09:48 PM

Sorry, but i do not understand what you want to change.

*confused*

Xxman 10-11-2004 08:05 AM

Well,
if I have to modify a user's profile searching for it ( a registered user for example ) in the usergroup combo box will be diplayed as default "coppa user" instead the correct user's usegroup. If a moderator doesn't realize it a trouble will be produced . You can fix this ?

Thanks.

Xenon 10-11-2004 05:21 PM

Hmm, wierd according to my tests in the past it does that already.

also the "selected" is where it should be.

So it may be a browser issue, but as i don't have a vb2 anymore since one year now, i cannot help you out more.

Xxman 10-12-2004 09:55 AM

Thanks however, you've been very kind to answer me ..

Xenon 10-12-2004 03:50 PM

Sorry that i can't help out more.

Maybe when i write a vb3 version, i may run over this problem again and find something :)

rex_b 11-10-2004 09:34 PM

when can we expect the vb3 version oh great one!?

Xenon 11-11-2004 04:22 PM

I would like to know myself ^^

actually my schedule is totally full currently :(


All times are GMT. The time now is 12:01 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.01352 seconds
  • Memory Usage 1,829KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_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
  • (40)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