TinyPortal

Development => Support => Topic started by: tomtom9800 on August 11, 2007, 04:21:34 AM

Title: Standard block with link
Post by: tomtom9800 on August 11, 2007, 04:21:34 AM
Ok where I have I went wrong here......I am just trying to create a box that looks like this...

Aces (Title)

A Flight  (link to another part of website)


I created a block for html/BBC code and included the following line of code....

<a href='http://mysite' target='_new'> A Flight</a>



Um I know it is a simple fix, but what did I miss??
Title: Re: Standard block with link
Post by: IchBin on August 11, 2007, 05:18:01 AM
The block code snippets board is not for support. Please read the stickies in each board.
Title: Re: Standard block with link
Post by: tomtom9800 on August 11, 2007, 09:04:50 PM
Any help on this??  Sorry I put in wrong forum and thanks for moving it to the right one
Title: Re: Standard block with link
Post by: Lesmond on August 11, 2007, 09:15:41 PM
The code you are using needs to go in a script block, not html/bbc
Title: Re: Standard block with link
Post by: rider on August 11, 2007, 09:25:01 PM
you could set up a menubox and call it what you want and then thru menu manager add the link.
Title: Re: Standard block with link
Post by: perpetuallove on November 12, 2007, 06:38:54 PM
hmmmm.. I am having this same problem- kinda. I am trying to have a block with two separate images, both as links.. does that make sense? I tried doing this as a html+bbc block and a script one as stated here, but no luck! i can add it just as an image- not a link, using BBC but if i was to use BBC how could i make it a link? if i use just simple HTML code with the a href stuff it just shows up as a bunch of text!

(im sorry if i didnt post this is the right area- but this is where it seems it should go ;)  )
Title: Re: Standard block with link
Post by: Lesmond on November 12, 2007, 06:49:27 PM
Could you show us the code you are trying to use please
Title: Re: Standard block with link
Post by: perpetuallove on November 12, 2007, 07:00:22 PM
ah yes im sorry.

<a href="link" target="blank"><img src="url"></a>

I had deleted it already but that is the basic code. Of course entering the appropiate URLs. does this not work with these forums? Sorry if thats a dumb question- im a newbie! If i use the  (//) it works- but i dont know how to- or if you can- create a link using that code?!

Thank you ;)

Title: Re: Standard block with link
Post by: Lesmond on November 12, 2007, 07:32:37 PM
I you place it like this in script block, it should work, you could also use the <center> </center> tags too  :)

<a href="http://www.link.net" target="_blank"><img src="http://www.link/img.gif"></a>
Title: Re: Standard block with link
Post by: perpetuallove on November 12, 2007, 07:41:04 PM
yes this did work. What i did wrong was when i went to edit the box, that is when i changed the type of block it was, I didnt know it needed to look different than the editor section did.... Thank you for your help!  ;)
Title: Re: Standard block with link
Post by: KırkAyak on April 09, 2008, 02:19:10 PM

<a href='http://mysite' target='_new'> A Flight</a>


how can i add color,font and text-size to this code?
Title: Re: Standard block with link
Post by: Lesmond on April 09, 2008, 04:10:47 PM
This should work,
<a href='http://mysite' target='_new'> <font size="4" color="#FF0000">A Flight</font></a>
Title: Re: Standard block with link
Post by: KırkAyak on April 09, 2008, 05:46:47 PM
thank you,it works fine