News:

Wondering if this will always be free?  See why free is better.

Main Menu

Static Page Mod

Started by –Michael, May 20, 2005, 04:09:34 AM

Previous topic - Next topic

artful

Hi all,
package manager does not work in version 1.1
Can someone tell me where I should place these files and
do I need to do something special to install them?

thanks

–Michael

@artful:

You can download the mod manually from the mod site and then
After that, the package manager will list the mod (-> Browse Packages) and you can click 'Apply Mod' to install it.

Michael
My SMF Mod: Static Page Mod

trenchteam

I keep getting these errors when I try to apply a php include.


2: Unknown(cutenews/show_news.php): failed to open stream: No such file or directory
File: /home/*****/public_html/forum/Themes/default/_StaticPageMod.template.php (eval?)
Line: 4

Does the cutenews script have to be in the forum folder so that I can call it via include? i want to add a small blog using cutenews to the static page. ;D

BTW, this is what the include looks like. Im hoping someone can help me out.  the NEWS folder is within the /forum folder too.

  <?PHP
$number = "1";
$category = "1";
include("cutenews/show_news.php");
?>

tentronik

#43
try an absolut URL like "http://domain.com/x/x/cutenews/index.php" or try to slash to the right folder like:
"../cutenewsfolder/cutenews/index.php".

1MileCrash

im not sure i understand.....isnt this basically doing this-

<?php
ob_start
();
$ssi_theme 1;
$ssi_layers = array('main');
require_once(
'SSI.php');
?>

Html Content
<?php
ssi_shutdown
();

?>

but with a standard url? (like www.asite.com/thefile.php)

The only thing php can't do is tell you how much milk is left in the fridge.



trenchteam

Quote from: tentronik on August 07, 2005, 06:38:51 PM
try an absolut URL like "http://domain.com/x/x/cutenews/index.php" or try to slash to the right folder like:
"../cutenewsfolder/cutenews/index.php".

I tried both, I was still getting the same error :-[

flowerweb

I want to increase the number of character of the static pages, because pages not accept an high number of the character. It' possible?

trenchteam

I stilll really would like to use includes from an outside script using the static mod if possible. Please advise! thanks. ;D

trusk

sorry I have yet another question. how can I use this mod to display a php page (blog whatever)? what do I have to type in the field so the php page will be displayed?
many thanks

1MileCrash

Quote from: trenchteam on August 09, 2005, 05:21:13 AM
I stilll really would like to use includes from an outside script using the static mod if possible. Please advise! thanks. ;D

then do this
<?php

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

echo 
'Hi!';

ssi_shutdown();

?>


Example of what i did

<?php
ob_start
();
$ssi_theme 9;
$ssi_layers = array('main');
require_once(
'SSI.php');
echo 
doUBBC(file_get_contents('agreement.txt'));
ssi_shutdown();

?>


Voila.
http://paintplayers.com/smfthemes/hi.php
The only thing php can't do is tell you how much milk is left in the fridge.



trenchteam

SO how would I go about using this php code? This is the include provided to me from cutenews.

  <?PHP
$number = "1";
$category = "1";
include("cutenews/show_news.php");
?>

Mark_Breznay

I have 1.0.5.  Which download do I use?
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Mark_Breznay

Ok, I figured out the download, but the read me could use a little clarification.  I just need to know which files to upload via ftp and where they go and which file gets uploaded thru the package manager.
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

1MileCrash

Quote from: trenchteam on August 11, 2005, 12:34:45 AM
SO how would I go about using this php code? This is the include provided to me from cutenews.

  <?PHP
$number = "1";
$category = "1";
include("cutenews/show_news.php");
?>


Just insert it. You can remove the PHP tags, because it's already in PHP. Just put it where it says "echo 'Hi!';"

The only thing php can't do is tell you how much milk is left in the fridge.



Mark_Breznay

I would also like to know if this page mod works with Bloczone's portal and Helios Multi Theme?
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Xarcell

Yes, it wirth with the theme because I just tried it earlier today. Don't know much about the portal, but I don't see why it wouldn't.

-Xarcell

Mark_Breznay

Thanks for the info.  Now, how do you install it?
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Mark_Breznay

Ok, I have it installed.  Now, what do I do to get the pages to show.  I have buttons ready.
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

trenchteam

Quote from: Tippmaster on August 17, 2005, 09:33:57 PM
Quote from: trenchteam on August 11, 2005, 12:34:45 AM
SO how would I go about using this php code? This is the include provided to me from cutenews.

  <?PHP
$number = "1";
$category = "1";
include("cutenews/show_news.php");
?>


Just insert it. You can remove the PHP tags, because it's already in PHP. Just put it where it says "echo 'Hi!';"



I got this error from this.

2: file(./data/comments.txt): failed to open stream: No such file or directory
File: /home/*****/public_html/forum/cutenews/inc/functions.inc.php
Line: 229

Mark_Breznay

Does the author of this mod ever visit here?  I could use a tutorial on how to set up these pages.
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Advertisement: