Advertisement:

Author Topic: coding help  (Read 2338 times)

Offline Darkness_

  • Full Member
  • ***
  • Posts: 405
coding help
« 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....

Offline tohtori

  • Semi-Newbie
  • *
  • Posts: 12
    • Xxonkforia eroottinen foorumi
Re: coding help
« Reply #1 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

So you also need to change your code to match those changes.

Offline Darkness_

  • Full Member
  • ***
  • Posts: 405
Re: coding help
« Reply #2 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?

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: coding help
« Reply #3 on: January 11, 2009, 08:49:06 PM »
Did that file automatically insert the theme previously with 1.1.x?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline Darkness_

  • Full Member
  • ***
  • Posts: 405
Re: coding help
« Reply #4 on: January 13, 2009, 08:46:51 AM »
yess, but we figured out.

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: coding help
« Reply #5 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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline Darkness_

  • Full Member
  • ***
  • Posts: 405
Re: coding help
« Reply #6 on: January 15, 2009, 06:04:03 PM »
Code: [Select]
<?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