News:

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

Main Menu

[SMF 1.1.x] Integrating the forum into your site using SMF\'s layer system

Started by Daniel15, January 27, 2007, 02:49:11 AM

Previous topic - Next topic

JoeJoomla

Hello everyone, I've been trying to sort my way through the instructions from the first page on this thread. I'm starting with a Joomla! 1.5.3 install and modified Joomla! theme.

So far I haven't been successful, my header and footer are not showing up but I am not getting any errors either. On an earlier try I did get an error. So I want to go back to the beginning and try this again.

There are four potential areas where I could have a problem:

• My Joomla! header.php and footer.php files (and their location)

• The modified index.template.php file

• The SQL database addition

• The SMF Themes administration

I am certain that the location of my header and footer.php are good - they are in the root folder of the forum.

I know I have some problems with the header.php and footer.php file, but even when I simply use a 'This is the header' test file, I am not seeing it in the forum.

I am most suspicious of my work in the modified index.template.php

I am fairly sure that the database addition for the extra layers and the SMF themes administration to choose the new theme are OK.

So does it make sense to start by simply getting that 'This is the header' test working?

Was my starting with a modified 1.1.4 index.template.php a bad idea?
joejoomla.com - Where Joomla! friends have fun and help each other

GM08

Hello Everyone!

Thanks for this tutorial. I'm currently trying to apply this to my forum.

I have a header with links on it that glow when you roll over them. I'm using a rollover script for this which is located in the head section of the html. Where would I put this function? (Since I'm only supposed to be copying parts of the <body> according to the tutorial)

Thanks!

brycematthews

How can I get the updated index.template.php file? I don't see it anywhere for download. Does anyone have it?

IchBin™

There is no update needed. Its a 1.1 file, which will work across all the 1.1.x versions.
IchBin™        TinyPortal

paziowiec

I've made an example site from this tutorial but there seems to be some problem.
http://09mm.pl/jez/forum/index.php
In IE this site works fine, as is should but in newest Opera 9.5 it seem it lost all table borders in the middle site section (the subforum list, info center, browsing post list, replying to post, etc)

I'd be glad if someone could come up with solution :)

ps. oh, and I don't know why but in opera the exterior (from footer/header) table border is black while it should be teal like in IE

danibee2k

Hi all, thanks so much for this tutorial plus everyone who's posted on this board as have managed to fix most of the problems I've had by reading through all the posts.  Not sure where to go to fix the problem I have at the moment though.

Please see hxxp:www.greengymcompany.co.uk/forum [nonactive]

I'd like my Nav bar to sit within the SMF header bit (although personalised if poss).  Can't work out why it's put itself to the right of my header.  :o

Any suggestions would be greatly appreciated.  Let me know if you need me to paste any code.

Thanks

EliTe_ThuT


Dragooon

Shouldn't unless you're using functions specific to that SMF version or major changes have happened(For example Most probably 1.1.x SSI layer's script won't work with SMF 2.0.x but thats just a guess).

Crusufix

I'm having a strange problem when attempting to incorporate my SMF forum into my website. The index.template.php file doesn't seem to be pulling the includes...

My forum is here:
hxxp:thelegendgrows.org/forums/ [nonactive]

The code for the includes is:

                // ]]></script>

  <link rel="stylesheet" type="text/css" href="/style/style.css" />

  <link rel="stylesheet" type="text/css" href="/style/colour.css" />

  <link rel="icon" type="image/ico" href="/favicon.ico" />

</head>
</body>';
        // Put your header stuff here
        // The following line loads the header.php file
        include('header.php');

}


my header file is in the same directory as the index.template.php file and contains the following:

<?php

include '/includes/logo.inc';
include 
'/includes/topmenu.inc';

?>


    <div class="sidebar">

<?php

include '/includes/leftsidebar1.inc';
include 
'/includes/leftsidebar2.inc';
include 
'/includes/leftsidebar3.inc';

?>

    </div>

    <div id="content">

These includes only contain straight HTML for loading the Logo, top menu and the left side panel.

When I view the source code for the forum all I see is:

// ]]></script>

  <link rel="stylesheet" type="text/css" href="/style/style.css" />

  <link rel="stylesheet" type="text/css" href="/style/colour.css" />

  <link rel="icon" type="image/ico" href="/favicon.ico" />

</head>
</body>
<div class="tborder" >
<table width="100%" cellpadding="0" cellspacing="0" border="0">


I've tried putting the individual includes into the index.template.php file in place of the 'include('header.php')', but it's made no difference.
If I place the direct HTML into the index.template.php file in place of the 'include('header.php') everything works, but this is not what I want.

It just seems that the index.template.php file is completely ignoring the include call.

<edit>
I changed the 'include' into a 'require' and apparently it's not finding header.php, despite it being right there.
If I change it from 'header.php' to '/home/<snipped>/www/forums/Themes/tlg/header.php' it then loads the header file.. though now it's got issues with finind the includes inside the header.php file... *sigh*

For some reason it won't take a relative path ....

Anyone have any suggestions?

Goldeagle

Hmm,

Im using smf version 1.1.5

Am I right in assuming that using the attached edited index.template.php file would not cause any problems ?

Or would I need to edit the index.template.php file of version 1.1.5 to accomplish this layers effect ?

Goldeagle

Well,

I certainly found out lol. Looking good I reckon. My Forum with a layer [nofollow].

What do you reckon?

Owdy

Quote from: Goldeagle on July 23, 2008, 04:09:21 PM
Well,

I certainly found out lol. Looking good I reckon. My Forum with a layer.

What do you reckon?
Your link is invalid. Please correct it.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0


Adan Enrique

How i can integrate a SMF forum with a Wordpress template easily?

writerrobert680

Quote from: Adan Enrique on August 02, 2008, 05:43:58 PM
How i can integrate a SMF forum with a Wordpress template easily?

Go to www.simplemachines.org and click on the customize link. Go to themes, and search for 'blog', and try to locate a 'blogger' type theme. That's very accurate.



I was able to succeed in converting my website template:

www.v3.robertcity.com

into the forum template:

www.robertcity.com/support

and into my blog:

www.robertcity.com/blog

WITHOUT the use of the header.php and footer.php, which didn't work. I had the .css command work, but I ended up editing the index.php file and style.css file.

BUT it took all afternoon to convert BOTH, whereas it would probably take about 10-15 minutes with the turorial, not saying that this tutorial was terrible, it was WONDERFUL!, but I wanted to point out the problem and the solution that I was able to create.

jackbrew

Thanks Daniel!

It took a couple of hours and some close reading (and re-reading), but I've got it up just the way I had imagined it.  See it at hxxp:www.babyoopsbaby.com/forum/ [nonactive]

thanks again!

rmg

Wal-Mart Security

Can we sticky this topic?  I don't remember if it's been asked before, but this would definitely be a great one to stick.
Achilleus Technologies
Ace Gaming Syndicate
PART TIME SMF CHARTER MEMBER 4LIFE

SMF slays phpbb, puts it in an IPB coffin, and buries them both with the ashes of vBulletin.

rodrico101

QuoteSplit up index.template.php
Since we've created the new theme, the next step is to edit the index.template.php file. I've attached a base index.template.php file which you may use (save it into Themes/[your theme name]). This is SMF 1.1.1's index.template.php, except it has been split into two layers (site and main). The site_above sub-template contains everything from the very start of the page to the <body> tag. The site_below sub-template contains everything directly under the body. The main_above and main_below sub-templates contain the top (info box, menu, etc.) and bottom (copyright) of the actual forum.

OK...apparently almost everyone else can find this attached file , but me. 
I am running 1.1.6
Is there a tutorial of how to actually split up the index.template.php file?  I am not sure how to do that so I get the sub layers.  I have no problems with the other parts of the tutorial..the header/footer ad database steps.

Can anyone help?

Thanks,Rod

j3cubcapt


Daniel15, Do you do any work like this for pay? I would like to hire you to do this for me..

Will

rodrico101

Anyone ???

Trying to modify the template, but do not see where it can be downloaded.  Anyone know how to divide it up?

Rod

Advertisement: