vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - User Management in Postbit and Profile v2 (https://vborg.vbsupport.ru/showthread.php?t=140398)

HMBeaty 02-24-2007 10:00 PM

User Management in Postbit and Profile v2
 
Small bug: vBSEO somehow affects this mod and shows to all users. It still requires them to log in as Mod, S. Mod, or Admin to use these functions though

Well, first off, a big thanks goes out to UltimateOreo! for coming up with this mod,but I made a somewhat...........for lack of a better word, neater version.

Also, to the staff and anyone else concerned, yes, I got his permission to post this re-write up.

This version, instead of adding directly to the postbit layout, I have it in the postbit in the users dropdown menu. Screenshots will posted later to clarify this a little more.

*NOW WORKS IN THE MEMBERINFO

What this does:
This hack basically allows you to easily manage a user right from the postbit and profile, and guess what? No need for searching! The code allows you to click the option you need, and it will pinpoint whichever user you clicked it on.
UPCOMING ADDITIONS:
Make each option setting controlled by vbulletin options in the admincp
ALSO TAKING SUGGESTIONS
NOTE:
This has been tested on vBulletin Version 3.6.4 and 3.6.5. It should run on previous versions just the same but support will be given only for versions 3.6.4-3.6.5. Also, support will only be given to those that have clicked INSTALL
ORIGINAL VERSIONS:
User Management in Postbit for vBulletin 3.6.4 is available Here
User Management in Postbit Legacy for vBulletin 3.6.4 is available Here
This modification is and will remain free to the public but feel free to Donate :)

Xplorer4x4 02-25-2007 04:25 AM

Very nice way to do this! :)

HMBeaty 02-25-2007 04:49 AM

Thank you. :)

rjmjr69 02-25-2007 05:15 AM

Awesome hack going to install it right now. question How many queries does this add if any?

rjmjr69 02-25-2007 05:24 AM

WOW bro this is really nice. And only one template edit. AMAZING my vote for the best this month for sure...... Thank you so much. And No queries added that I can tell

HMBeaty 02-25-2007 05:26 AM

No queries :) And thank you rjmjr69

JimmyN 02-25-2007 05:41 AM

this is handy, thanks

rjmjr69 02-26-2007 06:40 AM

When ever I click anything in the drop down in the bottom half of the options I get directed to a 404 page?

SkyCatcher 02-26-2007 10:15 AM

It always seems to amaze me how something so simple can be so useful! Love it, will install shortly since I'm redoing my forums. Thanks for this :)

Edit: Installed.

HMBeaty 02-26-2007 04:16 PM

Quote:

Originally Posted by rjmjr69 (Post 1190926)
When ever I click anything in the drop down in the bottom half of the options I get directed to a 404 page?

You may have to edit the URL if it isn't pointing in the right direction.

UltimateOreo! 03-02-2007 11:03 PM

I like what you did with it, user management has a LOT of possibilities. Im working on a hack that basically crams all of the user management features vbulletin has onto one page.

(Crap, not a good idea posting it. NO-ONE TAKE THE IDEA!! I call shotgun on it already!)

HMBeaty 03-03-2007 12:29 AM

Quote:

Originally Posted by UltimateOreo! (Post 1194486)
I like what you did with it, user management has a LOT of possibilities. Im working on a hack that basically crams all of the user management features vbulletin has onto one page.

Thank you, and looking forward to your next mod :)

Skavenger 03-03-2007 05:18 AM

I tried to change the code from this
Code:

<span onmouseover="this.style.cursor='hand';" onClick="window.open('/forum/modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=500,height=375,scrollbars=yes')">Ban $post[username]</span>
to this

Code:

<a href="/forum/modcp/banning.php?do=banuser&userid=$post[userid]">Ban $post[username]</span>
And I get 404 error :S

Losha 03-03-2007 02:02 PM

Thank you,

A simple modification !
FIND:
PHP Code:

<if condition="is_member_of($bbuserinfo, 5,6,7)"

Replaced:

PHP Code:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"

Why use a clause </if> emergence of you and not for all

rjmjr69 03-04-2007 08:23 AM

This is not working in 3.6.5 upgraded and lost the feature. Redid the code and still nothing click usernames brings you to the profile

UltimateOreo! 03-04-2007 12:24 PM

Scavenger, the reason that it's not working because HTML sees the link you are creating as a direct link, so basically, all your doing is pointing your browser directly to that, it won't work. If you would like, I could Re-work my hack to make it point directly to that page, and not a pop-up.

Skavenger 03-04-2007 02:58 PM

Quote:

Originally Posted by UltimateOreo! (Post 1195436)
Scavenger, the reason that it's not working because HTML sees the link you are creating as a direct link, so basically, all your doing is pointing your browser directly to that, it won't work. If you would like, I could Re-work my hack to make it point directly to that page, and not a pop-up.

Yes, please. I need that, but not in the same window, you could use 'target="_blank"'

Thank you!

PS: you could use phrases too :)

HMBeaty 03-04-2007 08:13 PM

Quote:

Originally Posted by rjmjr69 (Post 1195352)
This is not working in 3.6.5 upgraded and lost the feature. Redid the code and still nothing click usernames brings you to the profile

I just upgraded to 3.6.5 as well and its working on my site. Are you using a custom style or the vbulletin default style?

HMBeaty 03-05-2007 12:29 AM

You should also make sure if you're having this problem, that you have

Use 'vBMenu' DHTML Popup Menus?

Set to Yes in your vBulletin Options in your admincp under style and language settings

Black Tiger 03-10-2007 06:41 PM

Did not install it yet, but I found this in the code:
Code:

onClick="window.open('/forum/moderator.php?
I presume this has to be set to whereever your forum resides in? So if it's in /board/ you have to change this to /board/moderator.php, am I correct?

If yes, maybe you could put such notice in the installation manual.

HMBeaty 03-10-2007 08:53 PM

Quote:

Originally Posted by Black Tiger (Post 1200395)
Did not install it yet, but I found this in the code:
Code:

onClick="window.open('/forum/moderator.php?
I presume this has to be set to whereever your forum resides in? So if it's in /board/ you have to change this to /board/moderator.php, am I correct?

If yes, maybe you could put such notice in the installation manual.

Yes, that would be correct. Will upload an updated version in a couple hours as I'm going to change a couple things.

HMBeaty 03-10-2007 09:37 PM

Updated to version 1.1.0 :)

Black Tiger 03-10-2007 09:53 PM

Are you sure? The zip says V2. LoL.:D

HMBeaty 03-10-2007 10:03 PM

Quote:

Originally Posted by Black Tiger (Post 1200483)
Are you sure? The zip says V2. LoL.:D

Thats because this is the 2nd version of this. The 1st version was made by "UltimateOreo!", I just modified his code and recieved his permission to re-release this mod.

But its version 1.1.0 of v2 :D

Skavenger 03-12-2007 02:08 PM

Quote:

Originally Posted by Skavenger (Post 1195507)
Yes, please. I need that, but not in the same window, you could use 'target="_blank"'

Thank you!

PS: you could use phrases too :)

I need this, please!

HMBeaty 03-12-2007 03:33 PM

I'll work on that later tonight.

Ok, as far as opening in the same window, it already does that. Did you just want it to open in a regular new browser window?

HMBeaty 03-12-2007 04:59 PM

Next version will also be a product :) Still working on adding some things to it though so there will be no bugs. It'll be a MUCH cleaner version as far as editing things though ;)

Black Tiger 03-12-2007 05:25 PM

Owz nice, then I'll wait installing until the next version.:)

HMBeaty 03-12-2007 05:37 PM

Just waiting on a response from Skavenger and it'll pretty much be done. Theres going to be alot more additions to it in the future as I'm still learning how to write product code. I'll be making a list of the upcoming features in the first post though :)

HMBeaty 03-12-2007 06:00 PM

Quote:

Originally Posted by valdet (Post 1201786)
great looking mod, but any chance you will upgrade this for postbit_legacy as well?

It works in both :)

rmxs 03-12-2007 09:15 PM

Works also in postbit legacy :)

thanks

HMBeaty 03-13-2007 12:18 AM

JUST updated mod to version 2.3.0!!

This mod is now a product with one VERY SMALL template edit needed. More options will be added in the future. Feel free to post up suggestions to add or change.

valdet 03-13-2007 10:39 AM

I suppose that the list we see on dropdown menu is based on usergroup permissions right, meaning regulars cannot see ban, delete etc.. while mods and admins can do so..

Guess I am too lazy to check out the product file, :)

Thanks.

Skavenger 03-13-2007 12:50 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1201647)
Ok, as far as opening in the same window, it already does that. Did you just want it to open in a regular new browser window?

Yes, in a new browser window/tab (in FF), you could use 'target="_blank"'

PS: this is not working with vBGallery

HMBeaty 03-13-2007 09:46 PM

Quote:

Originally Posted by Skavenger (Post 1202488)
Yes, in a new browser window/tab (in FF), you could use 'target="_blank"'

PS: this is not working with vBGallery

Because I didn't make it for vBGallery. :)

As far as putting it in a seperate window. I'll make another later so there's 2 products for users to choose. One to open in a new browser window, and the current one.

HMBeaty 03-14-2007 01:46 AM

Quote:

Originally Posted by Skavenger (Post 1202488)
Yes, in a new browser window/tab (in FF)

You may download version 2.3.0a for this option now :)

To other users, no need to upgrade if you'd like to keep the windows how they are now

rjmjr69 03-14-2007 02:14 AM

Thanks great mod. Could you get this to link in the User Profile view? I know there is USER OPTIONS button but that brings you to the CP. Could you put this drop down there? in replace or in addition to that button/link? So instead of getting directed to the AdimCP have this drop down there or more?

HMBeaty 03-14-2007 02:32 AM

Quote:

Originally Posted by rjmjr69 (Post 1202994)
Thanks great mod. Could you get this to link in the User Profile view? I know there is USER OPTIONS button but that brings you to the CP. Could you put this drop down there? in replace or in addition to that button/link? So instead of getting directed to the AdimCP have this drop down there or more?

Not sure I understand what you're talking about adding.......sorry.

Are you wanting the "User Options" (as shown in the user profile) added to the dropdown?
Or adding a dropdown to the user profile itself with these options?

rjmjr69 03-14-2007 03:03 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1203002)
Not sure I understand what you're talking about adding.......sorry.

Are you wanting the "User Options" (as shown in the user profile) added to the dropdown?

Exactly. Sorry I did make that a bit confusing. Yes when you click a users name and goto their public profile it would be great to be able to administer the user from there without having to be directed to the admincp.....

HMBeaty 03-14-2007 03:07 AM

Quote:

Originally Posted by rjmjr69 (Post 1203015)
Exactly. Sorry I did make that a bit confusing. Yes when you click a users name and goto their public profile it would be great to be able to administer the user from there without having to be directed to the admincp.....

Ok, I'll work on that later on this week :)


All times are GMT. The time now is 04:04 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.01343 seconds
  • Memory Usage 1,828KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (14)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
  • (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