RSS

LuxCal Forum

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

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Help with new sidebar
Posted:  19 Dec 2014 13:24
I thought I was through this kind of basic poblem, but I seem to have fallen over here.

I'm creating another sidebar to be used on a mobile page.  The sidebar works fine with this link:

http://www.middlemarchesbenefice.org/ssw/courses/lcsbar.php

but when I try to display the sidebar on this page:

http://www.middlemarchesbenefice.org/ssw/mobile/courses_events.html

there's nothing.

This is the code I am using:

<?php
$sbClass = 'sideBar';
$sbUpDays = '90';
include 'http://www.middlemarchesbenefice.org/ssw/courses/lcsbar.php';
?>


Keeping fingerrs crossed & hope you can help please.

Thanks
__________________
Graham
The Middle Marches Benefice
The villages of Bedstone & Bucknell
Posted:  19 Dec 2014 19:42   Last Edited By: Roel B.
Hi Graham,

I think it's a matter of getting the path to the script lcsbar.php right.
Try replacing the include statement . . .
include 'http://www.middlemarchesbenefice.org/ssw/courses/lcsbar.php';
by
include '../courses/lcsbar.php';

Explanation:
Your sidebar script  lcsbar.php is located in the folder: "ssw/courses/"
The folder of the page where the sidebar script is included is: "css/mobile/"
So the path should first go back from "mobile/" to "ssw/", which is done by the "../", and then forward to "courses/".

If it doesn't work, please let me know and we'll find a solution.
Roel
Posted:  20 Dec 2014 07:11   Last Edited By: Roel B.
Hi Roel

Thanks for the suggestion.  It was one of several alternate ways I had tried to reference the sidebar script.

However, changing the page name to a php file:

http://www.middlemarchesbenefice.org/ssw/mobile/courses_events.php - sorted the problem.

Thanks again for your timely help Roel - I hope you and your family have a happy Christmas and thanks for all your help in the past.
__________________
Graham
The Middle Marches Benefice
The villages of Bedstone & Bucknell