TinyPortal

Development => Support => Topic started by: domp on October 25, 2005, 01:54:08 AM

Title: Links in Menu manager
Post by: domp on October 25, 2005, 01:54:08 AM
When you create a link with the menumanager it takes u to the linked page ( try the links here at the left under content)  I want my links to be opened in a new window. Fiddled a bit with targetblank but cant get it to work..

Any idea how to fix that ?

Tia
Title: Re: Links in Menu manager
Post by: IchBin on October 25, 2005, 04:33:25 AM
target="_blank" should work domp. If not, you post the code please?
Title: Re: Links in Menu manager
Post by: bloc on October 25, 2005, 10:46:22 AM
The menu manager "links" doesn't open in a new window. I will see if the option can be added.
Title: Re: Links in Menu manager
Post by: domp on October 25, 2005, 10:57:53 AM
Would b good if u could  O0
Title: Re: Links in Menu manager
Post by: IchBin on October 25, 2005, 02:49:26 PM
My bad, I was thinking that you made your own menu.... :o
Title: Another question Re: Links in Menu manager
Post by: Maya on November 07, 2005, 05:32:17 PM
While we are on the subject...I have a question regarding the links in the menu manager...

I have two test sites with tp, and one open for public...

I like the new window trick...( cool, cause it doesn't replace the window my site in, hope that makes sense) but to take it a step further...


Is it possible to call up say.. 'the forum' or another page from one of my other sites into the center block of another?

(I hope this isn't something just I missed reading..)
Title: Re: Links in Menu manager
Post by: bloc on November 07, 2005, 05:39:53 PM
Through a iframe you can do it. Of course the iframe will decide how much you will see, but the width of an iframe can be 100% - so it expands with the block its in. Height need to be set fixed size though.
Title: Re: Links in Menu manager
Post by: Maya on November 07, 2005, 05:55:44 PM
Good enough.. I can work with that, but would it be more benficial to run it just out of a script block instead of the menu manager...and keep that for what is just in the main site...
Title: Re: Links in Menu manager
Post by: gerrymo on November 07, 2005, 06:20:17 PM
What I have done, was to remove the Content block and write my own using html and creating a new block that sends visitors to where I want them to go (same window, new window or popup). It works well and can easily be made to look like the normal "Content" block.
Title: Re: Links in Menu manager
Post by: Maya on November 07, 2005, 06:41:28 PM
That might be an easier idea..

I will have to play around with both ( i frames and html) and see what I can come up with....the trickiest part still.... will be to call up just the forum from the other site and get it to show in my main sites window....

;) here goes...
Title: Re: Links in Menu manager
Post by: bloc on November 08, 2005, 12:42:59 PM
Having a whole forum actually show (and work) in the midst of another(or portal) might prove hard...thats why I suggested a iframe.

Or didn't you want to show the whole forum..just some parts of it?
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 03:24:21 PM
It is the whole forum I am looking at.
Title: Re: Links in Menu manager
Post by: gerrymo on November 08, 2005, 04:46:07 PM
An iFrame will work in a center block OK. Use the code below in an html block. Simply change the height to suit and/or change it to scroll or not.


<iframe src="http://yourdomain/forum/index.php" height="1000" width="100%" Scrolling="yes"></iframe>


[Change this "http://yourdomain/forum/index.php" to the page you want to display]
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 04:58:11 PM
 :coolsmiley: Thanks guys.. that was pretty quick... (btw- u all have to be mindreaders too...lol I was just sitting down with a fresh coffee and about to start working on this...)

Thanks again :) 
Title: Re: Links in Menu manager
Post by: gerrymo on November 08, 2005, 05:04:00 PM
You may very well get a right scrollbar in the block depending on the height (it is in pixels BTW) and scrollbar settings. It is trial and error to get it to look the way you want. Personally I'd leave the width setting at 100%
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 05:20:02 PM
I like the 100% myself... got it in and its showing up...now just messing with the url...I am just getting the forbidden error... :o rofl..

Title: Re: Links in Menu manager
Post by: gerrymo on November 08, 2005, 05:22:09 PM
Have you got a link to the page with the error? (I mean the whole page that displays the iFrame within it?).
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 05:47:47 PM
I was just playing with it and managed to get a forum to show up...wholly scrolly...lol when I took the scroll off I got about 3/4 of the one forum, but it would open the window to 100%

this is my site for testing stuff out...

*Note - I took this link down... cause I blew it up real good  ;D :idiot2: np.. will put it back after I reload... ;)
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 05:53:01 PM
PS I wonder if it would be worth a try to try to work with it as an article or submission, instead of having it up on every page...then just run a link through the menu manager...???
Title: Re: Links in Menu manager
Post by: houston on November 08, 2005, 08:11:00 PM
Maya I had a look at your site. Looks Great. I'm up in the Shuswap, Salmon Arm Area  building a smf forum with TP. How did you get the local weather to show up in a block.

Thanks
Title: Re: Links in Menu manager
Post by: Maya on November 08, 2005, 08:27:14 PM
Hey Big Thanks houston...

just a tester site for all the r&d ( reinstall & do-over)lol... I learned the hard way never to work on the original/ main stuff... always fiddle with the copy...

nice to see some people fairly close by...Shuswap is sooo beautiful..

what I did was create a script box ( left/right is up to you), and http://www.weathernetwork.com has a link called 'website'ÂÃ,  on their main nav., just go there, and I think they have about 6-7 different style to chose from.. they kind of walk you right through it and at the end, they give you the script to put in your newly made scriptbox... and bam u r good to go...

* I copied the script on a wordpad doc, in case it ever need to be ummm reused, yah thats it...
lol

Thats about it...