News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Static Page Mod

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

Previous topic - Next topic

forumite

Dan the man,

FYI the Static Page mod appears to work fine with 1.0.4 for me.  The mod was installed with SMF 1.0.3 and I later upgraded to SMF 1.0.4 without changing or re-installing the mod.

dtm.exe

Quote from: rvforumite on June 07, 2005, 07:47:45 PM
Dan the man,

FYI the Static Page mod appears to work fine with 1.0.4 for me.  The mod was installed with SMF 1.0.3 and I later upgraded to SMF 1.0.4 without changing or re-installing the mod.

Hmm, it appears to be just the opposite for me.  I click on the link to the static page and it brings me back to the board index.

-Dan The Man

forumite

Let's see if others report the same thing before one of us heads off on a witch hunt.

dtm.exe

Quote from: rvforumite on June 07, 2005, 09:51:00 PM
Let's see if others report the same thing before one of us heads off on a witch hunt.

OK, sounds good.

-Dan The Man

–Michael

Thanks for testing with 1.0.4.

I will investigate it ASAP and update the mod to 1.0.4 — if necessary.

Michael
My SMF Mod: Static Page Mod

dtm.exe

Quote from: -Michael- on June 08, 2005, 04:56:44 PM
Thanks for testing with 1.0.4.

I will investigate it ASAP and update the mod to 1.0.4 — if necessary.

Michael

OK, thank you.  It really is a great mod.  It's good for people who aren't especially good with PHP to incorporate a completely customized HMTL page into their forums.  Keep up the good work :).

-Dan The Man

–Michael

New version of this mod is now available: Static Page Mod 1.1

Changes:

  • Added: Functionality of mod "ModSettings Textarea Mod 1.0.3". So this Textarea mod is no more necessary and should be uninstalled if you install Static Page Mod 1.1.
  • Added: French language

This mod works fine with SMF 1.0.4.
However, if you upgrade from SMF 1.0.3 to 1.0.4, I suggest:

  • Go to "Forum Configuration / Edit Features & Options / Static Page Mod Options" and copy all your HTML sourcecode into a textfile - this is for backup purposes since these will be deleted during uninstallation
  • Uninstall the Static Page Mod and the ModSettings Textarea Mod 1.0.3
  • Apply the upgrade to SMF 1.0.4
  • Install the Static Page Mod 1.1

Michael
My SMF Mod: Static Page Mod

–Michael

#27
FYI — Static Page Mod 1.1 does work with SMF 1.0.5.

As always: I suggest to save the html, uninstall the mod, apply the SMF update und re-install Static Page Mode.
My SMF Mod: Static Page Mod

Harelin

I'm trying to include an 'if, echo' statement in one of my static pages but it appears they do not display PHP? 

How would I go about, for instance, getting such simple code as

[if ($context['user']['is_guest'])
echo 'text';


to work on one of the static pages?

Isaac

Just wanted to say, excellent mod, I am using it on my forums. :)

–Michael

Thanks for your feedback.

@Harelin:
PHP is not yet supported, but I am going to implement this in a future release.

Michael
My SMF Mod: Static Page Mod

Harelin

Any chance there's a quick fix or I could hard code it in through the actual files?

I'm using the static pages as a series of checks and verifications... first page informs the person, if they aren't registered, that they must register to proceed... second page informs them that they must have a minimum post count of 5 to proceed, etc... and putting an application form at the end.

–Michael

Harelin, take a look at _StaticPageMod.template.php, there you could include your checks.


// Retrieve the HTML content to display. For $_REQUEST['staticpage'],
// a value between 1 and 5 is supported.
$local_settingvar = "staticpage_Content" . $_REQUEST['staticpage'];
$local_staticContent = $modSettings[$local_settingvar];

// Display the content
if (!empty($local_staticContent)) {
// The setting variable is not empty so we display the content
echo $local_staticContent;
}


Michael
My SMF Mod: Static Page Mod

–Michael

New version of this mod is now available: Static Page Mod 1.2


  • Added: PHP support for the static page content
  • Added: title in the mod options for each page content
  • Added: extended from 5 to 10 static pages
  • Added: help is now available in the mod settings

Works with: SMF 1.04, 1.05

How to upgrade from a previous version: See Static Page Mod site, section "How to upgrade from a previous version".


Michael


My SMF Mod: Static Page Mod

Harelin

#34
Thanks Michael :)

With PHP enabled, I was able to throw this together:
http://www.evcitadel.com/ev/index.php?option=com_smf&Itemid=26&action=static&staticpage=1

–Michael

New version of this mod is now available: Static Page Mod 1.3


  • Updated for SMF 1.1 Beta 3 Public, and still works with SMF 1.0.4 and 1.0.5


How to upgrade from a previous version: See Static Page Mod site, section "How to upgrade from a previous version".
My SMF Mod: Static Page Mod

forumite

Michael,

I'm running SMF 1.0.5 and, when I try to download the new release of this mod through the Package Manager, I get this error message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Any ideas?

TIA

–Michael

rvforumite,

I am working on this issue: http://www.simplemachines.org/community/index.php?topic=41012.0

Solution so far: You can download the staticpagemod1.3.zip manually and upload it through the Package Manager.

Michael
My SMF Mod: Static Page Mod

forumite

OK thanks for response Michael.

forumite

#39
Michael

I saw [Unknown]'s response to your question in the other thread so I went ahead and uploaded the mod file using ftp. Looks like it installed just fine. Of course, the language errors were still there.

Meanwhile, since you were able to verify my prior observation, there remains an unanswered question, but that's for you to resolve.

Thanks again for help and thanks for a great mod..

Tom

Advertisement: