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 CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)after upgrade event detail breaks are gone
Pages: [1]   Go Down
Print
Author Topic: after upgrade event detail breaks are gone  (Read 563 times)
0 Members and 1 Guest are viewing this topic.
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« on: July 23, 2004, 05:13:00 PM »

I just upgraded to the new version. Now, when I enter event details, the breaks (hitting return) are no longer taken. I tried to allow html in the calendar settings, but that doesn't seem to work, the text is still all in one line.

Old events still show up correctly, just the new ones don't. I searched this forum, but only found mods to do with the default file (which was not updated or touched).

What am I missing? The details all in one line are ugly and hard to read :-(

Oliver

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #1 on: August 08, 2004, 09:56:00 PM »

Uhm, is this thing on? Knock, knock? ;-)

Anybody know how to fix this? I have html on and she enters event details with breaks (by hitting enter) but the display shows it all in one line or breaks when it used up all the space that's on screen for one line. Kind of ugly :-(

Any ideas?

Thanks!

Oliver

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

[This message has been edited by Oliver (edited August 09, 2004).]

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: August 09, 2004, 02:18:00 AM »

You can try looking at the couple of messages in the "Links" section of the Unofficial CalendarScript - Mods and Plugins site which deal with that topic to see if they're any help?

JFYI

Dan O.

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

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #3 on: August 09, 2004, 11:43:00 AM »

thanks, I'll take a closer look at things there. Quite some new stuff since I last visited that page!

Oliver

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

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: August 09, 2004, 07:58:00 PM »

BTW. I think it's the change in DBFile.pm to remove multiple \n characters (which was causing other problems) which might be responsible for your troubles now.


However, when \n's (return characters) are used in HTML pages, they should not display as a new line but just be ignored. What browser are you using and can you post a link to a message with the paragraph breaks in them so see can try it in other browsers?

Dan O.

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

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #5 on: August 10, 2004, 12:29:00 PM »

Hi DanO, for some reason or other it works just fine now, as I thought it would. Not sure what she did, as far as I know she uses IE to work on the calendar. But as far as I can tell it all displays as it should.

Thanks anyways, if it should act up again I'll give you a link to take a look.

Oliver

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

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #6 on: August 26, 2004, 05:04:00 PM »

well, it's acting up again DanO, I'm sending you an e-mail with a direct link and can also give you access. She entered the description with breaks and paragraphs, but it only shows up as one giant block of text and she's not happy... :-(

Oliver

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

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 26, 2004, 10:43:00 PM »

** well, it's acting up again **

Problems that go away on their own frequently come back on their own as well.  

** I'm sending you a link **

Sorry but I don't offer personalized assistance... for free.

Dan O.


[This message has been edited by DanO (edited August 26, 2004).]

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #8 on: August 27, 2004, 11:34:00 AM »

Hmm, well, does anybody else? Doesn't need to be personalized, I just sent you the e-mail to show you what my problem is. I doubt I'm the only one with this problem, so solving it should be in the interest of everybody. I thought you wanted me to post a link after reading this reply:
===============
BTW. I think it's the change in DBFile.pm to remove multiple \n characters (which was causing other problems) which might be responsible for your troubles now.

However, when \n's (return characters) are used in HTML pages, they should not display as a new line but just be ignored. What browser are you using and can you post a link to a message with the paragraph breaks in them so see can try it in other browsers?

===========

I guess I misunderstood you there. I did not want to post a link here though, thought an e-mail is better.

But back to that note, I don't understand what you mention with the \n thing (I don't know Perl)
I use IE, netcaptor, Opera, and Netscape to test pages, customer uses IE.

Oh, and I actually paid for this program and would appreciate a little help with this problem. I doubt it's a big thing but if I can't fix it I'll have to buy an other calendar program (and would then like my money back :-)

But I'd rather stay with this one since I spent quite some time incorporating it in my site.

Maybe anybody else here has a sollution? Hard returns that work in the admin screen don't show up in the calendar event detail :-(

Thanks

Oliver


PS: I just ran the debug.pl and get this message:
•The file does not exist
/home/nineteen/public_html/cgi-bin/calendarscript/session/junk.txt

not sure if that file is something necessary? Might this have to do with my display problem?
------------------

[This message has been edited by Oliver (edited August 27, 2004).]

Logged
Scott
Guest
« Reply #9 on: August 27, 2004, 11:44:00 AM »

Did you modify the pl or other files at any time? I remember seeing some people changing the source so \n characters (hard returns) were converted to <br> tags when output, to maintain spacing. If you made those changes, you'll need to make them again to the updated source code.

------------------
Scott
CalendarScript.com


Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #10 on: August 27, 2004, 12:07:00 PM »

I did some customization in the default template.

I changed the event view, it looks like this now:

$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;

this comes from this thread, called Description Break Lines:  http://www.calendarscript.com/support/forum/Forum3/HTML/000077.html
(sorry, I don't know how to make a clickable link in this forum)

I'll look through my notes to see if I did anything to the pl files, but my prior customiaztion for this problem was done to the default.html, which did not change with the upgrade.

Thanks!

Oliver

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

Logged
Scott
Guest
« Reply #11 on: August 27, 2004, 12:48:00 PM »

Try this instead:

$EVENT->{details}->{$_} =~ s/\r?\n/<BR>/g;

Does that fix it?

------------------
Scott
CalendarScript.com


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #12 on: August 27, 2004, 01:02:00 PM »

** Doesn't need to be personalized, I just sent you the e-mail to show you what my problem is. **

Just looking at the calendar's output is not likely to allow me to find the cause. The problem has to be in either the script code and/or the event records which are not accessible that way. Sorry.

Dan O.

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

Logged
Oliver
New Member
*

Karma: 0
Offline Offline

Posts: 0

web designer


WWW
« Reply #13 on: August 27, 2004, 01:16:00 PM »

hmm, now that's interesting, it seems to have fixed the problem!
From my files it looks like I took that "?" out to make it display the break, any idea why the upgrade needs that "?" in there now?

I entered a couple test events and they all took the format I gave them. I told my customer to test it too, I'll let you know if it works for them too!

In any case, thanks for looking into this issue! I still believe this script is one of the best calendars out there and certainly the best in the price range it's in!

Oliver

[edit]
DanO, thanks anyways, I misunderstood your earlier reply, sorry. And thanks for great help in the past!! :-)

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

[This message has been edited by Oliver (edited August 27, 2004).]

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