View Single Post
  #3  
Old 09-25-2010, 02:09 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NashChristian View Post
Hello.

I've decided that it makes more sense to keep all the global controls in the header, instead of having most burried in Forum sub-menus (I don't know why vB STILL does this!). As a result, I've added a "Tools" drop-down menu. This is working perfectly for the members who are logged-in, however, I'm having problems with the 'Unregistered / Not Logged In' version.

Here is the code I'm using along with screen shots:

Members Logged-In:

Code:
<li class="popupmenu nonotifications">
  <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">Tools</a>
  <ul class="popupbody popuphover">
    <li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">Frequently Asked Questions (FAQ)</a></li>
    <li><a href="content.php?r=171">Website Overview Video</a></li>
    <li><a href="forumdisplay.php?f=69">About NashvilleChristian.com</a></li>
    <vb:if condition="$vboptions['forumleaders']">
      <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase view_site_leaders}</a></li>
    </vb:if>	
    <vb:if condition="$show['memberslist']">
      <li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
    </vb:if>
    <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}?</a></li>
    <li><a href="showthread.php?t=98">Image Guidelines</a></li>
    <li><a href="forumdisplay.php?f=67">Suggestions &amp; Feedback</a></li>            
    <li><a href="forumdisplay.php?f=94">Report Bugs Here</a></li>
    <li><a href="sendmessage.php?{vb:raw session.sessionurl}">Contact Administrator</a></li>
  </ul>
</li>





Unregistered / Not Logged In:

Code:
<li class="popupmenu">
  <a class="popupctrl" rel="help" href="usercp.php{vb:raw session.sessionurl_q}">Tools</a>
  <ul class="popupbody popuphover">
    <li><a href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">Frequently Asked Questions (FAQ)</a></li>
    <li><a href="content.php?r=171">Website Overview Video</a></li>
    <li><a href="forumdisplay.php?f=69">About NashvilleChristian.com</a></li>
    <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase view_site_leaders}</a></li>
    <li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
    <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online} Now?</a></li>
    <li><a href="showthread.php?t=98">Image Guidelines</a></li>
    <li><a href="forumdisplay.php?f=67">Suggestions &amp; Feedback</a></li>            
    <li><a href="forumdisplay.php?f=94">Report Bugs Here</a></li>
    <li><a href="sendmessage.php?{vb:raw session.sessionurl}">Contact Administrator</a></li>
  </ul>
</li>




On the Unregistered / Not Logged In version: how do I add an arrow beside the word 'Tools', as an indicator that it is a drop-down menu, and how do I make the drop-down menu itself look right: change the background color to white, the text to black, the hover background to yellow, etc... ? I don't want to hard-code this either, because I have several styles, some of which are dark, and it needs to be able to adjust the text and background color accordingly.

I know that I used 'rel="help"' on the 'a' tag, which was necessary to style the word "Tools" to match the style of "Register". I want this to look the same as the top menu, with the only exception being the style of the word "Tools", so that it will match the other header links.

Any help would be greatly appreciated!

Thanks!
Jeff
See the difference?

Code:
<li class="popupmenu nonotifications">
  <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">Tools</a>
  <ul class="popupbody popuphover">
VS

Code:
<li class="popupmenu">
  <a class="popupctrl" rel="help" href="usercp.php{vb:raw session.sessionurl_q}">Tools</a>
  <ul class="popupbody popuphover">
Try popupmenu nonotifications class in the non-logged in users code and see if that helps, only difference I see...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03431 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete