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: scrolling events  (Read 1000 times)
0 Members and 1 Guest are viewing this topic.
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« on: July 20, 2007, 03:15:00 PM »

Is it possible to have scrolling events like what is in the left column of this page:
www. vlifecenter. org
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: July 20, 2007, 11:15:21 PM »

I don't know about "scrolling" but a list view of current events can be added to other pages of your web site using SSI. That display will update automatically as the days change.

Dan O.
Unofficial CalendarScript - Mods and Plugins site
Logged
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« Reply #2 on: July 24, 2007, 12:51:29 AM »

I assume with SSI you can define the width and heighth of the 'box' that the calendar list fits in.  However the problem, is that if there are many events with a narrow box that the box would be very long.  That is why scrolling would be important to me.

Regarding the list display, what determines how long the title and description would be in the list that is inserted in a box via SSI?

Can you state how many events are shown in a list?

Again, I would need to come as close as possible to something that  would be like the example I have listed if scrolling is not available.
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: July 24, 2007, 02:24:52 AM »

** I assume with SSI you can define the width and height of the 'box' that the calendar list fits in.  **

You can edit the template to look any way you want.

** However the problem, is that if there are many events with a narrow box that the box would be very long.  That is why scrolling would be important to me. **

Than display it inside an HTML iframe or use DHTML. It's up to you. 

** what determines how long the title and description would be in the list inserted via SSI? **

It displays the event's information exactly as it is.

** Can you state how many events are shown in a list? **

No. That will depend on how long of period you configure it to display and how many events are within that period.

Dan O.
www.much2.com


Logged
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« Reply #4 on: July 30, 2007, 03:59:18 PM »

Quote
** However the problem, is that if there are many events with a narrow box that the box would be very long.   That is why scrolling would be important to me.  **

Than display it inside an HTML iframe or use DHTML.  It's up to you. 

Can you explain to me your answer? Are you saying insert it into a frame and then have a scroll down button instead of having it scroll automatically?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: July 30, 2007, 10:11:08 PM »

Yes, I was suggesting you insert the event list into an iframe (note the "i") on your page. If the inserted page was longer than the iframe size specified, yes, a scroll bar will appear for the user to use.

CalendarScript can however also insert that event list into an existing web page via SSI (or maybe even PHP). Once there you can do anything you want with it. You could have them "scroll automatically" using Java, DHTML or maybe Flash. You could even use the nonstandard <marquee> tag like the web site you sighted but that really has nothing to do with the CalendarScript script itself. Ask your web site designer about it.

JMO

Dan O.
« Last Edit: July 31, 2007, 01:36:32 PM by DanO » Logged
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« Reply #6 on: August 03, 2007, 03:35:01 PM »

I am the web designer.

I was able to get scrolling working good to show events and descriptions. But there is some fine tuning that I need to do.

1. Is there a variable to make the description display with x amount of characters?
2. Is there a way to make it that images do not show up in the description?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #7 on: August 03, 2007, 09:17:47 PM »

** Is there a variable to make the description display with x amount of characters? **

See my reply to your other message, "ssi list template".

** 2. Is there a way to make it that images do not show up in the description? **

You'd have to devise a regular expression and use the Perl substitution function to strip them out of the description variable before printing it. One example at the following link will remove all HTML tags from a variable. The other link describes the basics of the Perl substitution function.

LINK > Regular expression question

LINK > Perl tutorial: Substitution and translation

PS. If you're interested in learning Perl or just need to work with it, the book at the following link has lots of ready made examples of commonly asked for Perl code:

LINK > Perl Cookbook

JFYI

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 #8 on: August 04, 2007, 02:39:10 AM »

** ** 2. Is there a way to make it that images do not show up in the description? ** **

Here's an example (towards the end) of stripping ALL  HTML tags from the description:

LINK > text only event description

JFYI

Dan O.
Logged
Pages: [1]   Go Up
Print
Jump to: