Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: dsdc - tammikuu 30, 2005, 09:34:23 AP

Otsikko: index.template.php changes
Kirjoitti: dsdc - tammikuu 30, 2005, 09:34:23 AP
Hello-

I've been searching here for awhile, and can't find what I'm looking for.

I want to restructure the top part of the index.template.php page and am having no luck.  I've trial and errored it to death, and finally give up.

Here is what I'm trying to accomplish

I've added a custom header.  That is where the success ends.  After that, I want the following, in order:

1.  The news box, by itself, the entire width of the forum.
2.  A second box in the template style, with two colums.  The left column with the "welcome guest" at the top, and the "login or register" box on the bottom.  The right colum would have a javascript banner thing.  The columns would be invisible - that is, no vertical line between.
3.  The row of menu buttons, with the search box on the same line to the right.


I must have copied and pasted every line there and moved it around, and about know the parse error message by heart.  But still, I can't get it to do what I want.

In case it makes a difference, the theme I'm hacking away at is one of Andrea's aquamarine themes.

Help?
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 02, 2005, 07:12:35 AP
I'm assuming the changes I want to make apply to the way SimpleMachines is written, and not just templates.

Am I mistaken about this?  Should I have posted this question in the template section?
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 03, 2005, 07:41:47 AP
Is this just such an incredibly stupid question that nobody wants to waste their typing to answer?

If this is one of those questions that has been asked a million times, would somebody at least post a link to one of the times it has been answered?

thanks
Otsikko: Re: index.template.php changes
Kirjoitti: bd2003 - helmikuu 03, 2005, 10:04:48 AP
I've made kind of the same changes you're talking about in the BoardIndex.template.php file in the Templates folder... you may try looking in there...
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 03, 2005, 10:25:34 AP
woo hoo!

Thanks bd.  I'll see what happens.
Otsikko: Re: index.template.php changes
Kirjoitti: Oldiesmann - helmikuu 03, 2005, 12:21:56 IP
Everything you need to modify is in Themes/default/index.template.php

Let me make sure I understand what you want before I post how to make the changes (lots of code involved here)...

1. News box entire width of the forum.
2. On the next line, the "user info" box with two columns - one for the actual info and one for a banner, no "key stats" box
3. The "search" bar right next to the menu

It's relatively easy to do, but it involves moving a lot of code around, so I don't want to post something before I understand exactly what you want.
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 04, 2005, 01:52:29 IP
Hey oldies man!

Here is a (very) rough illustration of what I am hoping to accomplish:


|----------------------------------------------------------------------------------|
|      News                                                                                                              |
|      Blah blah Blah blahBlah blahBlah blahBlah blahBlah blahBlah blahBlah blah|
|      Blah blah Blah blahBlah blahBlah blahBlah blahBlah blahBlah blahBlah blah||
------------------------------------------------------------------------------------|
|       Welcome Jim Bob!  You have no                                                                   |
|        new messages.                                                          BANNER AD HERE        |                         
|       Total time logged in: 7 hours and 23 minutes.                  Try Sudsie Cola           |
|       Show unread posts since last visit.                                        :D                     |
|       Show new replies to your posts.                                                                    |
|       February 04, 2005, 01:42:56 PM                                                                    |
|_________________________________________________________________________|
|                   |home|help|search|admin|profile|calendar|logout|                              |
|------------------------------------------------------------------------------------||

Forum is here and on down.....
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 12, 2005, 11:04:37 AP
Oldiesmann?  Are you still out there?
Otsikko: Re: index.template.php changes
Kirjoitti: helenbpd - helmikuu 12, 2005, 05:28:05 IP
Dsdc,

do you need something like this?  This is just slapped up on my own test board - it's based on the default template.  I can zap you the template & css files if you'd like to play with it to adapt to your own layout.

http://www.bpdresources.com/SMF
Otsikko: Re: index.template.php changes
Kirjoitti: Oldiesmann - helmikuu 12, 2005, 07:59:13 IP
I'm still here. I'll play around with index.template.php in a bit and let you know how to do that.
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 13, 2005, 02:27:23 IP
Hey Helen-

I can't tell from your example if the news runs the full width, but if it does, then your example is exactly what I'm talking about.

Thanks!
Otsikko: Re: index.template.php changes
Kirjoitti: helenbpd - helmikuu 13, 2005, 05:31:55 IP
dsdc, yep, the News runs the full width of the page.

I sent you the files via PM, you can play with it to your heart's content.  :)

H
Otsikko: Re: index.template.php changes
Kirjoitti: dsdc - helmikuu 16, 2005, 06:40:43 IP
Helen-

It works perfectly.  Thank you for your help!