WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: twolf on July 15, 2008, 10:21:54 PM
-
Hi All,
I am fairly new to WB and I am trying to add a php based Calendar Script to the index.php page of the argos1 template. Is there an easy way to incorporate another program into WB? If there is documentation on it somewhere and you can provide me with a link that would be great or any other advise would be greatly appreciated.
I am trying to add the script for easyphpcalendar.com
Thanks for your time and assistance...
T
-
A script like that is not really intended to include in a template.
What you should could do it install the script "outside" WB, (ie www.yourserver.com/calendar) and use the wrapper (iframe) module to show it inside WB.
Otherwise, have a look (http://addons.WebsiteBaker.org/pages/modules/page-modules.php) at the calendar scripts built for WB
Ruud
-
Hi Im also a newbie but got it to work by
in the css file adding
#eventsblock{
float:left;
position:relative;
left:50%;
text-align:left;
}
and in the index.php
<p class="eventsblock" ><table width="50" align="center">
<tr>
<td><?php
require_once( WB_PATH.'/modules/event_calendar/calendar.class.php' );
$cal = new Calendar( $database, 'menu' );
echo "".$cal->writeCalendar();
?></td>
</tr>
</table>
</p>
I had this working with both a google calendar and a php script on my server, but in the end the addon "event_calender" proved to be better.