TinyPortal

Development => Support => Topic started by: rockskullz on October 04, 2007, 04:16:38 PM

Title: html side menu - help
Post by: rockskullz on October 04, 2007, 04:16:38 PM
I know this forum isnt meant for html help but i've been wanting to change this on my forum and keep scratching my head because the html looks fine to me. Can someone please look at it?

Problem: I want everything pushed up together not spaced out between each menu item. From my past knowledge with html the code < p > always gave a space between lines while < br > made them right below each other but on a new line.

<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" />&nbsp;</strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" />&nbsp;</strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a><br />
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" />&nbsp;</strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>


Looks like this now.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.rockskullz.com%2Fuploads%2Frockskullz%2Fmenu.jpg&hash=737da33f73fd405f33948372b398ee48800978f6)
Title: Re: html side menu - help
Post by: Resident Geek on October 04, 2007, 04:18:47 PM
I had the exact same issue once.

Use this in a php box:


echo'
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" />&nbsp;</strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" />&nbsp;</strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a><br />
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" />&nbsp;</strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a><br />
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>
';


The HTML box tend to ruin things by spacing them out.

Good luck!
Title: Re: html side menu - help
Post by: Lesmond on October 04, 2007, 05:09:08 PM
You Could also try this in a script block, this will also pick-up on what ever font and color you theme is using :)

<div class="smalltext">
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif">&nbsp;<a href="http://www.offroad-review.com/new/index.php"><b>Home</a></b><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif">&nbsp;</b><a href="http://www.offroad-review.com/new/index.php?action=forum"><b>Forum</b></a><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif">&nbsp;</b><a href="http://offroad-review.com/new/index.php?action=links"><b>Link Directory</b></a><br>
<img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif">&nbsp;</b><a href="http://offroad-review.com/new/index.php?page=9"><b>Project Vehicles</b></a><br>
<b><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif">&nbsp;</b><a href="http://offroad-review.com/new/index.php?cat=25"><b>Press Release</div>
Title: Re: html side menu - help
Post by: Resident Geek on October 04, 2007, 05:19:15 PM
But you have to have it between:

echo'

and

';


in a php block. Its the HTML block that's screwing you up. ;D
Title: Re: html side menu - help
Post by: Lesmond on October 04, 2007, 05:24:45 PM
But I think he was using a html/bbc block and that will "screw" things up ;)


this one made with a script block
Title: Re: html side menu - help
Post by: jacortina on October 04, 2007, 05:34:02 PM
It 'screws it up' because the newlines get doubled.

The html block treats the internal newlines as, well, newlines. So when you code a < br > follwed by a (carriage return / line feed), the result is actually 2 CR/LFs being output.

Take out the 'extra' < br >s and you can use an HTML block just fine:

<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/home.gif" />&nbsp;</strong><a href="http://www.offroad-review.com/new/index.php"><font face="Verdana" color="#ffffff" size="1"><strong>Home</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/forum.gif" />&nbsp;</strong></font><a href="http://www.offroad-review.com/new/index.php?action=forum"><font face="Verdana" color="#ffffff" size="1"><strong>Forum</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/links.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?action=links"><font face="Verdana" color="#ffffff" size="1"><strong>Link Directory</strong></font></a>
<strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/shop.gif" />&nbsp;</strong><a href="http://offroad-review.com/new/index.php?page=9"><font face="Verdana" color="#ffffff" size="1"><strong>Project Vehicles</strong></font></a>
<font face="Verdana" color="#ffffff" size="1"><strong><img alt="" src="http://www.offroad-review.com/new/Themes/all_images/menu/rss.gif" />&nbsp;</strong></font><a href="http://offroad-review.com/new/index.php?cat=25"><font face="Verdana" color="#ffffff" size="1"><strong>Press Release</strong></font></a>
Title: Re: html side menu - help
Post by: jacortina on October 04, 2007, 05:42:31 PM
BTW, this is pretty much the same behavior that exists in the forum message post boxes. When you hit the -enter- key in the middle of a post, what gets posted includes a newline right there where you pressed -enter-. And when you code in a string of (no dashes) <-b-r-> followed by -enter- like this:

then you get 2 newlines in a row (one at the end of the text followed immediately by another).
Title: Re: html side menu - help
Post by: rockskullz on October 04, 2007, 05:53:37 PM
You guys rock! I changed each menu block to a scriptbox and it works great and matches the theme now. Thanks!