Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: MRBS Blocks
by chefry on 2013/5/31 9:24:59

and that gives me this

Resized Image
Re: MRBS Blocks
by zyspec on 2013/5/31 3:25:43

This was just to show you how to get the url you want. Now you have the address of the page you want so you should be able to just display this in an iframe. Something like:

le="color: #000000"><?php $today = getdate(); $mylink = XOOPS_URL . "/modules/mrbs/day.php?year={$today['year']}&month={$today['mon']}&day={$today['mday']}&area=1&room=3"; echo "<iframe src='{$mylink}' frameborder='0' />";


You will have to set the iframe parameters like you want (height, width, etc)...
Re: MRBS Blocks
by chefry on 2013/5/31 1:57:24

$today = getdate();
echo "modules/mrbs/day.php?year={$today['year']}&month={$today['mon']}&day={$today['mday']}&area=1&room=3";


gives me

Today's Calendar
/modules/mrbs/day.php?year=2013&month=5&day=31&area=1&room=3
Re: MRBS Blocks
by zyspec on 2013/5/30 21:01:22

Sorry chefry...

Just eliminate the "<?php" in the first line and the "?>" in the last line. These aren't needed for a PHP block
Re: MRBS Blocks
by chefry on 2013/5/30 16:27:41

Doesn't work

The block doesn't show on the main page

Debug gives me

Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\class\xoopsblock.php(157) : eval()'d code on line 1

Who's Online

138 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits