vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New "memberaction_dropdown" option (https://vborg.vbsupport.ru/showthread.php?t=319639)

Duckface 07-27-2015 05:45 PM

New "memberaction_dropdown" option
 
Hiya,

I've added a new option to the memberaction_dropdown template with the following code:

HTML Code:

                <vb:if condition="$show['modcplink']  ">
                <li class="right">
                        <a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw memberinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1" class="siteicon_banUser" rel="nofollow">
                                Ban User
                        </a>
                </li>
                </vb:if>

I wish for the option to move the user to a certain group id in which case the Muted group (16). I don't know which admincp link I could use?

Elite_360_ 07-27-2015 10:41 PM

Only admin will see link

HTML Code:


<vb:if condition="$show['admincplink']  ">
        <li class="right">
                <a href="{vb:raw vboptions.bburl}/admincp/user.php?{vb:raw session.sessionurl}do=edit&amp;u={vb:raw memberinfo.userid} class="siteicon_edit_user " rel="nofollow">
                        Edit User
                </a>
        </li>
</vb:if>

Added this to additional.css Template
Code:


.memberaction_body.popupbody li .siteicon_edit_user {
        background:url({vb:stylevar imgdir_button}/edit_40b.png) {vb:stylevar left} 2px no-repeat;
}



All times are GMT. The time now is 01:14 PM.

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.01091 seconds
  • Memory Usage 1,712KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete