Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
"Edit User" in postbit username menu Details »»
"Edit User" in postbit username menu
Version: 1.00, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 07-16-2005 Last Update: 07-16-2005 Installs: 36
Re-useable Code  
No support by the author.

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

Code:
	<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

Code:
	<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>

Show Your Support

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

Comments
  #12  
Old 07-25-2005, 04:37 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU
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?
Reply With Quote
  #13  
Old 07-26-2005, 05:26 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )
Reply With Quote
  #14  
Old 07-26-2005, 05:29 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh I made it so if the user is an Admin the link doesnt show

remove this if you want it to appear

Code:
$post[usergroupid]!= 6 AND
Reply With Quote
  #15  
Old 07-26-2005, 06:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dream
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?
Reply With Quote
  #16  
Old 08-17-2005, 04:54 AM
Joe Gronlund Joe Gronlund is offline
 
Join Date: Jun 2005
Location: Toronto, Ontario, Canada
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work
Reply With Quote
  #17  
Old 09-02-2005, 11:23 AM
ryuuchida ryuuchida is offline
 
Join Date: Sep 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nick hack. Thanks a lot!
Reply With Quote
  #18  
Old 09-19-2005, 07:33 PM
icemann's Avatar
icemann icemann is offline
 
Join Date: Sep 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice and it worked just fine.
Reply With Quote
  #19  
Old 09-29-2005, 07:41 PM
gethinoakes gethinoakes is offline
 
Join Date: Sep 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, is the Ban User in postbit username menu code available for 3.5?
Reply With Quote
  #20  
Old 10-05-2005, 02:43 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice this hack Dream, congratulation

Click Install
Reply With Quote
  #21  
Old 10-07-2005, 07:49 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

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 01:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04770 seconds
  • Memory Usage 2,299KB
  • 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
  • (3)bbcode_code
  • (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