Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Darkness_ on December 11, 2008, 07:08:09 PM

Title: coding help
Post by: Darkness_ on December 11, 2008, 07:08:09 PM
We are making a homepage for our forum.
when we had smf 1.1 it worked, but now we can't figure it out
I''m attaching the file
this is the only file needed and we place in in de main folder of the site....
Title: Re: coding help
Post by: tohtori on December 11, 2008, 07:26:17 PM
The coding and specially the database functions changed from 1-versions to 2.
SMF 2.0 Database Functions #DB Query (http://www.simplemachines.org/community/index.php?topic=224166.0#post_db_query)

So you also need to change your code to match those changes.
Title: Re: coding help
Post by: Darkness_ on December 14, 2008, 02:57:04 PM
ok thanks for the link it helped.

But couldn't find how to instert the theme's in a custom page, does someone know how to do that?
Title: Re: coding help
Post by: Rumbaar on January 11, 2009, 08:49:06 PM
Did that file automatically insert the theme previously with 1.1.x?
Title: Re: coding help
Post by: Darkness_ on January 13, 2009, 08:46:51 AM
yess, but we figured out.
Title: Re: coding help
Post by: Rumbaar on January 13, 2009, 03:57:54 PM
Care to explain how you got it working, so other in future searching and finding this thread might able to solve there issue.

But if this is no longer and issue, marking a thread as 'solved' is appreciated.
Title: Re: coding help
Post by: Darkness_ on January 15, 2009, 06:04:03 PM
<?php
// Version: 2.0 Beta 4; Homepage
require("/home/****************/SSI.php");

global 
$context$settings$options$txt$scripturl$modSettings;

function 
template_main()


this was enough to get the main template......
with smf 1.1.* it was different
with layers and stuff in beginning of the file