RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Embed calender in phpBB3 - an example
Posted:  14 Mar 2014 20:37   Last Edited By: Roel B.
This is not a request. But I thought I would share this, just in case someone out there could find it of any use.

I installed Roel's excellent calendar software to be used as a component in a forum, which is running on phpBB3.
This is an example of how I got the calendar to show in a post.

First, I created what is called a BBcode in phpBB (Administration Control Panel - Posting - BBcodes)
It has two parts:

Usage
[luxcaliframe]{URL}[/luxcaliframe]

HTML-replacement
<iframe id="luxcal" src="{URL}"></iframe>


Next, I added a line to the style sheet theme(s) in use (Administration Control Panel - Styles - Themes
#luxcal { width:90%; height:740px; margin:20px; border-style:solid; border-width:1px; border-color:grey; }
(Remember to purge the cache (General tab))


Finally, in a post, I added this code:
[luxcaliframe]http://mydomain.com/luxcal/?cP=2[/luxcaliframe]


That's it.
It took a little experimenting with the width and height parameters, to get it to look ok, and this will also depend on which calendar view, how many weeks/months are configured to be displayed.


Enjoy smile
Finn
Posted:  15 Mar 2014 23:32
Thanks Finn.
Roel