TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,055
  • Total Topics: 21,337
  • Online today: 572
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 114
  • Total: 115
  • @rjen

Static Page Template

Started by gerrymo, November 26, 2005, 01:32:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerrymo

I another thread, I asked about some help getting a welcome page together. I have thought about this further, and tried dozens of test pages to try to get it working (so far no joy). However, I do feel that having a page such as this could make TP an absolutely awesome portal. If this could be done with the option to turn on and off side bars (via the coding, not in TP Admin [Right=’0’ Left=’1’ to show only the left bar. Or Right=’0’ Left=’0’ to show none type of thing]).

I used the code below on an SMF only site to create a welcome page. Essentially it gives the header, and footer, with an area between to add your own html or php. I do already use the static page mod (and it is very good), but this does not give SEF URLs, and if they are turned on in SMF admin, the static pages don’t work properly.

Having a blank page available to download and add you own content, with your own page name would allow a site to be fully search engine friendly. OK, so there may so problems with themes, but I’m sure that could be worked out.



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

Text, html or php here

<?php
ssi_shutdown
();

?>

crip

There is a "Static Page mod" that works very well if this is the same thing as your trying to achieve? The mod I use is here.

crip

Also with the mod  you can add 8 to 10 "Static" pages, forgot to mention that..

gerrymo

Well Crip, you can actually do as many as you want to. I modded the mod to allow 50. That does not get away from the fact they are Search Engine Unfreindly. Having a static page template, you could, in theory, have unlimited pages that are SEF.

gerrymo

It would also take away the need to mess around with iFrames for galleries, chatrooms, etc.

crip

Sorry..

Ah..
your mod I presume? ÂÃ,  ÂÃ,  ÂÃ, Great mod and a great Idea to create the Search engine friendly Template, but thats way over my head knowledge..  :uglystupid2:

crip

True..
hope you can figure it out to suite your needs. :)

gerrymo

No its not my mod. But the author did say that it could be done if someone needed more than 10 pages. I only use it, I dont distribute it. Its easy enough to do.

I was not suggesting a Satatic Page template just for me, it would be handy for quite a lot of TP users.

This website is proudly hosted on Crocweb Cloud Website Hosting.