News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

adding a navigation area to header

Started by Elaine Griffin, April 10, 2013, 10:07:18 AM

Previous topic - Next topic

Elaine Griffin

So strange. With this theme, I don't even see index.template.php.
Here is the craziness I had to come up with to get this to display properly. <div id="header">
   
       <table width="1000" border="0" cellspacing="0" cellpadding="0" align="center">
   <tr>
   <td><img src="http://ijustmetu.com/wp-content/uploads/2013/02/i-just-met-u-header.png" width="320" height="200"/></td>
   <td>
  <table width="321" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
  <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-top.png" width="321" height="16"/></td>
  </tr></table>
  <table width="321" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-left.png" width="22" height="93"/></td>
    <td><a href="http://www.facebook.com/ijustmetu" target="_blank"><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-on-facebook.png" width="81" height="93"/></a></td>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-center-1.png" width="15" height="93"/></td>
    <td><a href="https://twitter.com/iJUSTMETu_com" target="_blank"><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-on-twitter.png" width="84" height="93"/></a></td>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-center-2.png" width="16" height="93"/></td>
    <td><a href="http://ijustmetu.com/indiegogo/" target="_blank"><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-please-donate.png"/ width="82" height="93"></a></td>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-right.png" width="21" height="93"/></td>
  </tr></table>
  <table width="321" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-go-home.png" width="321" height="42"/></td>
  </tr>
  <tr>
    <td><a href="http://www.ijustmetu.com/about/"><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-our-vision.png" width="321" height="43"/></a></td>
  </tr>
  <tr>
    <td><img src="http://ijustmetu.com/wp-content/uploads/2013/03/i-just-met-u-bottom.png" width="321" height="15"/></td>
</table></td>
<td>
<table>
<tr><td><img src="http://www.ijustmetu.com/wp-content/themes/ijustmetu/images/i-just-met-u-search-background.png"/></td></tr></table></td></table>
</div>

I SO appreciate your help! I need to move on from this project in the worst way!

kat

Now, then... A theme without an index.template.php file is VERY usual.

Not impossible, though, coz it'll just mean that that theme is "borrowing" that file from the default theme's directory. (That's true of all files, with themes, as it 'appens).

So, you could add the code to the default theme's file and, if there really is no such file in the custom theme's directory, it should still work.

Let me go and have a play, with that code... (Gimme a while, coz I'm gonna be taking the "Trial and error" route, for the most part). ;)

Elaine Griffin

The funny thing is I'm using the default Curve theme. I was just modifying that (I know, bad).

kat

OK... Not sure if you can see this. If you can't, let me know and I'll open it up to guests.

http://playing.twaddlehosting.co.uk/index.php?theme=1

(It's a bit wide, at the moment)

Elaine Griffin

Yep, I can see that. And that makes more sense to me - I was trying to put it inside of the login area!

kat

Well, now. Firstly, we have a mystery to solve. I can guarantee, 100%, that your default theme will have an index.template.php file.

If it didn't, your forum would croak.

I just moved it, a bit, so that it's right at the top, rather than under the search box.

What I did, was add your code immediately on a new line, after the </head> tag.



Elaine Griffin

Well, I found one in the core folder, but when I added the code, the header is not showing up.

Elaine Griffin


kat

WooHoo! :)

That doesn't look bad, at all, that!

Elaine Griffin

I must have just overlooked it. You know how when you look at something for too long it's impossible to find?
I am good now. Just have to move some things around. Ugh, thank you so much! You have no idea how much sanity you have saved me! I can't wait to be done with this project!

kat

My pleasure, darlin'.

Yeah, I know exactly what that's like. :)

I'm no coder, by a LONG stretch. So, when I look at a lot of code, I almost go all dyslexic!

Advertisement: