TinyPortal

Development => Support => Topic started by: EG on August 09, 2006, 11:10:37 PM

Title: Menu Link display in the "main table"
Post by: EG on August 09, 2006, 11:10:37 PM
sorry, found that hard to describe.

Im just setting up TP and have started adding to Menu items. 

My site currently has a "front end" of "information pages" and a link on the front page through tot hte forum.  I wanted to use TP to integrate the two.

So, I set up the menu items, and put the links from the menu to the pages we;ve already created, but what I cant get it to do, is to display those pages  withing the "framework" of the TP, i.e in the middle, with the left and right bars etc still remining.  It seems, it goes totally over to the URL link, or opens the URL link in a new page.

Is it possible, to get the link to open up within the framework... i.e where the forum would normally display ?

(I see I could do this by creating php articles... but since the pages are already there, it would make sense to just sort the display options thing out)

(p.s.... very impressed so far!)
Title: Re: Menu Link display in the "main table"
Post by: IchBin on August 09, 2006, 11:15:43 PM
You can't have them included into the TP/SMF pages unless you include them in articles or blocks. That is what TP uses to display things. You can do it via HTML with an I-frame or PHP with the include(); statement.
Title: Re: Menu Link display in the "main table"
Post by: EG on August 10, 2006, 12:05:33 AM
OH yeah!  I see now!

the good old include function!  thanks :)
Title: Re: Menu Link display in the "main table"
Post by: Nokonium on August 10, 2006, 08:04:10 AM
I have transfered html pages into articles on my South Gwent Ramblers site (see sig). Paste in everything between the <body> tags and work from there.
Title: Re: Menu Link display in the "main table"
Post by: EG on August 10, 2006, 10:35:41 AM
yeah.  I thought about doing that... was just trying to save some time.... the include function works quite well, tho will have to twiddle perhaps with the header info on the orig files....

Title: Re: Menu Link display in the "main table"
Post by: patme on August 28, 2006, 05:56:33 PM
I have same problem. Does anyone can give me an example of this include(); ? Lets say I have blahblah.htm nor http://www.blah.com and want to have it opened on frontpage when someone click on the menu link.
Title: Re: Menu Link display in the "main table"
Post by: IchBin on August 28, 2006, 06:06:40 PM
include('your/file/here.html');
Title: Re: Menu Link display in the "main table"
Post by: patme on August 28, 2006, 06:17:52 PM
Thanks, almost working :)

Its loading my xxxx.htm file but all graphics, background etc. is gone and links on this page not working at all. Anything else should I include?
Title: Re: Menu Link display in the "main table"
Post by: IchBin on August 28, 2006, 06:30:50 PM
If you can tell me what you're actually trying to do I could probably tell you lol. Are you talking about the file that you include the graphics links and stuff are not working? Have a link?
Title: Re: Menu Link display in the "main table"
Post by: patme on August 28, 2006, 06:47:21 PM
Ok. Lets say it differently:

I'd like to have a working google site on my TP frontpage accessible thru menulink. So I think fronpage should be working like a new frame or sth with this google site.

Edit:

I think I found the way:

echo'
<iframe src="http://www.google.com" height="350" width="100%" Scrolling="yes"></iframe>';


or maybe there is better way?
Title: Re: Menu Link display in the "main table"
Post by: IchBin on August 28, 2006, 10:14:31 PM
If that's what you're looking for, it's a good way to do it.