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
Pages: [1]   Go Down
Print
Author Topic: changing 'edit event' options  (Read 453 times)
0 Members and 1 Guest are viewing this topic.
daniel frankston
Guest
« on: December 08, 2003, 11:39:00 AM »

Can anyone suggest a method for changing the "Edit Events" option for the older version of this program?  I want to keep using this older version, but it does not have an option for editing events after 12/31/03.  Thanx, daniel
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: December 09, 2003, 07:25:00 PM »

I am not familiar with any version of CalendarScript previous to 3.0 so I can't help. Sorry.

Someone else did post that on older versions you can add an event up to 2006 but only edit them to 2003. I suggest you compare the two templates to see if you can find how to increase the date range when editing events.

If you do figure it out, maybe you can post a reply to the other forum message about it "changing admin area"?

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #2 on: December 09, 2003, 08:27:00 PM »

I did some extensive searching via Google and think I found a listing of an older CalendarScript versions' calendar_admin.pl.

Look in your calendar_admin.pl file for a section labled:

#####################
#
# EDIT()
#
# Edit/Delete Entries
#
#####################
sub EDIT {   

and following that the lines:

<select name="Year" size=1>
   <option value="1997" $yearselected{1997}>1997
   <option value="1998" $yearselected{1998}>1998
   <option value="1999" $yearselected{1999}>1999
   <option value="2000" $yearselected{2000}>2000
   <option value="2001" $yearselected{2001}>2001
   <option value="2002" $yearselected{2002}>2002
   <option value="2003" $yearselected{2003}>2003
</select>

Try adding whatever number of years you like in a similar format.

If it works, maybe you can reply to that other forum message I linked to?

Dan O.

------------------

Logged
daniel Frankston
Guest
« Reply #3 on: December 10, 2003, 03:28:00 PM »

Yes, it did work dan o.  Give thanx
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: December 10, 2003, 07:41:00 PM »

Glad to hear it.

Dan O.

------------------

Logged
Comanche6
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: January 03, 2004, 02:45:00 PM »

Hi DanO

Thanx for the tip, but it didn't work for me.  Using Notepad, I went in and made added the year 2004 so thes script looks like this:

<select name="Year" size=1>
         <option value="1997" $yearselected{1997}>1997
         <option value="1998" $yearselected{1998}>1998
         <option value="1999" $yearselected{1999}>1999
         <option value="2000" $yearselected{2000}>2000
         <option value="2001" $yearselected{2001}>2001
         <option value="2002" $yearselected{2002}>2002
         <option value="2003" $yearselected{2003}>2003
         <option value="2004" $yearselected{2004}>2004
      </select>

I saved it as a .pl file, and FTPd it so it replaced the old script.  No other changes were made with the exceptiion of that one line of code.  I even checked the server to see if the file had been changed.

Is there something else I need to add to the script.  I am not a programer.

Thanx - -

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: January 03, 2004, 04:55:00 PM »

** Is there something else I need to add to the script. **

There shouldn't be.

Are you sure you changed the right place in the script?

Are you sure you uploaded it to the correct location on the server?

Dan O.

------------------

Logged
Comanche6
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: January 04, 2004, 09:14:00 AM »

Thanx for the quick reply, DanO -

You asked  **Are you sure you changed the right place in the script?**  Yes - I'm quite sure.  You can see the block of code I copied into my last post.  All I did was add the one additional line.

You also ask  **Are you sure you uploaded it to the correct location on the server?**  I double checked to be sure, but ues - the date/time stamp of the uploaded modied file matches the time I uploaded it, and I viewed the file using FTP, so I am sure it is the correct file.  Further, I checked to be sure it is in the correct sub directory.

In another forum, someone else mentioned your suggested edit, and stated "be sure to change the chmod."  As I said before, I am not a programmer, but I believe that means I must set the permissions correctly on the server.  (It must be they are reset to some sort of default when I upload a modified fiule, even though it has the same file name.)  If I assume correctly, does that mean I should give calandar_admin.pl read/write/execute permissions?

Thanx for the help, DanO

Doug

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #8 on: January 04, 2004, 02:07:00 PM »

** It must be they are reset to some sort of default when I upload a modified file **

Usually when you upload a replacement file, it takes the permissions that the original one had. If you uploaded a differently named file and then just changed it's name to the original file name, then you'd likely need to set its permissions correctly.

** If I assume correctly, does that mean I should give calandar_admin.pl read/write/execute permissions? **

If a script file had incorrect permissions, it would not work, period! There is nothing I know of which would cause just one line of code in a new file to not display.

Maybe your browser or ISP is caching the original file and that's what you're still seeing in your browser??

I can't think of anything else which would cause it providing the modified file was uploaded to the proper place on the server.

JFYI information, script files and their directories should usually be chmod to 755 or 775 depending on the server's set up. No file or directory should be chmod to 777 for security reasons.

I wouldn't suggest you attempt to change your permissions as that is definitely not your problem.

Dan O.

------------------

Logged
Comanche6
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #9 on: January 04, 2004, 03:55:00 PM »

Got it, DanO - - thanx.  That's all it was - just the cache in my browser.  Duh!

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #10 on: January 04, 2004, 06:39:00 PM »

Glad to hear it.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: