The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can't distribute navbar buttons evenly
My site was hacked a week or so ago. I have completed a fresh install of 3.7.6 Patch Level 2 and a fresh install of my sql database. I have edited my navbar template using some of the php from an old navbar doc I saved and some from the 'view source' feature of my google cached website.
My original site's navbar buttons were centered and distributed evenly across the entire navbar. See google cache version of my site from Oct 7 here: http://webcache.googleusercontent.co...thepublicenemy Here is the current version (Problem) of my site: www.thepublicenemy.net PHP Code:
|
#2
|
|||
|
|||
I take it you mean you want the black buttons to be spread out?
I think you want to leave cellpadding and cellspacing unspecified in your table tag and they should distribute evenly. |
#3
|
||||
|
||||
Yes, I want to spread them out evenly.
|
#4
|
|||
|
|||
Here's more trouble:
Code:
.top_navbar_button { font: bold 11px arial, verdana, geneva, lucida, 'lucida grande', helvetica, sans-serif; color: #ECECEC; background: #080808 url(images/styles/rirrakusu/style/navbar_button_bg.gif) no-repeat top left; width: 79px; text-align: center; padding: 3px 0px 3px 0px; margin-right: 1px; } <td><div class="top_navbar_button"><a href="$vboptions[bburl]/index.php">Home</a></div></td> This may also work: <td> <a href="$vboptions[bburl]/index.php" class="top_navbar_button">Home</a></td> --------------- Added [DATE]1319173275[/DATE] at [TIME]1319173275[/TIME] --------------- That second suggestion won't work, never mind that. If using a div tag works you'll have to change the background spec so it reads "center" at the end instead of "left". Hope that works. I'm off to bed, will check later. |
#5
|
||||
|
||||
That didn't make a difference. It almost seems like 3.7 is ignoring the configuration for this navbar.
|
#6
|
|||
|
|||
Well, it's getting better. Change the background spec to "center" instead of "left" at the end of the line. There's still a problem with black in between the buttons.
--------------- Added [DATE]1319215854[/DATE] at [TIME]1319215854[/TIME] --------------- This might do it: Code:
.top_navbar_button { font: bold 11px arial, verdana, geneva, lucida, 'lucida grande', helvetica, sans-serif; color: #ECECEC; background: url(images/styles/rirrakusu/style/navbar_button_bg.gif) no-repeat top center; width: 79px; text-align: center; padding: 3px 0px 3px 0px; margin-right: 1px; } .top_navbar_button a:link, .top_navbar_button a:visited { background-color:#0808080; color: #ECECEC; text-decoration: none; } .top_navbar_button a:hover, .top_navbar_button a:active { background-color:#080808; color: #669966; text-decoration: none; } |
#7
|
||||
|
||||
Yea, I changed something earlier as I was troubleshooting trying to figure out how to get it to work. Then my site was hacked and this time they changed my admin username and pass. I'm working to try and fix that issue first.
I take it 3.7.2 is not a good version to be running? |
#8
|
|||
|
|||
Yikes! I know 3.7.2 is no longer supported. I don't know if there are any special security issues with it. Good luck.
|
#9
|
||||
|
||||
It's not looking the same because you don't have as many buttons there. They are all spreading out to take up the 1024px you have set aside for it. If you reduce that to... 700px, then it will look like the old one (the navbar will, but it has other affects). Add back all your buttons and then see what it is like.
|
#10
|
|||
|
|||
He wants them spread out. Right now (aside from being hacked) he needs to center the images so they line up with the text and get rid of the black background color so he doesn't have the black rectangles between the images.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|