Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Edit User Options Menu Details »»
Edit User Options Menu
Version: 1.00, by SnowBot SnowBot is offline
Developer Last Online: Oct 2016 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-06-2005 Last Update: 10-06-2005 Installs: 57
Template Edits
 
No support by the author.

Edit User Options Menu

Auther: SnowBot @ http://www.synergyforums.com

What Does It Do?
This will give staff the ability to edit users Signatures, Avatars & Profile Picture
directly from the postbit dropdown menu.

Screenshots?
Attached

Dont forget to click iNSTALL

Show Your Support

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

Comments
  #12  
Old 10-21-2005, 11:44 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice
Reply With Quote
  #13  
Old 10-21-2005, 11:53 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

Just for reference, the following start to the if condition is a bit hefty:

HTML Code:
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
You can use the [high]is_member_of[/high] function in template conditionals:
HTML Code:
<if condition="!is_member_of($post['usergroupid'], array(5,6,7)) AND can_moderate($forum['forumid'], '', $bbuserinfo['userid'])">


Chris
Reply With Quote
  #14  
Old 10-21-2005, 11:55 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a specific reason that you do not want the options to show up for admins/mods/smods? I think that would actually be useful it they did.

Besides, you should not check for moderator, because moderator cannot edit anything. Check for administrator instead...
Reply With Quote
  #15  
Old 10-22-2005, 12:22 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
Is there a specific reason that you do not want the options to show up for admins/mods/smods? I think that would actually be useful it they did.

Besides, you should not check for moderator, because moderator cannot edit anything. Check for administrator instead...
The code checks to see if the poster is a supermod, administrator or moderator, not the other way around
He put the code, not me

I personally would have put:

PHP Code:
<if condition="!is_member_of($post['usergroupid'], array(5,6,7)) AND is_member_of($bbuserinfo, array(5,6))"
Chris
Reply With Quote
  #16  
Old 10-22-2005, 12:35 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But why $post['usergroupid']? $bbuserinfo['usergroupid'] would make more sense
Besides, that is not how you use is_member_of
Valid syntax:
is_member_of($userinfo_array, $usergroups_array)
e.g.
is_member_of($bbuserinfo, array(5,6,7))


And I know you did not put it, never said you did
Reply With Quote
  #17  
Old 10-22-2005, 02:29 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

Evidently you fail to understand how this hack functions

It is $post['usergroupid'] because we are checking if the POSTER is not an admin, supermod or mod; i.e. If the poster isn't staff, and the user browsing is, then they can edit the options...

I know what I'm doing

You've just gotten confused about the !is_member_of and is_member_of code

Chris
Reply With Quote
  #18  
Old 10-22-2005, 02:44 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
It is $post['usergroupid'] because we are checking if the POSTER is not an admin, supermod or mod; i.e. If the poster isn't staff, and the user browsing is, then they can edit the options...
read earlier:

Quote:
Is there a specific reason that you do not want the options to show up for admins/mods/smods? I think that would actually be useful it they did.
I meant, is there a reason that it shouldn't show up on staff's posts?
Reply With Quote
  #19  
Old 10-22-2005, 02:52 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

The reason is that the author of this modification had that as default - I simply made it part of the !is_member_of function instead of another AND clause for each usergroup...

I personally don't want my mod's editing each other's signatures or my signature etc from the postbit, and thankfully most are not clued in enough to find the Mod Panel abilities to do so

Chris
Reply With Quote
  #20  
Old 10-22-2005, 06:19 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, if anyone is interested, this is the code I use:

Quote:
<if condition="is_member_of($bbuserinfo, array(5,6))">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">< b>Edit $post[username]'s Signature</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">< b>Edit $post[username]'s Avatar</b></span></td></tr>
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')">< b>Edit $post[username]'s Profile Picture</b></span></td></tr>
</if>
Reply With Quote
  #21  
Old 11-05-2005, 06:08 PM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, ;-)
Reply With Quote
Reply


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:34 PM.


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.10160 seconds
  • Memory Usage 2,314KB
  • 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
  • (2)bbcode_html
  • (1)bbcode_php
  • (4)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
  • (3)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