• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

need help regrading

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry;
it had to do with the BBCodeEnabled flag.

its hard to explain but even though my mysql 4.0 to 4.1 migration was relativaly easy, i run into some strange things like this. i still have the old configuration running the same application and its ok there.

strange.....
maybe its time to upgrade.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, yes, now I remember this bug..

Indeed, upgrade to JForum 2.1.5

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi;
i have just ported jforum 2.0.2 from mysql 4.0 to 4.1
everything seem to work fine (search, forum postings, etc)

what i have noticed is that characters such as the newline character are ignored.
for example; when writing the following post:
"how
are
you"
the result when viewing the post will be:
"how are you"

any thoughts on this would be greatly appreciated
thanks.
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw this happen once.. a long long time ago. If you fetch data from the database console directly, the newline chars are there?

What I suggest is to put a breakpoint in the method preparePostForDisplay(), from the class PostCommon, and watch the contents, to see what's comming from the db.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks rafael;
i see that the mesage 'htmlEnabled' flag is false when preparing it to display is this the issue?

where should i go to change the default htmEnabled property to true for all posts?
thanks
[originally posted on jforum.net by gkatz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok;
i dont think it is the htmlEnabled.
i see that the DB stores the String ok and it is retrieved ok.
i see the line breaks...
for example:
when entering:
"hi
all"
the post getText method will return "hi\r\nall"
yet still the message is displayed in one line instead of 2.
any other suggestions?
thanks in advannce
[originally posted on jforum.net by gkatz]
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic