Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: trenchteam - syyskuu 14, 2004, 07:32:15 AP

Otsikko: calling the entire forum via include?
Kirjoitti: trenchteam - syyskuu 14, 2004, 07:32:15 AP
 Could I do something like this?

<?PHP
include("/forum");
?>

and place this in a 3 column layout with the forum in the middle?  im not very familiar with coding.  I just use the scripts and create websites using photoshop and imageready and "READY MADE" php scripts.  Just wondering if this would work.
Otsikko: Re: calling the entire forum via include?
Kirjoitti: [Unknown] - syyskuu 14, 2004, 07:25:31 IP
No, it won't really work like that..... you'd have to modify the templates anyway to fix the html.

-[Unknown]
Otsikko: Re: calling the entire forum via include?
Kirjoitti: Crackhead - syyskuu 15, 2004, 02:58:00 IP
Lainaus käyttäjältä: trenchteam - syyskuu 14, 2004, 07:32:15 AP
Could I do something like this?

<?PHP
include("/forum");
?>

and place this in a 3 column layout with the forum in the middle?  im not very familiar with coding.  I just use the scripts and create websites using photoshop and imageready and "READY MADE" php scripts.  Just wondering if this would work.

<?php
include("../forum/index.php")  ;
?>

Works.
Otsikko: Re: calling the entire forum via include?
Kirjoitti: [Unknown] - syyskuu 15, 2004, 03:06:50 IP
Just that maybe, but he was talking about outputting stuff beforehand.  It will also have adverse affects on other things, like attachments, if you make it use that URL.

-[Unknown]
Otsikko: Re: calling the entire forum via include?
Kirjoitti: Crackhead - syyskuu 15, 2004, 03:33:00 IP
Thought he had more in mind kind of 3 layer website and display the forum in 1 layer.

So would create 3 included of witch one is the forum, as long he aint messing with the rest it should work. Not that iam a pro in such tho  ;)
Otsikko: Re: calling the entire forum via include?
Kirjoitti: Cade - marraskuu 27, 2007, 06:56:35 IP
Lainaus käyttäjältä: Crackhead - syyskuu 15, 2004, 02:58:00 IP
Lainaus käyttäjältä: trenchteam - syyskuu 14, 2004, 07:32:15 AP
Could I do something like this?

<?PHP
include("/forum");
?>

and place this in a 3 column layout with the forum in the middle?  im not very familiar with coding.  I just use the scripts and create websites using photoshop and imageready and "READY MADE" php scripts.  Just wondering if this would work.

<?php
include("../forum/index.php")  ;
?>

Works.

BRILLIANT !!! (if I can make it work also) ...what am I doing wrong?
http://www.livekoncerter.dk/test.php
Otsikko: Re: calling the entire forum via include?
Kirjoitti: metallica48423 - marraskuu 27, 2007, 07:09:34 IP
you should not employ this method to do this -- it *WILL* break forum functionality.

The best method would be to edit the theme's index.template.php to 'emulate' your site's look with added divs to contain your board, then including the necessary header/menu/footer files and such.

I use this method at my site and it allows SMF to still fully function.
Otsikko: Re: calling the entire forum via include?
Kirjoitti: metallica48423 - marraskuu 27, 2007, 07:17:06 IP
have you looked at this mod?

http://custom.simplemachines.org/mods/index.php?mod=351
Otsikko: Re: calling the entire forum via include?
Kirjoitti: Cade - marraskuu 28, 2007, 10:08:48 AP
Lainaus käyttäjältä: BlackMage - marraskuu 27, 2007, 07:17:06 IP
have you looked at this mod?

http://custom.simplemachines.org/mods/index.php?mod=351

Great thanks! Much better solution to have functionality kept ;) You've been a great help! Thanks