| View previous topic :: View next topic |
| Author |
Message |
seacoast
Joined: 10 Jan 2007 Posts: 11
|
Posted: Thu Feb 08, 2007 8:06 am Post subject: Functions removal, DST fix |
|
|
Hi Ian,
I have a couple of questions:
1. Will there be a fix for the upcoming change to the duration of Daylight Savings Time in US/Canada?
2. Is there a way to remove the Details and Post functions, and limit Options and Sync to admin view? Or remove them entirely if necessary?
Thanks |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu Feb 08, 2007 12:41 pm Post subject: |
|
|
Hi,
1. Yep.
2a. Remove the details and post links:
*) Edit index.php, around line 271, just after the $_cal_info['description'] = $_cur_cal->description; line, add:
$links = array();
2b (or not 2b). Edit modules/sync/register_module.php and add this to the top after the <?php line:
if(!$_cal_user->admin) return;
rename modules/guest_options/register_module.php to anything other than register_module.php
Let me know if you have any more questions. |
|
| Back to top |
|
 |
seacoast
Joined: 10 Jan 2007 Posts: 11
|
Posted: Thu Feb 08, 2007 7:25 pm Post subject: |
|
|
Hi Ian,
Maybe not 2b. When I made the change my calendar disappeared from my browser (both Firefox and Safari). I double checked and I definitely had the right file. |
|
| Back to top |
|
 |
seacoast
Joined: 10 Jan 2007 Posts: 11
|
Posted: Thu Feb 08, 2007 7:45 pm Post subject: |
|
|
Oops. I just realized I misunderstood and put all the information you listed into the file. But when I corrected the mistake, I didn't get the result I expected. The Options remains but the Sync is gone.
Also, I realize I need to get rid of the Calendars link in that same area. Okay to leave for admin, if that's easier.
Thanks |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu Feb 08, 2007 10:24 pm Post subject: |
|
|
Hi,
Also make that change in
modules/options/register_module.php and modules/calendars/register_module.php |
|
| Back to top |
|
 |
seacoast
Joined: 10 Jan 2007 Posts: 11
|
Posted: Fri Feb 09, 2007 4:51 am Post subject: |
|
|
Thanks Ian.
A final thought on this: Should I decide that I want to eliminate the log-in function for users, do I use the same code? In which folder? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Fri Feb 09, 2007 5:01 am Post subject: |
|
|
Hi,
It's not the same code for the login link. You have to modify index.php. The easiest way is to change line 527 from
} else {
to..
} else if(false) { |
|
| Back to top |
|
 |
|