vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Drop Downs not working. (https://vborg.vbsupport.ru/showthread.php?t=157554)

cmb7684 09-11-2007 08:55 AM

Drop Downs not working.
 
I upgraded to VB 3.6.8 and Im running Vbadvanced CMPS v3.0 RC2.

I upgraded from 3.0.6 and I was running vbindex. I just upgraded today.

Here is the problem. MY buttons are working fine with the exception of when I go to a thread that is multi paged. If it has more than one page in the thread then the buttons at the top work but any drop downs such as thread tools or search in the buttons at the top quit dropping down and do not show up anywhere.

ANy suggestions?

Princeton 09-11-2007 11:57 AM

I'm guessing you have a modified style .. if so, you probably don't have the menu html code

check the html source and see that they are available

cmb7684 09-11-2007 04:35 PM

where is the menu html code located andwhat does it look like? They were working fine before the upgrade. The only thing that I had custom was I added that was custom as it relates to drop downs was I added a link and new option in the quick links drop down a long time ago using 3.0.6. but it worked fine for all this time and I'm not even sure how to find that code anymore

cmb7684 09-13-2007 12:06 AM

I found the problem on this one....extremely weird ...In my style manager under Navigation/breadcrump templates under navbar is where I had modded the code to take away the register button as the members are already registered when they are at that point etc.

I saved my old code and I reset the html code to the default code and all is working great the drop downs in the multipage threads is ok.

The thing is it has been running VB 3.0.6 for about 2 years I guess without any problems. Something went stray in the upgrade. Anyone know how I can go back to the way it was when I modded it without screwing this up?

Chris M 09-13-2007 12:23 AM

As far as I was aware, the "Register" link in your navbar dissapears once someone is logged in by default...

Chris

cmb7684 09-13-2007 02:09 AM

This is under breadcrumps navbar

Ok here is part of the default code for 3.6.8 that I'm now doing a fresh mod on to reflect the register button deleted and a Home Page and Forum Button that will be a link to each respective page anywhere on the forum. If all goes as expected it should show up on not only the vbulletin pages but also the vbadvanced pages.


Here is the current problem I'm having. After deleting the code for the Register button and link from the top of the nav bar I C&P the code for the user cp button 2 times on top of where its currently located in the code making 3 total user cp buttons all working to the user cp page. I then renamed the buttons and renamed the .php files to their respective link or .php

The trouble I ran into is that the it worked find for the newly created forum button but the exact same process did not work for the home_page button. The button clearly isnt there onthe nav buttons at the top of the page. Now if i change the name of the button back to user cp and leave it linked to the forumpage that I have named vbindex.php the newly named user cp button will bring you to the home page, so it clearly is just an issue of getting the button to appear in the nav bar. Im just not sure as to why it will not show up. (All old vbindex files are deleted and the vbadvanced page or folder is renamed vbindex).


Here is the C&P of the section of the code Im working on


Code:

<!-- / breadcrumb, login, pm info -->
 
<!-- nav buttons bar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
    <if condition="$show['member']">
 
<td class="vbmenu_control"><a href="vbindex.php$session[sessionurl_q]">$vbphrase[home_page]</a></td> <<<<<problem button
<td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">$vbphrase[forum]</a></td>
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>
    $template_hook[navbar_buttons_left]
    <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>

Well unless it shows up just for administrators I was logged in and it was still there. Nevertheless I deleted it and all is working good by simply removing it from the code.

Chris M 09-13-2007 02:29 AM

The reason it is not showing up on the nav bar is because there is no phrase home_page by default - You will need to add the Phrase or simply replace "$vbphrase[home_page]" with "Home Page" in text if you don't want to add a new phrase...

Chris

cmb7684 09-13-2007 02:34 AM

Here is an update on this...If I click the user cp button the home page button shows up and works fine, it also shows up when I click the calnedar button and Im redirected to the calendar page and also on the member list page. the Home page button will not show up on the forum index page nor will it show up on the following pages: FAQ, new posts and not that its needed there but it will not show up on the vbadvanced home page on my forum either.

Thanks a million I knew it was something dumb that was catching me up.

here is what I changed it t and it worked like a champ.

Code:

<!-- / breadcrumb, login, pm info -->
 
<!-- nav buttons bar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
 
<td class="vbmenu_control"><a href="vbindex.php$session[sessionurl_q]">Home Page</a></td>
<td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">$vbphrase[forum]</a></td>
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>


Chris M 09-13-2007 03:01 AM

No problem :)

Chris


All times are GMT. The time now is 01:21 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.01218 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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