TinyPortal

Development => Support => Topic started by: Cybertoad on October 04, 2006, 08:17:41 PM

Title: Block Link To Open In Center
Post by: Cybertoad on October 04, 2006, 08:17:41 PM
 Is there a way to have a block link open in the center.
The way I do it now it opens a new browser page.
I dont want that.

Id like the HTML to open in the center not sure the way to do it.


Cybertoad
Title: Re: Block Link To Open In Center
Post by: akulion on October 04, 2006, 08:19:54 PM
I dont understand what you mean exactly

Is it a custom block? Is it a menu block?

More info needed here + a link to ur page if possible
Title: Re: Block Link To Open In Center
Post by: IchBin on October 04, 2006, 08:23:13 PM
You'll have to create the link to open in an article no matter where you put it. Akulion posted a nice little tutorial on IFrames today just for that. :)
Title: Re: Block Link To Open In Center
Post by: akulion on October 04, 2006, 08:24:37 PM
oohh now i get it lol

here is the iframe tutorial: http://www.tinyportal.net/smf/index.php?topic=9292.0
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 04, 2006, 08:27:23 PM
Ok cool I'll look into that .

Most appreciated.

Thanks


Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 04, 2006, 08:33:24 PM
I used the html block but it only shows the code on the side .

http://rootedingod.org/God/index.php
Title: Re: Block Link To Open In Center
Post by: akulion on October 04, 2006, 08:43:35 PM
When you create a block create a SCRIPT block

Title: Re: Block Link To Open In Center
Post by: akulion on October 04, 2006, 08:49:50 PM
correction..use a script box ;)
Title: Re: Block Link To Open In Center
Post by: akulion on October 04, 2006, 08:54:16 PM
here i will simplify it for you...

Do this:

Create a LEFT side block - it should be a SCRIPT block
In it put this:


<A HREF="BeaverHabitat.html" TARGET="BeaverFacts">Habitats</A>
<br>
<A HREF="BeaverEat.html" TARGET="BeaverFacts">Food</A>
<br>
<A HREF="BabyBeavers.html" TARGET="BeaverFacts">Baby Beavers</A>

***Be sure to replace the links for your own links ok

Step 2:

Create a CENTER block - it should also be a SCRIPT block and add this code to it:



<IFRAME SRC="BeaverHabitat.html" NAME="BeaverFacts" WIDTH=300 HEIGHT=200>If you can see this, your browser doesn't
understand IFRAME.  However, we'll still
<A HREF="hello.html">link</A>
you to the file.
</IFRAME>



Put in the correct URL (for the page you want displayed by default) and also fix the width and height accordingly

and it should work A-OK
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 05, 2006, 03:02:29 AM
Ok I think I am getting closer .

But the links do not open a page in the center of the TP, instead they open a new browser window.

And the center shows the html i directed it to.

I must be doing something wrong.

Cybertoad
Title: Re: Block Link To Open In Center
Post by: akulion on October 05, 2006, 05:15:49 PM
just have a look at this topic again
http://www.tinyportal.net/smf/index.php?topic=9292.0

ive updated it with new stuff as well :up:

also u need some basic level html knowledge to play around with this, which isnt very hard :)
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 05, 2006, 05:50:39 PM
LOL , well I do have basic skills, but I am not sure what your programming is asking to be done.
PS the link you gave says

"The topic or board you are looking for appears to be either missing or off limits to you"

I'm obviously logged in to post this so not sure what that means.

Doesnt seem lik it should be that hard to have a link open in a frame, but I am not sure how this program works the basic html inputs dont seem to work.
just poke aroun this thing until figure it out.

Thanks Cybertoad
Title: Re: Block Link To Open In Center
Post by: akulion on October 05, 2006, 07:16:16 PM
ops sorry my mistake lol

correct link is http://www.tinyportal.net/smf/index.php?topic=8653.0
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 07, 2006, 05:54:17 AM
Hi Guys
Ive figured out the code the instruction were great.

But what I am trying to do is have a block with links, say on the right or left side panels that have links that open in the center.

Does this make sense?

Thanks
Cybertoad

Title: Re: Block Link To Open In Center
Post by: IchBin on October 07, 2006, 03:42:25 PM
In order to make them open in the center you'll have to create an article with the content that you want to put in the center. Then in your sidebar you can add the html links that point to the articles for your center content. Create and article and a sideblock. Once you've created the article post a link to the article and I'll show you the code to put in for a link to the article.
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 08, 2006, 06:48:04 PM
Hi There,

I am not sure why I am having this difficulty, as Ive made php links in smf lots of times.

But as directed,
I made a link on in the box and and it shows up wrong for some reason the whole script shows in the html box, I made the article as well.

perhaps you can make heads or tails but I am obviosly doing something wrong n my head here LOL.

Tried linking but didnt seem to work either.
I tried a script box and html box and the whole link spells out .


Thanks

Cybertoad



Title: Re: Block Link To Open In Center
Post by: IchBin on October 08, 2006, 06:53:56 PM
Can you give me a temp admin account so I can see what you're doing there? PM me if you'd like.
Title: Re: Block Link To Open In Center
Post by: IchBin on October 08, 2006, 07:08:30 PM
You had some extra code tags and stuff in there. I'm not sure where you got the code from. Did you use an editor? Anyway, you can see what the code looks like now if you want to get an idea of how the links work.

I also put a link to an article so you could see how it works.
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 08, 2006, 07:13:01 PM
Thanks Itchin,

I appreciate the help, I didnt notice the tags wierd.
But I see what you posted that stuff, I should keep out of trouble now. LOL :uglystupid2:

Thanks again for the help on the last few posts .

cool now I can get to work hehe


Cybertoad.
Title: Re: Block Link To Open In Center
Post by: Cybertoad on October 09, 2006, 04:27:56 AM
Hi There , Ok I understood what and how.
But I noticed the links in the block opens in the center, but then there are no side block to navigate. it opens up the entire page and only leaves the top menu. Is there a way to leave the blocks on the sides as well and "only" change the center? To the new article ?
right now the link moves away the blocks for the article. leaving the blocks gone.

Thanks

Cybertoad
Title: Re: Block Link To Open In Center
Post by: JPDeni on October 09, 2006, 04:51:20 AM
Go to the article definition page and click "Edit visual options for the article" at the bottom of the page. Select which of the blocks you want to show with the article.

If you don't see those options with the theme you're using, switch to the default theme temporarily, make your changes and then switch back.