SMF Support > SMF 2.0.x Support
Dicing Page.
(1/1)
Skyro:
I'm trying to make a new page called dicing.
I've got dicing.php, dicing.template.php, & dicing.english.php. They're all in the correct place, it's working. I've got $context['page_title'] = $txt['dicing_title']; in my dicing.english.php (the same how the help files work) but it doesn't show it. But when I add the thing the help use s$context['page_title'] = $txt['manual_smf_user_help']; It will work. But I want it to use my dicing.english.php to get information not the manual because that's for the help. I'm not sure why and am really confused.
Note: I did copy and paste all of the help files and changed the names.
Here are my dicing files;
Dicing.php
http://pastie.org/4414356
Dicing.template.php
http://pastie.org/4414362
Dicing.english.php
http://pastie.org/4414361
Chas Large:
Why don't you just use SSI? Check out www.yourforumname/ssi_examples.php to see how easy it is to include forum info into a web page. There's a full web page example there for you to copy and paste.
Skyro:
What do you mean, i read it and it didn't show me anything really. Can you show me how I can have a blank SMF page that I can code into please?
Chas Large:
--- Quote from: Skyro on August 08, 2012, 02:45:25 PM ---What do you mean, i read it and it didn't show me anything really. Can you show me how I can have a blank SMF page that I can code into please?
--- End quote ---
If you go back to the SSI examples page and under Web Examples, click Sample 1 you'll see a web page in a window. Above that is a code example, click Select, paste that into a .php page, save it to the root of your site and you'll have your page where you can add / edit the Server Side Includes to display the parts of your site required. The layout of that page is up to your choice of code and CSS.
Skyro:
Updated Thread, more information. :)
Navigation
[0] Message Index
Go to full version