Got chat? If not, try
Help Center Live!
, the Live Chat leader!
Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search
8026
Posts in
1851
Topics- by
2099
Members
- Latest Member:
roi
Calendar Script Community
Customization
Hacks and Mods
(Moderators:
scott
,
DanO
,
Marty
)htaccess plus public view
« previous
next »
Pages: [
1
]
Go Down
Author
Topic: htaccess plus public view (Read 1574 times)
0 Members and 1 Guest are viewing this topic.
delicia
New Member
Karma: 0
Offline
Posts: 5
htaccess plus public view
«
on:
June 03, 2008, 07:51:19 PM »
i have installed the htaccess hack and it works great. however, i only want to require login to add events etc. i want the public to be able to view events. i'm also using the Private Events plugin which hides some events from the public (anonymous). events are being pulled to the home page using ssi. i would like to have a new calendar. pl installed in a separate folder in my cgi-bin that would be used exclusively for the public viewing. the calendar requiring login would be protected by htaccess in a different folder. how do i tell calendar. pl where to look for the other files if they are not in the same directory tree?
Logged
DanO
Moderator
Full Member
Karma: 13
Offline
Posts: 221
Please don't PM me. Post in the open forum.
Re: htaccess plus public view
«
Reply #1 on:
June 04, 2008, 02:25:29 AM »
** how do i tell calendar. pl where to look for the other files if they are not in the same directory tree? **
Set the
$BASE_DIR
variable accordingly.
# CHANGE THE LINE BELOW IF NECESSARY
# Be sure to remove the # before $BASE_DIR, and change the path between the quotes
#
$BASE_DIR
= "/...change.to.full.file.path.of.dir.../calendarscript/";
** i'm also using the Private Events plugin which hides
some
events from the public (anonymous). **
As far as I can remember, it should hide
ALL
events except those posted by that same user (anonymous).
JMO
Dan O.
Logged
delicia
New Member
Karma: 0
Offline
Posts: 5
Re: htaccess plus public view
«
Reply #2 on:
June 04, 2008, 12:37:19 PM »
thanks -- basedir fixed it.
Logged
delicia
New Member
Karma: 0
Offline
Posts: 5
Re: htaccess plus public view
«
Reply #3 on:
June 04, 2008, 04:10:38 PM »
found new problem -- when i click link to the public calendar. pl it works. BUT all the links from the calendar link to the calendar. pl in the private htaccess-protected directory. how do i fix the links?
Logged
DanO
Moderator
Full Member
Karma: 13
Offline
Posts: 221
Please don't PM me. Post in the open forum.
Re: htaccess plus public view
«
Reply #4 on:
June 04, 2008, 09:24:07 PM »
** links from the [public] calendar link to the calendar.pl in the private htaccess-protected directory **
Try manually editing the value of the
calendar_url
variable in the
/calendarsctipt/config.txt
file to be just a relitive URI. Eg.
calendar_url=
calendar.pl
Dan O.
Logged
delicia
New Member
Karma: 0
Offline
Posts: 5
Re: htaccess plus public view
«
Reply #5 on:
June 09, 2008, 08:55:08 AM »
seems to have fixed the problem but created new problem with ssi links. so i just changed the env variable in ssi. html to the real location for public view. hopefully that will fix everything. still testing to be sure admin stuff will work. will keep you posted!
Logged
delicia
New Member
Karma: 0
Offline
Posts: 5
Re: htaccess plus public view
«
Reply #6 on:
June 09, 2008, 09:40:04 AM »
i think everything works now. had to put copy of calendar_admin. pl in the public directory to allow anonymous users to add events to one of the calendars. and of course had to change the BASE in that file. thanks for your help.
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> FAQS
=> Advertise on CalendarScript
-----------------------------
Setup and Installation
-----------------------------
=> Installation and Setup
=> Problems and Solutions
-----------------------------
Customization
-----------------------------
=> Customizing CalendarScript
=> Hacks and Mods
=> Plugins
-----------------------------
Making CalendarScript Better
-----------------------------
=> Suggestions and Ideas
=> Showcase
-----------------------------
Licensing
-----------------------------
=> Licensing
-----------------------------
Everything Else
-----------------------------
=> General Use