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

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 04:59:51 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 159
  • Total: 160
  • @rjen

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

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.