vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Administrative and Maintenance Tools - add "Edit Profile" button in the member action drop menu (https://vborg.vbsupport.ru/showthread.php?t=263589)

fnrtop 05-12-2011 10:00 PM

add "Edit Profile" button in the member action drop menu
 
1 Attachment(s)
Hello everyone,

lately it have been really making me sick every time i wanted to edit a user name or his title or promote him ... etc

I started playing around with the codes and it worked so I figured to share it with you guys

1- open Styles & Templates> Search in Templates and look for
PHP Code:

popupmenu memberaction 

2- in the template "memberaction_dropdown"
after this code
PHP Code:

<li class="left">
            <
img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" />
            <
a href="{vb:link member, {vb:raw memberinfo}}">
                {
vb:rawphrase view_profile}
            </
a>
        </
li

add this code

PHP Code:

<li class="right">
            <
img src="[COLOR="Red"]images/buttons/edit_40b.png[/COLOR]" alt="{vb:rawphrase edit_user_profile}" />
            <
a href="moderator.php?{vb:raw session.sessionurl}do=useroptions&amp;userid={vb:raw memberinfo.userid}">
                
Edit Profile
                            
</a>
        </
li

if the image didnt work make sure to change it distenation to your style directory

I hope this was helpful and will make your job easier haha

:up:

Dr.osamA 05-15-2011 07:38 AM

thank you bro

installed

MediaHound 05-28-2011 01:35 PM

You might want to wrap it with
PHP Code:

<vb:if condition="$show['modcplink']">
...
</
vb:if> 


Last_Zero 05-28-2011 03:54 PM

Quote:

Originally Posted by MediaHound (Post 2200885)
You might want to wrap it with
PHP Code:

<vb:if condition="$show['modcplink']">
...
</
vb:if> 


Thats Right So Only Mods See It

The Template Called (( memberaction_dropdown )) On My vBulletin

Divvy 08-10-2011 10:56 PM

Suggestion:

change:
PHP Code:

<img src="[color="Red"]images/buttons/edit_40b.png[/color]" alt="{vb:rawphrase edit_user_profile}" /> 

to:
PHP Code:

<img src="images/buttons/edit_40b.png" alt="{vb:rawphrase edit_user_profile}" /> 

to fix the image issue... you added a wrong tag inside the src, will not work like that :)

archet1337 08-11-2011 10:16 AM

Great mod. Thanks a lot for sharing! :)

bp323 09-12-2011 02:21 AM

excellent & very helpful piece! thank you


All times are GMT. The time now is 03:25 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.00985 seconds
  • Memory Usage 1,738KB
  • 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
  • (7)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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