vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Icons for UserCP Navigation (https://vborg.vbsupport.ru/showthread.php?t=170522)

demgel 02-14-2008 10:00 PM

Icons for UserCP Navigation
 
NOT SUPPORTED VERSION
LOOK AT:
https://vborg.vbsupport.ru/showthread.php?t=170558
FOR 1.1 VERSION :)


Ok, this is a REALLY REALLY simple template edit.

Here you have 2 EXAMPLES in vBulletin Default Skin and other custom skin.

https://vborg.vbsupport.ru/ http://www.nucleohost.com/img/777444vb-usercpicons2.gif

Tested on vBulletin 3.7 Beta 4 & Beta 5, works fine.

Instructions

1. Upload the "usercp_icons" folder to your images/misc folder.

2. Go to admincp, style manager and open the "USERCP_SHELL" template (inside User Control Panel Templates).

3. Find all the text between the tags:
PHP Code:

<!-- usercp nav -->
[
ALL THE CODE HERE]
<!-- / 
usercp nav --> 

And Replace with:
PHP Code:

<!-- usercp nav -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0">
<
tr><td class="tcat" nowrap="nowrap" colspan="2"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_control_panel]</a></td></tr>
<
tr><td class="thead" colspan="2"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
    <
tr><td class="$navclass[profile]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/user_edit.gif" width="16" height="16"></td><td class="$navclass[profile]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
    <if 
condition="$show['customizelink']">
    <
tr><td class="$navclass[customize]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/vcard_edit.gif" width="16" height="16"></td><td class="$navclass[customize]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></td></tr>
    </if>
    <if 
condition="$show['profilepiclink']">
    <
tr><td class="$navclass[profilepic]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/picture_edit.gif" width="16" height="16"></td><td class="$navclass[profilepic]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
    </if>
<
tr><td class="thead" colspan="2">$vbphrase[networking]</td></tr>
    <
tr><td class="$navclass[buddylist]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/emoticon_smile.gif" width="16" height="16"></td><td class="$navclass[buddylist]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
    <if 
condition="$show['socialgroupslink']">
    <
tr><td class="alt2" nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/group.gif" width="16" height="16"></td><td class="alt2" nowrap="nowrap"><class="smallfont" href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
    </if>
    <if 
condition="$show['publicgroups']">
    <
tr><td class="$navclass[usergroups]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/group_add.gif" width="16" height="16"></td><td class="$navclass[usergroups]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td></tr>
    </if>
    <if 
condition="$show['albumlink']">
    <
tr><td class="$navclass[album]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/photos.gif" width="16" height="16"></td><td class="$navclass[album]nowrap="nowrap"><class="smallfont" href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a></td></tr>
    </if>
<
tr><td class="thead" colspan="2">$vbphrase[settings_and_options]</td></tr>
    <if 
condition="$show['avatarlink']">
    <
tr><td class="$navclass[avatar]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/picture_empty.gif" width="16" height="16"></td><td class="$navclass[avatar]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr>
    </if>
    <if 
condition="$show['siglink']">
    <
tr><td class="$navclass[signature]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/page_red.gif" width="16" height="16"></td><td class="$navclass[signature]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr>
    </if>
    <
tr><td class="$navclass[password]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/lock.gif" width="16" height="16"></td><td class="$navclass[password]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td></tr>
    <
tr><td class="$navclass[options]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/cog.gif" width="16" height="16"></td><td class="$navclass[options]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
    <
tr><td class="$navclass[ignorelist]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/user_delete.gif" width="16" height="16"></td><td class="$navclass[ignorelist]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=ignorelist">$vbphrase[edit_ignore_list]</a></td></tr>
<if 
condition="$show['pmmainlink']">
<
tr>
    <
td class="thead" nowrap="nowrap" colspan="2">
    <
span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"vbmenu_register("nav_pmfolders"); </script></if></span>
    <if 
condition="$show['popups']">            
        <
div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
            <
table cellpadding="4" cellspacing="1" border="0">
            <
tr>
                <
td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
            </
tr>
            
$cpnav[pmfolders]
            </
table>
        </
div>
    </
td>
    </if>
</
tr>
    <
tr><td class="$navclass[pm_messagelist]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/email_open.gif" width="16" height="16"></td><td class="$navclass[pm_messagelist]nowrap="nowrap"><class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td></tr>
    <if 
condition="$show['pmsendlink']">
    <
tr><td class="$navclass[pm_newpm]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/email_add.gif" width="16" height="16"></td><td class="$navclass[pm_newpm]nowrap="nowrap"><class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>
    </if>
    <if 
condition="$show['pmtracklink']">
    <
tr><td class="$navclass[pm_trackpm]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/email_go.gif" width="16" height="16"></td><td class="$navclass[pm_trackpm]nowrap="nowrap"><class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td></tr>
    </if>
    <
tr><td class="$navclass[pm_editfolders]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/folder_edit.gif" width="16" height="16"></td><td class="$navclass[pm_editfolders]nowrap="nowrap"><class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</if>
<
tr>
    <
td class="thead" nowrap="nowrap" colspan="2">
        <
span id="nav_subsfolders">$vbphrase[subscribed_threads] <if condition="$show['popups']"><script type="text/javascript"vbmenu_register("nav_subsfolders"); </script></if></span>
        <if 
condition="$show['popups']">
            <
div class="vbmenu_popup" id="nav_subsfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                <
table cellpadding="4" cellspacing="1" border="0">
                <
tr>
                    <
td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                </
tr>
                
$cpnav[subsfolders]
                </
table>
            </
div>
        </if>
    </
td>
</
tr>
    <
tr><td class="$navclass[substhreads_listthreads]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/newspaper.gif" width="16" height="16"></td><td class="$navclass[substhreads_listthreads]nowrap="nowrap"><class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td></tr>
    <
tr><td class="$navclass[substhreads_editfolders]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/folder_edit.gif" width="16" height="16"></td><td class="$navclass[substhreads_editfolders]nowrap="nowrap"><class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
<
tr><td class="thead" colspan="2">$vbphrase[miscellaneous]</td></tr>
    <
tr><td class="$navclass[event_reminders]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/time.gif" width="16" height="16"></td><td class="$navclass[event_reminders]nowrap="nowrap"><class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td></tr>
    <if 
condition="$show['paidsubscriptions']">
    <
tr><td class="$navclass[paid_subscriptions]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/coins.gif" width="16" height="16"></td><td class="$navclass[paid_subscriptions]nowrap="nowrap"><class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td></tr>
    </if>
    <if 
condition="$show['attachments']">
    <
tr><td class="$navclass[attachments]nowrap="nowrap">
        <
img border="0" src="images/misc/usercp_icons/attach.gif" width="16" height="16"></td><td class="$navclass[attachments]nowrap="nowrap"><class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td></tr>
    </if>
<if 
condition="$show['moderation']">

    <if 
condition="$show['deleteditems']">
        <
tr><td class="thead" colspan="2">$vbphrase[deleted_items]</td></tr>
        <
tr><td class="$navclass[deletedthreads]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/page_white_get.gif" width="16" height="16"></td><td class="$navclass[deletedthreads]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&type=deleted">$vbphrase[threads]</a></td></tr>
        <
tr><td class="$navclass[deletedposts]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/page_white_copy.gif" width="16" height="16"></td><td class="$navclass[deletedposts]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&type=deleted">$vbphrase[posts]</a></td></tr>
        <
tr><td class="$navclass[deletedvms]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/vcard_add.gif" width="16" height="16"></td><td class="$navclass[deletedvms]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&type=deleted">$vbphrase[visitor_messages]</a></td></tr>    
        <
tr><td class="$navclass[deletedgms]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/report_add.gif" width="16" height="16"></td><td class="$navclass[deletedgms]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=deleted">$vbphrase[social_group_messages]</a></td></tr>    
        <
tr><td class="$navclass[deletedpcs]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/picture_add.gif" width="16" height="16"></td><td class="$navclass[deletedpcs]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&type=deleted">$vbphrase[picture_comments]</a></td></tr>    
    </if>
    
    <if 
condition="$show['moderateditems']">
        <
tr><td class="thead" colspan="2">$vbphrase[moderated_items]</td></tr>
        <
tr><td class="$navclass[moderatedthreads]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/page_white_get.gif" width="16" height="16"></td><td class="$navclass[moderatedthreads]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&type=moderated">$vbphrase[threads]</a></td></tr>
        <
tr><td class="$navclass[moderatedposts]nowrap="nowrap">
            <
img border="0" src="images/misc/usercp_icons/page_white_copy.gif" width="16" height="16"></td><td class="$navclass[moderatedposts]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&type=moderated">$vbphrase[posts]</a></td></tr>
        <if 
condition="$show['moderatedvms']">
            <
tr><td class="$navclass[moderatedvms]nowrap="nowrap">
                <
img border="0" src="images/misc/usercp_icons/vcard_add.gif" width="16" height="16"></td><td class="$navclass[moderatedvms]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&type=moderated">$vbphrase[visitor_messages]</a></td></tr>
        </if>
        <if 
condition="$show['moderatedgms']">
            <
tr><td class="$navclass[moderatedgms]nowrap="nowrap">
                <
img border="0" src="images/misc/usercp_icons/report_add.gif" width="16" height="16"></td><td class="$navclass[moderatedgms]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=moderated">$vbphrase[social_group_messages]</a></td></tr>    
        </if>        
        <if 
condition="$show['moderatedpcs']">
            <
tr><td class="$navclass[moderatedpcs]nowrap="nowrap">
                <
img border="0" src="images/misc/usercp_icons/picture_add.gif" width="16" height="16"></td><td class="$navclass[moderatedpcs]nowrap="nowrap"><class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&type=moderated">$vbphrase[picture_comments]</a></td></tr>    
        </if>
    </if>
    
</if>
$template_hook[usercp_navbar_bottom]
</
table


Jase2 02-14-2008 11:50 PM

Very Nice!

Regards Jason :)

ChurchMedia 02-15-2008 01:27 AM

Fantastic! Thanks! :)

NeuroLancer 02-15-2008 01:54 AM

Yes the code is simple, but choosing a proper icon for each item is usually a pain in the backside so thanks alot ;)

Just as an afterthought, wouldnt it be better to say in the code

Code:

<td style="white-space:nowrap;">
instead of using
Code:

<td nowrap="nowrap">
you can read this page to see what im talking about.

TheProphet 02-15-2008 03:17 AM

Looks great, thx m8

seangworld 02-15-2008 05:55 AM

excellent!

sensimilla 02-15-2008 06:56 AM

Nice i love fam fam fam icons :D

boxerman 02-15-2008 08:24 AM

Loving it!

KURTZ 02-15-2008 08:26 AM

really really nice!

MrPHD 02-15-2008 09:05 AM

Installed and running. regards


All times are GMT. The time now is 04:28 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.01477 seconds
  • Memory Usage 1,984KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_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
  • (10)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