PDA

View Full Version : Whats wrong with this page?


dcgaming17
02-24-2011, 03:30 AM
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
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
<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?

dcgaming17
02-25-2011, 02:52 AM
So it works now?

Yea but my only question. Will i have problems with the database? and what are SECURITYTOKEN's?

Lynne
02-25-2011, 04:51 PM
I can't think of why you would have problems with the database.

As for SecruityTokens, read this - Implementing CSRF Protection in modifications (https://vborg.vbsupport.ru/showthread.php?t=177013)

dcgaming17
02-25-2011, 10:35 PM
thanks! big help. now solve this for me lol https://vborg.vbsupport.ru/showthread.php?t=259281