Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Chriss Cohn - helmikuu 04, 2008, 05:11:03 IP

Otsikko: How to make a simple html-page inside the forum to use its style?
Kirjoitti: Chriss Cohn - helmikuu 04, 2008, 05:11:03 IP
Hi, i want to display/integrate some basic (just plain text) html-pages inside my Forum for privacy policy, Forum-Rules, and so on. It should use my Forums style, so basically just in the place where the board-listings are on frontpage.
And i dont want to install any MkPortal or Tinyportal.

How to do that? Is there a mod or else (i didn't find anything so far)...

Regards, Christian
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: Kindred - helmikuu 04, 2008, 05:13:04 IP
I don't think there are any mods to do this automatically...

but essentially, you would build yourself a Sources/YOURPAGE.php and Themes/default/YOURPAGE.template.php and then add the action into the large action array in the smf root file, index.php
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: Chriss Cohn - helmikuu 04, 2008, 05:27:23 IP
Lainaus käyttäjältä: Kindred - helmikuu 04, 2008, 05:13:04 IP
I don't think there are any mods to do this automatically...

but essentially, you would build yourself a Sources/YOURPAGE.php and Themes/default/YOURPAGE.template.php and then add the action into the large action array in the smf root file, index.php
Cool, sounds good.....
But what to put into the "Sources/YOURPAGE.php" ? - The actual content?
And in "YOURPAGE.template.php" the styling?

Regards, Christian
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: SA™ - helmikuu 04, 2008, 05:43:47 IP
you can use the custom actions mod

found here

http://custom.simplemachines.org/mods/index.php?mod=331

it will be a lot easyer
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: Chriss Cohn - helmikuu 04, 2008, 06:11:53 IP
Lainaus käyttäjältä: wdm2005 - helmikuu 04, 2008, 05:43:47 IP
you can use the custom actions mod

found here

http://custom.simplemachines.org/mods/index.php?mod=331 (http://custom.simplemachines.org/mods/index.php?mod=331)

it will be a lot easyer
Simply amazing!!!
Works OUT-OF-THE-BOX and EXACT like i want it to have.... great!!!!
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: SA™ - helmikuu 04, 2008, 06:12:42 IP
good to see it helped you
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: Kindred - helmikuu 04, 2008, 07:17:39 IP
wow... look at that.

Thanks WDM, I completely missed that mod before.
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: SA™ - helmikuu 04, 2008, 07:22:31 IP
lol i fault so thats why i posted it :D
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: STS - maaliskuu 13, 2008, 04:11:50 IP
This was useful to me as well. I had to tweak it a bit with the stying (basically out of package it was just inserting simple text with no table around it), but it made adding the pages much more simple than I could have manually done.
Otsikko: Re: How to make a simple html-page inside the forum to use its style?
Kirjoitti: SA™ - maaliskuu 14, 2008, 06:28:52 IP
it does yes thats the great thing save some time  :D