SimplePortal

Support => English Support => Topic started by: Lineman on February 20, 2011, 03:42:36 PM

Title: Custom Menu Block --
Post by: Lineman on February 20, 2011, 03:42:36 PM
Hello,
I must apologize if this a stupid question.  I have read all docs and the forum topics, but I am still a little confused.  I created a custom html block for the left column.  Within this block I would like to create a menu with links - either being a SP page or a regular html page and have the page show up in the 'center' column.  I am not sure how to accomplish this.

The attached image shows cosmetically how it looks, but the links open in a new window (or tab)  For the image example I used and iframe just to show the looks.  I would like for those links to open within the center column of the portal.

Thank you for any help, it is much appreciated.  :nervous-happy:

Edited to include:
....For a page to be shown in center column of portal when the custom menu links are clicked.
SMF 2 RC4 (with recent security patch)
SP 2.3.3
Aeva Media 1.4c
Page Management 1.4
AvatarSelect 1.2.1
Title: Re: Custom Menu Block --
Post by: Oldiesmann on February 20, 2011, 06:32:25 PM
Unfortunately that's not really possible without using frames. You could create a custom HTML block for the center block that displayed an iframe, then edit the target of those links to open in the iframe.
Title: Re: Custom Menu Block --
Post by: AngelinaBelle on February 21, 2011, 09:12:54 AM
Oldiesman is correct -- and he does suggest one way to get the effect you are looking for.
 
Another way to handle this would be to handle each of those pages as a SimplePortal page.
Then, while you are loading a whole new page, at least it is wrapped in your forum's wrapper.
Title: Re: Custom Menu Block --
Post by: Lineman on February 22, 2011, 01:11:03 AM
Thank you for the replies, and you did point me in the right direction.  AngelinaBelle, your post got me thinking.....

What I did was, create a SP page for each menu item (I just used iframe in the SP page)  Then I made a custom html block and with the code:

Code: [Select]
<table width="160" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td align="center" valign="middle"><img src="PATH TO BULLET IMAGE #1" width="32" height="32" /></td>
    <td align="left" valign="middle"><a href="http://www.WEBSITE.com/forum/index.php/page,page1000.html" target="_parent">TITLE OF FIRST MENU ITEM</a></td>
  </tr>

ETC....

Then with the other blocks I chose the option to display on the SP pages.  It works perfectly.  Thank you for your help.  :D

By no means am I a web programmer, but I am learning.... Thank you for everything.  :wave:
Title: Re: Custom Menu Block --
Post by: AngelinaBelle on February 22, 2011, 04:32:07 PM
I'm glad you figured out a solution that worked for you.
Title: Re: Custom Menu Block --
Post by: BaghdadGhost on January 21, 2012, 09:01:46 AM
Thank you for the replies, and you did point me in the right direction.  AngelinaBelle, your post got me thinking.....

What I did was, create a SP page for each menu item (I just used iframe in the SP page)  Then I made a custom html block and with the code:

Code: [Select]
<table width="160" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td align="center" valign="middle"><img src="PATH TO BULLET IMAGE #1" width="32" height="32" /></td>
    <td align="left" valign="middle"><a href="http://www.WEBSITE.com/forum/index.php/page,page1000.html" target="_parent">TITLE OF FIRST MENU ITEM</a></td>
  </tr>

ETC....

Then with the other blocks I chose the option to display on the SP pages.  It works perfectly.  Thank you for your help.  :D

By no means am I a web programmer, but I am learning.... Thank you for everything.  :wave:

thanks for sharing this code.

SimplePortal 2.3.8 © 2008-2024, SimplePortal