WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Trying to add a non-WB php script to the argos1 template
  • Print
Pages: [1]   Go Down

Author Topic: Trying to add a non-WB php script to the argos1 template  (Read 4080 times)

Offline twolf

  • Posts: 14
Trying to add a non-WB php script to the argos1 template
« 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

Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Trying to add a non-WB php script to the argos1 template
« Reply #1 on: July 15, 2008, 11: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
Dev4me - WebsiteBaker modules - WBhelp.org

spiderwebb

  • Guest
Re: Trying to add a non-WB php script to the argos1 template
« Reply #2 on: July 16, 2008, 10: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

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Trying to add a non-WB php script to the argos1 template
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2