Log in

View Full Version : UserCP Drop Down


Peterpan002
04-02-2008, 04:26 PM
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 1207159402 at 1207159402 ---------------

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:

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

REPLACE WITH:

<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):

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

REPLACE WITH:

<!-- / 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.

Jase2
04-02-2008, 06:52 PM
The product is not for the drop down menu as I stated in my earlier post. That is what the template edits are for, and they should work.

Peterpan002
04-02-2008, 07:04 PM
Well your right but I had the same problem originally and by installing the product and disabling it the drop down remains but not the graphics.