TinyPortal

Development => Support => Topic started by: DcMega on October 05, 2006, 08:20:56 PM

Title: How to create a site page...
Post by: DcMega on October 05, 2006, 08:20:56 PM
Hello
I'm new to php and have some problems. I'm not sure if this board is the best for my topic, but still...
The problem is that i don't understand, how to create a new inner page (manually) just like
/index.php?action=search
/index.php?action=forum
/index.php?cat=1
so that all panels (top, bottom, TinyPortal) are included as in the examples above.

I don't understand, how to change inner page text  :tickedoff:
Perhaps, i'm becoming mad, looking through the code, but not understanding.
Please, somebody, help me!
For example, how to create a new page with all the panels on their places and the inner text is something like "Test".
Title: Re: How to create a site page...
Post by: akulion on October 05, 2006, 08:45:59 PM
You can create an article and put it in the middle but if thats now what you want then:

best to use Iframes (http://www.tinyportal.net/smf/index.php?topic=8653.0) its the simplest manner
Title: Re: How to create a site page...
Post by: DcMega on October 05, 2006, 09:29:16 PM
Quote from: akulion on October 05, 2006, 08:45:59 PM
put it [article] in the middle

that's the problem - if i create an article it is shown as a separate page with no tinyportal
another decision is to create an article category and put there one article - but i don't think it is right to behave so ^_^

OK, THANKS for iframes, I'll study it and try out
i hope, everything will be OK



frankly speaking, firstly i tried to do it another way:
to add 'mytest page' => array ('mytestpage.php', 'mytestpage') to $actionArray in index.php
then create file 'mytestpage.php' and function mytestpage() in it

but... I can't understand how to do so. Code is so huge... you see...
so, is it possible to do in such way? if yes, then how?
Title: Re: How to create a site page...
Post by: akulion on October 05, 2006, 09:35:43 PM
when u create ur article
look at the bottom

there are drop down boxes which allow you to say which blocks will appear on the left and right

that way you can preserve the look for your site :up:
Title: Re: How to create a site page...
Post by: DcMega on October 05, 2006, 09:45:36 PM
wow ;)
fantastic
i should be more attentive  :o