TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,091
  • Total Topics: 21,343
  • Online today: 862
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 688
  • Total: 688

Adding a Second Menu box?

Started by Paulie, October 13, 2006, 09:38:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paulie

Is there a way to add a second menu box? Ive looked and tried a couple of things, but to no avail. I like em for links etc, but ideally would like a seperate box for non foodie links (Friends etc).

gerrymo

Yes. But you have to code it yourself. You will need to use html and use a scriptbox.

Lesmond

Ray has one over at his site http://www.arcade-only.com/index.php?topic=259.0 but you will have to adapt it to your needs works good though, look at the left block on his site to see it in action

Paulie

Thanks guys.
I`ll see what i can do with Ray`s script i think.

IchBin

There's also a menu script in the code snippets board.

Paulie


akulion

actually there are loads :D

- F1 Menu
- Menu with icons
- Drop Down menu

and more I'm sure :D

Paulie

All i want is to get one the same as the main one.

Ichbin, i can`t find the one you mentioned in the snippets. Maybe i`ll have a rethink as it`s the 13th today ;)

IchBin

If you look in the code snippets index post at the top Paulie, you'll find the F1 Key menu and Menu with Icons that Akulion posted about.


Paulie

Although that is a good menu block. What i wanted was to be able to just have a second box (block) with different menu items in it.

I tried copying a lump of source code and putting it in a script box, but there didnt seem to be an end stop and said block ran down under my other blocks.

akulion

do u mean a block like this?

- menu item 1
- menu iem 2
- menu item 3
etc etc etc?

if yes then thats simple i could code it for u in mins if u want :up:

Paulie

What i would like to have is the ability to get another menu box/block up, but have different links in it. Pic is off food Links, so i want to repeat the box/block with a friends type menu ox/block, just under it, if that makes sense.


akulion

ohh yes - sorry got busy with something - ill whip the code up for u in a min :up:

akulion

#14
try this out:


echo'<table>
<tr><td>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>
</td></tr>
</table>';


every time you want to add a new link just put one more line of code before the </td></tr> like so:


<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" /><a href="YOURLINK">YOUR LINK TEXT</a>
<br>


replace in code YOURLINK and YOUR LINK TEXT

Place in a PHPBOX

Paulie

Perfect :) Thats exactly what i wanted. Thanks Aku.

akulion


Paulie

For some unknown reason I.E puts gaps between some of them which is a bit frustrating. But then again I.E is frustrating anyway.

akulion

try replacing the

<table>


at the top of the code with


<table border="0" cellpadding="0" style="border-collapse: collapse">


it will basically define a table with no cell padding, 0 spacing and borders collapsed

Paulie

Nope, that didn`t seem to do anything :( Thanks for looking though Aku.

akulion

oh this might help

try this instead of the table tag


<table width="100%">

Paulie


akulion


This website is proudly hosted on Crocweb Cloud Website Hosting.