News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Static Page Mod

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

Previous topic - Next topic

xenovanis

Quote from: Mark_Breznay on August 19, 2005, 01:07:08 PM
Does the author of this mod ever visit here?  I could use a tutorial on how to set up these pages.
Mark

Quote from: –Michael on May 20, 2005, 04:09:34 AM
... For details, see Static Page Mod Site
"Insanity: doing the same thing over and over again and expecting different results."

Mark_Breznay

I've already seen that, that's why I'm posting here.  Not enough detailed information..  I like doing things right, the first time, so I'll wait for clarification.
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

–Michael

All,

I was not here within the last few days. Many posts since my last visit, I try to answer to these now.

Quote from: trenchteam on August 07, 2005, 06:34:55 PM
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

No, I just have tested the following:

Forum is installed on http://localhost/forum-105/

A php file is located at http://localhost/test01/

In a staticpagemod textarea, I have entered:

<?php
include("http://localhost/test01/test01.php");
?>



The content of test01.php:
<?php
echo 
"Hello World";
?>


It works fine for me, the file test01.php is included well.

I know it's a silly question, but did you check the error message "No such file or directory"? It does not state that a php file cannot be included, it simply tells that it could not find the file/dir....

Quote from: Mark_Breznay on August 17, 2005, 12:19:50 PM
I have 1.0.5.  Which download do I use?
Mark
See Static Page Mod Site:
Quote
Latest Version: 1.3
Compatible With:  1.0.4, 1.0.5, 1.1 Beta 3 Public
As you can see, the current version of StaticPageMod is compatible with SMF 1.0.5.

Quote from: Mark_Breznay on August 18, 2005, 03:12:01 PM
I would also like to know if this page mod works with Bloczone's portal and Helios Multi Theme?
Currently, over 100 mods can be downloaded, and almost every day new mods or new mod versions are added.
It is almost impossible for a mod author to check compatibilities with every mod.
I suggest to set up a testing environment, install your mods and then you can see if they are compatible
with each other or not. Of course, it would be helpful to let us know about the result.

Quote from: Mark_Breznay on August 18, 2005, 05:48:18 PM
Thanks for the info.  Now, how do you install it?
Quote from: Mark_Breznay on August 19, 2005, 02:05:56 AM
Ok, I have it installed.  Now, what do I do to get the pages to show.  I have buttons ready.
See the mod site: Static Page Mod Site
Please let me know which part of this site is not clear enough for setting up static pages.

Quote from: Mark_Breznay on August 19, 2005, 01:07:08 PM
Does the author of this mod ever visit here?  I could use a tutorial on how to set up these pages.
For a 'tutorial', see the mod site: Static Page Mod Site
Please let me know which part of this site is not clear enough.

I often visit the SMF site, however the last few days I did not. Many thanks for the support of the other members.

Quote from: Mark_Breznay on August 19, 2005, 01:51:22 PM
Not enough detailed information..  I like doing things right, the first time, so I'll wait for clarification.
Please see above. I need to know exactly what is not clear enough.

Thanks,
Michael
My SMF Mod: Static Page Mod

Mark_Breznay

How do I get the page to display?  Where do I insert code?
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

–Michael

Both is explained at Static Page Mod Site.
In the meantime I doubt that my English is comprehensible, as English is not my native language and the same questions come up again and again...

Anyhow, see below:

Quote from: Mark_Breznay on August 19, 2005, 05:03:53 PM
How do I get the page to display?

Quoted from Static Page Mod Site:
QuoteTo call your static pages, use the following URL format:
http://www.yoursite.com/forum/index.php?action=static&staticpage=X
where the "X" at the end of this URL stands for 1,2,3,... — so this is the number of your static page.




Quote from: Mark_Breznay on August 19, 2005, 05:03:53 PM
Where do I insert code?

Quoted from Static Page Mod Site:

QuoteAfter installation, you will have a new section in Forum Configuration / Edit Features and Options called Static Page Mod Options.
There you can enter HTML code or PHP for up to 10 different static pages:
My SMF Mod: Static Page Mod

Mark_Breznay

http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

–Michael

Well, my crystal ball tells me that you would like to add an icon such like "search", "help" etc.  ??? ???
If so, you need to modify index.template.php. This has been covered very very often here, oh well, please use the search.
Anyhow, the less information from you, the less we can help.
My SMF Mod: Static Page Mod

Mark_Breznay

I very much want to add these pages, using buttons I have already created, downloaded and installed.  Without detailed instructions on how to do this, how do you think anyone could?  A "read me," with detailed instructions would be very helpful here and stop people like me from asking so many questions.
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

–Michael

Mark, I did not cover that since the implemetation depends on the structure of your theme, etc. etc.
And not everybody wants to call a static page with a SMF menu button.

Some search results on this matter:
http://www.simplemachines.org/community/index.php?topic=22799.0
http://www.simplemachines.org/community/index.php?topic=35631.0

If the search can't help you, I suggest to post a new thread asking for how to implement a new menu button in SMF. Currently, your question has nothing specific to do with StaticPageMod as far as I can see. You just need to know how to add a button to SMF, and this was covered often here, so please feel free to use the search and/or post a new thread.
My SMF Mod: Static Page Mod

Mark_Breznay

#69
Ok I added the code, entered the url in the browser and found the word "Gallery" over on the left side, in the middle of the page.  Although the coding worked, this isn't what I want, so, you are right, I'll post a new thread and see what I can find.  If you look on http://www.sundayniagara.com/forum/portal.php , which is an XMB forum and you look at the header panel up top, I have added everything from "Links" to Web Services."  with a custom page mod from XMB Xtreme.  I would like to do better than that with SMF and be able to call the pages with buttons, just like the main menu.  That is basically a copy & paste mod and add your own content, name the page and add a plug-in into config.php .
Mark

PS:  I tried to find this mod on XMB Xtreme, but couldn't find it.  If you'll give me your email address, I'll send it to you, as I have it on my desktop.
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Mark_Breznay

#70
This doesn't work for me.  What am I doing wrong?
Mark

// How about the [Gallery] button?
   
      echo '
            <a

href="http://www.audioartisan.com/smf/index.php?action=static&staticpage=1">',

($settings['use_image_buttons'] ? '<img src="'  . $settings['images_url'] . '/' .

$context['user']['language'] . '/helios_Gallery.gif" alt="' . $txt[801] . '" style="margin: 2px 0;"

border="0" />' : $txt[801]), '</a>', $context['menu_separator'];
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Mark_Breznay

I've figured this one out too.  It needs to work with my theme, whch is helios_multi_tp .  Does anyone know how to do this?
Mark
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

trenchteam

#72
Quote from: –Michael on August 19, 2005, 04:59:05 PM
All,

I was not here within the last few days. Many posts since my last visit, I try to answer to these now.

Quote from: trenchteam on August 07, 2005, 06:34:55 PM
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

No, I just have tested the following:

Forum is installed on http://localhost/forum-105/

A php file is located at http://localhost/test01/

In a staticpagemod textarea, I have entered:

<?php
include("http://localhost/test01/test01.php");
?>



The content of test01.php:
<?php
echo 
"Hello World";
?>


It works fine for me, the file test01.php is included well.

I know it's a silly question, but did you check the error message "No such file or directory"? It does not state that a php file cannot be included, it simply tells that it could not find the file/dir....

My directory for the script is there. Its  in  root/forum/cutenews   

Im using this code

<?php

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

$number "1";
 
$category "1";
 include(
"cutenews/show_news.php");

ssi_shutdown();

?>


Anything Im doing wrong? Im also using a custom theme.  you can see my site here.

http://www.shoyoroll.com



Mark_Breznay

This what I am talking about from XMB Xtreme.  This is one beautiful mod and it works perfectly every time.  Would anyone like to tackle this project?
Mark

http://www.xmbxtreme.com/viewthread.php?tid=3230
http://www.americandragracing.com
http://www.sundayniagara.com
http://www.yorkus30.com
BE THERE!!!!!!!!!!!!!!!!!!

Errors of omission create dumb questions.

Xarcell

I love the static page mod, but was still worndering how much better can we make it? Then I was struck with a really good idea, but I dunno how easy it would to make. In theory, it doesn't really seem that hard to make.

Here's the advancement idea:

-----------------------------------------------------------

1.) Allow user's to make thier own static page. They would be able to use this as a "homepage" or whatever reason.

2.) What a user can insert on the static page would be limited to smf membergroup permissions. User's in "membergroup A" can use php, advanced html, basic html, bb code, attachments, images etc. User's in "membergroup B" can only use basic html, insert images, or whatever.

3.) In the admin > features & options: you'll have a list of your smf membergroups. For each group you can check boxes to allow attachments, images, html, php, etc. Then still show all your boxes (10) for the for the site's custom pages.

4.) A user can edit thier static page from thier "modify: profile > forum & profile information" with the little box showing there. Thier static page can be viewed from a link listed in post author information, or profile view.

-------------------------------------------------------------------

What do ya think?

-Xarcell


–Michael

My apologies for not responding sooner, the last days I was pretty busy.

@trenchteam:
Currently I do not know what is going wrong there, but I will look into it soon, if I find out more I will post it here.

@Xarcell:
Sounds nice, I know such "user pages" from some other forums. Well, currently I do not have time and necessity for such extension, but feel free to use my static page mod and extend it to the features you would like to have. Anyway, you should take an extra care on the permission of using php since this can be a security issue.

Regards,
Michael
My SMF Mod: Static Page Mod

ladyshanae

Is there a way I can have the title in the page show at the top of my browser?  Currently I get the URL, but not the title I have submitted. 

One other problem I can't seem to figure out - when I try to use a table (which I need to do because the bg of my forum is a bit crazy), I can't see the table bg in Firefox, but it shows up in IE.  Any ideas on a solution for this?

Overall - I love this mod.  It makes my life easier lol 

Thank you!

Harelin

Quote from: Xarcell on September 14, 2005, 12:45:39 PM
Allow user's to make thier own static page. They would be able to use this as a "homepage" or whatever reason.

Invision board has a script for this.  If anyone is interested down the road, toss me a PM and I can try to find it for you - might help.

anunlike

#78
Absolutely love this mod!

Quote from: ladyshanaeIs there a way I can have the title in the page show at the top of my browser?  Currently I get the URL, but not the title I have submitted.
Same problem here, though.

m00h

Can i use it with SMF 1.1 RC1?

Thanks

Advertisement: