Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: GenghisChris on October 01, 2009, 09:21:46 PM

Title: can't find this code
Post by: GenghisChris on October 01, 2009, 09:21:46 PM
<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?
Title: Re: can't find this code
Post by: mashby on October 01, 2009, 09:25:38 PM
My guess is index.template.php for whatever theme you are currently looking at.
:)
Title: Re: can't find this code
Post by: GenghisChris on October 01, 2009, 09:43:25 PM
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
Title: Re: can't find this code
Post by: mashby on October 01, 2009, 10:01:01 PM
Sure does...what page are you on when seeing <div class="bar2"...> in Firebug?
Title: Re: can't find this code
Post by: GenghisChris on October 01, 2009, 10:04:49 PM
http://united-kingdoms.org/index.php?action=forum (http://united-kingdoms.org/index.php?action=forum)
Title: Re: can't find this code
Post by: mashby on October 01, 2009, 10:10:01 PM
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.
Title: Re: can't find this code
Post by: GenghisChris on October 01, 2009, 10:18:30 PM
hi heres where the problem is

(http://i36.tinypic.com/160wms7.png)

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
Title: Re: can't find this code
Post by: mashby on October 01, 2009, 10:30:16 PM
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:
Title: Re: can't find this code
Post by: GenghisChris on October 01, 2009, 10:37:41 PM
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.
Title: Re: can't find this code
Post by: mashby on October 01, 2009, 11:01:46 PM
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?
Title: Re: can't find this code
Post by: GenghisChris on October 02, 2009, 03:17:35 AM
sure does, I've attached it to this post
Title: Re: can't find this code
Post by: GenghisChris on October 03, 2009, 10:34:56 AM
Anyone have the faintest on how to fix this?, it's the last bug in my forums before I make them go live.
Title: Re: can't find this code
Post by: GenghisChris on October 05, 2009, 03:23:34 AM
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
Title: Re: can't find this code
Post by: D#S on October 05, 2009, 03:38:06 AM
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;
}

Title: Re: can't find this code
Post by: GenghisChris on October 05, 2009, 04:49:27 AM
Thanks for looking at it D#S, unfortunately that fix just removed the only bars that were showing though :-\

Any other ideas?
Title: Re: can't find this code
Post by: GenghisChris on October 05, 2009, 05:04:16 AM
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