Page 1 of 1

Own menu items open in center Block?

Posted: 30. January 2011 19:07
by crazydiamond
Your Portal Version: 1.0.6
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: 92.232.81.30/phpbb

PHP Version: 3

What have you done before the problem was there?


What have you already tryed to solve the problem?
Board is in test mode on my own PC

Description and Message
Hi,

I was wondering if somebody could help me.
I really like this Portal and have been playing with it for hours now.

I wanted to add an external wind meter from a local site to my Portal custom block for center block.
I had to remove the left column to fit it in, but it does finally work with the following code.

Code: Select all

<center><embed src="http://www.tbyc.org/weather/index.php"HEIGHT=650 WIDTH=700></center>
I have now decided that I would much prefer to have some custom menu items instead, and have each of those open within a Custom center block.
Is this Possible?

I have read this knowledge/kb_show.php?id=16, So I am aware of how to add menu items and point them at my own php pages.
But I would really like everything to open within a Block that is in the center of my portal home page.

This would be great, as I could have wind meters and tide timtables appear in the same block when a visitor clicks the link on the menu.

Thanks for your time, and I look forward to some expert advice.

Terry[/i]

Re: Own menu items open in center Block?

Posted: 1. February 2011 01:40
by crazydiamond
Have since found out that you cannot run php in blocks :/

Is there no way what so ever to run php within a block?
Only way I can seem to do it is

Code: Select all

<center><embed src="todaytide.php"width=150  length=400 </center>
todaytide grabs the tide information and puts it in the block, but IE and Firefox both need a plugin>!?!?

Anyone? Please

Re: Own menu items open in center Block?

Posted: 1. February 2011 16:51
by crazydiamond
Ignore this, The trouble these blocks are giving me, I will not bother and just create a new php page for each link.
These blocks have problems with php :(

Re: Own menu items open in center Block?

Posted: 2. February 2011 22:02
by Marc
The blocks do not have problems with PHP, you just need to use the template syntax for phpBB.

More info on that: http://wiki.phpbb.com/display/MODDOCS/T ... ate+syntax