Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:17:30 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155404 Posts in 21698 Topics by 7730 Members
Latest Member: anybig0391d
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Trying to add a non-WB php script to the argos1 template  (Read 558 times)
twolf

Offline Offline

Posts: 6


« on: July 15, 2008, 09: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

Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #1 on: July 15, 2008, 10:35:12 PM »

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
Logged

Professional WebsiteBaker Solutions
spiderwebb

Offline Offline

Posts: 8


« Reply #2 on: July 16, 2008, 09:25:31 AM »

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.

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!