can't find this code

Started by GenghisChris, October 01, 2009, 09:21:46 PM

Previous topic - Next topic

GenghisChris

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div class="container">
<div class="column header">
<div id="header"> </div>
<div id="toolbar">
</div>
<div class="column mid">
<table id="sp_main">
<tbody>
<tr>
<td id="sp_center">
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="bottom">
<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">
<b>
<a class="nav" href="http://united-kingdoms.org/index.php?action=forum">United Kingdoms</a>
</b>
</div>
</td>
<td align="right"> </td>
</tr>
</tbody>
</table>
<div class="tborder" style="margin-top: 0pt;">
<div class="bar2" style="padding: 5px 5px 5px 10px;">




All I need to do is change bar2 into bar but I can't locate it in any of my files. I know it exists because firebug has shown me it lol. Anyone know what file it is hiding in?

mashby

My guess is index.template.php for whatever theme you are currently looking at.
:)
Always be a little kinder than necessary.
- James M. Barrie

GenghisChris

#2
nope, what's strange is the bar that is missing (because of a typo) only affects regular members, guests and admin seem to be unaffected. does this help?

EDIT: and to confuse matters a couple of custom groups have the same error in 2 different places

mashby

Sure does...what page are you on when seeing <div class="bar2"...> in Firebug?
Always be a little kinder than necessary.
- James M. Barrie


mashby

Perhaps you are viewing a theme different than the one visible to guests (or it's a bit not rendered to guests)? I am viewing what appears to be a custom them and stylized to your liking, but I don't see bar2 in the code. And actually, the more I look at the code you provided, I'm guessing you're not even looking at an SMF page:
<head>
</head>

An empty header doesn't seem like SMF to me.
Always be a little kinder than necessary.
- James M. Barrie

GenghisChris

hi heres where the problem is



The code should read <div class="bar" style="padding: 5px 5px 5px 10px;"> for the blue bar to be shown but regular members have the code changed to <div class="bar2" style="padding: 5px 5px 5px 10px;"> for no aparant reason

Admin and guests are unaffected and the bars are displayed a they should be.

as for the <head> thing, I know nothing about code, I just took this skin from the smf theme site (it's called sweet dream)

I'm so confused lol

mashby

What browser might you be using? OK...dumb question...how about which version of FF? This is what I see when viewing your site in the latest version of FF at the time of this post:
Always be a little kinder than necessary.
- James M. Barrie

GenghisChris

#8
version 3.5.3

if you'd be so kind as to register you'll see the top bar will vanish  :-\

scrap that

user: testaccount
pass:password

he's a regular member.

mashby

That indeed does make the difference. I used Firebug to change .bar to .bar, .bar2 in the style.css file for that theme and that mostly cleared up the issue. Does that theme have its own BoardIndex.template.php file?
Always be a little kinder than necessary.
- James M. Barrie

GenghisChris

sure does, I've attached it to this post

GenghisChris

Anyone have the faintest on how to fix this?, it's the last bug in my forums before I make them go live.

GenghisChris

does anyone have an idea where the code might be? even a hit might allow me to fix it myself  :P

tbh I'm stumped

D#S

find in style.css (Themes/Sweet_Dream/style.css)

.bar {
color:#FFFFFF;
margin:0px;
font-size:1.4em;
background-image: url('images/bar.gif');
background-repeat: no-repeat;
height:30px; padding-left:22px; padding-right:10px; padding-top:4px; padding-bottom:0px


}

replace with

.bar, .bar2 {
color:#FFFFFF;
margin:0px;
font-size:1.4em;
background-image: url('images/bar.gif');
background-repeat: no-repeat;
height:30px; padding-left:22px; padding-right:10px; padding-top:4px; padding-bottom:0px


}


find

.bar a{
color:#FFFFFF;
}


replace with

.bar a, .bar2 a{
color:#FFFFFF;
}

ai dont spik inglish
@ ol

GenghisChris

Thanks for looking at it D#S, unfortunately that fix just removed the only bars that were showing though :-\

Any other ideas?

GenghisChris

my bad it did work and it worked a treat. Thank you so so much D#S (I made a mistake when pasting  >:( )

Topic Solved :D

Advertisement: