vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Whats wrong with this page? (https://vborg.vbsupport.ru/showthread.php?t=259356)

dcgaming17 02-24-2011 03:30 AM

Whats wrong with this page?
 
1 Attachment(s)
Coded out a new page but when I have this navbar link selected, the highlighting doesnt work. What code do i need to add or modify? The mess up is in the red box

your24hourstore 02-24-2011 02:22 PM

looks like navtab select has transparent or is defined wrong somehow

goto stlyevars and look in navtab sections play with that area

dcgaming17 02-24-2011 03:53 PM

When I made this page i just copied all the code from the What's New tab so shouldn't everything be the same? What Im thinking is that something in the code is saying that when "Whats new" is selected...when it should be when "Giveaways" is slelected.

Lynne 02-24-2011 04:00 PM

did you follow this article when you made your page - https://vborg.vbsupport.ru/showthread.php?t=228112

dcgaming17 02-24-2011 06:53 PM

Quote:

Originally Posted by Lynne (Post 2166354)
did you follow this article when you made your page - https://vborg.vbsupport.ru/showthread.php?t=228112

You know what i did, i copied all the "Source Code" from on of the pages, deleted what i didnt want. This way i kept the styles the same. Any downside to doing it like this?

Lynne 02-24-2011 06:56 PM

What do you mean "you kept the styles the same"? And I don't understand what the page code has to do with the navtab except that you said "i just copied all the code from the What's New tab" which just doesn't make sense to me since the tab code is in a template, not a php page.

You created the navtab, correct? So what is your code for it and what did you do to code it to make it "selected" when you are on that page?

dcgaming17 02-24-2011 07:01 PM

HTML Code:

<li class="selected"> <a class="navtab" href="giveaways.php">Giveaways</a></li>
Before, the class was not selected, it was hidden. That was the main problem.

My last reply was talking about the page itself, not the navbar. For the page I just took ALL the source code from another page on the site.

Lynne 02-24-2011 07:03 PM

That code that you added for a navtab isn't going to work. You are saying it is always selected? It isn't. You need to do conditions like they do in the navbar.

There are a few articles in the vB4 section on how to create navtabs and several mods to do this. I'd suggest taking a look at them and seeing how it's supposed to be done.

dcgaming17 02-24-2011 07:07 PM

No it works fine, I copied the code from another tab and with that code comes all the conditions. My only problem before was that in that code i copied, the new tab was put as "hidden" not "selected" so i changed it.

Em i making sense? if not ask

Lynne 02-24-2011 07:35 PM

So it works now?


All times are GMT. The time now is 04:58 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.01198 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_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