Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Linera - elokuu 25, 2006, 04:01:26 IP

Otsikko: page template
Kirjoitti: Linera - elokuu 25, 2006, 04:01:26 IP
I'm looking for a plain page temlate that uses the current theme and stuff. I need it for making the other pages in my site and the error pages my server generates like page not found
Otsikko: Re: page template
Kirjoitti: 1MileCrash - elokuu 25, 2006, 05:27:00 IP
http://www.simplemachines.org/community/index.php?topic=42460.0
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 25, 2006, 05:49:13 IP
I tried the following code:
<?php

$ssi_theme 
1;
$ssi_layers = array('main');
require_once(
'SSI.php');

echo 
'Hi!';

ssi_shutdown();

?>

but in the file i saw
Lainaa!!Attention of WOW-DK theme:

This theme doesn't correspond to the version of SMF that you are using. This theme is made for SMF 1.1 RC3.
See the file at:
http://souimappers.post2hostit.com/test.php (http://souimappers.post2hostit.com/test.php)
Otsikko: Re: page template
Kirjoitti: Deaks - elokuu 25, 2006, 07:46:36 IP
Lainaus käyttäjältä: Linera - elokuu 25, 2006, 05:49:13 IP
See the file at:
http://souimappers.post2hostit.com/test.php (http://souimappers.post2hostit.com/test.php)

slightly off topic but I dont see a copyright on that theme.
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 25, 2006, 07:49:00 IP
i dunno how that happen either.

and its bigger than its suppose to be.
Otsikko: Re: page template
Kirjoitti: 1MileCrash - elokuu 26, 2006, 11:02:01 AP
um...sloopz..it's using SSI. Copyright is omited..

Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 01:37:28 IP
Lainaus käyttäjältä: Tippmaster - elokuu 26, 2006, 11:02:01 AP
um...sloopz..it's using SSI. Copyright is omited..

that doesn't explain why its so big and have the error message on it.
Otsikko: Re: page template
Kirjoitti: Deaks - elokuu 26, 2006, 01:41:05 IP
Lainaus käyttäjältä: Tippmaster - elokuu 26, 2006, 11:02:01 AP
um...sloopz..it's using SSI. Copyright is omited..



oops  :-[
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 01:51:26 IP
Well I need the page to be like other pages on the forums.
Otsikko: Re: page template
Kirjoitti: 1MileCrash - elokuu 26, 2006, 05:22:50 IP
I dont see any error message..

This displays everything in the index.template.
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 06:15:16 IP
i see this when i view that test page:
LainaaAttention of WOW-DK theme:

This theme doesn't correspond to the version of SMF that you are using. This theme is made for SMF 1.1 RC3.

and it needs the copyright info.
Otsikko: Re: page template
Kirjoitti: 1MileCrash - elokuu 26, 2006, 06:54:40 IP
It doesnt need the copyright info. Says who? It's covered in the thread i linked you to.

I need to see a screenshot of the error you're seeing, because it's not there for me.
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 07:33:28 IP
Look in my last reply i put the error in a quote

read it.

plus that error is only suppose to pop up when the theme's version is different from SMF's version on your site.

and it always needs copyright, or you break the Terms of Use.
Otsikko: Re: page template
Kirjoitti: Deaks - elokuu 26, 2006, 07:52:18 IP
Linera, im not recieving that error either, a screenshot will make it easier to help you. Considering you are the only person we know of getting it.  If you are getting it and no-one else is then its hard to help.

Below is what I see and im sure is what Tipp sees
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 08:42:34 IP
this is what i see:
http://img243.imageshack.us/img243/1711/errorthatiseetj2.jpg
Otsikko: Re: page template
Kirjoitti: 1MileCrash - elokuu 26, 2006, 08:48:29 IP
It's probabally because your the admin. I don't know why the error is showing because it is the right version..

And, no. The smf copyright is automatically omitted when you use SSI layers..im telling you now. I asked unknown in the thread i linked you to.
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 26, 2006, 08:55:34 IP
How do I get rid of the error?
Otsikko: Re: page template
Kirjoitti: bloc - elokuu 29, 2006, 02:28:31 IP
You need to go in and change those lines in index.template.php of the theme you are using. I don't have the right code, but its safe to assume its something with that text and with....

if( $context['user']['is_admin'] )

...somewhere perhaps.
Otsikko: Re: page template
Kirjoitti: Linera - elokuu 30, 2006, 03:08:44 IP
weird thing is it disappeared on its own.

now; How can I fix the size of the template? it looks a little bigger then the rest of it.