Log in

View Full Version : "Edit User" in postbit username menu


Dream
07-16-2005, 10:00 PM
This will show an "Edit User" link in the postbit user menu. Its the same as going to the user profile and clicking the "User Options" link.

edit postbit template (or postbit_legacy) and fine

<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a

href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><ph

rase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>


after that, add

<if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6">
<tr><td class="vbmenu_option"><a

href="moderator.php?$session[sessionurl]do=useroptions&u=$post[userid]"><phrase

1="$post[username]">Edit User</phrase></a></td></tr>
</if>

boo.3
07-17-2005, 07:14 PM
any screen shots?

amykhar
07-17-2005, 07:16 PM
any screen shots?

you're kidding, right?

Dream
07-17-2005, 07:33 PM
any screen shots?

check out this screenshot https://vborg.vbsupport.ru/attachment.php?attachmentid=31440 and imagine its written "Edit User" instead "Ban Member"

hotrod1
07-17-2005, 11:45 PM
Works great thanks.

bigcurt
07-18-2005, 02:59 AM
Dream did you code the original? I know there is an exact version of this for 3.0.X but I am not sure who coded it and I couldnt find it, but I know its here. Just didnt want anyone getting in trouble, either way this is a VERY nice hack A+

Dream
07-18-2005, 03:15 AM
well its not hard to do... its a pain to go to the user profile just to click "user options", I always do that... if anyone has a problem with me posting this please say so, ill give you authorship, really dont care...

made this by looking at the "quick ban" one in this forum, and posted to save some people time. I always needed this, just didnt have time to look how vBulletin works etc.

thanks for the concern

bigcurt
07-18-2005, 04:13 PM
Yea I totally agree I love this mod, and the quick ban mod. :). Thx

Tony G
07-19-2005, 05:16 AM
Dream did you code the original? I know there is an exact version of this for 3.0.X but I am not sure who coded it and I couldnt find it, but I know its here. Just didnt want anyone getting in trouble, either way this is a VERY nice hack A+

It would be quite difficult to make this code not look like the 3.0 version as it's basically using the same if statement and using code to create a link.

Thank you for sharing. ^^

GrendelKhan{TSU
07-25-2005, 04:17 PM
weird.

installed it but the "edit user" only shows up when I check Register User postbit menu....

when I check my own or other admin's..... nothing. (ie: doesn't appear)

anyone else getting that?

Dream
07-25-2005, 04:37 PM
weird.

installed it but the "edit user" only shows up when I check Register User postbit menu....

when I check my own or other admin's..... nothing. (ie: doesn't appear)

anyone else getting that?

this should appear when viewing a thread... not sure what is the register user postbit menu you are talking about

does it show when you view a thread? have you edited postbit or postbit_legacy?

GrendelKhan{TSU
07-26-2005, 05:26 AM
sorry....let me clarify:

I edited the postbit template. (and later even the postbit legacy one too just to be sure)

-- when I view the drop down menu for REGISTERED USER the "Edit User" option appears.
-- I view the drop down menu for ADMINISTRATOR or MYSELF the "Edit User" option does NOT appear. :speechless:

unless I have the idea of what it supposed to be happening wrong (a likely possibility...me admin n00b :p)

Dream
07-26-2005, 05:29 AM
oh I made it so if the user is an Admin the link doesnt show

remove this if you want it to appear

$post[usergroupid]!= 6 AND

Boofo
07-26-2005, 06:16 AM
well its not hard to do... its a pain to go to the user profile just to click "user options", I always do that... if anyone has a problem with me posting this please say so, ill give you authorship, really dont care...

made this by looking at the "quick ban" one in this forum, and posted to save some people time. I always needed this, just didnt have time to look how vBulletin works etc.

thanks for the concern

Do you have a link to the ban link mod in your pic? ;)

Joe Gronlund
08-17-2005, 04:54 AM
Nice work

ryuuchida
09-02-2005, 11:23 AM
Very nick hack. Thanks a lot! :)

icemann
09-19-2005, 07:33 PM
Very nice and it worked just fine. :)

gethinoakes
09-29-2005, 07:41 PM
Thanks, is the Ban User in postbit username menu code available for 3.5?

Allan
10-05-2005, 02:43 PM
Very Nice this hack Dream, congratulation ;)

Click Install :)

007
10-07-2005, 07:49 AM
What is the difference between this hack and the Quick Ban hack for 3.5?

Do you have to log into the admin or mod panel still or does this skip that.. It would be nice to be able to ban in an instant and be done with it. :)

COBRAws
10-07-2005, 09:38 AM
What is the difference between this hack and the Quick Ban hack for 3.5?

Do you have to log into the admin or mod panel still or does this skip that.. It would be nice to be able to ban in an instant and be done with it. :)

I second that!

Kihon Kata
10-21-2005, 08:43 PM
any screen shots?

installed! works great, I might pee my pants

Ragnarok
12-11-2005, 08:55 AM
Looks great! Moved it up to underneath the View Profile option, and changed the text display slightly so it would look nicer.

*clicks install*

Thanks! ^^

YOimYO
12-24-2005, 02:30 AM
Nice one ... ty :D

Nathan2006
03-16-2006, 12:05 AM
Thank you this is going to be much easier

Install

Lost_Prophet
03-16-2006, 11:57 AM
Excellent - simple but effective, thank you :)

FractalizeR
11-02-2007, 03:28 PM
Please see updated version of this hack here for 3.6.8: https://vborg.vbsupport.ru/showthread.php?t=161755

No manual template edits needed.

Dream
11-02-2007, 03:30 PM
ohh thanks for this, checking it out now

vithorius
11-25-2008, 08:01 AM
I'm just looking for something like this (in username menu!) but I would like to know if this hack works ok with vB 3.7.x? :confused:

Thank you! :up: :up: