TinyPortal

Development => Support => Topic started by: Omniverse on February 15, 2006, 12:03:37 AM

Title: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 12:03:37 AM
I have a need to display a page from another site. doing this is easy enough, but...

How do I make it so it will open on the main page, and leave say the left blocks in place? To where when you click the link, the center and right blocks are gone, and it displays the linked page in there.

I actually wish to do this for a few things... call pages not associated with smf or tp, how do i display them in the tp main page?
Title: Re: How to insert other web pages?
Post by: IchBin on February 15, 2006, 03:48:46 AM
Use the articles feature. Add a php article and use an include tag.\

include "link/to/your/page.html";
Title: Re: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 04:32:12 AM
Ahh, ok, I see how that works now :) Thanks.

One thing though.... I can't get it to work hehe :(

here is what I put in:

include ("http://www.rpgoutfitter.com/wow-gm-rs/guild.cfm?guild=Pantheon@Alleria");


All I get is a blank page, any ideas?
Sorry I'm a noob at php, but its sposed to be easy to learn right? :P
Title: Re: How to insert other web pages?
Post by: IchBin on February 15, 2006, 04:34:52 AM
It works on my site. Make sure you select the block type to be a phpbox.

You can see it in action here.

http://www.tmrules.com/beta/index.php
Title: Re: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 04:42:53 AM
hmm, ok, i goto manage articles. click on add php.

and just put that line I showed in right? Still blank...

Don't get why its not working. I also notice it messes up the internal links for that page... anyway to fix that?.. course that could wait till I actually got it to show :)
Title: Re: How to insert other web pages?
Post by: IchBin on February 15, 2006, 04:45:43 AM
If you can give me a link to your site and allow me to submit articles I can test it myself if you'd like..?
Title: Re: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 04:47:38 AM
ok, sending ya a pm...
Title: Re: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 05:07:29 AM
Ok, well i got it to work, using this guys post:

http://www.tinyportal.net/smf/index.php?topic=1349.0

I still don't see why the other method wouldnt work. I had the same issue with rss feeds (not being able to do it the simple way :)

After playing on my site a bit, any ideas why it wouldnt work for me?
Title: Re: How to insert other web pages?
Post by: IchBin on February 15, 2006, 05:17:09 AM
No ideas m8. I tried serveral different ways of typing the code out with an include statement. I hope someone else can take a look at this.
Title: Re: How to insert other web pages?
Post by: Omniverse on February 15, 2006, 06:44:43 AM
Thanks for your help :) I must say, I like how it turned out.

Hmm, have to figure what bug I got goin on thats preventing some stuff from workling....
Title: Re: How to insert other web pages?
Post by: gerrymo on February 15, 2006, 11:07:29 AM
If it's a static page Ichbin's way works. It it is an interactive page, use an iFrame to dispaly it in a normal article, or block. Do a search for iFrame as tehre are countless topics on this already, with various solutions.
Title: Re: How to insert other web pages?
Post by: superQ on February 15, 2006, 01:12:29 PM
It is always interesting to find new stuff you can do.I myself am particularly interested what can be done with  articles,However doing a search for Iframe,as suggested,  gives 1 result. The previous post. :tickedoff:

something I found via google.Hope it helps me understand. I do not know if it is pertinant though,but it can't hurt. :uglystupid2:

http://www.cs.tut.fi/~jkorpela/html/iframe.html

I would rather have some reference from this forum so if anybody has any search terms that may provide some results in this forum please post them
Title: Re: How to insert other web pages?
Post by: crip on February 15, 2006, 01:23:39 PM
;) :-*