Trying to add a non-WB php script to the argos1 template

spiderwebb

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.


Ruud

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 at the calendar scripts built for WB

Ruud
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

twolf

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