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: redirector  (Read 396 times)
0 Members and 1 Guest are viewing this topic.
pawle
Guest
« on: May 14, 2005, 04:07:00 PM »

I have the Redirector and One Click working well. My question is this: what would need to be done to make the message screen that says "redirecting to the calendar" stay visible for 5-10 seconds? Also, can that same message inform the user if their event was added correctly? I have all events added pending admin approval, and the user knows their event was saved by the red message at the top of the add event screen. With the redirector, that screen is skipped completely.
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: May 14, 2005, 05:48:00 PM »

**  stay visible for 5-10 seconds? **

Open the after_schedule_event.pl file and change the:

<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=$url?calendar=$calendar&datestring=$datestr">

to

<META HTTP-EQUIV="REFRESH" CONTENT="5;URL=$url?calendar=$calendar&datestring=$datestr">

or

<META HTTP-EQUIV="REFRESH" CONTENT="10;URL=$url?calendar=$calendar&datestring=$datestr">


** that same message inform the user if their event was added correctly?  **

You can add any text you want to that screen by editing the same file.

** the user knows their event was saved by the red message at the top of the add event screen. With the redirector, that screen is skipped completely. **

I don't know of any way to get the previous screen to display when using that plug in.

JMO

Dan O.


[This message has been edited by DanO (edited May 14, 2005).]

Logged
pawle
Guest
« Reply #2 on: May 15, 2005, 11:20:00 PM »

Thanks for your help. That worked well. Since I obviously don't know much about coding, my next question might seem simple. When Redirector prints the "sending you back to the calendar" message, it also prints the "Content-type:text/html" phrase. Is there a snippet of code missing to prevent that part from printing on screen?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: May 16, 2005, 12:54:00 PM »

** it also prints the "Content-type:text/html" phrase. **

It shouldn't be. The browser should be interperiting that line as instructions and keeping it hidden from view. You can try removing that line from the same file but it may not work in all browsers afterward.  

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 #4 on: May 16, 2005, 05:26:00 PM »

I just put together a Redirector Version 2 plug-in which might display the messages like you wanted. It might also fix the content headers displaying if they're not being seen on the other CalendarScript pages.

You can find the new Redirector Version 2 plug-in at the Unofficial CalendarScript - Mods and Plugins site.

Dan O.

[This message has been edited by DanO (edited May 16, 2005).]

Logged
pawle
Guest
« Reply #5 on: May 17, 2005, 12:02:00 PM »

Now that is SWEET! Nice work, and many thanks from those of us  using the Cal...
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: May 17, 2005, 02:32:00 PM »

** Now that is SWEET! **

Does it work Ok?

** many thanks **

My pleasure. Maybe you'll consider a donation to keep the Unofficial CalendarScript - Mods and Plugins site up and running?

Dan O.

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

Logged
pawle
Guest
« Reply #7 on: May 18, 2005, 10:48:00 AM »

Yes, Redirector2 works very well. I can now tell people using our calendar that they will definitely know when they have posted an event correctly. Thanks again...
Logged
Pages: [1]   Go Up
Print
Jump to: