Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)htaccess plus public view
Pages: [1]   Go Down
Print
Author Topic: htaccess plus public view  (Read 3105 times)
0 Members and 1 Guest are viewing this topic.
delicia
New Member
*

Karma: 0
Offline Offline

Posts: 7


WWW
« 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 Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« 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 Offline

Posts: 7


WWW
« Reply #2 on: June 04, 2008, 12:37:19 PM »

thanks -- basedir fixed it.
Logged
delicia
New Member
*

Karma: 0
Offline Offline

Posts: 7


WWW
« 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 Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« 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 Offline

Posts: 7


WWW
« 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 Offline

Posts: 7


WWW
« 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
Print
Jump to: