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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,062
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 727
  • Total: 727

Portal Questions.

Started by Kyosoe, September 23, 2008, 05:13:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kyosoe

I actually have two questions.. each depending on the answer of the other..

In simple terms I have a Webcomic on my forum and I have it as the main page for site using a PHP Block and {php include();} but when I link from the page in the include it opens a new page.. now the first question..

Is there a way to make the Front Page block a stretchable page and keep all the forum information around it.

or.

Is there a way I can include(); The information from TinyPortal into a template ie(Recent Posts, User Info, Stats etc)

Ianedres

For your first question, you can also specify the target for your included page's link tag using 'target="_self" in the <a> tag to open in the same window; such as:
<a href="www.yourdomain.com" target="_self">Link</a>

By changing "_self" with "_blank", the link will open in a new window instead of the same window...

As for your second question, I don't understand exactly what you mean. If, perhaps, you are referring to using an IFRAME tag to have scroll bars, then I'll refer you here for more information.

Kyosoe

Using the _targets would cause it to take over the whole page..

But I'll try to fill in a few blanks..

I've used the IFrame and it works for what I wanted it to.. but, I would rather not have the scroll bars kinda like Auto Sizing but the auto sizing commands don't work for me in an HTML Block

Which is why I used include(); because it stretched out the block..

I have 2 pages I want to use in the block and I don't know a way to link them using Include like I could do with an Iframe.

So I decided to try and make a template website by copying the source of the my home page and then putting the hard code in myself.. but that leaves me with my "Recent Posts" and other PHP scripts stuck at the time of when I copied the source..

bloc

A PHP article would help here, in it you could use "include("yourpage.php");" and also set various settings for the TP page, turn off panels perhaps etc.

Crip

Bloc,
..would this also work on External php pages ?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



bloc

Yes, you can use the external article option as well.

Crip

Such as a Contact Form: "include("contact.php");"
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Kyosoe

#7
I am currently using the PHP Block, but I can only get it to work for one page but I have 2 I wish to place on the front page via linking from the main page.

How would I use this External Article Feature?

EDIT

Finally figured something out using  the articles. I used the include on my home page then had the link link to another article..

http://www.larandum.net is the link.. and what I've been working on is on the bottom of the page "Character Biographies"

Thanks for the help guys, I never thought about using articles to do the work for me ^_^

This website is proudly hosted on Crocweb Cloud Website Hosting.