Static Page Mod - Revised

Started by thecooldude, May 05, 2006, 05:35:11 PM

Previous topic - Next topic

thecooldude

Hi; i wanted to have the Static Page Mod for my SMF RC2 Forum but i've found out its not compatable with RC2. It was last updated on July 6th and i cant contact the guy to update his mod. So i'm requesting if anyone here can bring this mod back to life so it can work with RC2. Thanks :)

http://mods.simplemachines.org/index.php?mod=130
[nofollow]

L.G.S

I found this way very easy.

Create a new php file in the board directory and name is what you want.

E.G downloads.php.

Now put this code into the file


<?php
ob_start
();
$ssi_layers = array('main');
require_once(
'SSI.php');
echo
'<table width="100%" class="bordercolor" height="300">
<tr>
<td class="windowbg" width="100%" height="100%" valign="top">
<center>
<font size="+2"></font>
</center></br>'
;
echo
doUBBC(file_get_contents('down.php'));
echo
'</td></tr></table>';
ssi_shutdown();

?>



and upload. Once that's done just edit where it says down.php to what you want and then create that file. Fill that file with anything and it will be shown.

Example:

http://www.tactical-illusion.com/board/download.php
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


thecooldude

yeh, thats a good way of doing it to; but i still would like this mod to come back.
[nofollow]

JshLnsctt

It is easier to do it the way listed above then have to right a mod to do it for you ;)

thecooldude

True. OK I done it - but how (or where) do i change the title?
[nofollow]

L.G.S

In the file with the content use html I presume

<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JshLnsctt

Quote from: L.G.S on May 05, 2006, 06:32:33 PM
In the file with the content use html I presume

<html>
<head>
<title></title>
</head>
<body>
</body>
</html>

Yes, this code should work fine, enter the title between the title anchors ;)

winrules

Quote from: L.G.S on May 05, 2006, 06:32:33 PM
In the file with the content use html I presume

<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
no, that won't work, you have to set $context['page_title']
I submitted a mod to do this a few days ago, here: http://mods.simplemachines.org/index.php?mod=331 (not approved yet)


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


thecooldude

sorry but what is ur mod about? (sorry for maybe asking a dumb question :P 0
[nofollow]

JshLnsctt

Click the link next time ;)
QuoteDescription:
This mod will add an unlimited number of cutsom actions, configurable in Features and Options. There are 3 types, HTML, BBC, and PHP. They can be accesed by going to http://www.yoursite.com/smf/index.php?action=action name.

winrules

Quote from: thecooldude on May 05, 2006, 06:55:36 PM
sorry but what is ur mod about? (sorry for maybe asking a dumb question :P 0
preety much does the same thing as the static page mod, with the exception of:
-there are 3 page types: PHP, BBC and HTML
-you acces the page by going to http://www.yoursite.com/forum/index.php?action=pagename instead of http://www.yoursite.com/forum/index.php?action=static&staticpage=X
-you can specify a page title
-you can have unlimited pages, not just 10


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


L.G.S

Hmmm it won't let me download the mod :(
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


winrules

Quote from: L.G.S on May 05, 2006, 07:02:23 PM
Hmmm it won't let me download the mod :(
that's because it's not apporved yet, it has to be apporved before you download. :(


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


L.G.S

So why do they say

#Please do not use this mod unless you are completely sure of the consequences!#

If they won't even give us the chance to mess our forums up :(
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


winrules

Quote from: L.G.S on May 05, 2006, 07:07:07 PM
So why do they say

#Please do not use this mod unless you are completely sure of the consequences!#

If they won't even give us the chance to mess our forums up :(
lol, who knows. Well it lets the mod author download it I think, I guess I'm not sure of the consequences of using my own mod :P


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


JshLnsctt

Quote from: winrules on May 05, 2006, 07:10:16 PM
Quote from: L.G.S on May 05, 2006, 07:07:07 PM
So why do they say

#Please do not use this mod unless you are completely sure of the consequences!#

If they won't even give us the chance to mess our forums up :(
lol, who knows. Well it lets the mod author download it I think, I guess I'm not sure of the consequences of using my own mod :P

You could upload it to you server for now and link to it ;)

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Skipdawg

That sounds like it could be a rather useful mod down the road. I'll have to keep an eye on that.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

winrules

Quote from: JshLnsctt on May 05, 2006, 07:26:46 PM
Quote from: winrules on May 05, 2006, 07:10:16 PM
Quote from: L.G.S on May 05, 2006, 07:07:07 PM
So why do they say

#Please do not use this mod unless you are completely sure of the consequences!#

If they won't even give us the chance to mess our forums up :(
lol, who knows. Well it lets the mod author download it I think, I guess I'm not sure of the consequences of using my own mod :P

You could upload it to you server for now and link to it ;)
Oh, fine, if your so impatient :P
http://www.squareeggs.ecwhost.com/test/index.php?action=dlattach;topic=1.0;attach=1


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Advertisement: