vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   UserCP Drop Down (https://vborg.vbsupport.ru/showthread.php?t=174919)

Peterpan002 04-02-2008 04:26 PM

UserCP Drop Down
 
have always had a usercp drop down similar to here at vb.og, however all my drop down menus vanish when upgrading to 3.7.0 RC2. Is there a simple way to get them back or advice or doing a new drop down menu for CP please.

nexialys 04-02-2008 04:38 PM

you have some templates that need to be reverted to make them work, like the navbar and headinclude that contains the proper javascripts.

btw, backup your templates because you will loose your modifications on revert.

Jase2 04-02-2008 04:42 PM

Yes, the UserCP drop down released by Princeton doesn't function correctly in 3.7. I'm going to be trying get it work on my dev board.

Peterpan002 04-02-2008 04:49 PM

Yep I'm having a play with it as well

--------------- Added [DATE]1207159402[/DATE] at [TIME]1207159402[/TIME] ---------------

Actually its does work (dont forget the template edits) although its of limited use now with 3.7.0 RC2 unless you move stuff out of the Quick links

Jase2 04-02-2008 05:35 PM

What did you do to get it work? What code did you change?

Peterpan002 04-02-2008 06:02 PM

FIND IN navbar:

Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

REPLACE WITH:

Code:

<if condition="$show['member']">
      <td id="usercpoptions" class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a>
        <script type="text/javascript"> vbmenu_register("usercpoptions"); </script></td>
    </if>

NEXT FIND IN navbar template (bottom of template):

Code:

<!-- / PAGENAV POPUP -->
</if>

REPLACE WITH:

Code:

<!-- / PAGENAV POPUP -->
</if>

<if condition="$show['popups'] AND $show['member']">
<div class="vbmenu_popup" id="usercpoptions_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">               
        <tr><td class="thead" align="$stylevar[left]"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>       
        <if condition="$show['pmstats']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
        <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
        <if condition="$show['siglink']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
        <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
        <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
        <tr><td class="thead" align="$stylevar[left]">$vbphrase[miscellaneous]</td></tr>
        <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
        </table>
</div>
</if>

Then edit add or delete options in the second part above for the links you require.

Jase2 04-02-2008 06:08 PM

That is from Princetons hack, and as I said -- it doesn't function correctly in vB 3.7.

Peterpan002 04-02-2008 06:28 PM

It does, upload product with overwrite and redo template edits

Jase2 04-02-2008 06:38 PM

Why do you need to upload a product for a userCP drop down menu... That is for the images inside UserCP.

Peterpan002 04-02-2008 06:43 PM

I agree with you. Solution: install product do templates as required then disable product.


All times are GMT. The time now is 03:38 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.01125 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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